Arduino with Sound Sensor and LED (Tutorial)

Поділитися
Вставка
  • Опубліковано 29 лис 2024

КОМЕНТАРІ • 242

  • @tatvamkrishnam6691
    @tatvamkrishnam6691 2 роки тому +11

    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

    • @tameemullas5868
      @tameemullas5868 Рік тому +1

      Brother even I also did it in same way but the LED is on through out all time it doesn't react to sound can plz explain?

  • @besanamateojrd.376
    @besanamateojrd.376 2 роки тому +4

    Thanks Bombay., IT students in the Philippines are always watching Indian Tutorials incomes of IT major
    subjects.

  • @dnevnipodsjetnik
    @dnevnipodsjetnik 6 років тому +7

    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
      @krproject8917  6 років тому

      You can do it however you want. There are no restrictions in programming and electronics.

    • @micahproulx1989
      @micahproulx1989 6 років тому

      It didnt work i got the program perfect yet still whenever i apply power the led turns on. Explain if you can thanks sir.

    • @toddmoore112
      @toddmoore112 6 років тому +1

      @@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

    • @toddmoore112
      @toddmoore112 6 років тому

      @@micahproulx1989 use Analog output of the sensor

    • @micahproulx1989
      @micahproulx1989 6 років тому

      @@toddmoore112 I tried that, whenever i apply power it just turns on. Thanks, Micah.

  • @Otranna
    @Otranna Рік тому +5

    Thanks friend. I was worried why my project it doesn't work but this was helpful.

  • @michaelborisow815
    @michaelborisow815 3 роки тому

    No bullshit, no ambiguity, and you spoke English because the title is also in english. 1100/10

  • @rithikgobinath1207
    @rithikgobinath1207 5 років тому +1

    I am 12 years old, I am very interested in Arduino. I was succeeded in this. Thank you a lot.

    • @DreThePlug
      @DreThePlug 4 роки тому

      It is a very clever component

  • @DeAngeloYouKnow
    @DeAngeloYouKnow 4 роки тому +2

    When you copy his code don't forget to change the A# pin to which ever number you plugged in your cable to. A very pivotal part that was missing.

  • @DonaldIssachar
    @DonaldIssachar Рік тому +2

    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.

    • @adityabansal9828
      @adityabansal9828 Рік тому

      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.

  • @stellalandi8687
    @stellalandi8687 7 місяців тому

    Thank you! It was really simple and helpful, you really saved my project

  • @baldaiomir
    @baldaiomir 3 роки тому +1

    thanks! also,why did you use "serial begin9600"? i think its wasn't necessary for this project, but correct me if im wrong

  • @tameemullas5868
    @tameemullas5868 Рік тому +1

    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?

  • @rajchaudhary3543
    @rajchaudhary3543 5 років тому +2

    Still i am not getting how can connect the digital output pin of the sound sensor with the analog pin of the arduino.

  • @jomac_ph
    @jomac_ph Рік тому

    thanks for the upload man, this was awesome!

  • @Mister_UCL
    @Mister_UCL Рік тому +1

    Like should the adapter be connected to the laptop or can we take out and it will still work

  • @GetRealwithMike
    @GetRealwithMike 6 місяців тому

    Thank you for providing language, not music.

  • @dylanneve1456
    @dylanneve1456 3 роки тому +1

    do you can do it with 3 pin's of the sound detector

  • @saggirish
    @saggirish Рік тому

    Thanks for the video. My led is always on. I tried both AO and DO from sound sensor and connected to A2. Also tried adjusting the potentiometer.

    • @tameemullas5868
      @tameemullas5868 Рік тому

      Same problem

    • @adityabansal9828
      @adityabansal9828 Рік тому

      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

  • @humbertojunior564
    @humbertojunior564 7 років тому +3

    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.

    • @krproject8917
      @krproject8917  6 років тому +1

      Happy to help.

    • @vinivinefera563
      @vinivinefera563 6 років тому

      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!!!

  • @NorizhamHamsan
    @NorizhamHamsan 5 місяців тому

    Hello there, great video! Could I know threshold value of the sensor? What does it mean by 200? It is by value of hertz or decibel? or other? thanks..

  • @michaelolifian1324
    @michaelolifian1324 5 років тому +2

    why mine cant react to the sound? after done program it and compile it, the LED is on but cant turn off by sound. what should i do?

    • @abhrogupta8840
      @abhrogupta8840 5 років тому +1

      u need to set the potentiometer....

  • @marissa.kswd22
    @marissa.kswd22 5 років тому

    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?

  • @Astrovic1
    @Astrovic1 3 роки тому

    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?

  • @jahdielbuenafe7071
    @jahdielbuenafe7071 3 роки тому

    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.

  • @millanferende6723
    @millanferende6723 4 роки тому +2

    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...

  • @-m7k0z7-9
    @-m7k0z7-9 5 років тому

    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.

  • @aisyahhadiismail
    @aisyahhadiismail Рік тому

    Hi, i need help. Why when i run the coding, it appear 'A2' was not declared? I copy exactly like yours. THank you.

  • @priyankagoyal3885
    @priyankagoyal3885 4 роки тому +1

    Its coming error in else line that is in the end
    :exit status
    Expected unqualified id before 'else'

  • @myyoutube6978
    @myyoutube6978 2 роки тому

    Can sound be recorded and sent across the house to receivers and sensor's? Once you pass them?

  • @jharedpeje5048
    @jharedpeje5048 7 місяців тому

    hey, why does the other LED of my KY-038 doesnt turn off like yours?

    • @jharedpeje5048
      @jharedpeje5048 7 місяців тому

      ive been twisting the potentiometer for a long time now

  • @najiyanazrinpn101
    @najiyanazrinpn101 2 роки тому

    What should I do if I have ESP32 instead of Arduino?

  • @Esthicodes
    @Esthicodes 3 роки тому

    Hello, may I ask how to let my Arduino connect with Bluetooth and resonate sound?

  • @huntersimms6134
    @huntersimms6134 5 років тому

    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.

  • @allcontentarehere2588
    @allcontentarehere2588 3 роки тому

    Can we connect motor instead of light

  • @1SGBob1
    @1SGBob1 3 роки тому

    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?

  • @prasannajitshinde7186
    @prasannajitshinde7186 4 роки тому

    Can we use PIC18F4520 microcontroller instead of Arduino Uno..??

  • @gourlamye219
    @gourlamye219 2 місяці тому

    Hello, sorry i wanna ask something, where's the sound?

  • @cool12pro34
    @cool12pro34 Місяць тому

    Do I need a 1 ch relay module ?

  • @maayankarthi9745
    @maayankarthi9745 2 роки тому

    'Serial' was not declared in this scope 'A2' was not declared in this scope
    ihave this type of error how to solve it

  • @danielenocito5080
    @danielenocito5080 4 роки тому +3

    Thanks mate, very clear and useful 👍
    It would be nice if you could show also the Serial Monitor
    All the best

  • @පුංචිකතා-ය4ඳ
    @පුංචිකතා-ය4ඳ 2 роки тому

    This video is very usefull for me.Thank You

  • @leerzeichen1910
    @leerzeichen1910 4 роки тому

    How can i use this sound sensor for more applications with different power consumption?

  • @worldofartandcraft8361
    @worldofartandcraft8361 2 роки тому

    Cam you tell some more info abt the potentiometer??plsss

  • @jefferyhammond1421
    @jefferyhammond1421 3 роки тому

    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?

  • @ashlealhinkle
    @ashlealhinkle 6 років тому

    Hi I’ve done exactly what you instructed but the LED is constantly on. I’ve tried adjusting the sound sensor but does not help.

    • @krproject8917
      @krproject8917  6 років тому +1

      You must adjust your potentiometer. First, turn it clockwise and try. If it doesn’t work, turn it anti clockwise and try.

    • @ashlealhinkle
      @ashlealhinkle 6 років тому

      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.

  • @vinaybakle6443
    @vinaybakle6443 5 років тому

    From same code can we add to switch relay to turn on light or other devices? Do you have any video of such?

  • @KannadaAdviceTv
    @KannadaAdviceTv 3 роки тому

    Can we calculate the decibel

  • @tetsux4172
    @tetsux4172 2 роки тому

    threshold value is for what

  • @Sakshi-gh1nc
    @Sakshi-gh1nc 12 днів тому

    Code not working it shows redefinition of 'void setup'

  • @nuelaenebechi6861
    @nuelaenebechi6861 4 роки тому +4

    This is amazing!! It worked perfectly for me!!

    • @tameemullas5868
      @tameemullas5868 Рік тому

      How does it plz explain, my LED always on it doesn't react to sound though any idea, if you have did it?

    • @ramyaramya2722
      @ramyaramya2722 5 місяців тому

      Same

  • @katea9647
    @katea9647 3 роки тому

    do we really need to put the led on the board?

  • @christiansison9341
    @christiansison9341 5 років тому

    whys my led doesnt light . all are the same with the video? thanks for the help

  • @timothydillan4062
    @timothydillan4062 6 років тому

    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);
    }
    }

  • @GauravSrivastava-xz4jy
    @GauravSrivastava-xz4jy 5 років тому +1

    The LED is being continuously glowing although there is no sound stimulus. Pls help me bro.

  • @ayushsaini8791
    @ayushsaini8791 4 роки тому +2

    it was really helpful, and thank you for the code explanation

  • @msureshmudaliar9808
    @msureshmudaliar9808 3 роки тому

    Bro..., in need aurdino program code for my project work.... If possible can you provide it

  • @ramyyadontul4126
    @ramyyadontul4126 3 роки тому

    Can we use nano aurdino?

  • @ShivharakhYadav
    @ShivharakhYadav 3 роки тому

    where we use this type of projects???

  • @Gyaan_With_Azhar
    @Gyaan_With_Azhar 5 років тому +1

    Who to adjust potentiometer

  • @ismaelobligacion7531
    @ismaelobligacion7531 6 років тому

    I can't adjust the potentiometer there. The led light besides it does not turn off. Any help?

  • @rushabh.patel14
    @rushabh.patel14 5 років тому

    How to connect two sound sensors at a time and read them simultaneously?

  • @nginastera6633
    @nginastera6633 6 років тому

    hello .. my led is on and i've tried to adjust the poteniameter but it doesnt work !! PLEASE HELP

    • @krproject8917
      @krproject8917  6 років тому

      First, turn it clockwise and try. If it doesn’t work, turn it anti clockwise and try.

  • @michael923977
    @michael923977 6 років тому +1

    nice tutorial.
    mmm i have a trouble. in your tutorial, you find high/low sensor. if high then led on. can i get a frequency this sensor?

    • @krproject8917
      @krproject8917  6 років тому +1

      Michael Indra Pramana you can print the sound sens value and see if it gives u the data.

    • @krproject8917
      @krproject8917  6 років тому +3

      Serial.println(soundsens);

  • @nizamudeenmohammed8898
    @nizamudeenmohammed8898 6 років тому +1

    Led is emitting without knocking sound. how to set Thres hold value

    • @krproject8917
      @krproject8917  6 років тому

      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.

    • @josepadilla-dv3ld
      @josepadilla-dv3ld 6 років тому +1

      can i adjust the potentiomater while connected to power? @@krproject8917

    • @krproject8917
      @krproject8917  6 років тому

      @@josepadilla-dv3ld YES

  • @rodym1681
    @rodym1681 6 років тому +1

    hi how are you sorry for disturbing i copy and past the cod every thing is ok but the led is on all ways can you help me plz

    • @krproject8917
      @krproject8917  6 років тому

      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.

    • @rodym1681
      @rodym1681 6 років тому

      K&R project hi I adjusted and the led sound sensor is on

    • @rodym1681
      @rodym1681 6 років тому

      The led sound sensor is on and the led output is also on also if there is sound or no sound the output led is always on

    • @rodym1681
      @rodym1681 6 років тому

      Hello the output led is always on if (their is sound or not )

  • @emilianocorral5149
    @emilianocorral5149 7 років тому

    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 ?

    • @alaoadedapo2277
      @alaoadedapo2277 6 років тому

      Pls send me the code. engrdapo@gmail.com

    • @krproject8917
      @krproject8917  6 років тому

      Please try adjusting the Potentiometer. Also, check if you've delayed the program elsewhere using the "Delay" function.

    • @gabriellobato781
      @gabriellobato781 6 років тому

      i have same trouble you can resolve??? how plzz

    • @tadejdezelak5511
      @tadejdezelak5511 6 років тому

      same problem with me

  • @rayyanrayyan331
    @rayyanrayyan331 3 роки тому

    How to put a buzzer instead of led

  • @JKFCV
    @JKFCV 3 роки тому

    Can we record sound using this sensor?

  • @amirgedon
    @amirgedon 5 років тому

    How many can set led for mega?
    Can do separately?

  • @christianlawan336
    @christianlawan336 4 роки тому

    why is led always on on my project what is the problem of this? even without sound the led is always on

  • @anthondiy
    @anthondiy 3 роки тому

    Nice bro more learn about this kee it up

  • @kennethkindrich3114
    @kennethkindrich3114 4 роки тому

    can this be done with servos? If so, how can i do this?

  • @omrihabmimo2299
    @omrihabmimo2299 3 роки тому

    Thank you so much , it's really work ❤️💪🇩🇿

    • @Lovestoryi4173
      @Lovestoryi4173 3 роки тому

      Please explain the mi how to do this please send the coding

  • @jodethb.6727
    @jodethb.6727 5 років тому

    My sound sensor heated what does it mean?

  • @sanket_salunke27
    @sanket_salunke27 2 роки тому

    Tinkercard mein sound sensor available nahi hai kaise kare

  • @davidhugheszerobubblemodel1865
    @davidhugheszerobubblemodel1865 9 місяців тому

    have done exactly what you have shown and it simply does not work.

  • @ibnuhajar8098
    @ibnuhajar8098 4 роки тому

    Kalau pake arduino nano bisa ya ?

  • @fame_xyz
    @fame_xyz 5 років тому

    Iski distance range Kitni hai

  • @ramyyadontul4126
    @ramyyadontul4126 3 роки тому

    Whear is delay program

  • @bayupratama7323
    @bayupratama7323 6 років тому

    Can I use gy max4466 for this project?

  • @niatidas6295
    @niatidas6295 5 років тому +1

    Can we make a sound sensor work on a specific soundn

    • @soap5912
      @soap5912 4 роки тому

      adjust the sensitivity by screwing the blue thing

  • @taimgangez9084
    @taimgangez9084 6 років тому +1

    my led light still is on it doesnt turn off please help

    • @krproject8917
      @krproject8917  6 років тому

      You must adjust your potentiometer. First, turn it clockwise and try. If it doesn’t work, turn it anti-clockwise and try again.

  • @muhammadnaquib8814
    @muhammadnaquib8814 5 років тому

    Why my LED doesnt light up even though the circuit is same to yours brother?
    HELP HELP HELP

  • @Mad_Lex
    @Mad_Lex 6 років тому +1

    Hello Man nice job
    Could you show how to do it with a 5050 LED strip?

    • @krproject8917
      @krproject8917  6 років тому

      Do you mean use 5050 led strip instead of a led?

    • @Mad_Lex
      @Mad_Lex 6 років тому

      K&R project yes a RGB strip , no RGB LED , I ve tried with npn transistor but I cant light Up the 3 colors 🤔

    • @krproject8917
      @krproject8917  6 років тому

      It maybe because the arduino’s power supply is not enough. Try by using two or more transistors.

    • @Mad_Lex
      @Mad_Lex 6 років тому +1

      With a transistor per color is ok
      Thanks
      👍

  • @stxjubayer6505
    @stxjubayer6505 5 років тому

    Does it recognize voice command?

  • @yansahkorg1876
    @yansahkorg1876 4 роки тому

    Hi guys, how do you make a guitar sound catcher?

  • @electroflam
    @electroflam Рік тому

    it doesn't work because he tells me « ledpin was not declared in this scop »

  • @sirinekari6661
    @sirinekari6661 4 роки тому

    Can you please give us the circuit in proteus !!?

  • @shaunsomaru4524
    @shaunsomaru4524 5 років тому

    You have a new sub.. Good explanation. Keep up the good work.

    • @clobel55
      @clobel55 2 роки тому

      how did you get paid to write this. This guy is totally incomprehensible

  • @arnoldthegreat4138
    @arnoldthegreat4138 6 років тому

    can you set the sound sensor to pick up a specific sound?

  • @rpbdesigner
    @rpbdesigner 4 роки тому

    In my test my output always 1023, this right?

    • @Residentfxp
      @Residentfxp 4 роки тому +1

      mine as well, i tried to play a bit with the potentiometer but eventually i changed the connection on the sensor from D0 to A0 and you get analog values. then in the arduino program write Serial.println(soundsens) after you declare it and then youll be able to see the analog values of sound in the arduino serial monitor and change your potentiometer according to that. for me it works like in the video after doing this.

  • @vinivinefera563
    @vinivinefera563 6 років тому

    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!!

    • @krproject8917
      @krproject8917  6 років тому

      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.

  • @kratikapatidar336
    @kratikapatidar336 4 роки тому

    exit status 1
    Error compiling for board Arduino Uno.

  • @Plqnes
    @Plqnes 4 роки тому

    Pls do for RGB strip (adressable)

  • @kathiac3299
    @kathiac3299 7 років тому

    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!

    • @krproject8917
      @krproject8917  6 років тому +1

      Yes, these are not very sensitive. But, you can still try adjusting your potentiometer.
      Best of luck.

  • @shubhrehabkolkata
    @shubhrehabkolkata 5 років тому

    Sound sensor with sargo 180° Pogroms..... Plz send me..

  • @et.sachin
    @et.sachin 6 років тому

    How can i detect a particular frequency using this sensor

  • @parthjoshi5779
    @parthjoshi5779 5 років тому +2

    you didn't use the serial monitor
    no need for Serial.begin

  • @loesroodenburg1501
    @loesroodenburg1501 6 років тому

    What sort of sound sensor do you use?

  • @yorgoaghnatios2609
    @yorgoaghnatios2609 5 років тому

    The code is complet?

  • @rayofsunahine
    @rayofsunahine 5 років тому

    hi can you write code here?