You are on page 1of 3

PIR Sensor Arduino Alarm

PIR Sensor Arduino Alarm

Author: John Edgar Park
Tools used in this project
Arduino IDE software (1)
Computer (1)

Parts relevant to this project

Arduino microcontroller (1)
Breadboard (1) for ProtoShield
PIR sensor (1)
Jumper wires (1)
Piezo buzzer (1)
LED (1) any size or type

Here's how you can build a motion-sensing alarm using a PIR (passive infrared) sensor and an Arduino.

Step 1 PIR Sensor Arduino Alarm

Gather your parts.
Check for -, +, and Out pins on the PIR sensor.

Make Projects

Page 1 of 3

PIR Sensor Arduino Alarm

Step 2 Wire the Arduino to the breadboard.
Connect Digital 2 (on the Arduino) to row 3 (on the
breadboard), 5V to row 2, Gnd to row 1.

Step 3
Plug the PIR sensor into the board so that -, +, and
Out connect to Gnd, 5V, and Digital 2.
Note: You may need to extend the pins with
a stacking female header, wires,
interconnect cables, etc. to fit.

Step 4 Plug in the LED.

Plug the anode (often the longer leg) into digital pin
13 on the Arduino.
Plug the cathode (often the shorter leg, flattened side
of the LED base) into Gnd.

Make Projects

Page 2 of 3

PIR Sensor Arduino Alarm

Step 5 Connect the piezo buzzer to the
The red wire goes to digital pin 10.
The black wire connects to Gnd.
Note: These can be reversed, as polarity of
the buzzer doesn't matter.

Step 6 Launch the Arduino IDE (software).

Plug the USB cable into your computer and Arduino.
Set the board and port for your Arduino board.
Open the PIR Alarm sketch.
Upload the sketch to the Arduino.

Step 7 Test the alarm.

Stand still or leave the room while it calibrates the
infrared level reading for the room.
Test it by moving: the buzzer will buzz and the LED
will light up.
Be amazed!
Sense movement up to 20 feet away.
Note: Cannot reliably detect zombies.

This document was last generated on Jun 17, 2012.

Make Projects

Page 3 of 3