Build a fun and playful 3D printed MP3 player with CircuitPython and an RP2040 PropMaker Feather! It's a boombox for young makers, but with a twist: use a color sensor to detect a LEGO DUPLO brick and play a song, sound effect, or audio clip. Each colored brick plays a different audio file.
You can use the Adalogger FeatherWing microSD card slot to add extra media storage to add as many MP3 audio files as you can store!
3D Printed Boombox
All of the electronics are housed in a 3D printed enclosure that features a storage bin for holding several DUPLO bricks. It features a 3W 4Ohm mono speaker that connects to the I2S audio amplifier that's built-into the RP2040 PropMaker Feather.
Color Sensing Magic
Pop a DUPLO brick into the boombox and click the rotary knob to have it say what color the brick is. You can turn the knob to turn up or down the volume. The on-board NeoPixel LED will light up to the corresponding brick color.
Detect Different Colors!
This project is configured to detect 11 different colors from the DUPLO brick box. You can add new colors by reading the values from the sensor and assigning a new MP3 file in the code. The code page in this guide will cover how it all works.
Music featured in this project is by written by Dan Q for Adafruit. Check out all of Dan Q's music on the Adafruit Soundcloud page.
LEGO® DUPLO® Compatible
The project is designed to be compatible with 2x2 DUPLO bricks. The brick box set is a great beginners kit featuring several bricks featuring different colors.
Page last edited February 04, 2026
Text editor powered by tinymce.