After messing around with a Google AIY Voice Kit for Raspberry Pi, I decided to re-purpose the hardware to make an offline jukebox. When a user hits the top button, a random song stored on the Pi will play. The volume knob is there to help adjust the volume and mute the song (since once a song is started, it can’t be stopped).
This tutorial picks up assuming you have already bought and assembled the Google AIY Voice Kit, or similar hardware configuration (a Raspberry Pi with a speaker and button attached). You’ll also need a rotary encoder for the volume knob (I used this one), as well as wires, solder and a soldering iron to attach the encoder to the device.
Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!
Make a robot friend with Adafruit’s CRICKIT – A Creative Robotics & Interactive Construction Kit. It’s an add-on to our popular Circuit Playground Express, FEATHER and other platforms to make and program robots with CircuitPython, MakeCode, and Arduino. Start controlling motors, servos, solenoids. You also get signal pins, capacitive touch sensors, a NeoPixel driver and amplified speaker output. It complements & extends your boards so you can still use all the goodies on the microcontroller, now you have a robotics playground as well.