How to make a Clap Switch using Arduino UNO!

Поделиться
HTML-код
  • Опубликовано: 25 янв 2025

Комментарии • 277

  • @sorrydear932
    @sorrydear932 2 месяца назад

    Bro is very helpful, responds immediately when you seek help and easy to understand him, highly recommended

  • @MUHAMMADAKROMANEZANIBINMOHDEZA
    @MUHAMMADAKROMANEZANIBINMOHDEZA Год назад +2

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

  • @harshaNepal
    @harshaNepal Год назад +1

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

  • @jeveshadhithya2237
    @jeveshadhithya2237 Месяц назад +1

    Everything is correct but when i clap the green light is not blinking sir.. please let me know what will be the problem i mean it is not responding to the clap

    • @SameerBedwal
      @SameerBedwal  Месяц назад

      @@jeveshadhithya2237 is your relay making a clicking sound??

    • @jeveshadhithya2237
      @jeveshadhithya2237 Месяц назад

      @SameerBedwal it was making but after uploading the code it stopped..

    • @SameerBedwal
      @SameerBedwal  Месяц назад

      @@jeveshadhithya2237 adjust the sensitivity of the sensor by rotating the little screw on it (try rotating in both the directions)

    • @jeveshadhithya2237
      @jeveshadhithya2237 Месяц назад

      ​@@SameerBedwal No its not working still... i tried rotating the screw

    • @SameerBedwal
      @SameerBedwal  Месяц назад

      @jeveshadhithya2237 please connect DO pin of sound sensor to arduino pin number 2 and IN pin of relay to arduino pin number 3.

  • @ThunderFlyCuber
    @ThunderFlyCuber 11 месяцев назад

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

    • @SameerBedwal
      @SameerBedwal  11 месяцев назад

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

    • @ThunderFlyCuber
      @ThunderFlyCuber 11 месяцев назад +1

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

    • @SameerBedwal
      @SameerBedwal  11 месяцев назад

      ​@@ThunderFlyCuber no bro, Just upload the code using your phone and then use a 12v adapter to power Arduino

    • @ThunderFlyCuber
      @ThunderFlyCuber 11 месяцев назад +1

      @@SameerBedwal ok, thanks

  • @LuisWOLF-tz5th
    @LuisWOLF-tz5th Год назад +1

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

  • @NavneetKaur-wq8ny
    @NavneetKaur-wq8ny 3 года назад +1

    Good work. KEEP IT UP👍

  • @Gamingzone24089
    @Gamingzone24089 3 года назад +3

    Wow! Good job, keep it up

  • @aratihembram4532
    @aratihembram4532 8 месяцев назад +2

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

    • @SameerBedwal
      @SameerBedwal  8 месяцев назад

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

  • @kweekiamsen7879
    @kweekiamsen7879 10 месяцев назад

    Which cable circuit is used in the description or video?

  • @makailaririf_.9038
    @makailaririf_.9038 4 месяца назад

    haiii thanks for tutorial,but i want to ask if we use led lamp like on ur video,whether the code changes or remains the same?? pleaseee answerr huhuuuu

    • @SameerBedwal
      @SameerBedwal  4 месяца назад +1

      @@makailaririf_.9038 the code remains the same. Thankyou for watching!😄

    • @makailaririf_.9038
      @makailaririf_.9038 4 месяца назад +1

      @@SameerBedwal thank youu very muchhh😍

    • @makailaririf_.9038
      @makailaririf_.9038 4 месяца назад +1

      @@SameerBedwal i'm sorry can i ask question again,my project is the same as you,but the led lamp always turn on,and if we clap or not the lamps always turn on,in ur opinion what's the problem? huhuu i'm gonna cryyy,pleasee answer mee huhuu

    • @malikalbar16
      @malikalbar16 3 месяца назад

      ​@@SameerBedwali experienced the same thing

    • @SameerBedwal
      @SameerBedwal  3 месяца назад

      @@malikalbar16 please read the comment i pinned.

  • @JOYBOYMCYT69
    @JOYBOYMCYT69 Год назад

    Can you tell all the material list

  • @mana2rancak539
    @mana2rancak539 2 года назад +1

    Can i change sound sensor with vibration sensor?

  • @HarshaVardhan-y6k
    @HarshaVardhan-y6k Год назад +1

    Bro can i use 12v relay module?

  • @joyberan6249
    @joyberan6249 2 года назад +1

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

  • @varunkamath6130
    @varunkamath6130 8 месяцев назад

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

    • @SameerBedwal
      @SameerBedwal  8 месяцев назад

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

  • @mrbot6009
    @mrbot6009 Год назад +2

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

    • @SameerBedwal
      @SameerBedwal  Год назад +1

      ArduinoDroid. Search it on play Store

    • @mrbot6009
      @mrbot6009 Год назад +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  Год назад +1

      @@mrbot6009 you have laptop??

    • @mrbot6009
      @mrbot6009 Год назад +1

      No

    • @mrbot6009
      @mrbot6009 Год назад +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?

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

  • @nishakhandelwal716
    @nishakhandelwal716 3 месяца назад

    Once we have proagrammed the code in Aurdino can't we use it without connecting to phone or laptop ..
    Is it important to connect it to Mobile even after successfully programming ??

    • @SameerBedwal
      @SameerBedwal  3 месяца назад

      @@nishakhandelwal716 no, not at all. You can power your Arduino with a 12v power adapter.

  • @ashleyebon4234
    @ashleyebon4234 2 месяца назад

    How about instead of clapping, voice control? like on and off voice?

    • @SameerBedwal
      @SameerBedwal  2 месяца назад

      @@ashleyebon4234 you can control lights with your voice but this is not possible with Arduino. Use nodemcu esp8266

  • @PrashantRana-o3p
    @PrashantRana-o3p 11 месяцев назад

    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  11 месяцев назад +1

      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

    • @PrashantRana-o3p
      @PrashantRana-o3p 11 месяцев назад

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

    • @SameerBedwal
      @SameerBedwal  2 месяца назад

      ​​@@PrashantRana-o3p please connect the IN pin to 3 of Arduino(sorry for the very late reply)

  • @rpr-7620
    @rpr-7620 7 месяцев назад

    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  7 месяцев назад +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 7 месяцев назад +1

      @@SameerBedwal okay, thank you very much!

  • @ygz.Ronald
    @ygz.Ronald Год назад +1

    Where can i get the bulb bulb holder and cord

    • @SameerBedwal
      @SameerBedwal  Год назад

      Any Hardware store/ electronics shop

  • @Sa1Jho
    @Sa1Jho 9 месяцев назад +1

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

  • @rahatabir8645
    @rahatabir8645 2 года назад

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

    • @SameerBedwal
      @SameerBedwal  2 года назад

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

  • @boringmemes5718
    @boringmemes5718 2 года назад +1

    Great job

  • @Eun880
    @Eun880 Месяц назад

    highly recommend

  • @rafigalih6894
    @rafigalih6894 2 месяца назад

    Why if IM use power not from arduino cable, the result is different

  • @stithinkulkarni3188
    @stithinkulkarni3188 Год назад +1

    Does this recognise only clap or any other sound also?

    • @SameerBedwal
      @SameerBedwal  Год назад

      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 6 месяцев назад

      😂😂​@@SameerBedwal

  • @itsme_doof3n
    @itsme_doof3n 8 месяцев назад

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

  • @DaveHumphreyCalling
    @DaveHumphreyCalling 3 месяца назад

    I followed all the procedures but only the Red light is lit on the relay. How do i fix ?

    • @SameerBedwal
      @SameerBedwal  3 месяца назад

      @@DaveHumphreyCalling read the comment i pinned.

    • @sunandasinguluri1500
      @sunandasinguluri1500 2 месяца назад

      @@SameerBedwal even tho its not working

    • @SameerBedwal
      @SameerBedwal  2 месяца назад

      @@sunandasinguluri1500 upload the code again

  • @jronpavico8237
    @jronpavico8237 2 года назад

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

    • @SameerBedwal
      @SameerBedwal  2 года назад +1

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

    • @jronpavico8237
      @jronpavico8237 2 года назад +1

      @@SameerBedwal ok thank you

  • @reenaasthana4471
    @reenaasthana4471 2 года назад

    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  2 года назад

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

    • @reenaasthana4471
      @reenaasthana4471 2 года назад

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

    • @SameerBedwal
      @SameerBedwal  2 года назад

      github.com/embeddedlab786/Automatic_Room_Light_Control

    • @SameerBedwal
      @SameerBedwal  2 года назад

      Yaa just copy the code from the link I provided you and paste it in your Arduino IDE

    • @reenaasthana4471
      @reenaasthana4471 2 года назад

      @@SameerBedwal where is the circuit??

  • @aog5edits173
    @aog5edits173 3 месяца назад

    wouldn't it work without the laptop at the end?

  • @TENZOANJAY.
    @TENZOANJAY. Месяц назад

    Does it work within 3 meters?

  • @boogiedown747
    @boogiedown747 2 месяца назад

    Please could you explain how the code works?

  • @sunandasinguluri1500
    @sunandasinguluri1500 Месяц назад

    the sound sensor didnt on

  • @hgthunder4448
    @hgthunder4448 3 года назад

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

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

  • @Madraz_Music
    @Madraz_Music 3 месяца назад

    Good job man 🎉🎉🎉

  • @NX2_FF91
    @NX2_FF91 19 дней назад

    Bhai kya isma arduino nano use nahi ho sakta😊

  • @miplays2204
    @miplays2204 7 месяцев назад

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

  • @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 🤗❤️

  • @srinathop3034
    @srinathop3034 2 года назад +1

    hi can we add more relays and make ise many bulbs

    • @SameerBedwal
      @SameerBedwal  2 года назад

      You can, use 4ch relay module

    • @srinathop3034
      @srinathop3034 2 года назад

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

    • @srinathop3034
      @srinathop3034 2 года назад

      @@SameerBedwal sir can you send your email

    • @SameerBedwal
      @SameerBedwal  4 месяца назад

      @@srinathop3034 dm on insta

  • @oukyenergyshorts6232
    @oukyenergyshorts6232 26 дней назад

    hey what if i wanna make it turn off with 2 claps instead

    • @SameerBedwal
      @SameerBedwal  26 дней назад

      @@oukyenergyshorts6232 watch my video "THE CLAP SWITCH"

  • @tonykarlsson8589
    @tonykarlsson8589 2 года назад

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

    • @SameerBedwal
      @SameerBedwal  4 месяца назад

      Sorry for the very very late reply😅 but I don't understand your question

  • @easy_notes19
    @easy_notes19 10 месяцев назад

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

    • @SameerBedwal
      @SameerBedwal  4 месяца назад

      Ignore that please. Just do the connections according to your code

  • @MFBGG
    @MFBGG 3 месяца назад

    where is the arduino app? thank you.

    • @SameerBedwal
      @SameerBedwal  3 месяца назад

      @@MFBGG the arduino app is been removed, you have to upload the code using your laptop or pc now.

  • @daixkh-p4d
    @daixkh-p4d Месяц назад

    can i use my iphone to connect and write the code?

    • @SameerBedwal
      @SameerBedwal  Месяц назад

      @@daixkh-p4d nope, there was an application for uploading the code using your phone... but its no longer available for Android. But yours is iPhone...search for "ArduinoDroid" and see if it is available

  • @mowtown75
    @mowtown75 2 года назад +11

    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!

    • @SameerBedwal
      @SameerBedwal  4 месяца назад +1

      India is not for beginners

  • @toppicph4468
    @toppicph4468 Год назад

    Circuit diagram?

  • @jronpavico8237
    @jronpavico8237 2 года назад

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

    • @SameerBedwal
      @SameerBedwal  4 месяца назад

      Ignore that, just do the connections according to your code

  • @gabrielcanlas4890
    @gabrielcanlas4890 4 месяца назад

    Hello, the code in your link is different from the the video.

    • @SameerBedwal
      @SameerBedwal  4 месяца назад

      @@gabrielcanlas4890 please ignore that, use the code from the description and make connections accordingly.

  • @J.o.k.e.r.77
    @J.o.k.e.r.77 3 месяца назад +1

    Hello I made this project and it help me to win my science exhibition first prize thanks 👍

  • @smile-o3m
    @smile-o3m 5 месяцев назад

    Bhai ye last me phone se connect kyu kiya tha ?????
    Koi khass reason hai ..

    • @SameerBedwal
      @SameerBedwal  5 месяцев назад

      @@smile-o3m Adaptor nahi tha isiliye phone use kiya power dene ke liye

  • @yeasinlnahian
    @yeasinlnahian 2 года назад

    when do i use the double clap switch code?

    • @yeasinlnahian
      @yeasinlnahian 2 года назад

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

    • @SameerBedwal
      @SameerBedwal  2 года назад

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

    • @SameerBedwal
      @SameerBedwal  2 года назад

      Use ARDUINO IDE for coding

    • @yeasinlnahian
      @yeasinlnahian 2 года назад

      @@SameerBedwal thank you!

  • @chenchen6258
    @chenchen6258 Месяц назад

    where's the code for bulb?

  • @muhammadzandraa
    @muhammadzandraa 10 месяцев назад

    Will this work with Arduino R3 SMD?

    • @SameerBedwal
      @SameerBedwal  10 месяцев назад

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

  • @aartipalande6171
    @aartipalande6171 2 года назад

    Its not working plzz give suggestion

  • @seemakushwaha9680
    @seemakushwaha9680 Год назад +1

    Nice brother

  • @n-logn
    @n-logn 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🤝🏻

    • @n-logn
      @n-logn 2 года назад +1

      @@SameerBedwal thank you very much sir

    • @n-logn
      @n-logn 2 года назад

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

  • @manarelkhou8619
    @manarelkhou8619 2 года назад

    Plz can I ask
    Is otg necessary?

    • @SameerBedwal
      @SameerBedwal  2 года назад

      Yes, if you are doing coding using your smart phone then 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 года назад

      then there's no need

  • @romanshorif2330
    @romanshorif2330 7 дней назад

    damn sensor is not working

  • @NandithaBajanthri
    @NandithaBajanthri 2 месяца назад

    Do you have a report for this project

    • @SameerBedwal
      @SameerBedwal  2 месяца назад

      @@NandithaBajanthri nope, are you facing any problem while making this project?

  • @reinforcedresource
    @reinforcedresource 3 месяца назад

    why my relay keep making sound??

    • @SameerBedwal
      @SameerBedwal  3 месяца назад

      @@reinforcedresource adjust the sensitivity of the sensor by rotating the little screw until your relay stops making sound(try rotating in both the directions)

  • @Itzzshah0011
    @Itzzshah0011 2 месяца назад

    Brooo...can we run the code in laptop??

    • @SameerBedwal
      @SameerBedwal  2 месяца назад

      @@Itzzshah0011 yes we can..using ARDUINO IDE

  • @kanchantuteja6539
    @kanchantuteja6539 2 года назад

    please share the code for UNO

  • @HappyCardGame-sb6ck
    @HappyCardGame-sb6ck Месяц назад

    may i get the code right now?

    • @SameerBedwal
      @SameerBedwal  Месяц назад

      @@HappyCardGame-sb6ck code is in the description bro

  • @kaurmehak4216
    @kaurmehak4216 3 года назад

    Editing op boi

  • @rjaytato5968
    @rjaytato5968 Месяц назад

    your diagram made my mic module explode!

    • @SameerBedwal
      @SameerBedwal  Месяц назад

      @@rjaytato5968 no, your power supply made it explode. Haw many volts you are using to power your arduino??

    • @rjaytato5968
      @rjaytato5968 Месяц назад

      @@SameerBedwal i inserted the uno chord to my laptop within seconds the LM393 op amp on the sound module started heating up and bulges, i followed your tutorial and you video and diagram posted is not even match, on the video you stated that the relay should be put on digital pin 13 while on diagram its on digital pin 3

    • @SameerBedwal
      @SameerBedwal  Месяц назад

      @rjaytato5968 yes that's my fault sorry but your sound sensor is exploded not because of the diagram. Its something else.

  • @evanste
    @evanste Год назад

    Where is the code? Please help

  • @seemakushwaha9680
    @seemakushwaha9680 Год назад +1

    Code dedo

  • @shubhamjoshi9624
    @shubhamjoshi9624 Год назад

    Very very good and useful sir, thank you so much

  • @PrudhviTenka
    @PrudhviTenka 2 месяца назад

    Sir ineed help it is not working please respond

    • @SameerBedwal
      @SameerBedwal  2 месяца назад

      Please read the pinned comment.

  • @animibayo720
    @animibayo720 Год назад

    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

  • @shabhrisham9097
    @shabhrisham9097 3 месяца назад

    Bro that program pc can’t write?

    • @SameerBedwal
      @SameerBedwal  3 месяца назад

      @@shabhrisham9097 sorry, I'm not getting you

  • @HappyCardGame-sb6ck
    @HappyCardGame-sb6ck Месяц назад

    Can i get the code?

  • @ShivaniNawale-f8d
    @ShivaniNawale-f8d 5 месяцев назад

    Can someone tell the product to this project

  • @christianmark_depedro8162
    @christianmark_depedro8162 2 года назад

    Do you have layout on pcb desgn? Or circuit diagram

  • @sandeepnahadiya6022
    @sandeepnahadiya6022 3 года назад +1

    Nice 👌

  • @rygered_gaming
    @rygered_gaming 2 года назад +1

    Good video

  • @altheamarietayag
    @altheamarietayag 9 месяцев назад

    Can I get the code, please?

    • @SameerBedwal
      @SameerBedwal  9 месяцев назад

      Code is in the description

  • @cliqsamayal8317
    @cliqsamayal8317 3 года назад

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

  • @user-be6qi7bo8x
    @user-be6qi7bo8x 4 месяца назад

    wow good job

  • @prudhvinaik8079
    @prudhvinaik8079 3 года назад

    Hello bro i did it but the light is blinking continuously

    • @SameerBedwal
      @SameerBedwal  3 года назад

      Hii, sound sensor pe ek potentiometer lga hoga, usko ghumate raho jab tak light blink hona ruk na jaye...firr clap karke dekhna

    • @sushantgorde700
      @sushantgorde700 2 года назад

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

    • @sushantgorde700
      @sushantgorde700 2 года назад

      Aur konse side potentiometer ghumaneka woh light off karne ke liye

  • @ansonjeffrey6102
    @ansonjeffrey6102 3 года назад

    You need access , Pls code unlock .

  • @sauravkarmakar3704
    @sauravkarmakar3704 2 года назад

    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.

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

  • @damjibhaiprajapati1840
    @damjibhaiprajapati1840 3 месяца назад +1

    My sensor is not replying tho aftwr clapping pls help me what happened😢

    • @SameerBedwal
      @SameerBedwal  3 месяца назад +3

      Please connect your sound sensor DO pin to Arduino pin number 2. And connect your relay IN pin to Arduino pin number 3, and then upload the code AGAIN to your arduino board.
      After uploading the code if your relay makes sound (i.e TIK TIK) then there is a little screw on your sound sensor, rotate it until the relay stops making that sound.
      If still your project not working...message me on insta.

    • @9a-31-venaafriyanti2
      @9a-31-venaafriyanti2 2 месяца назад

      ​@@SameerBedwalMy light flashes continuously and does not detect sound, must be turned to the right or left of the small screw on the sound sensor?

    • @SameerBedwal
      @SameerBedwal  2 месяца назад

      @@9a-31-venaafriyanti2 try rotating in both the directions.

  • @moodoff1439
    @moodoff1439 2 года назад

    Bhai yah project humko bhi banane ka

  • @sandeepnahadiya6022
    @sandeepnahadiya6022 3 года назад +1

    Wow 👏

  • @Ginukagayashan
    @Ginukagayashan 2 месяца назад

    Cord එකේ link එක දාන්න

    • @SameerBedwal
      @SameerBedwal  2 месяца назад

      @@Ginukagayashan in the description

  • @shivakrishnan8443
    @shivakrishnan8443 3 года назад +2

    acha hai

  • @moodoff1439
    @moodoff1439 2 года назад

    Jara detail mein samjhao

  • @manomatesh7608
    @manomatesh7608 2 года назад

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

    • @SameerBedwal
      @SameerBedwal  2 года назад

      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 2 года назад

      @@SameerBedwal that's it bro

  • @moodoff1439
    @moodoff1439 2 года назад

    Hi

  • @hmzee_hehe
    @hmzee_hehe 6 месяцев назад

    mine not working

  • @kaurmehak4216
    @kaurmehak4216 3 года назад +1

    👍👍

  • @aashishmaurya6844
    @aashishmaurya6844 2 года назад

    Sir
    Please give me a code
    Sir please firstly response me

    • @SameerBedwal
      @SameerBedwal  2 года назад +1

      Code is in the description bro

    • @aashishmaurya6844
      @aashishmaurya6844 2 года назад

      Ok sir
      Thank you 🙏🏻

    • @aashishmaurya6844
      @aashishmaurya6844 2 года назад +1

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

    • @SameerBedwal
      @SameerBedwal  2 года назад +1

      @@aashishmaurya6844 // The Clap Switch
      // Sameer Bedwal | August 2022
      // RUclips: ruclips.net/user/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 2 года назад

      @@SameerBedwal
      I am very thankful to you 🙏🏻

  • @sushantgorde700
    @sushantgorde700 2 года назад

    Bhai mera work hee nahi horaha