VU METER (Music Visualizer) #1 With Arduino
by KJ ELECTRONICS in Circuits > Arduino
12011 Views, 60 Favorites, 0 Comments
VU METER (Music Visualizer) #1 With Arduino
![uv meter.png](/proxy/?url=https://content.instructables.com/FG0/VJSP/IZ6CON1C/FG0VJSPIZ6CON1C.png&filename=uv meter.png)
This is the part one of the music visualizer series and In the following tutorial we are going to make a music visualizer AKA the volume meter or the uv meter from an arduino mega . The build process is very simple and easy and the program of arduino is also not that hard.
Watch the Video
![UV METER (Music visualizer) #1 with arduino](/proxy/?url=https://content.instructables.com/FLI/33YK/IZ6C8YVS/FLI33YKIZ6C8YVS.jpg&filename=UV METER (Music visualizer) #1 with arduino)
Parts List
![A000067_featured_1024x1024.jpg](/proxy/?url=https://content.instructables.com/FLC/VRTX/IZ6COM41/FLCVRTXIZ6COM41.jpg&filename=A000067_featured_1024x1024.jpg)
![11121-01a.jpg](/proxy/?url=https://content.instructables.com/FK9/QGD1/IZ6COM44/FK9QGD1IZ6COM44.jpg&filename=11121-01a.jpg)
![QxUSX.gif](/proxy/?url=https://content.instructables.com/FCQ/5G84/IZ6COM4G/FCQ5G84IZ6COM4G.gif&filename=QxUSX.gif)
![31276yaoz+L.jpg](/proxy/?url=https://content.instructables.com/F4C/EXOL/IZ6COM4P/F4CEXOLIZ6COM4P.jpg&filename=31276yaoz+L.jpg)
![BBC_jumper_01.jpg](/proxy/?url=https://content.instructables.com/F58/08GS/IZ6COM50/F5808GSIZ6COM50.jpg&filename=BBC_jumper_01.jpg)
![Epresent-Stereo-Audio-Earphone-Splitter-SDL378244272-1-24381.jpg](/proxy/?url=https://content.instructables.com/F83/Z0JQ/IZ6COM51/F83Z0JQIZ6COM51.jpg&filename=Epresent-Stereo-Audio-Earphone-Splitter-SDL378244272-1-24381.jpg)
![learn_arduino_breadboard_half.jpg](/proxy/?url=https://content.instructables.com/FCG/C2LO/IZ6COM52/FCGC2LOIZ6COM52.jpg&filename=learn_arduino_breadboard_half.jpg)
The parts needed for this build are
1.ARDUINO MEGA
2.COPPER DOT PCB
3.BREAD BOARD
4.JUMPER WIRES
5.LED (RED ,BLUE ,GREEN)
6.TOOLS(SOLDERING IRON ,SOLDER WIRE)
7.AUDIO SPLITER WITH A JACK
8.HEADER PINS
Testing on Bread Board( 1.LED's and ARDUINO )
![1.png](/proxy/?url=https://content.instructables.com/FU5/E80Z/IZ6COMBT/FU5E80ZIZ6COMBT.png&filename=1.png)
![2.png](/proxy/?url=https://content.instructables.com/F9J/T9DD/IZ6COMBU/F9JT9DDIZ6COMBU.png&filename=2.png)
![3.png](/proxy/?url=https://content.instructables.com/FHH/PWV6/IZ6COMBV/FHHPWV6IZ6COMBV.png&filename=3.png)
![4.png](/proxy/?url=https://content.instructables.com/FK6/OIR8/IZ6COMC4/FK6OIR8IZ6COMC4.png&filename=4.png)
![5.png](/proxy/?url=https://content.instructables.com/F6S/JU6Q/IZ6COMC7/F6SJU6QIZ6COMC7.png&filename=5.png)
Start by inserting the led on the bread board with the negative leg of the led to a common ground rail of the bread board (led count =20)
the positive leg of the led will be there at any empty rail of the bread board as shown in the video and following pictures
Then connect the ground of the arduino to the common ground rail of the led
Start from the pin 22 of the arduino mega and the flow is shown below
ARDUINO PIN LED COUNT
22------------------------------1
23------------------------------2
24------------------------------3
25------------------------------4
26------------------------------5
: : (pin follows from 22 of the arduino and ending at pin number
: : 41 of the arduino mega)
41-----------------------------20
Connecting the Music Source
![6.png](/proxy/?url=https://content.instructables.com/FRN/503E/IZ6COMDH/FRN503EIZ6COMDH.png&filename=6.png)
![7.png](/proxy/?url=https://content.instructables.com/F8F/S52P/IZ6COMDK/F8FS52PIZ6COMDK.png&filename=7.png)
The music source is the main thing in the following project.
As you have seen in the following video that i have used a audio spliter which will split the aux cable data into two parts one is for our circuit and the other one is which we can connect to the music system\
the connections for audio input follows as
Ground of the aux cable will go to the ground of the arduino.
Left or Right channel of the aux cable will go to the A0 analog input of the arduino mega
ADDING THE POTENTIOMETER
![8.png](/proxy/?url=https://content.instructables.com/FT4/15TJ/IZ6COMEZ/FT415TJIZ6COMEZ.png&filename=8.png)
The potentiometer is used to increase or decrease the sensitivity of the music VU meter
the connection for the potentiometer are as
1st Pin___________GROUND
2nd Pin___________A1 of arduino
3rd Pin___________+5v or vcc
in the code also we have used the following command lines to the potentiometer to be worked as the sensitivity adjustment
potval=analogRead(A1);
output = analogRead(music);
potval=map (potval,0,1024,5,40);
output = output/potval;
UPLOADING THE CODE
![9.png](/proxy/?url=https://content.instructables.com/FMG/PFZ5/IZ6COMIQ/FMGPFZ5IZ6COMIQ.png&filename=9.png)
After thee construction on the Bread Board we can upload the following code by using the arduino ide
any doubts in the code you can freely ask in the comment section below
Downloads
CREATING THE PCB
![10.jpg](/proxy/?url=https://content.instructables.com/F89/V0WX/IZ6COMTE/F89V0WXIZ6COMTE.jpg&filename=10.jpg)
![11.jpg](/proxy/?url=https://content.instructables.com/FLM/11LG/IZ6COMTM/FLM11LGIZ6COMTM.jpg&filename=11.jpg)
![12.jpg](/proxy/?url=https://content.instructables.com/FI1/M90F/IZ6COMTO/FI1M90FIZ6COMTO.jpg&filename=12.jpg)
![13.jpg](/proxy/?url=https://content.instructables.com/F3J/XBAQ/IZ6COMTT/F3JXBAQIZ6COMTT.jpg&filename=13.jpg)
![14.jpg](/proxy/?url=https://content.instructables.com/F4D/6265/IZ6COMTX/F4D6265IZ6COMTX.jpg&filename=14.jpg)
After a complete test of the following circuit we can construct the same circuit much more stable on the pcb
for that repeat the same process of the connecting the led on the pcb and solder the common ground layer
then connect the audio jack left or right channel and the ground to the A0 and ground
then for the sensitivity use to pot ...
the basic idea you can get from the above video and the rest of the things are how creative you can apply the concept
THANKS FOR SUPPORT
you can visit the part 2 of these series click on this link
https://www.instructables.com/id/UV-METER-Part-2-U...
Thanks for visiting the following instructables
If you like the project make sure you give a like
you can visit to my youtube channel and get so many similar projects by clicking the youtube link below