I'm making a radio for my kid for her first christmas.
Taking an old radio, connecting the tuner to a raspberry pi zero 2 w, and using it to switch between different spotify playlists that I manage with a specific naming convention.
- Raspberry Pi Zero 2 W
- IQaudIO Codec Zero
- HiLetgo ADS1115 16 Bit 16 Byte 4 Channel ADC
/boot/firmware/config.txt
#dtparam=audio=on
dtoverlay=
dtoverlay=iqaudio-codec
sudo apt install git
git clone https://github.com/raspberrypi/Pi-Codec.git
sudo alsactl restore -f /home/<username>/Pi-Codec/Codec_Zero_OnboardMIC_record_and_SPK_playback.state
/etc/rc.local
#!/bin/sh
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
sudo alsactl restore -f /home/<username>/Pi-Codec/Codec_Zero_OnboardMIC_record_and_SPK_playback.state
exit 0
.asoundrc
pcm.!default {
type hw
card IQaudIOCODEC
}
ctl.!default {
type hw
card IQaudIOCODEC
}
sudo reboot
speaker-test -c2
/etc/raspotify/conf
LIBRESPOT_NAME="Kid Radio"