Alan numitron clock
SNES Pi Webserver
USB Volume/USB toys
SNES Arcade cabinet
Game boy projects
Home Presence Detector
Rand Nerd Tut
Carnet du maker (fr)
raspi webradio playerA Raspberry pi zero W used as a WebRadio player! Because I can't work without music and turning on the PC to open Youtube is taking too much of my productivity away. So webradio looks like the way to go!
PrincipleSeems you just need to MPD/MPC to play the web streams, a way to output the sound (I have somewhere an eBay soundcard or default sound output?), a display of what is the current track, and some way to control it (change station at least).
Points of interrest
Bill of materials
Make sound from a raspi zero without soundcardExplained here and here, you need to redirect 2 pins on their alternate pin, and make a small low/high pass filter with resistors and caps.
Source code : with VLCVLS is more power hungry but this Raspi will only play radio so... even if it uses 40% CPU, it won't make a difference.
Now it should work, so listen to music with:
Source code : with MPC
Display screenUsing a small 2.13 inch I2C SSD1306 with Adafruit library:
sudo apt-get install python-pip python3-pip sudo python -m pip install --upgrade pip setuptools wheel #doesn't work - unmaintained since 2014 #sudo pip install Adafruit-SSD1306 sudo pip3 install adafruit-circuitpython-ssd1306 sudo python3 -m pip install pillow
Power considerationI'd like to put the raspi zero W in sleep mode when unused to minimize power consumption AND maximize the benefit on start time. There's no real power management on the Raspi HW, so basically you have to cut the power on everything that is unused to save a few watts.
Here's a few links I found:
Radios!Go to the radio site or TuneIn, F12, Network tab and look for a .mp3 or .m3u file. No magical solution apparently.
All content on this site is shared under the MIT licence (do what u want, don't sue me, hat tip appreciated)
electrogeek.cc ~ Formerly known as Kalshagar.wikispaces.com (AlanFromJapan [2009 - 2020])