Это видео недоступно.
Сожалеем об этом.
Arduino Sound Sensor Control
HTML-код
- Опубликовано: 16 авг 2024
- DIY Home Security - New Video: • DIY Simple PIR Motion ...
Sound sensors can be used for a variety of things, one of them could be turning lights off and on by clapping. Today however we are going to use hook up the sound sensor to an array of LED lights which will beat with music, clapping or knocking.
Required Hardware:
Arduino Board :
goo.gl/UyGYeF (Banggood)
amzn.to/2LZr6t4 (Amazon)
Sound Sensor :
goo.gl/ydI0Lp (Banggood)
amzn.to/3ateYKr (Amazon)
LED Kit :
goo.gl/aDh6JN (Banggood)
amzn.to/3qxSs8O (Amazon)
220 ohm Resistors :
goo.gl/uSYHGx (Banggood)
amzn.to/3jXMJXs (Amazon)
Mini Breadboard :
goo.gl/jZeZC2 (Banggood)
amzn.to/2M15Wea (Amazon)
Jumper Wires :
goo.gl/EGTafY (Banggood)
amzn.to/3doetmT (Amazon)
Recommended Items:
Use Your Muscles in Project - amzn.to/3wdL45C
37 Sensor & Module Packages - amzn.to/3m66WeQ
Try this Robot Arm - amzn.to/3fq8DCl
Best Resin 3D Printer - amzn.to/39tY8KB
Arduino Compatible Kits - bit.ly/2J2AFF7
Banggood Spring Sale - bit.ly/3slMbOn
Connections :
This module allows you to detect when sound has exceeded a set point you select.Sound is detected via a microphone and fed into an LM393 op amp. The sound level set point is adjusted via an on board potentiometer. When the sound level exceeds the set point, an LED on the module is illuminated and the output is sent low.
Source Code: create.arduino...
Social Media:
/ mertarduino
/ mertarduino
Source Code: create.arduino.cc/editor/mertarduinotech/3bbd2444-cd6b-4627-91ff-492a00134e00/preview
Recommended Items:
Use Your Muscles in Project - amzn.to/3wdL45C
37 Sensor & Module Packages - amzn.to/3m66WeQ
Try this Robot Arm - amzn.to/3fq8DCl
Best Resin 3D Printer - amzn.to/39tY8KB
Arduino Compatible Kits - bit.ly/2J2AFF7
Banggood Spring Sale - bit.ly/3slMbOn
Short, simple, clear & straight to the point!! Awesome video!! Thank you for sharing!!
Did anyone else notice that he did not wire that resistor in series? both sides of the resistor are connected to the same bus on the breadboard so no current will flow through it. It works temporarily because the arduino cant supply enough current to pop that LED right away, but it will wear the LED out very fast.
Yeah im a total beginner and I spotted that,
How can i found the sound sensor component in tinkercad??
Your arduino projects are so simple and less cost but can you please share the code also in the description
Hello can u do a project with LED strips with sound sensor?I appreciate it!
only just seen this look like fun. But isnt that resistor of no use it both legs are in the same row on the breadboard.
I would like to use a traffic light and have it come on in three stages (green, yellow, and red) as the kids get louder in Sunday school, is that possible with this configuration?
First of all, fantastic idea! Second, try using analogRead() instead of digitalRead(). This can give you way more options than just one and zero. Use if statements to figure out what level of sound you want to use. I hope this helps!
Question: Can we detect by this microphone the sounds outside the headset ? [20hz-20khz]
NOT THE MEME BRO NAHAHHHAHAHAHAHHA
Thank you so much brother! This became my first arduino project and it is so amazing!
Projelerin çok güzel devamını dilerim
Love u bro it help me a lot
Music is like saving the humanity 😂
Can u change the light too a servo and will it still work pls help I really need to know thx
hey I'm having trouble with my sound sensor not responding idk if its the programming
your channel is awesome.!will u please make a video about arduino programming in details..!it will be helpful
+Mert Arduino Tutorial & Projects thanx a lot..actually many of us...don't hav a single knowledge about arduino programming.. if you upload coding tutoreal..it will be benefitial :)
How and where did you learn to make this cool things.what course should i do
What would you have to do to the software if instead of using the Arduino sound sensor, you use a microphone circuit that outputs the waveform of the specific sound you want the microcontroller to capture? do you need to declare it as an int sound sensor? is the digital read a library? sorry for the questions.
digitalRead and digitalWrite are in arduino software by default, you dont need to put any librarys
How to make this like reacts only to bass sound ?
At 1:10 what program did you use to pre plot the circuitry?
Resistor placed in this way is useless, because current will not flow through it.
Can i use the same concept to work on a specific frequency of sound ? Like the light will turn on and off only when the frequency of the sound reach desired one .
Me trying to figure out same thing
yes of course you can
@@jeecko how do you do that? I have a project tomorrow and I’m banging my head against the wall tryna figure it out
Very nice,..Sir may you help me how to make sound meter with decibel meter..This is for my research project...thank you very much..
Would I be able to do this with an LED strip?
Good stuff but that is an indicator(output; visual kind) not a sensor(input; audible kind, or any other)
I know in the Arduino world the word SENSOR means just a module/break-out/tiny board but in electronics and computing it's different.
How can I use this in a system that deters barking dogs? I currently have a system I wired together that runs high pitch piezo tweeter speakers on a remote but that doesn't work when I'm not home to activate it. The over the counter bark deterrents are useless. I need it to stay on for 30 seconds when it detects noise but no shut off when it detects the second bark. Any ideas?
uhmm. Decent quality video. But, he shorted the resistor in both the breadboard circuit and the simulator circuit (by putting both ends of a device on the same row, the device is eliminated from the circuit). ..thought I should mention it in case some newbies need the clarification.
Thank you orb
what is the name of the circuit simulator program?
great tutorial, could you tell me if there is a way to run it off a 9v battery or aa batterys , instead of the mains , to use in a model
You can't connect it directly to the 9v battery, since it wouldn't have any programs in the storage or any CPU. You could charge the Arduino wkth the battery, but the output would be the same (5V).
Could you make a tutorial on how to do the same thing in packet tracer. Thank you in advance.
hi Mert Arduino Tutorial & Projects
i have another sensor module named KY-038 it is composed of 4 output
i try to install it but he doesn't work
so if you can,send me the schema and the code please
thanks, you are the best in arduino videos :)
Hi I would like to use this as an addition to our IP but does this work with voice? or only clapping and knocking?
How can a set a base voice which need to be detected
Would have been much better with no music and a voice over instead. It's ironic that in a video about a circuit that reacts to sound, you don't even hear the sound it reacts to.
Sir electromagnetic relays are their in ur project can it work without relays
hi im new for using arduino... i just want to know if i can use laser instead of LED as an out and use that same laser to power a amplifier speaker. thanks in advance
can you please show how to do this for servos?
Hi! Can I use this digital sensor sound without connection to Arduino? What is the signal voltage occurs at the out of the module when sound activity?
From how far distance is it possible to register sound? I need a sound sensor that after say 2 claps turn a LED on. (at least from 3 meters away)
How can I read the sound frequency number and record as log file?
Thank you so much for such clear and easy to follow video!
You can read it in Serial monitor. Just add in void setup
Serial.begin(9600);
and in end of the program before last curly braces } add this code:
Serial.print(digitalRead(2));
Serial.println(" ");
It will show just 1 and 0 because its digital read.
Milos Sarac thank you so much!
What would happen if we didn't used the resistor ? or a different resistor
I have a similar sensor that is red. However I am having trouble with it it only turns on the LED when it is directly facing it and close, and also it reacts much better to claps. I am trying to make it turn on the LED to the basic sound of the buzzer, so like a pin that goes on and off. I would like it to be able to react to the sensor when it is relatively far away, at least 1 ft for this stage but ultimately i would like it to detect the sound at least 20 ft away while both are underwater. Do you think that the sensor was not working because the sensor had a fault? or is it just that theses are not that sensitive to begin with? Thank you!
So I had a question, I got one of the sound sensing microphones from Keyes and well one of my questions was I'm trying to make a sound activated led strip but every time the sound sensor senses sound, the led starts blinking and I just wanted to know if there was any way I could get it to fade instead of blinking. This is for an architectural project and I really want to figure this one out.
My code goes like
if (sensorvalue >= threshold) {
digitalWrite(3, HIGH);
}
else {
digitalWrite(3, LOW);
}
Its set to only be on when threshold is met and off when threshold is not met. but what I want it to do is fade and get brighter when sound is on and fade out slowly once the sound goes off instead of just switching off.
Please help, it ll be much appreciated.
What is the name of the screwdriver you used to adjust the potentiometer
Hi, Can you please tell me how to trigger camera flash via Arduino nano. I have Arduino, sound sensors some electronics basic kit. I want to trigger flash using sound sensor. Any guidance will be of much help.
if there is any module that dectect the different led light and stop there please tell me
Hey man im just trying this stuff out now. For some reason my sensor over heats alot but all the wiring is correct because the light turns on. But it just stays on, theres no flashing to music or anything. Do you know what could be wrong?
Having this problem too. Considered that it may be a faulty sensor(have played around with the connections for GND, +5V and OUT to see if the legend on the sensor is incorrect(I have bought a LM393)). Have you found any fix for this problem yet?? Thanks
The way you installed your resistor, it seems to me that you are shorting it. Your LED will die in a few minutes
The schematic was correct, but I don't know what he did on the breadboard.
Can we use dc motor in the place of light
My sound sensor doesn't listen to me lol. It seems to hear a lot of distortions, i don't have it soldered so idk if that's the cause but i have attached it to the breadboard
good tutorial!
Mert öncelikle merhaba ben bunu ses çıkınca açılıp ses çıkınca kapanan yapmak istiyorum yani eşiği artirip alkışla yapmak istiyorum açıyorum ama kapatamıyorum nasıl yapmalıyım kodu
Resistor is wrong, you don't know how to use a breadboard (protoboard)..
tr de videosu yok diye ingilizce aratıyorum türk çıkıyo olaya bak :D
what soft ware do you use to display hardware's
than☺☺x
what if im using 10k ohm resistor? will led not ligt on?
is it possible to reverse it so loud sound actually turns OFF a light that is already on? Shouldn't be too hard I think, right? Also, is this just a simple on/off threshold? Or is there a range where the light brightens and dims? (For example, between -10 and -5 decibels, the brighteness of the light linearly goes from 100% to 0% brightness)? Thank you for any advice you can offer.
Hey.
You can just flip the if statement.
do this:
if(statusSensor == 0) {
digitalWrite(LED, HIGH);
}
else {
digitalWrite(LED,LOW);
}
this makes the light go off when there is a loud sound and on when there isn't. hope that helps
have fun!
Can i make led flashing with only sound sensor ,led and one battery at 5V?
How can I make it react on just the low tones (bass)?
Would be great if anyone can send me the code :)
you can also make a simple low pass filter which only let's the small frequencies through aka low sounds
How do you make a low pass filter?
Just Google low pass filter and it will show you a circuit, basically it is just a resistor and capacitor in series
TrapWolves correct the volume of the sound detection through the screwer on it
how do you make the led turn on at a certain decibel?
tanqqq so much we need more advanced
disculpa hice todo tal y como esta en el video y no sale jajaja ni siquiera el código esta correcto ,a que se debe ?
We have made it 4 times but its doesn't workings
Please tell me the name of the wires used in this project
is it okay if I replace the LED with a light strip?
which software are you using for circuit diagram
what is the name of black wire you use in arduino
Hi. Could anybody please post a build of Arduino decibel meter for an Airgun with shown Max last reading. Small size would be preferable, possibly Arduino Nano and Oled screen. Most Android Phone Apps don't work correctly as the phone kills the Microphone sensitivity automatically and sampling isn't fast enough. Thanks in advance. Good Video BTW.
I am getting a lot of errors of Processing when I input the code. It says things like: "The variable 'INPUT' does not exist", "The variable 'HIGH' does not exist", and "Error on 'else'". Do I need to install some kind of a new library or something? I am brand new to Processing and Arduino, so I am completely lost! Thank-you in advance!
Okay, thank-you so much!
Pardon me but I don’t have sound sensor library how can I do it or add it? Cuz it doesn’t work btw
Thanks man
arduino is not needed just:
connect output pin of sound sensor to + of led
Even if that works, it is only going to work for components that require low voltage and current.
if i read the analog values ,what does it return?
how can we connect this all with GSM module???
You're the best!
Sir/Madam
If possible please provide me program code for aurdino interfacing both accelerometer ADXL335 and Audio mic KY038.......... The program code should such that at our desired value both should give LED output. This i need for educational purposes.
it didnt respond to sound sensor.. the led light always turn on... what should i do?
what if i want to connect multiple leds
Wire more in to the circuit. Or make them controlled using the different pins and variables in your code.
Can we record sound using this sensor?
Can one ardino do multi work
Is it possible to use this Sound Sensor without using arduino?
Thanks!
Where's your XOD?
please show where what pin should be attached
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
That is my son
how can we add multiple leds......
merhaba ben CAN
videoda dediklerinizi aynen uyguladım ancak alttaki hatalari verdi. Yardimci olabilir misiniz teşekkürler
Çalışmanız programın 910 bayt (2 %) saklama alanını kullandı. Maksimum 32256 bayt.
Global değişkenler belleğin 9 byte kadarını (0%) kullanıyor. Yerel değişkenler için 2039 byte yer kalıyor. En fazla 2048 byte kullanılabilir.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x1b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x1b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x1b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x1b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x1b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x1b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x1b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x1b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x1b
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x1b
Karta yüklenirken sorun oluştu.
Çok teşekkür ederim işe yaradı
how to specific the sound in this sensor
Am i the only one who can se the faunt in the position of the resistor?
sir please please make a video on how to make drone
pleace how to delet project on mit app inverter
thanks mert
Abi led ampullerden nerede bulabilirim şimdiden teşekkürler
Can I use 4 pin sound sensor
Can I know which wires are used in this project
ansari danish male wire and female to male wire
What program you are using?
does it work with mosquitoes?
can someone tell me how to add sound sensor in tinkercad
there is no sound sensor in tinkercad
Looks like Fritzing is the program being used rather than Tinkercad
I do this with a normal led, but, how con i do it with a 12v led strip?
Mert Arduino Tutorial & Projects I tried it, but i cant, can you help me with the connections please? :)
Mert Arduino Tutorial & Projects Can i contact you on email or twitter please? :)
Mert Arduino Tutorial & Projects Video will be soon?