James West has taken an old rotary-style telephone and turned it into a Pi-powered jukebox.
To start with, he hooked the dialer up to the Raspberry Pi’s GPIO and then used Dan Aldred’s code to count the pulses generated when the ring was turned. Having done this, he programmed the Pi to play different songs depending on which number had been dialled. He chose songs about phone calls or conversations, starting with Hanging on the Telephone by Blondie when you dial 1. The transfer of the Pi’s audio to the handset was achieved using a Pimoroni Speakerphat, with the volume dialled down (sorry) by simply adding a resistor.
You can see it working below and you can read more here. Take a look at other James West builds by clicking here.