Arduino LED Music
This is my Arduino project. It is a VU meter, where the LEDs light up to the tune, in a more accurate way to say is the volume of the music. It is comprised of a sound detector board and 10 differently colored LEDs which depicts the meter. I also add Photoresistance to my project to make it even better. There is a blue LED light at the end of this clip which is manipulated by own. This is a kind of sensor that detects whether the light should be turned on or turned off.
In my video shown above, the LEDs light up to the sound of Shawn Mendes's song " Treat you better".
Oh, by the way, a VU meter is a volume indicator tool usually represented by either a needle and a gauge or with LEDs. Of course, the latter looks cooler! VU meters are more commonly known for their visual appeal, with LED lights lighting up to the sound of music!
My Arduino project orginally comes from : https://www.instructables.com/id/VU-Meter-Music-Re...
Supplies
- Arduino 101/ Arduino Uno/ Arduino Leonardo x1
- Sound Detector Board x1
- 11 pieces of 5mm LEDs (your color of choice)
- 100Ω Resistor x11
- Breadboard x1 (depends on how you manipulated)
- Jumper Wires (a lot)
- Photoresistance x1
- 10k Ω Resistor x1 (the blue one)
Step 1: Prepare for Your Materials
- Arduino 101/ Arduino Uno/ Arduino Leonardo x1
- Sound Detector Board x1
- 11 pieces of 5mm LEDs (your color of choice)
- 100Ω Resistor x11
- Breadboard x1 (depends on how you manipulated)
- Jumper Wires (a lot)
- Photoresistance x1
- 10kΩ Resistor x1 (the blue one)
Step 2: Design Your Breadboard
I decided on ordering my LEDs on the same roll to be clear and obvious. I started from left to right, from red to green. ( I did not count the blue LED because it's for Photoresistance. ) Using red, yellow, green, and blue LEDs for my project, it seems to be more attractive. I encourage you to design your own pattern that suits your own creative style!
Step 3: Hardware Design
For the LEDs:
Connect all the anodes ( aka positive pins) of each of the LEDs to a 100Ω resistor. Connect all the cathodes ( aka negative pins) of each of the LEDs to the ground rail on the breadboard. Then, connect this ground rail to the GND pin on the Arduino board. Connect the free end of each of the resistors starting from the bottommost LED to pins 2 to 11 in consecutive ascending order.
For the Sound Detector Board :
Connect the GND pin on the sound detector board to the GND pin on the Arduino board. Connect the VCC pin on the sound detector board to the 3.3V pin on the Arduino board. Connect the Envelope pin on the sound detector board to the A0 pin on the Arduino board.
For the Photoresistance:
Photoresistance does not have a positive and negative side. So it doesn't matter which side is connecting to which place. Connect one side of Photoresistance to the anodes. Connect another side to 10kΩ resistor and Analog 1. Connect the cathodes to another side of the 10kΩ resistor. And that is it!
Step 4: Detect Your Volume and Photoresistance
This is only a reference for you. The first image is my sound, and the second image is my Photoresistance sensor. (ONLY FOR AN EXAMPLE!)
Step 5: Start Your Coding!
This is my code ( Only an example)
Click here: https://create.arduino.cc/editor/niiiiichun0918/26...
Downloads
Step Six: DONE
Play some music, the ones with more volume changes would result in a prettier light show. Remember to turn off the lights and watch the music!
There are many songs that did very well, have fun!