How to make a Clap Switch using Arduino UNO!

Поділитися
Вставка
  • Опубліковано 12 чер 2021
  • Beach by MBB / mbbofficial Creative Commons - Attribution-ShareAlike 3.0 Unported - CC BY-SA 3.0 Free Download / Stream: bit.ly/Beach-MBB Music promoted by Audio Library • Beach - MBB (No Copyri...
    Music by: Dayfox
    / dayfox
    / @dayfox
    COMPONENTS:
    1. Arduino UNO -
    amzn.in/d/dtjWUNu
    2. Sound Sensor Module -
    amzn.in/d/a0VCyQH
    3. 1CH Relay Module -
    amzn.eu/d/hD7H8BK
    4. Jumper Wires (male to female) -
    amzn.in/d/epYMM1J
    CIRCUIT DIAGRAM: drive.google.com/file/d/1uQjF...
    CODE: docs.google.com/document/d/1Y...
    #arduinoproject #electronics #sameerbedwal
    Instagram: / sameerbedwal
  • Наука та технологія

КОМЕНТАРІ • 206

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

    Wow! Good job, keep it up

  • @LuisWOLF-tz5th
    @LuisWOLF-tz5th 10 місяців тому +1

    I give you a great job on your coding and video 😊

  • @NavneetKaur-wq8ny
    @NavneetKaur-wq8ny 3 роки тому +1

    Good work. KEEP IT UP👍

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

    Hello i need to send me which switch thermostat for using on and off automatic during the device working

  • @boringmemes5718
    @boringmemes5718 2 роки тому +1

    Great job

  • @Sa1Jho
    @Sa1Jho 3 місяці тому +1

    Thank you for information i was looking how to control relay with sound

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

    Editing op boi

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

    If i on OTG in my phone green light is blinking continuously what to do and while uploading I'm getting uploading error pls respond

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

    Hi! Is there a code where the Light will function of it detects a clapping sound only?

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

    How is sensitive to other sounds? It Is able to listen mostly the higher frequencies?

    • @SameerBedwal
      @SameerBedwal  Рік тому +3

      It also listen to the lower frequencies eg voice, etc. On the top of the sound sensor is a little flathead screw you can turn to adjust the sensitivity.

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

    Can you tell all the material list

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

    bro pls help, why is the code in the video different in the link

  • @seemakushwaha9680
    @seemakushwaha9680 9 місяців тому +1

    Nice brother

  • @kweekiamsen7879
    @kweekiamsen7879 4 місяці тому

    Which cable circuit is used in the description or video?

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

    Nice 👌

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

    Circuit diagram?

  • @shubhamjoshi9624
    @shubhamjoshi9624 10 місяців тому

    Very very good and useful sir, thank you so much

  • @user-hw6gg3xc3x
    @user-hw6gg3xc3x 7 місяців тому

    May I know if can replace the light bulb with LED and connect with battery?

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

    Bro which led bulb and adaptor I wanna use pls tell me bro

  • @rpr-7620
    @rpr-7620 29 днів тому

    The code in the drive is different from the video, does it still works?
    and also, can I use my laptop to connect the Arduino Data Cable if I don't have OTG for my phone?

    • @SameerBedwal
      @SameerBedwal  29 днів тому +1

      Yes it works...just do the connections accordingly. Ofcos you can upload the code using your laptop, install Arduino IDE

    • @rpr-7620
      @rpr-7620 29 днів тому +1

      @@SameerBedwal okay, thank you very much!

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

    I have connected everything the same, even I can observe the input light in relay and can change it by clapping
    But my bulb is not working according to clap

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

      Check your relay and bulb connections
      Circuit diagram in description

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

    I was wondering, wouldn't the direct conncetion to the AC supply fuse the relay module

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

      No no, nothing will happen to your relay...this is what it is made for

  • @ygz.Ronald
    @ygz.Ronald Рік тому +1

    Where can i get the bulb bulb holder and cord

  • @easy_notes19
    @easy_notes19 4 місяці тому

    Sir the code given in description and showing in ur phone is different.

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

    Do i need the phone to power the Circuit?? Or any usb adapt will do?

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

      You can use any 5v Adapter to power the arduino board

  • @aravindtravelvlogs
    @aravindtravelvlogs 2 роки тому +1

    Good video

  • @captaink6762
    @captaink6762 8 місяців тому +1

    do we need male to female jumper wire or male to male jumper wire

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

    Wow 👏

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

    Can i change sound sensor with vibration sensor?

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

    Is it okay to use 12V relay instead of 5 volts?

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

    please share the code for UNO

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

    I need the permission to view code... Could u please allow it to me!!

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

    hi can we add more relays and make ise many bulbs

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

      Yeahh...u can, use 4ch relay module

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

      @@SameerBedwal can we e-mail ypu if we need any help

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

      @@SameerBedwal sir can you send your email

  • @hmzee_hehe
    @hmzee_hehe 4 дні тому

    mine not working

  • @stithinkulkarni3188
    @stithinkulkarni3188 7 місяців тому +1

    Does this recognise only clap or any other sound also?

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

      Yess it recognises other sounds also eg. My father has a very loud voice, so whenever he spoke(in front of the clap switch) light turns on😀

    • @fawziafariha225
      @fawziafariha225 12 днів тому

      😂😂​@@SameerBedwal

  • @user-ye8du3ur1z
    @user-ye8du3ur1z 8 місяців тому

    Bro can i use 12v relay module?

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

    Bro, may I know why you connect the arduino to the phone

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

      To power my arduino board.
      You can use a 5v adaptor to power it, both options are valid

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

      @@SameerBedwal ok thank you

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

    Do we need to connect it to the phone always or just to upload the code?

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

      I didn't have a power adapter at that time so I used my phone.

    • @GuyWithBandana
      @GuyWithBandana 5 місяців тому +1

      @@SameerBedwal so, in this tutorial are we supposed to always connect it to the phone for it to work?

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

      @@GuyWithBandana no bro! Just upload the code using your phone and use a 12v power adapter to power it

    • @GuyWithBandana
      @GuyWithBandana 5 місяців тому +1

      @@SameerBedwal ok, thanks

  • @user-xt5wh5cp4l
    @user-xt5wh5cp4l 5 місяців тому

    I connected the same as u did.. but relay green light is continously on ..on insurting IN pin to 13 number...why is this happening...plss replyy

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

      Adjust the sensitivity of the sensor till the relay's green light turns off. And when you clap, the green light will turn ON that means your project is working

    • @user-xt5wh5cp4l
      @user-xt5wh5cp4l 5 місяців тому

      I tried it ...but green light is on Even without connecting sound sensor

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

      @@user-xt5wh5cp4l can you send me the video of your project

  • @mowtown75
    @mowtown75 Рік тому +7

    Please join and insulate 110~240V connections professionally! Dont leave exposed as you have shown. You should also warn of the danger. What if it was a stainless work bench, or a person or child does what you showed, but the wire you twisted together comes undone, and they simply grab it ! They will get a get a shock!

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

    Hey sir, jaise apne ye clap wala banaya hai....bilkul waise hi ultrasonic sensor ka use karke ban sakta hai? Jaise hi hum uske samne se haath paas kare to light on ho and phirse kare to off....pls agar hosakta hai to code aur diagram dedo...is simple cheese par ek bhi video ni hai pls help

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

      Here's the link for code and circuit diagram..

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

      @UCjWC37Cm6jvKWKvUKWjWwpg so should I just copy the whole thing and paste it there???

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

      github.com/embeddedlab786/Automatic_Room_Light_Control

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

      Yaa just copy the code from the link i provided you and paste it in your arduino IDE software or whatever software you use for coding..

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

      @@SameerBedwal where is the circuit??

  • @muhammadzandra7850
    @muhammadzandra7850 4 місяці тому

    Will this work with Arduino R3 SMD?

    • @SameerBedwal
      @SameerBedwal  4 місяці тому

      Yes you can make this project with duplicate arduino(Arduino R3 SMD). But you'll need to install CH340 driver before uploading the code.

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

    Can we do it without connecting the mobile with Arduino after making it completely

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

      Yes! Mobile is just for uploading the code on arduino, use any 12v 1 amp adapter to power your project.

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

    when do i use the double clap switch code?

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

      also for uploading the code throught pc/laptop, which software do i use?

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

      When you want your lights to turn on/off after 2 claps

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

      Use ARDUINO IDE software for coding

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

      @@SameerBedwal thank you!

  • @seemakushwaha9680
    @seemakushwaha9680 9 місяців тому +1

    Code dedo

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

    Plz can I ask
    Is otg necessary?

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

      Yess, if you are doing coding using your smart phone than it's neccessary!

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

      @@SameerBedwal And if you're using a computer it's not important?
      Because I'm using my computer

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

      Yes, than there's no need

  • @altheamarietayag
    @altheamarietayag 3 місяці тому

    Can I get the code, please?

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

    it doesn't work but the wire pattern is correct and the code is correct please help

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

      If your relay light is blinking continuously...rotate the potentiometer on sound sensor until your relay light stops blinking!

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

      @@SameerBedwal it doesn't work also when the light stops blinking.

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

      i'll guess i will buy a new one

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

      Did you find any solution for continuous blinking of green lights?

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

    You need access , Pls code unlock .

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

    Bhai yah project humko bhi banane ka

  • @shivakrishnan8443
    @shivakrishnan8443 3 роки тому +2

    acha hai

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

    👍👍

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

    Do you have layout on pcb desgn? Or circuit diagram

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

      connections given in this portion➡️ (3:02)

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

      @@SameerBedwal thanks do you have drwing in this symathic diagram?

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

      I'll provide you in the description box🤝🏻

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

      I didn’t work for me you can help this problem?

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

      @@christianmark_depedro8162 recheck the connections and code!

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

    Hi my 5v relay is different it doesnt have 2 leds at the side but it does have one small light like the one in the arduino uno. It doesnt turn off when I input code, Is there a different code for this?

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

      No, the code is same for all the types...
      Adjust the potentiometer on the sound sensor till relay light turn off. Maybe it works🤞🏻

  • @user-to9jh4ii7s
    @user-to9jh4ii7s 11 місяців тому +1

    👍👍👍

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

    Does relay require 2 amp and 12 volt supply or directly 220v, Please bataiyega

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

      Relay mein jo aap bulb lagaoge usko 220v chahiye alag se, baki relay ko to 12v hi chahiye

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

      Aapne must banaya but aapne actually use nai kia adapter 12v k liye, isiliye thoda confuse ho gaya

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

      @@MightyZeusXo Relay ko maine arduino ki 5v pin ke saath connect kiya hua h and Sound Sensor Arduino ki 3.3v pin ke saath connected hai,
      Ultimately maine Arduino ko supply dedi using arduino ki data cable.

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

      @@SameerBedwal thank you I understood now 🤗❤️

  • @mrbot6009
    @mrbot6009 6 місяців тому +2

    Bro can you add app link i cant find the app pls😢.

    • @SameerBedwal
      @SameerBedwal  6 місяців тому +1

      ArduinoDroid. Search it on play Store

    • @mrbot6009
      @mrbot6009 6 місяців тому +1

      Bro can you search other app to program in mobile because the app that you are recomending is avilable in for old Android verson and it is not supporting my mobile 😢😢 but I respect you who see the problem of your veiwers😊.

    • @SameerBedwal
      @SameerBedwal  6 місяців тому +1

      @@mrbot6009 you have laptop??

    • @mrbot6009
      @mrbot6009 6 місяців тому +1

      No

    • @mrbot6009
      @mrbot6009 6 місяців тому +1

      Bro it's ok don't worry I found a mobile capable of doing that thing but I have a question does the code will work if I use a motor instade of bulb?

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

    Where is the code? Please help

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

    Hey the code is deleted and I also tried it with my Chrome tab can paste the code here

  • @Abc1534u
    @Abc1534u 2 роки тому +1

    Sorry to disturb but can you provide code ,so that after two clap it will turn on , and again after two clap it will turn off

    • @SameerBedwal
      @SameerBedwal  2 роки тому +1

      I'll provide you in the description box🤝🏻

    • @Abc1534u
      @Abc1534u 2 роки тому +1

      @@SameerBedwal thank you very much sir

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

      @@SameerBedwal i fell blessed, may God help you and your channel become successful. I am really surprised you help so quickly.

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

    Its not working plzz give suggestion

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

      Please recheck the code and connections...

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

    Bro i didn't get the coding correctly pls can you send me in comment box 🙏

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

      const int Sensor = 7; const int relay = 13; int x = 0; int y = 0; void setup() { pinMode(relay, OUTPUT); pinMode(Sensor, INPUT); } void loop(){ x = digitalRead(Sensor); y = digitalRead(relay); if (y == HIGH && x == LOW) { delay(250); digitalWrite(relay, LOW); } if (y == LOW && x == LOW) { delay(250); digitalWrite(relay, HIGH); } }

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

      @@SameerBedwal that's it bro

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

    Hello bro i did it but the light is blinking continuously

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

      Hii,
      sound sensor pe ek potentiometer lga hoga, usko ghuma kar dekho tab tak jab tak light blink hona ruk na jaye...
      Orr firr clap karke dekhna👍🏻

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

      Same problem relay ki dono bhi light red and green chalu hee rehti hai why is that

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

      Aur konse side potentiometer ghumaneka woh light off karne ke liye

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

    Hi

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

    Sir
    Please give me a code
    Sir please firstly response me

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

      Code is in the description bro! Pls check out

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

      Ok sir
      Thank you 🙏🏻

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

      Sir
      First clap switch me koe code nhi hai
      Sir aap humko comments me he code send kar dejiye 🙏🏻

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

      @@aashishmaurya6844 // The Clap Switch
      // Sameer Bedwal | August 2022
      // UA-cam: ua-cam.com/users/SameerBedwal
      int mic = 2; // microphone module
      int indicLED = 13; // indication pin
      int lightPin = 9; // relay (lights control)
      bool lightState = true;
      bool ignoreInt = false;
      bool ClapDetected = false;
      uint32_t ClapDetetedTime [3] {};
      void setup() {
      Serial.begin(115200);
      pinMode(indicLED, OUTPUT);
      pinMode(lightPin, OUTPUT);
      digitalWrite(lightPin, lightState);
      attachInterrupt(digitalPinToInterrupt(mic), ISR_ClapDetected, FALLING);
      }
      void loop() {
      delay(2);
      if(millis() - ClapDetetedTime[2] >= 800)
      {
      digitalWrite(indicLED, LOW);
      }
      if(millis() - ClapDetetedTime[2] < 800 && millis() - ClapDetetedTime[1] < 800 && ClapDetected && ClapDetetedTime[1] - ClapDetetedTime[0]>=800)
      {
      Serial.println("double clap detected");
      digitalWrite(indicLED, LOW);
      Serial.print("Setting light to ");
      Serial.println(String(!lightState));
      digitalWrite(lightPin, lightState);
      lightState=!lightState;
      ClapDetected = false;
      }
      }
      void ISR_ClapDetected()
      {
      if(millis() - ClapDetetedTime[2] > 200){ // debounce
      for (int i = 0; i != 2; i++) {
      ClapDetetedTime[i] = ClapDetetedTime[i + 1];
      }
      ClapDetetedTime[2] = millis();
      ClapDetected = true;
      Serial.println("clap detected");
      digitalWrite(indicLED, HIGH);
      }
      }

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

      @@SameerBedwal
      I am very thankful to you 🙏🏻

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

    Hello

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

    Jara detail mein samjhao

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

    Bhai mera work hee nahi horaha

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

    this is so stupid, i thought we upload the code to an IC chip throught the arduino. like this is stupid if i require a 400rs. arduino + all other items just to make it clap recognition.

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

    Hello bro

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

      Mera bana nahi

    • @diwastiwari4902
      @diwastiwari4902 2 роки тому +2

      Ardunio uno ki light blink kar rahi h bass or relay ki bhi bina sound ke blink kar rahi h green or red

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

      Sound sensor pe jo potentiometer lga hua hai na...usko adjust karke dekho thoda

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

      @@SameerBedwal ok dekhta hu

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

      Hmm..agr firr bhi na bne to please let me know..✌🏻

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

    এই বাল্পটা এক টানা কতক্ষন জলবে

  • @chidoziejohn9368
    @chidoziejohn9368 8 місяців тому

    You are simply the best.. You teach with so much precision..
    Please how can i get your wassap contact?

    • @SameerBedwal
      @SameerBedwal  8 місяців тому

      Catch me on instagram

    • @chidoziejohn9368
      @chidoziejohn9368 8 місяців тому

      Ok, I tried the project but my bulb is not turning on but my serial monitor shows that the sensor has detected a sound..

    • @chidoziejohn9368
      @chidoziejohn9368 8 місяців тому

      The serial monitor shows its working well but the bulb is not working.

    • @SameerBedwal
      @SameerBedwal  8 місяців тому

      @@chidoziejohn9368 okay..can you DM me the picture of your project. I think you did the connections wrong

  • @adapasateesh-od7wz
    @adapasateesh-od7wz 8 місяців тому

    your what's app no bro

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

    Bhai call me

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

    Circuit diagram?