How To Make Clap Switch with Arduino and Sound Sensor | Arduino projects

preview_player
Показать описание
In this video we will discover :How To Make Clap Switch with Arduino and Sound Sensor |
| Module KY-038 | Arduino UNO R3 projects for beginners.
Clap Switch with Arduino

---------------------------
--------------------------
#arduino
#Arduino_projects
-----------------------
Sound Sensor Module with Arduino Tutorial.Clap Switch
Arduino Clap Switch Using Sound Sensor
How To Make A Clap Switch | Control Light With Clap using Arduino
How to make a Clap Switch using Arduino
Arduino Sound Sensor Control
Sound Sensor Module KY-038
sound sensor arduino code
Рекомендации по теме
Комментарии
Автор

The only problem was the adjustment of the sensor which I fixed finally bro ! It's working very well now, a good school project

hammadazhar
Автор

What´s up fellas! As you probably can see the link with the code aint working, when I saw that I realized that some of you might not be able to make your own script and that´s why I made this script that should work with this tutorial! :
const int sensorPin = A0;
const int ledPin = 10;
const int threshold = 500;
const int debounceDelay = 200;

bool ledState = false;
unsigned long lastClapTime = 0;

void setup() {
pinMode(ledPin, OUTPUT);
digitalWrite(ledPin, LOW);
}

void loop() {
int sensorValue = analogRead(sensorPin);

if (sensorValue > threshold && millis() - lastClapTime > debounceDelay) {
ledState = !ledState;
digitalWrite(ledPin, ledState ? HIGH : LOW);
lastClapTime = millis();
}
}

If you feel like it and want to help others please like, that will make this comment more popular! Thanks.

LFezixIsTaken
Автор

hi, i followed all your instructions and used the code you provided. however, it still does not work. could you give me some tips on which part i should look out more or give it a second look?

jyjz
Автор

Tell to which port I should connect the 5v single channel relay

hammadazhar
Автор

The range of sound distance is very low :(
I also tried to adjust the sound sensor but that didn't worked.
Do you know how to increase the distance? I think there's something with the code.

hammadazhar
Автор

Bro your both link for circuit and code is not working, give me other one

hammadazhar
Автор

Brother can we display out put on LCD too? Output of claps and time taken. I have a project submission.

Pain
Автор

Hi faced trouble in led it did not respond to the sound please help

raeesahkhan
Автор

hey can you upload somewhere the code again because it isnt workin plss

ΘεοφανιαΜπαλ-σξ
Автор

I can not find the red sensor in the tinkercad what is its name in the search?

amalam_ah
Автор

can i have the code link is not working

nothing-mo
Автор

I really dont think this is the code ur using in the video because it really doesnt make any sense. Did u change something afterwards?

OviMG
Автор

But bro how to connect main electricity to it

hammadazhar
Автор

bro where is the code? the link isnt working

alve__
Автор

can u post the code in comments section that andprof link is not working its fast plz urjent

divyadivvi
Автор

bro it's good but where's the rest of the code

nasermsabhia
Автор

How can I do the adjustment of the sensor ?? it is not working

saraalsaadi
Автор

hi, what is the difference between 'ao' input and 'do' input

abodomar
Автор

Code ki link bhejo code nahin mil rahe

Amankumar
Автор

Bro very good loved it but I want to ask a question

hammadazhar