The year 2020 got every one of us in a bad position. Everyone faced lots of difficulties. But what came with it was a precaution and a change in lifestyle.
The science of communicative diseases was only a bookish knowledge to us until the Swine Flu happened a few years back. We understood that it really was true and it is necessary to take communicative diseases seriously. This context goes for millenniums mostly.
As we entered 2020, we saw something much bigger, and worse. The Novel Coronavirus spread across the whole world rapidly. Causing harm to every human irrespective of their position in society. And 3 common things were put into our mind since then,
1. Proper Sanitisation
2. Social Distancing
3. Wearing Mask
As a means of social distancing, it is also necessary to reduce our contact with anything around us. That saves us from regularly washing hands. But of course, we can do it when necessary.
For this purpose, switchboards, door switches are commonplace where multiple people HAVE to be in contact with, in order to control the electrical appliances. And therefore, I made a simple project that saves us the effort to physically touch the board.
Right now, I present to you a Contactless Doorbell Switch. Which can even work as a regular switch with minor changes. Move ahead to find out how to build it in just a few minutes!
Make the below Circuit
PastethecodeonArduino IDE
int IR;
void setup() {
pinMode(13,INPUT);
pinMode(4, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
}
void loop() {
IR = digitalRead(13);
if (IR == HIGH){
digitalWrite(6, HIGH);
delay(500);
IR = digitalRead(13);
if (IR == HIGH){
digitalWrite(7, HIGH);
delay(500);
IR = digitalRead(13);
if (IR == HIGH){
digitalWrite(8, HIGH);
delay(500);
digitalWrite(4, HIGH);
delay(500);
digitalWrite(4, LOW);
digitalWrite(6, LOW);
digitalWrite(7, LOW);
digitalWrite(8, LOW);
}
else if (IR == LOW){
digitalWrite(6,LOW);
digitalWrite(7,LOW);
return 0;
}
}
else if (IR == LOW){
digitalWrite(6,LOW);
return 0;
}
}
}
How To Use It?Put your hand in front of the sensor and see the LED racer start blinking. When it reaches the 3rd LED, your relay/buzzer will be triggered for a moment.
Watch the video and make your own !!
FAQ - Why the delay with 3 LEDs? Why can't you just ring the bell when it senses?
Ans. This is a method to avoid trouble makers from coming and ringing the bell by waving your hand in the air. Those who want to ring the bell can take their time for the Bell to ring.
Future Updates - When it reaches the 2nd LED, a trigger will click an image of the one trying to ring the bell, so that any trouble maker could be captured in the camera.
IoT scope - Send a notification to your phone. And have an LCD screen on the door to send templates or custom messages to the person at your doorstep.
Comments
Please log in or sign up to comment.