Thursday, July 15, 2021

Raspberry PI Internet Radio

I'm current using the RPI 2b to output internet radio to the headphone jacks, which are then connected to an external amplifier and speakers. Occasionally I switch to HDMI. To get HDMI working on Raspberry Pi 2b. Simply edit /boot/config.txt to get HDMI working by uncomment this line:

hdmi_force_hotplug=1

However, this breaks headphone output. When attempting raspi-config option 7 (advanced) would not switch to headphone from HDMI for audio, so had to comment out above line.

Also, alsa mixer breaks audio controls in mopidy/iris, so need to be commented out in file: /etc/mopidy/mopidy.conf

#[audio]

#mixer = alsamixer

Mopidy still crashes on a regualar basis. There appears to be a deadlock  with http-server (tornado). At the moment, I must  restart the mopidy process on a regular basis using this command:

                sudo systemctl restart mopidy

Saturday, January 2, 2021

ESP8266 (ESPEASY) and DHT22 Temperature and Humidity Sensor - solved

The DHT22 is a good choice for adding temperature and humidity to your home automation system.  I was forced to add this device after experiencing a bad mold condition in our Munich apartment.   The sensor is helpful to show when high humidity conditions exist.

The device looks like this and there are many blog posts for connecting it with an ESP8266.






Here are the troubleshooting steps I went through to get it working on a breadboard and received no reading on the data pin.


- Tried many different GPIO pins GPIO16 caused LED to come on, switched to GPIO14 D5 and GPIO13 D7. 
- Tried 2nd sensor with no change. - Hardware setup - GPIO14 set to default, also tried input (its one wire, so must read and write). 
- Pullup is 4.7k - 3.3V, currently powering 1-wire DS18b20 - too much to power 2 devices? Lets try with 1-wire unplugged. (update - did not work). 
- Change 4.7k to 10k; did not work. 
- GPIO15-D8, GPIO12-D6 FAIL 

THE BREAD BOARD WAS THE PROBLEM! Power rails are not connected all the way across the board. Moved DHT22 next to ESP8266 and readings first time. Current setup GPIO14 with 10k pullup and 5v from Vin.