Introduction: Arduino HC-SR04 Security Alarm

Picture of Arduino HC-SR04 Security Alarm

Arduino HC-SR04 security alarm will alert you if anyone comes in front of it by turning on a buzzer. It is an easy to make fun project that you can build quickly. Lets get started !!

Step 1: Materials Required

Picture of Materials Required

1. Arduino UNO

2. HC-SR04 Ultrasonic distance sensor

3. Buzzer

4. Breadboard

5. Wires

6. Arduino USB cable

7. Computer with arduino IDE

Step 2: Wiring

Picture of Wiring

HC-SR04

Vcc - 5v

Gnd - Gnd

Trig - Digital Pin 13

Echo - Digital Pin 12

Buzzer

Vcc - Digital Pin 11

Gnd - Gnd

Step 3: Programming

Picture of Programming

It is not necessary to switch on a buzzer, you can switch on different things for example you can switch on your computer when you sit in front of it by using a relay. You can change the code and try different things.

Comments

rujulanshul (author)2017-02-19

Can you give a detailed image of the wiring?

About This Instructable

9,116views

33favorites

License:

Bio: I love Arduino and Raspberry pi and High Voltage... i build robots and also other cool stuff so stay tuned !!
More by Arduino Tech:Raspberry Pi Wifi Controlled Video Streaming RobotPowerful Musical Flyback DriverSolid State Tesla Coil Made Easy
Add instructable to: