3 ms·
I built a tube internet radio with speech output of station names and switching stations with the AM dial. A small USB mouse picks up the rotation, a python scr
by jeffreygoesto 9y ago
I built a tube internet radio with speech output of station names and switching stations with the AM dial. A small USB mouse picks up the rotation, a python script speaks the station name and passes the stream URL to gmediarenderer. Sound via USB soundcard and Phono/Aux input. Inspired by http://blog.scphillips.com/posts/2014/05/playing-music-on-a-raspberry-pi-using-upnp-and-dlna-v3/ http://blog.scphillips.com/posts/2014/05/playing-music-on-a-....
Some pictures at http://imgur.com/a/r834D http://imgur.com/a/r834D
- sjs382 9y agoAny info re: interfacing with the dial? I bought a radio for a similar purpose that's just been gathering dust in the garage.
- jeffreygoesto 9y agoSure. I'm reading this device https://www.google.de/#q=PX8559+mouse https://www.google.de/#q=PX8559+mouse with code similar to that one: https://stackoverflow.com/questions/4855823/get-mouse-deltas-using-python-in-linux https://stackoverflow.com/questions/4855823/get-mouse-deltas... Measure, how many delta ticks a revolution gives you and adjust the delta to trigger the next station to feel natural when turning the dial. I bent a simple bracket from some scrap sheet metal to hold the mouse in place just above the dial. The black and white threads of the cord wrapped around the dial helps the optical sensor, so try to position the optics above that. Similar project: https://2dom.github.io/the-radio/ https://2dom.github.io/the-radio/ I did not bother to remove parts of the mechanics to make the dial endless, however. Dialling through so many stations that you need that is tedious anyways, so I felt I don't need it. Oh and by the way, I made the Raspi's filesystem read-only so I could shwitch it of safely with the radio. See i.e. https://hallard.me/raspberry-pi-read-only/ https://hallard.me/raspberry-pi-read-only/