I used a transistor in my setup to control a strip LEDs with a 12 volt power supply. The setup is very similar to yours, just with the transistor in place of the led. Works great. Mines setup using an attiny85, but the same process still applies.
I have 3 pin sounds sensor vcc gnd and out and I want to connect blue color led strip to this project rather than led so please tell me the connection and what to change in code. I am your old subscriber
Good day Sir 👋 How to setup code for my 4pin led rgb module in which the led fast changing colors blinks in line with the speed of music beat or noise and automatically turn to super slow changing color mode when there is no music or noise detected on the surroundings?
Hello, you will need a driver module to operate a 12V solenoid. For such devices which demand more voltage, I have another video, check it out - ua-cam.com/video/D3TFmpsPuUk/v-deo.html
he just make no espace in the code so this is the full right code ; int soundsensor = 3; int led = 7; // defining pin numbers void setup() { pinMode (soundsensor, INPUT); pinMode (led, OUTPUT); } void loop() { int sensorvalue = digitalRead (soundsensor); //if the sound intensity is higher than threshold which is set by us, //then sensor would return the value as 1 if (sensorvalue == 1) { digitalWrite(led, HIGH); } else { digitalWrite(led, LOW); } }
Nice vedio Bro please can you tell me that if you give command from this sound detector chip to aurdino is that work will happen like turn off light turn on light paasing 0 & 1 on specific words which we decide
Hello! You will need driver like L298 for that.. because the LED strip will require either 9V or 12V. I have a separate tutorial on driver module, hope it will provide you more insights - ua-cam.com/video/D3TFmpsPuUk/v-deo.html
@@MechStuff thank you sir i'm watching your video but where should i connect it to the arduino? I can connect the led strip and the battery but how to connect the driver to the arduino please?
@@MRPSKch int soundsensor = 3; int led = 7; // defining pin numbers void setup() { pinMode (soundsensor, INPUT); pinMode (led, OUTPUT); } void loop() { int sensorvalue = digitalRead (soundsensor); //if the sound intensity is higher than threshold which is set by us, //then sensor would return the value as 1 if (sensorvalue == 1) { digitalWrite(led, HIGH); }
@@sagnikchatterjee8122 thanks! anyway got a question is this project can be included as physical interaction that controls sound in a continuous, controllable manner???
Hi.. Connecting a whole LED strip is a bit different. You will require a driver module for that. Also for strip, you only need a 12V supply.. 50V would probably burn the whole strip..lol
the code in the link is missing a line from the one he shows in the video. add a "void setup()" after the two "int" and before the bracket. here's the correct code: int soundsensor = 3; int led = 7; void setup() { pinMode (soundsensor, INPUT); pinMode (led, OUTPUT); } void loop() { int sensorvalue = digitalRead (soundsensor); if (sensorvalue == 1) { digitalWrite(led, HIGH); } else { digitalWrite(led, LOW); } } hope this helps :)
Add a resistor between led and arduino if you want to protect your arduino....
the led.
You can use the a0 analog pin to get actual voltage amounts for brightness etc. The d0 pin is just going to give you a high or low.
hi! i'm new with arduino.. can you please explain clearly about a0 could get actual numbers for brightness etc? also the code if possible.. thankyou!
hi! i'm new with arduino.. can you please explain clearly about a0 could get actual numbers for brightness etc? also the code if possible.. thankyou!
thanks
I used a transistor in my setup to control a strip LEDs with a 12 volt power supply. The setup is very similar to yours, just with the transistor in place of the led. Works great. Mines setup using an attiny85, but the same process still applies.
which transistor did you use please?
@@lou5400 it was just a tiny NPN transistor. Cheap little 3 legged deal. I can get you a part number later, but I'm no where near it right now.
@@bugiroff9926 Thank you for your answr. could you explain me how you wire the LED 12V strip ? You plug the + and the - just like the LED?
please help me
How would you make the signal show up on Arduino's serial monitor?
I have 3 pin sounds sensor vcc gnd and out and I want to connect blue color led strip to this project rather than led so please tell me the connection and what to change in code. I am your old subscriber
Good day Sir 👋
How to setup code for my 4pin led rgb module in which the led fast changing colors blinks in line with the speed of music beat or noise and automatically turn to super slow changing color mode when there is no music or noise detected on the surroundings?
Pls show for 2812B strip ;( I want to do but cannot find code or video and my sound sensor is red one (mini) it has analog oo ground and 5v (4 volts)
You make the most perfect vedios
How would I modify this to trigger a 12v solenoid instead of a LED and could I replace the electret microphone for a jack input ?
Hello, you will need a driver module to operate a 12V solenoid. For such devices which demand more voltage, I have another video, check it out - ua-cam.com/video/D3TFmpsPuUk/v-deo.html
Hey there is error in the program.....
What should I do...?
he just make no espace in the code so this is the full right code ;
int soundsensor = 3;
int led = 7; // defining pin numbers
void setup()
{
pinMode (soundsensor, INPUT);
pinMode (led, OUTPUT);
}
void loop()
{
int sensorvalue = digitalRead (soundsensor); //if the sound intensity is higher than threshold which is set by us,
//then sensor would return the value as 1
if (sensorvalue == 1)
{
digitalWrite(led, HIGH);
}
else
{
digitalWrite(led, LOW);
}
}
does anyone know how I can add more LEDS?
Nice vedio
Bro
please can you tell me that
if you give command from this sound detector chip to aurdino is that work will happen
like turn off light
turn on light
paasing 0 & 1
on specific words which we decide
Can you please explain the connection in arduino nano ?
hey i got a question.. my LED light won't turn on and off with the sound sensor..
Hello, did you adjust the sensitivity of the sensor properly?
can you explain how you make with a 12LED STRiP please?
Hello! You will need driver like L298 for that.. because the LED strip will require either 9V or 12V. I have a separate tutorial on driver module, hope it will provide you more insights - ua-cam.com/video/D3TFmpsPuUk/v-deo.html
@@MechStuff thank you sir i'm watching your video but where should i connect it to the arduino? I can connect the led strip and the battery but how to connect the driver to the arduino please?
Is there a way to keep the LED on when it hears a sound, and then have it turn off when it hears another?
Change the condition altogether.. like if sensor gets value 1 then set left off. And else switch it on
Code didn't work for me. expected primary-expression before '
me too
@@MRPSKch int soundsensor = 3;
int led = 7; // defining pin numbers
void setup()
{
pinMode (soundsensor, INPUT);
pinMode (led, OUTPUT);
}
void loop()
{
int sensorvalue = digitalRead (soundsensor); //if the sound intensity is higher than threshold which is set by us,
//then sensor would return the value as 1
if (sensorvalue == 1)
{
digitalWrite(led, HIGH);
}
else
{
digitalWrite(led, LOW);
}
}
This is the working code
@@sagnikchatterjee8122 hey man, is this code really works? i haven't try it cause I'm still waiting for my physical arduino to came.
@@woahwhodis Worked for me though bt give it a try u can once ping I'll try something diff then
@@sagnikchatterjee8122 thanks! anyway got a question is this project can be included as physical interaction that controls sound in a continuous, controllable manner???
Can you add more than one LED?
Ive try to use 4 led. But when i clap, led on and just turn off again
can you make a video of this but with 3 leds please
Hey, great video! If I wanted to use this with a 5m LED strip, should I connect everything through a breadboard with a 50V power supply?
Hi.. Connecting a whole LED strip is a bit different. You will require a driver module for that. Also for strip, you only need a 12V supply.. 50V would probably burn the whole strip..lol
Use relay module
Great video!
Code just had light turn on. No reaction to sound at all.
im having same issue
Hey there, I think the issue lies with sensitivity. You must adjust the threshold of potentiometer as mentioned at 3:25. That should do your work :)
THANK YOU!
Hi, sir what is the song name?
Song used in the start - Magic by Coldplay
Song used at the last - Pingpong by Armin Van Buuren
Enjoy 😉
i tried putting the code in but it just says
exit status 1
a function-definition is not allowed here before '{' token
what to do?
the code in the link is missing a line from the one he shows in the video. add a "void setup()" after the two "int" and before the bracket.
here's the correct code:
int soundsensor = 3;
int led = 7;
void setup()
{
pinMode (soundsensor, INPUT);
pinMode (led, OUTPUT);
}
void loop()
{
int sensorvalue = digitalRead (soundsensor);
if (sensorvalue == 1)
{
digitalWrite(led, HIGH);
}
else
{
digitalWrite(led, LOW);
}
}
hope this helps :)
01:58 ❤️
Beat name
Coldplay - Magic and Armin Van Buuren - PingPong
I don't trust this video because... it does not use a resistor soo.. I PUT ONE
where did you put it please?
and which resistor did you put? 10k?