Introduction: Arduino PIR Motion Sensor

This Instructable is about how to create an Arduino PIR motion sensor for your room or office, using parts available from your local Radio Shack! Whether you're looking for a cool and easy-to-build security sensor, or an awesome first project to dive into the world of Arduino, Microcontrollers, and electronics, this project is for you. (This project really is easy. Take it from me, I'm 12, and I've only had my Arduino for a week and a half.)

If you guys really like my project, please vote for it in the home technology contest! (To vote, click the ribbon in the top right hand corner.) I would use the grand prize to build robots, automate and upgrade my workshop (to make bigger and better projects and products), and bring more AWESOME Instructables to this AWESOME site, with all the AWESOME people on it. (I won't just use it all for my self.) I may also use some of it as a prize for a drawing for my Kickstarter that I'll have up soon for my company, and maybe some of it for a drawing for Instructables!! So, without further ado, let's get on with the project!

Step 1: Parts Needed

Instead of getting all of this, you could also just purchase the Arduino Ultimate Microcontroller Pack, which includes everything that you need for this project, plus TONS more stuff that you can do pretty much anything with. It's available from RadioShack too.

Step 2: Assembly

To assemble this AWESOME project, you will first have to install the sensor on the breadboard. To do this, plug the sensor's "VCC" or "VIN" pin into the Arduino's "5v" hole. Then, you have to wire the "GND" and "OUT" pins to the Arduino's "GND" and "2" pins, respectively. Next, you have to wire in the piezo buzzer. Connect the buzzer's "+" lead to the Arduino's "10" pin, and the buzzer's other pin to the Arduino "GND". Finally, you have to install the LED. Connect the LED's longer lead to the Arduino's pin "13," and the shorter to your 330 ohm resistor. Connect the other end of the resistor to the Arduino's "GND." NOTE: If you're using the MakerShield, just connect the Arduino pin "13" to the MakerShield's "LED2" hole. DOUBLE NOTE: If you're using the MakerShield, now would be a great time to mount it on the Arduino.

Step 3: Programming

I found almost the same code I wrote here. Copy It, paste it in the Arduino IDE, and click the blue arrow at the top pointing left. This uploads your code to the Arduino board.

Step 4: Congratulations!

CONGRATULATIONS! You have just finished your Arduino PIR sensor alarm! HOORAY!! Cake for everyone!! Just kidding. Not about you finishing your project, though! Good job!

Comments

author
MakerSpark Industries (author)2014-07-22

If you guys like this project a lot, vote for it in the home technology contest!

author
RobertoCarlos (author)2016-09-03

Thanks

Very good.

author
pelembo (author)2016-07-31

wow, this is great. also smart..... Thumbs up

author
sebbithecool1 (author)2016-03-15

you could use a 220 ohm resistor for the led...

nice tutorial btw.

author
smart_idiot32 (author)2015-03-26

Will this work with an Arduino yun?

author

It should work with any Arduino or Arduino-compatible.

author

Great job! that looks really cool, and I love how you used that charger! Sorry for the late reply; I've been really busy lately.

author
kag432 (author)2014-07-23

Very cool, wish I was doing stuff like this when I was twelve!

author

Thanks!

author
RG_on_the_move (author)2014-07-22

I look forward to modding this a bit. I want to make a device to frighten off a pesky cat who likes to mark the back door at night. I'm thinking a more powerful noisemaker and/or lightshow ought to do the trick, and it will be fun to make!

author

Awesome!

author
Carleyy (author)2014-07-22

Very cool! What projects have you used this for?

author

This is the only one, but I will soon may build an Arduino heat- seeking robot.

author
Sasando_Rote (author)2014-11-22

how to if i want to used 3 PIR for the sensor?

author
RegineT1 (author)2014-10-13

Is there anyone out there who has an idea of making code for aduino uno? I'm having a hard time doing my project. I have no idea of what code to use. My project is about a gh-718c mini PIR motion sensor detecting my arm or hand. If the motion sensor detects that my hand is low, the light or LED will dim, and if it detects my hand on a high position, the LED will bright up. Please please. Help please. Thanks for the reply!

author

Sorry, I am not familiar with that sensor? Can you PM me the datasheet by any chance?

author
ibenkos (author)2014-10-19

Smart idea! I really like this project. Thanks for shearig :)

author
pucksurfer (author)2014-07-23

This is a very cool, clever, and easy project. I just got an UNO of my own and might have to try this

author

Thanks!

About This Instructable

69,672views

384favorites

Bio: I am a 13 year old maker who is really interested in making, electronics, robotics... well, I guess you can just read my interests ;) I ... More »
More by MakerSpark Industries:Arduino PIR Motion Sensor
Add instructable to: