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
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 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
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😊.
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 ??
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
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?
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
@@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.
@@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
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!
@@reinforcedresource adjust the sensitivity of the sensor by rotating the little screw until your relay stops making sound(try rotating in both the directions)
@@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
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
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.
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?
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.
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); } }
Bro is very helpful, responds immediately when you seek help and easy to understand him, highly recommended
May I know if can replace the light bulb with LED and connect with battery?
Yes ofcourse
yes u can
do we need male to female jumper wire or male to male jumper wire
Male to female
male to female
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
@@jeveshadhithya2237 is your relay making a clicking sound??
@SameerBedwal it was making but after uploading the code it stopped..
@@jeveshadhithya2237 adjust the sensitivity of the sensor by rotating the little screw on it (try rotating in both the directions)
@@SameerBedwal No its not working still... i tried rotating the screw
@jeveshadhithya2237 please connect DO pin of sound sensor to arduino pin number 2 and IN pin of relay to arduino pin number 3.
Do we need to connect it to the phone always or just to upload the code?
I didn't have a power adapter at that time so I used my phone.
@@SameerBedwal so, in this tutorial are we supposed to always connect it to the phone for it to work?
@@ThunderFlyCuber no bro, Just upload the code using your phone and then use a 12v adapter to power Arduino
@@SameerBedwal ok, thanks
I give you a great job on your coding and video 😊
Good work. KEEP IT UP👍
Wow! Good job, keep it up
Can we do it without connecting the mobile with Arduino after making it completely
Yes! Mobile is just for uploading the code on arduino, use any 12v 1 amp adapter to power your project.
Which cable circuit is used in the description or video?
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
@@makailaririf_.9038 the code remains the same. Thankyou for watching!😄
@@SameerBedwal thank youu very muchhh😍
@@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
@@SameerBedwali experienced the same thing
@@malikalbar16 please read the comment i pinned.
Can you tell all the material list
Can i change sound sensor with vibration sensor?
No
Bro can i use 12v relay module?
Yes
Hi! Is there a code where the Light will function of it detects a clapping sound only?
No, sorry
I was wondering, wouldn't the direct conncetion to the AC supply fuse the relay module
No no, nothing will happen to your relay...this is what it is made for
Bro can you add app link i cant find the app pls😢.
ArduinoDroid. Search it on play Store
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😊.
@@mrbot6009 you have laptop??
No
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?
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
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 ??
@@nishakhandelwal716 no, not at all. You can power your Arduino with a 12v power adapter.
How about instead of clapping, voice control? like on and off voice?
@@ashleyebon4234 you can control lights with your voice but this is not possible with Arduino. Use nodemcu esp8266
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
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
I tried it ...but green light is on Even without connecting sound sensor
@@PrashantRana-o3p please connect the IN pin to 3 of Arduino(sorry for the very late reply)
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?
Yes it works...just do the connections accordingly. Ofcos you can upload the code using your laptop, install Arduino IDE
@@SameerBedwal okay, thank you very much!
Where can i get the bulb bulb holder and cord
Any Hardware store/ electronics shop
Thank you for information i was looking how to control relay with sound
Do i need the phone to power the Circuit?? Or any usb adapt will do?
You can use any 5v Adapter to power the arduino board
Great job
highly recommend
Why if IM use power not from arduino cable, the result is different
Does this recognise only clap or any other sound also?
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😀
😂😂@@SameerBedwal
Is it okay to use 12V relay instead of 5 volts?
✅️
I followed all the procedures but only the Red light is lit on the relay. How do i fix ?
@@DaveHumphreyCalling read the comment i pinned.
@@SameerBedwal even tho its not working
@@sunandasinguluri1500 upload the code again
Bro, may I know why you connect the arduino to the phone
To power my arduino board.
You can use a 5v adaptor to power it, both options are valid
@@SameerBedwal ok thank you
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
Here's the link for code and circuit diagram..
@UCjWC37Cm6jvKWKvUKWjWwpg so should I just copy the whole thing and paste it there???
github.com/embeddedlab786/Automatic_Room_Light_Control
Yaa just copy the code from the link I provided you and paste it in your Arduino IDE
@@SameerBedwal where is the circuit??
wouldn't it work without the laptop at the end?
@@aog5edits173 laptop?
Does it work within 3 meters?
@@TENZOANJAY. no i guess
Please could you explain how the code works?
the sound sensor didnt on
I need the permission to view code... Could u please allow it to me!!
it doesn't work but the wire pattern is correct and the code is correct please help
If your relay light is blinking continuously...rotate the potentiometer on sound sensor until your relay light stops blinking
@@SameerBedwal it doesn't work also when the light stops blinking.
i'll guess i will buy a new one
Did you find any solution for continuous blinking of green lights?
Good job man 🎉🎉🎉
Bhai kya isma arduino nano use nahi ho sakta😊
@NX2_FF91 hanji, ho sakta hai
Bro which led bulb and adaptor I wanna use pls tell me bro
Does relay require 2 amp and 12 volt supply or directly 220v, Please bataiyega
Relay mein jo aap bulb lagaoge usko 220v chahiye alag se. Baki relay ko to 12v hi chahiye
Aapne must banaya but aapne actually use nai kia adapter 12v k liye, isiliye thoda confuse ho gaya
@@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.
@@SameerBedwal thank you I understood now 🤗❤️
hi can we add more relays and make ise many bulbs
You can, use 4ch relay module
@@SameerBedwal can we e-mail ypu if we need any help
@@SameerBedwal sir can you send your email
@@srinathop3034 dm on insta
hey what if i wanna make it turn off with 2 claps instead
@@oukyenergyshorts6232 watch my video "THE CLAP SWITCH"
Hello i need to send me which switch thermostat for using on and off automatic during the device working
Sorry for the very very late reply😅 but I don't understand your question
Sir the code given in description and showing in ur phone is different.
Ignore that please. Just do the connections according to your code
where is the arduino app? thank you.
@@MFBGG the arduino app is been removed, you have to upload the code using your laptop or pc now.
can i use my iphone to connect and write the code?
@@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
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!
India is not for beginners
Circuit diagram?
bro pls help, why is the code in the video different in the link
Ignore that, just do the connections according to your code
Hello, the code in your link is different from the the video.
@@gabrielcanlas4890 please ignore that, use the code from the description and make connections accordingly.
Hello I made this project and it help me to win my science exhibition first prize thanks 👍
Party?
Bhai ye last me phone se connect kyu kiya tha ?????
Koi khass reason hai ..
@@smile-o3m Adaptor nahi tha isiliye phone use kiya power dene ke liye
when do i use the double clap switch code?
also for uploading the code throught pc/laptop, which software do i use?
When you want your lights to turn on/off after 2 claps
Use ARDUINO IDE for coding
@@SameerBedwal thank you!
where's the code for bulb?
Will this work with Arduino R3 SMD?
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
Its not working plzz give suggestion
Nice brother
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
I'll provide you in the description box🤝🏻
@@SameerBedwal thank you very much sir
@@SameerBedwal i fell blessed, may God help you and your channel become successful. I am really surprised you help so quickly.
Plz can I ask
Is otg necessary?
Yes, if you are doing coding using your smart phone then it's neccessary
@@SameerBedwal And if you're using a computer it's not important?
Because I'm using my computer
then there's no need
damn sensor is not working
Do you have a report for this project
@@NandithaBajanthri nope, are you facing any problem while making this project?
why my relay keep making sound??
@@reinforcedresource adjust the sensitivity of the sensor by rotating the little screw until your relay stops making sound(try rotating in both the directions)
Brooo...can we run the code in laptop??
@@Itzzshah0011 yes we can..using ARDUINO IDE
please share the code for UNO
Description
may i get the code right now?
@@HappyCardGame-sb6ck code is in the description bro
Editing op boi
your diagram made my mic module explode!
@@rjaytato5968 no, your power supply made it explode. Haw many volts you are using to power your arduino??
@@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
@rjaytato5968 yes that's my fault sorry but your sound sensor is exploded not because of the diagram. Its something else.
Where is the code? Please help
Description!
Code dedo
Very very good and useful sir, thank you so much
Sir ineed help it is not working please respond
Please read the pinned comment.
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
Bro that program pc can’t write?
@@shabhrisham9097 sorry, I'm not getting you
Can i get the code?
Can someone tell the product to this project
Description
Do you have layout on pcb desgn? Or circuit diagram
connections are shown in this portion (3:02)
@@SameerBedwal thanks do you have drwing in this symathic diagram?
description
I didn’t work for me you can help this problem?
Nice 👌
Good video
Can I get the code, please?
Code is in the description
Hey the code is deleted and I also tried it with my Chrome tab can paste the code here
wow good job
Hello bro i did it but the light is blinking continuously
Hii, sound sensor pe ek potentiometer lga hoga, usko ghumate raho jab tak light blink hona ruk na jaye...firr clap karke dekhna
Same problem relay ki dono bhi light red and green chalu hee rehti hai why is that
Aur konse side potentiometer ghumaneka woh light off karne ke liye
You need access , Pls code unlock .
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.
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?
No, the code is same for all the types. Adjust the potentiometer on the sound sensor till relay light turn off
My sensor is not replying tho aftwr clapping pls help me what happened😢
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.
@@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?
@@9a-31-venaafriyanti2 try rotating in both the directions.
Bhai yah project humko bhi banane ka
Wow 👏
Cord එකේ link එක දාන්න
@@Ginukagayashan in the description
acha hai
Jara detail mein samjhao
Bro i didn't get the coding correctly pls can you send me in comment box 🙏
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); } }
@@SameerBedwal that's it bro
Hi
mine not working
👍👍
Sir
Please give me a code
Sir please firstly response me
Code is in the description bro
Ok sir
Thank you 🙏🏻
Sir
First clap switch me koe code nhi hai
Sir aap humko comments me he code send kar dejiye 🙏🏻
@@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);
}
}
@@SameerBedwal
I am very thankful to you 🙏🏻
Bhai mera work hee nahi horaha
Kya problem aa rhi h?