This is a guide using Arduino Uno to display the audio waveform of your music using a matrix of LEDs (Light emitting diodes).
Step 1: Gathering Your Materials
This is a list of all the materials you will need
7. LED's and Resistors (I used these, The number of LED's may vary depending on how many rows and columns you want)
Step 2: Gathering Your Tools
It is important to use the right tools! This is a list of the tools you will need
1. A drill
2. A 3/16 Drill Bit
3. A Soldering Iron
4. long nose Pliers (To easily bend wires while working with soldering iron)
5. Wire Strippers/cutters
6. Some type of saw to cut the wood (I used a round-saw)
7. Two clamp bars (optional: to hold down wood)
8. A right angle ruler to measure the wood (ruler will work)
9. A pen to mark the wood
10. And of course a computer to program the Arduino using the Arduino Software
Step 3: Wood Block
In this guide I will be making a 7 by 5 LED Matrix
7 columns, 5 rows = 35(7 * 5) LEDs and 12(7 + 5) pins
The more columns and rows you put into your matrix: the more pins you will need.
For this project there are 13 available pins so the sum of your rows and columns should not exceed 13.
Each LED should be 15mm apart from each other to ensure easy soldering
The matrix will be 90mm by 60mm we will add a 40mm margin to all sides
- So cut a piece of wood out that is 170mm(17cm) by 140mm(14cm)
- Now using a ruler and a pen draw the 90mm by 60mm grid
- Drill a hole through each point using the 3/16 drill bit
- after you drill you may want to sand it down
- You can paint or stain the wood (I stained mine to give it a darker color)
Step 4: LED Matrix
1. Flip your block of wood over and put an LED in each hole place each LED so that the ground pin is directed toward the bottom left corner of the wood piece.
2. Bend each ground pin straight down, make sure the ground pins are not overlapping any power pins.
3. Now bend all the power pins to the right
4. Solder all the ground pins together
5. Bend the power pins so they will not touch the ground pins and solder them together.
6. Double check to make sure no ground pin is touching a power pin!
7. If you are using hook up wire like I am, cut and strip wires for each row and column long enough to reach the Arduino
8. Solder the wires together
Step 5: Connecting Your LED Matrix to Your Arduino
- Connect your Spectrum Shield to your Arduino
- Connect row 1 wire to digital pin 6 and row 2-5 wires to Analog pins 2-5
- Connect columns 1-7 to the breadboard through resistors and to the Arduino digital pins 7-13
Run this code to make sure all of your LEDs work, I had to swap some out
Run this code I made using Multiplexing to light up to audio
Step 6: Playing Music
Use an auxiliary cord to connect your shield to any device that has an aux jack(smart phone, computer, ipod, etc)
Then use another auxiliary cord to output to speakers or plug in headphones!
I have the older DEV-10306 - Spectrum shield so both my auxiliary jacks can be used as input or output.
The newer model should specify which aux jack is input and output on the board.
You can use a 9v battery and take the LED matrix anywhere!