Post Top Ad

Wednesday, July 17, 2024

VU meter/music reactive lights circuit


 VU meter/music reactive lights circuit

This is a VU meter, where the LEDs light up to the tune (more accurately, volume) of music. It is comprised of a sound detector board and 10 differently colored LEDs which depicts the meter. In the video shown above, the LEDs light up to the sound of Avicii's "Wake me Up."


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!

Arduino 101 or Arduino Uno

Sound Detector Board

10 pieces of 5mm LEDs (your color of choice)

100Ω resistor

Breadboard

Jumper Wires

I decided on ordering my LEDs based on the frequency spectrum (i.e. Rainbow - ROYGBIV) using red, yellow, green, and blue LEDs. I also added an extra pattern of incrementing by 1 LED for each colour. I encourage you to design your own pattern that suits your own creative style!


LEDs


Connect all the anodes (positive pins) of each of the LEDs to a 100Ω resistor.

 Connect all the cathodes (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.

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.

Calibrate the maximum volume that you want to listen to by recording the maximum analog input for that volume in Serial Monitor. The lower the threshold value, the more erratic the lighting patterns become. I chose a range from 0 to 60, since I am getting the sound from my computer speakers, you may want to increase this threshold if you are to play the instruments yourself.


As a reference, a clap is around 250 to 300.

Play some music, the ones with more volume changes would result in a prettier light show. Turn off the lights and watch the music!


I played a variety of songs on the LEDs, I found that these two songs work quite well - Versace on the Floor by Bruno Mars and Wake me Up by Avicii due to their volume variation. More than This by One Direction also produced a pretty light show (even though I didn't record it)!


 VU meter/music reactive lights circuit

This is a VU meter, where the LEDs light up to the tune (more accurately, volume) of music. It is comprised of a sound detector board and 10 differently colored LEDs which depicts the meter. In the video shown above, the LEDs light up to the sound of Avicii's "Wake me Up."


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!

Arduino 101 or Arduino Uno

Sound Detector Board

10 pieces of 5mm LEDs (your color of choice)

100Ω resistor

Breadboard

Jumper Wires

I decided on ordering my LEDs based on the frequency spectrum (i.e. Rainbow - ROYGBIV) using red, yellow, green, and blue LEDs. I also added an extra pattern of incrementing by 1 LED for each colour. I encourage you to design your own pattern that suits your own creative style!


LEDs


Connect all the anodes (positive pins) of each of the LEDs to a 100Ω resistor.

 Connect all the cathodes (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.

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.

Calibrate the maximum volume that you want to listen to by recording the maximum analog input for that volume in Serial Monitor. The lower the threshold value, the more erratic the lighting patterns become. I chose a range from 0 to 60, since I am getting the sound from my computer speakers, you may want to increase this threshold if you are to play the instruments yourself.


As a reference, a clap is around 250 to 300.

Play some music, the ones with more volume changes would result in a prettier light show. Turn off the lights and watch the music!


I played a variety of songs on the LEDs, I found that these two songs work quite well - Versace on the Floor by Bruno Mars and Wake me Up by Avicii due to their volume variation. More than This by One Direction also produced a pretty light show (even though I didn't record it)!

No comments:

Post a Comment

Post Top Ad

Pages