Тёмный
No video :(

How to make a Clap Switch using Arduino UNO! 

Sameer Bedwal
Подписаться 1,2 тыс.
Просмотров 128 тыс.
50% 1

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.c...
CODE: docs.google.co...
#arduinoproject #electronics #sameerbedwal
Instagram: / sameerbedwal

Опубликовано:

 

29 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 209   
@Gamingzone24089
@Gamingzone24089 3 года назад
Wow! Good job, keep it up
@Sa1Jho
@Sa1Jho 4 месяца назад
Thank you for information i was looking how to control relay with sound
@LuisWOLF-tz5th
@LuisWOLF-tz5th 11 месяцев назад
I give you a great job on your coding and video 😊
@aratihembram4532
@aratihembram4532 3 месяца назад
Can we do it without connecting the mobile with Arduino after making it completely
@SameerBedwal
@SameerBedwal 3 месяца назад
Yes! Mobile is just for uploading the code on arduino, use any 12v 1 amp adapter to power your project.
@NavneetKaur-wq8ny
@NavneetKaur-wq8ny 3 года назад
Good work. KEEP IT UP👍
@boringmemes5718
@boringmemes5718 2 года назад
Great job
@user-hw6gg3xc3x
@user-hw6gg3xc3x 9 месяцев назад
May I know if can replace the light bulb with LED and connect with battery?
@SameerBedwal
@SameerBedwal 9 месяцев назад
Yes ofcourse
@seemakushwaha9680
@seemakushwaha9680 11 месяцев назад
Nice brother
@kaurmehak4216
@kaurmehak4216 3 года назад
Editing op boi
@marcocandigliota8931
@marcocandigliota8931 Год назад
How is sensitive to other sounds? It Is able to listen mostly the higher frequencies?
@SameerBedwal
@SameerBedwal Год назад
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.
@captaink6762
@captaink6762 9 месяцев назад
do we need male to female jumper wire or male to male jumper wire
@SameerBedwal
@SameerBedwal 9 месяцев назад
Male to female
@mowtown75
@mowtown75 Год назад
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!
@animibayo720
@animibayo720 9 месяцев назад
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 9 месяцев назад
Check your relay and bulb connections Circuit diagram in description
@user-ye8du3ur1z
@user-ye8du3ur1z 9 месяцев назад
Bro can i use 12v relay module?
@SameerBedwal
@SameerBedwal 9 месяцев назад
Yess
@varunkamath6130
@varunkamath6130 3 месяца назад
I was wondering, wouldn't the direct conncetion to the AC supply fuse the relay module
@SameerBedwal
@SameerBedwal 3 месяца назад
No no, nothing will happen to your relay...this is what it is made for
@stithinkulkarni3188
@stithinkulkarni3188 9 месяцев назад
Does this recognise only clap or any other sound also?
@SameerBedwal
@SameerBedwal 9 месяцев назад
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 Месяц назад
😂😂​@@SameerBedwal
@srinathop3034
@srinathop3034 Год назад
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
@sandeepnahadiya6022
@sandeepnahadiya6022 3 года назад
Nice 👌
@mana2rancak539
@mana2rancak539 2 года назад
Can i change sound sensor with vibration sensor?
@SameerBedwal
@SameerBedwal 2 года назад
Noo
@aravindtravelvlogs
@aravindtravelvlogs 2 года назад
Good video
@joyberan6249
@joyberan6249 Год назад
Hi! Is there a code where the Light will function of it detects a clapping sound only?
@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
@toppicph4468
@toppicph4468 Год назад
Circuit diagram?
@tonykarlsson8589
@tonykarlsson8589 2 года назад
Hello i need to send me which switch thermostat for using on and off automatic during the device working
@user-xt5wh5cp4l
@user-xt5wh5cp4l 6 месяцев назад
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 6 месяцев назад
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 6 месяцев назад
I tried it ...but green light is on Even without connecting sound sensor
@SameerBedwal
@SameerBedwal 6 месяцев назад
@@user-xt5wh5cp4l can you send me the video of your project
@ygz.Ronald
@ygz.Ronald Год назад
Where can i get the bulb bulb holder and cord
@SameerBedwal
@SameerBedwal Год назад
Any Hardware store/ electronics shop
@rpr-7620
@rpr-7620 2 месяца назад
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 2 месяца назад
Yes it works...just do the connections accordingly. Ofcos you can upload the code using your laptop, install Arduino IDE
@rpr-7620
@rpr-7620 2 месяца назад
@@SameerBedwal okay, thank you very much!
@JOYBOYMCYT69
@JOYBOYMCYT69 10 месяцев назад
Can you tell all the material list
@jronpavico8237
@jronpavico8237 Год назад
bro pls help, why is the code in the video different in the link
@ThunderFlyCuber
@ThunderFlyCuber 6 месяцев назад
Do we need to connect it to the phone always or just to upload the code?
@SameerBedwal
@SameerBedwal 6 месяцев назад
I didn't have a power adapter at that time so I used my phone.
@ThunderFlyCuber
@ThunderFlyCuber 6 месяцев назад
@@SameerBedwal so, in this tutorial are we supposed to always connect it to the phone for it to work?
@SameerBedwal
@SameerBedwal 6 месяцев назад
@@ThunderFlyCuber no bro! Just upload the code using your phone and use a 12v power adapter to power it
@ThunderFlyCuber
@ThunderFlyCuber 6 месяцев назад
@@SameerBedwal ok, thanks
@shubhamjoshi9624
@shubhamjoshi9624 11 месяцев назад
Very very good and useful sir, thank you so much
@user-pk7em2ml5l
@user-pk7em2ml5l 22 дня назад
Bhai ye last me phone se connect kyu kiya tha ????? Koi khass reason hai ..
@SameerBedwal
@SameerBedwal 22 дня назад
@@user-pk7em2ml5l Adaptor nahi tha isiliye phone use kiya power dene ke liye
@kweekiamsen7879
@kweekiamsen7879 5 месяцев назад
Which cable circuit is used in the description or video?
@sandeepnahadiya6022
@sandeepnahadiya6022 3 года назад
Wow 👏
@itsme_doofen01
@itsme_doofen01 3 месяца назад
Is it okay to use 12V relay instead of 5 volts?
@SameerBedwal
@SameerBedwal 3 месяца назад
✅️
@mrbot6009
@mrbot6009 7 месяцев назад
Bro can you add app link i cant find the app pls😢.
@SameerBedwal
@SameerBedwal 7 месяцев назад
ArduinoDroid. Search it on play Store
@mrbot6009
@mrbot6009 7 месяцев назад
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 7 месяцев назад
@@mrbot6009 you have laptop??
@mrbot6009
@mrbot6009 7 месяцев назад
No
@mrbot6009
@mrbot6009 7 месяцев назад
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?
@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
@seemakushwaha9680
@seemakushwaha9680 10 месяцев назад
Code dedo
@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?
@easy_notes19
@easy_notes19 5 месяцев назад
Sir the code given in description and showing in ur phone is different.
@miplays2204
@miplays2204 2 месяца назад
Bro which led bulb and adaptor I wanna use pls tell me bro
@hgthunder4448
@hgthunder4448 2 года назад
I need the permission to view code... Could u please allow it to me!!
@ShivaniNawale-f8d
@ShivaniNawale-f8d 29 дней назад
Can someone tell the product to this project
@jronpavico8237
@jronpavico8237 Год назад
Bro, may I know why you connect the arduino to the phone
@SameerBedwal
@SameerBedwal Год назад
To power my arduino board. You can use a 5v adaptor to power it, both options are valid
@jronpavico8237
@jronpavico8237 Год назад
@@SameerBedwal ok thank you
@Strange_r53626
@Strange_r53626 2 года назад
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 года назад
I'll provide you in the description box🤝🏻
@Strange_r53626
@Strange_r53626 2 года назад
@@SameerBedwal thank you very much sir
@Strange_r53626
@Strange_r53626 2 года назад
@@SameerBedwal i fell blessed, may God help you and your channel become successful. I am really surprised you help so quickly.
@kanchantuteja6539
@kanchantuteja6539 2 года назад
please share the code for UNO
@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??
@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 Год назад
@@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 🤗❤️
@shivakrishnan8443
@shivakrishnan8443 3 года назад
acha hai
@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!
@aartipalande6171
@aartipalande6171 2 года назад
Its not working plzz give suggestion
@SameerBedwal
@SameerBedwal 2 года назад
Please recheck the code and connections...
@muhammadzandra7850
@muhammadzandra7850 5 месяцев назад
Will this work with Arduino R3 SMD?
@SameerBedwal
@SameerBedwal 5 месяцев назад
Yes you can make this project with duplicate arduino(Arduino R3 SMD). But you'll need to install CH340 driver before uploading the code.
@evanste
@evanste Год назад
Where is the code? Please help
@SameerBedwal
@SameerBedwal Год назад
Description! Bro
@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
@cliqsamayal8317
@cliqsamayal8317 2 года назад
Hey the code is deleted and I also tried it with my Chrome tab can paste the code here
@SameerBedwal
@SameerBedwal 2 года назад
Try it again please...
@altheamarietayag
@altheamarietayag 4 месяца назад
Can I get the code, please?
@SameerBedwal
@SameerBedwal 4 месяца назад
Code is in the description
@ansonjeffrey6102
@ansonjeffrey6102 2 года назад
You need access , Pls code unlock .
@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!
@moodoff1439
@moodoff1439 2 года назад
Bhai yah project humko bhi banane ka
@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
@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🤞🏻
@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
@moodoff1439
@moodoff1439 2 года назад
Jara detail mein samjhao
@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.
@kaurmehak4216
@kaurmehak4216 3 года назад
👍👍
@user-to9jh4ii7s
@user-to9jh4ii7s Год назад
👍👍👍
@hmzee_hehe
@hmzee_hehe Месяц назад
mine not working
@moodoff1439
@moodoff1439 2 года назад
Hello
@aashishmaurya6844
@aashishmaurya6844 Год назад
Sir Please give me a code Sir please firstly response me
@SameerBedwal
@SameerBedwal Год назад
Code is in the description bro! Pls check out
@aashishmaurya6844
@aashishmaurya6844 Год назад
Ok sir Thank you 🙏🏻
@aashishmaurya6844
@aashishmaurya6844 Год назад
Sir First clap switch me koe code nhi hai Sir aap humko comments me he code send kar dejiye 🙏🏻
@SameerBedwal
@SameerBedwal Год назад
@@aashishmaurya6844 // The Clap Switch // Sameer Bedwal | August 2022 // RU-vid: ru-vid.com 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 Год назад
@@SameerBedwal I am very thankful to you 🙏🏻
@moodoff1439
@moodoff1439 2 года назад
Hi
@sushantgorde700
@sushantgorde700 Год назад
Bhai mera work hee nahi horaha
@SameerBedwal
@SameerBedwal Год назад
Kya problem aa rhi h?
@hormotali6400
@hormotali6400 2 года назад
এই বাল্পটা এক টানা কতক্ষন জলবে
@diwastiwari4902
@diwastiwari4902 2 года назад
Hello bro
@diwastiwari4902
@diwastiwari4902 2 года назад
Mera bana nahi
@diwastiwari4902
@diwastiwari4902 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..✌🏻
@chidoziejohn9368
@chidoziejohn9368 9 месяцев назад
You are simply the best.. You teach with so much precision.. Please how can i get your wassap contact?
@SameerBedwal
@SameerBedwal 9 месяцев назад
Catch me on instagram
@chidoziejohn9368
@chidoziejohn9368 9 месяцев назад
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 9 месяцев назад
The serial monitor shows its working well but the bulb is not working.
@SameerBedwal
@SameerBedwal 9 месяцев назад
@@chidoziejohn9368 okay..can you DM me the picture of your project. I think you did the connections wrong
@adapasateesh-od7wz
@adapasateesh-od7wz 10 месяцев назад
your what's app no bro
@SameerBedwal
@SameerBedwal 10 месяцев назад
Yahi puchle bro agr koi doubt hai to...
@adapasateesh-od7wz
@adapasateesh-od7wz 10 месяцев назад
bolo mey English anna
@SameerBedwal
@SameerBedwal 10 месяцев назад
Ask here if you have any doubt
@moodoff1439
@moodoff1439 2 года назад
Bhai call me
@toppicph4468
@toppicph4468 Год назад
Circuit diagram?
Далее
How to Make Password Door Lock | Arduino Project
3:12
Просмотров 520 тыс.
simple clap control home-automation.....#clapswitch
4:35