Me&Mi Jukebox
This Jukebox uses CircuitPython and PixelBlazes in order to have a show of lights and six songs to choose from.
Downloads
Supplies
TECHNOLOGY:
- CircuitPython Bluefruit
- NeoPixel LED strips
- Raspberry Pi Pico
- Breadboard
- Buttons
- CircuitPython
- 16x16 PixelBlazes
- 32x8 PixelBlazes
- Audio DAC
- PixelBlaze Sensor Expansion Board
- 5V power supplies
- Male-Male wires for wiring Pico, DAC, and buttons
- JBL Charge 3
- SD card
- Adafruit PiCowbell
MATERIALS:
- Wood
- Vinyl
- Nails
- Wood glue
- Paint
- Frosted, colored Acrylic
- Clear acrylic
- Cardboard
- Paper
- 3D printed parts
Build the Structure
Build the structure using the materials above. Machines used for materials below:
Wood machines (band saw, table saw, sander): Structure
Laser Cutter: some wood piece, acrylic pieces
3D printer: Buttons
Pixel blazes were taped together and attached.
Wire Pico to DAC and set up wires for buttons
Code the Pico
Code the pico to play sounds. Attach a speaker using an aux cord and the Audio DAC.
Downloads
SD Card and PiCowbell
Use Audacity to change the audio file to a wav file.
- Convert file in Apple Music to an wav file if not downloaded as one
- Load audio file into Audacity
- Click Export Audio
- Ensure these settings
- Format: WAV (Microsoft)
- Channels: Mono
- Sample Rate: 11025 Hz
- Encoding: Signed 16-bit PCM
- Repeat for each song and upload to SD card
- Place SD Card in PiCowbell attached to the Raspberry Pi Pico
Code the CPB
Code for the CPB to display flashing light pattern. The pattern moves through the rainbow and is lowest brightness when switching between colors and highest brightness in middle of each color cycle.
Connect to Pixel Blaze to Create Pattern List for 16x16
This is the playlist of patterns for the 4 16x16 PixelBlazes. The mapper was not used. The patterns bypass the mapper. These patterns were premade patterns that we downloaded and placed into playlist.
Attached are the GitHub of some of the downloaded patterns. Other patterns were found on the start page of the Pixelblaze. Create your favorite playlist of patterns!
Connect to Pixel Blaze to Code 32x8
The code for the 32x8 shows a pattern that is sound reactive to the songs playing. This code for the 2 32x8 mapper and the pattern was provided by Professor John Gallaugher.
https://github.com/gallaugher/pixelblaze-patterns/blob/main/Sound%20-%20Spectrum%20Analyser.epe
Final Demo
Here is the final demo of our project.