Introduction: Touchless Door Bell Using Arduino

touchless door bell Arduino project

Step 1: Circuit Diagram

components needed

breadboard (optional)

arduino uno

pir sensor

peizo buzzer

wires

Step 2: Coding Part

// C++ code

// #include Servo servo1;

void setup() {

pinMode(8, INPUT);

pinMode(9, OUTPUT);

pinMode(7, OUTPUT);

servo1.attach(7);

servo1.write(90);

delay(2000); }

void loop()

{ if (digitalRead(8) == 1)

{ tone(9, 57079043007393, 1000); // play tone 500 (G#41 = 57079043007393 Hz)

servo1.write(90); }

else { noTone(9);

servo1.write(180); }

delay(10); // Delay a little bit to improve simulation performance }

you can check tinkercad simulation

https://www.tinkercad.com/things/1ipTqLTpU7F-copy-of-touchless-door-bell/editel?tenant=circuits

Step 3: Output Results

the buzzer will begin ringing when pir sensor senses any motion near it