Materials required: 1)An Arduino Uno(with its adapter) 2)Sound sensor 3)Jumper wires 4)A LED Hope this is helpful. Check out the code here: kandrproject.blogspot.com/201...
It's working good for me! Thanks for the tutorial. For some people in comment section who did not get output - 1. Capital 'S' in Serial.begin(9600) should be used 2. Newly bought sound sensor should be adjusted to normalcy - by screwing the potentiometer in anti clockwise (Analog output pin nearer to you) direction for "20 turns" or so
man, thank you very much after seeing your video I was able to find the error in my project and now I was able to execute everything in compliance, thank you again and continue making videos like this, a hug for you from Belém-Pará-Brazil.
Hello!! Which microphone/sound sensor did you have specifically used?? Actually I have to detect whether sound exceeds a threshold value or not.... Thanks in advance!!!
Hey, I have one question.. I have another component connected to the Arduino, so the 5V place is already taken. How to connect the Sound Sensor + then?
It doesn't make any sanse you connect D0 on the sensor to analog input on arduino. When you check readings from D0 (sensor) with command Serial.println (soundsens); it will show you readings like 1023 (and no chance will you change with trying to adjust the potenciometer). BUT if you connect the wire to A0 (instead of D0) on the sensor you will get accurate readings. THEN you can spin the potenciometer and try to put it to 150-160 while watching its read on Serial monitor. Then when you clap your hands the readings will go above 200 and the LED will shine.
@@krproject8917 what he is saying is right. Digital output from sensor means high or low. There is no in between values . You have to use Analog output of the sensor
Is there a way to use the sound output via a mini stereo cord from say a phone or computer jack and read it instead of reading it in open air via the microphone module?
What if you power your arduino uno with an external battery. Would you still need to connect the plus power pin of the sound sensor to the 5V input of the arduino uno? Or would you have to connect it to another input?
Can it be programmed to detect certain sound signal patterns that work as an encrypted "message", which then can be translated into a code that unlocks the encryption, and activate a certain command? *The device would detect any sound, but woun't initiate that specific command until it has received the proper sound signal.
If wonder if this would work as an early-alarm? If you were to somehow glue this behind a lock, or a window? Is there a way to make it detect ONLY high (or only low) pitched sounds? That would be amazing for a security system...
2 question,..1st question - what do i put in threshold to enable the LED when i say "hi" ?...2nd question - what application did you use in your computer ?,thx.
Hey, idk if you still need this, but try adjusting ur threshold in the int's at the top. Everyone has a different value, but for me it was 1015. you will have to play around with it a bit, but i hope this helps. @@tameemullas5868
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?
My sound sensor circuit isn't working, the LED lights up and stays on. It doesn't light up or turn off when it is suppose to. There is no error in the code, as the Arduino IDE says there is no error. The connections appear to be good as well since I double checked. The only difference is that I am using NANO to save space time and money.
Hey, idk if you still need this, but try adjusting ur threshold in the int's at the top. Everyone has a different value, but for me it was 1015. you will have to play around with it a bit, but i hope this helps.
is there a way where the led would turn on at a certain decible? so like: if (decible = >60) { digitalWrite(LED, HIGH); } else { digitalWrite(LED, LOW); } }
Brother I did it in the same way as you but its not working, I copied the program and pasted it, but the LED is on it doesn't react to sound , connections are also made properly, can you give any idea for it?
I have a similar sound 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!
I tried for about an hour adjusting the potentiometer but the light that is only supposed to go off from sound is unable to to turn off. Could something be faulty with my sound sensor? It looks like the exact same one from the tutorial. Since this is the case, the LED on the UNO is constantly turned on as well as the 2 LEDs on the sound sensor. Any advice is appreciated. I've watched the tutorial 3 times now.
Check the small LED on the sensor. If it is turned on with giving any sound input, your potentiometer is not adjusted properly and the condition of the code is always satisfied. Adjust it such that the Sensor's led turns on only when you give some input. This will solve the problem. Sound sensor becomes problematic when the potentiometer is not adjusted properly.
K&R project Thank you. I figured it out. I did not realize you had to turn it a certain direction to adjust , I also had to turn it SEVERAL times for it to work. I appreciate your response.
First adjust the potentiometer. There are two small LEDs on the sensor. Adjust the potentiometer such that the small one turns on only while receiving an input.
Need help. I've done everything as you said, i've copied the code and connected all, same as you, But the led is everytime on, i cant find the way to make it turn off and then react to a song or sounds. What could be the problem ?
Hello,Your explanation is really great and it is upto the point ..I have a doubt,hope u will clear it I want to set a threshold value and based on that, if the sound exceeds the threshold (then the Arduino needs to command GSM to make alert call). Is detecting higher range sounds be done by modifying your circuit and code a bit??? For this, can you tell me what are all the requirements I need to have? Thanks in advance!!
Yup. You can change the threshold value for different ranges. Just remember that this sound sensor cannot detect wide variety of input as it is just a small sensor for small projects.