DIY Security Alarm using LCD and Ultrasonic Sensor
Display the level of Risk. It make different type of Alerting Sound based on Distance It Bright different type of LED based on Distance
Components and supplies
Ultrasonic Sensor - HC-SR04 (Generic)
5 mm LED: Green
Alphanumeric LCD, 16 x 2
5 mm LED: Red
Buzzer
Arduino UNO
Resistor 1k ohm
Apps and platforms
Arduino IDE
Project description
Code
Code
c_cpp
Upload this code From Arduino IDE software to your Board
Code
c_cpp
Upload this code From Arduino IDE software to your Board
Downloadable files
Circuit Diagram
Connection OF LCD Connect GND pin of LCD to GND of Arduino Connect VCC pin of LCD to VCC of Arduino Connect V0 pin of LCD to GND of Arduino Connect RS pin of LCD to 11 of Arduino Connect R/W pin of LCD to GND of Arduino Connect E pin of LCD to 10 of Arduino Connect D4 pin of LCD to 5 of Arduino Connect D5 pin of LCD to 4 of Arduino Connect D6 pin of LCD to 3 of Arduino Connect D3 pin of LCD to 2 of Arduino Connect LCD 5v with 1 K Resistor with VCC of Arduino Connect LCD GND with GND of Arduino Connect of HC-SR04 Connect VCC of Sensor to VCC of Arduino Connect GND of Sensor to GND of Arduino Connect Echo of Sensor to 7 of Arduino Connect Trig of Sensor to 8 of Arduino Connection of Buzzer Connect Negative of Buzzer to GND of Arduino Connect Positive of Buzzer to A0 of Arduino Connection of Alerting LED Connect All led Negative to Arduino GND Connect 1 LED Positive to Arduino Pin 6 Connect 2 LED Positive to Arduino Pin 9 Connect 3 LED Positive to Arduino Pin 12 Connect 4 LED Positive to Arduino Pin 13 Connect Safe LED Negative to GND Connect Safe LED Positive to Arduino Pin A2
Circuit Diagram

Comments
Only logged in users can leave comments