Wednesday, September 23, 2020

Resurrecting 1-wire on Raspberry Pi

These instructions worked, except I'm using parasitic power (pins 1 and 3 to ground, pin 2 to signal with 4.7k resistor to 3.3v):

https://thepihut.com/blogs/raspberry-pi-tutorials/18095732-sensors-temperature-with-the-1-wire-interface-and-the-ds18b20

Good blog here too:

https://www.raspberrypi-spy.co.uk/2013/03/raspberry-pi-1-wire-digital-thermometer-sensor/

Final result:

raspberrypi:/sys/bus/w1/devices $ ls

10-00080194a30d  w1_bus_master1

raspberrypi:/sys/bus/w1/devices $ cd 10*

raspberrypi:/sys/bus/w1/devices/10-00080194a30d $ cat w1_slave

32 00 4b 46 ff ff 09 10 94 : crc=94 YES

32 00 4b 46 ff ff 09 10 94 t=25187

raspberrypi:/sys/bus/w1/devices/10-00080194a30d $ 


Friday, August 28, 2020

Pi 2 B - Under-voltage detected! (0x00050005)

 Swapped USB charger to 2A, which seems to have resolved the low voltage issue.

Saturday, March 7, 2020

Raspberry Pi 2b Recipe


Raspberian crashed again and would not reboot.  Follow these steps to recover:

  1. Used MacOS BalenaEtcher to flash SDCard; OSMC not working latest Raspberian works
  2. Add ssh file to boot root directory; touch ssh
  3. Success ssh via wired connection; user pi - password raspberry
  4. Sudo raspi-config to configure wifi; enable vnc; enable GUI desktop
  5. Edit /etc/dhcpcd.conf with static IP for wlan0
  6. Add user to sudoer file - sudo usermod -aG sudo username
  7. Use Music on commandline (moc/mocp) as command line music player
  8. Need to install desktop - sudo apt-get install lightdm
  9. Need a desktop too  apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal (probably better off flashing desktop version of raspberian)
  10. Download vnc server or xrdp (not both) - we need a browser or VLC to play online radio
  11. To fix default display resolution: /etc/vnc/config.d/vncserver-x11-virtual:xrandr -s 1024x768
  12. Remove pulseaudio to get stereo vs mono
  13. sudo gsettings set org.gnome.desktop.lockdown disable-lock-screen 'true'