How to make an LED VU-meter using ARDUINO UNO
Vložit
- čas přidán 24. 02. 2019
- Find electronic components on www.utsource.net/
Utsource is a proffesional elelctronice supplier with more than 2 million product, lower price with free shipping.
Hey everyone,hope you are doing fine.
In one my previous videos I had shown you to how to make an LED vu meter using LM3914...In this video I am going to show you to how to make an LED vu meter using Arduino.
Here I have used Arduino UNO as the brain of the circuit ,which can provide only 12 digital outputs.that means we can use only 12 number of LEDs max. .If you want to increase the number of LEDs, then you can use arduino mega instead of arduino UNO/nano.
Things needed to make this LED vu meter using arduino:-
1) 1x breadboard
2) 12x 5mm LEDs(bit.ly/2JjjKLp)
3) 12x 100 ohm resistors(bit.ly/2SrhtRc)
4) 1x Arduino UNO/nano(bit.ly/2yGHnt7)
5) 1x 3.5mm headphone jack(bit.ly/2PuY7gs)
6) 1x 10k potentiometer(bit.ly/2z9gygD)
7) 1x audio splitter (optional)(bit.ly/2SZPRI4)
8) breadboard connectors(bit.ly/2Vk8fYR
arduino code --- drive.google.com/open?id=1-0w...
Subscribe to my channel
/ creativestuff
my best video:-
• how to make wireless s...
faceebook - / creativestuff101
MAKE YOUR OWN 7 SEGMENT DISPLAY
• MAKE YOUR OWN 7 SEGMEN...
how to make WIRELESS SCROLLING DISPLAY BOARD
• how to make wireless s...
How to make an ELECTRIC SCREWDRIVER
• How to make an Electri...
How to Control a LOT of LEDs with Arduino & 74hc595
• How to Control a LOT o... - Věda a technologie
Great work sir 😇
Very creative 😊
nice!! worked perfectly.. does someone know how can i put the second channel and make it stereo? i m trying to write a code and i don t manage to!
¿Puedo usar 3 filas de LEDs de 6 LEDs cada una?
I have 2 questions.The first audio input is for the headphone jack,but what exactly is the purpose of the second audio input?And how can i improvise a headphone jack with wires that can be connected to my arduino pins?
Dear
I build this project and it works fine! Thank you
Just i have a question, when i connect this on the phone outpu i do not have sound through my speakers, how i connect this to the line outs/speakers? Is there a seperate code for this please
Grtz Jessy
Use lesser switch 😂
I am getting error while uploading code exit status 1
Kindly help admin
👍
int musica = A0;
int output,a;
int pot=A1;
int number_of_led[12] = { 2,3,4,5,6,7,8,9,10,11,12,13}; // Assign the pins for the leds
void setup()
{
for (a = 0; a < 12; a++)
pinMode(number_of_led[a], OUTPUT);
}
void loop()
{
pot=analogRead(A1);
output = analogRead(music);
pot=map (potval,0,1024,5,40);
output = output/potval;
if (output == 0)
{
for(a = 0; a < 12; a++)
{
digitalWrite(number_of_led[a], LOW);
}
}
else
{
for (a = 0; a < output; a++)
{
digitalWrite(number_of_led[a], HIGH);
}
for(a = a; a < 12; a++)
{
digitalWrite(number_of_led[a], LOW);
}
}
}
"potval is not declared in this scope"?
@@nanxhu change pot to potval everywhere and it works
I don't understand what function does the potentiometer. Can you explain me?
The leds are suppose to power on based on the voltage at the potentiometer... the louder your music gets the more leds light up because the voltage on the potentiometer is higher. Thats why it's really important to test the vu meter as your music plays in order to adjust it right. The red ones should only light up at really high volumes. Hope it helped :)
Sir ye linke Android mobile phone se download hoga sir plz cement kar k bataya.
can i use electret microphone?
NO...not with this code
Downloaded the code but it says "could not create the sketch" and "failed to open sketch".
Can you send the code in notepad format?
can you send the code if you have it
You have to rename the file without spaces. For example: LedVuMeter.ino
int musica = A0;
int output,a;
int pot=A1;
int number_of_led[12] = { 2,3,4,5,6,7,8,9,10,11,12,13}; // Assign the pins for the leds
void setup()
{
for (a = 0; a < 12; a++)
pinMode(number_of_led[a], OUTPUT);
}
void loop()
{
pot=analogRead(A1);
output = analogRead(music);
pot=map (potval,0,1024,5,40);
output = output/potval;
if (output == 0)
{
for(a = 0; a < 12; a++)
{
digitalWrite(number_of_led[a], LOW);
}
}
else
{
for (a = 0; a < output; a++)
{
digitalWrite(number_of_led[a], HIGH);
}
for(a = a; a < 12; a++)
{
digitalWrite(number_of_led[a], LOW);
}
}
}
The code in the description failes to open, could you send it to me?
int musica = A0;
int output,a;
int pot=A1;
int number_of_led[12] = { 2,3,4,5,6,7,8,9,10,11,12,13}; // Assign the pins for the leds
void setup()
{
for (a = 0; a < 12; a++)
pinMode(number_of_led[a], OUTPUT);
}
void loop()
{
pot=analogRead(A1);
output = analogRead(music);
pot=map (potval,0,1024,5,40);
output = output/potval;
if (output == 0)
{
for(a = 0; a < 12; a++)
{
digitalWrite(number_of_led[a], LOW);
}
}
else
{
for (a = 0; a < output; a++)
{
digitalWrite(number_of_led[a], HIGH);
}
for(a = a; a < 12; a++)
{
digitalWrite(number_of_led[a], LOW);
}
}
}
Jazu thank you very much!!
I need your program
Can you give it to me?
arduino
Plz what is the role of the POT
For the sensitivity if your pot is on max and the music plays the LEDs will instead of staying in green it will go to red which means the music is very loud
exit status 1
Error compiling for board Arduino Uno.
Where is arduino code and circuit diagram
Added code to the description...circuit diagram will be uploaded..thanx for watching
In description
I didn't know Arduinos would accept AC voltage of music?
where's the code?
In the description
Can u give me a program ?
in the description
Use mega for more leds 😂😂😂😂
Ever heard of shift register lol
No sir.I haven't heard of shift register
czcams.com/video/hqVpxCPFaQk/video.html
Sir aapki Instagram fb ya phone number de do kuch puchna h
FB link description me he
Just made this and all i get it all leds on, no flashing at all.
same here
Maybe adjust the potentiometer
same here
The code you linked is a joke.
You know that right? Ffs.
Nope...I don't know.. Would you let me know why you said that?