Akshayan Sinha
Published © GPL3+

Contactless Door Bell (Covid-19 Special)

Based on the pandemic of Covid-19, a Doorbell that needs only a wave of hand to ring it.

BeginnerFull instructions provided1 hour132
Contactless Door Bell (Covid-19 Special)

Things used in this project

Hardware components

Proximity Sensor
Proximity Sensor
×1
Arduino Nano R3
Arduino Nano R3
×1
LED (generic)
LED (generic)
×3
Gravity: Digital 5A Relay Module
DFRobot Gravity: Digital 5A Relay Module
×1
Buzzer
Buzzer
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Doorbell Circuit Diagram

Code

Arduino Code

Arduino
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;
  }
 }
}

Arduino Code

Arduino
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;
  }
 }
}

Credits

Akshayan Sinha

Akshayan Sinha

7 projects • 5 followers
I use dev boards like Arduino, Esp, Raspberry Pi, to make prototypes of gadgets I want to see in the future. (More like noob gadgets)

Comments