Welcome to the next installment of Arduino Basics!

This instructable will teach you how to use a PIR sensors with the arduino, and we wil build a simple motion detector!

Step 1: Supplies

For this instructable you will need the following:

1 arduino (with protoshield to make life easy)
1 LED of any color
1 PIR sensor from Parallax (you can find these at most radio shacks)
Solid wire to hook it up
<p>RESPECTED SIR</p><p>hi </p><p>i have made according to your instruction but afer the callibrating process it automatically says motion is dected even if there is no motion plz help.</p>
<p>Simple. Fun. I like the buzzer idea.</p>
<p>I made it, so easy and so usable. I've an idea to add a buzzer.</p>
I want a code to activate the PIR sensor just if a motion exists for 25 secs continuously
<p>Usually on PIR sensors (like the one in the link) there are trim pots, so you can adjust the amount of time you want to keep something on (25 seconds) by turning the trim pot clockwise or counterclockwise.</p><p>http://www.ebay.com/itm/281519724893?_trksid=p2059210.m2749.l2649&amp;ssPageName=STRK%3AMEBIDX%3AIT</p>
<p>what happen when we turning the trim pot to clockwise? what about counterclockwise ? can i have a coding to make the led stay high when there is a movement and low when the pir detects no motion at all.</p>
<p>Hello Frenzy,<br><br>What did you use for a sketch in the Arduino.</p><p>Thanks.<br><br>Allen in Dallas</p>
<p>how do i change the led to an 5v relay? so that when its movement the relay is high. and good project :)</p>
<p>It's simple. On a 5 volt relay (and any relay for that matter) there are typically 3 pins: VCC, IN and Ground. Connect the &quot;In&quot; pin on your relay (signal) to whatever output pin you selected on your Arduino . In this demonstration, it's pin 13. Done and done! :-)</p>
yhanks ;)
<p>Franzy, just wanted to say that this was great, quick, and easy to use. I managed to get this working on a Spark core. Used your code (just changed the pin #'s to pirPin 0, ledPin 1), and worked like a charm. Thanks a ton!</p>
<p>Hi, If there is complete darkness will the PIR still work?</p>
<p>Yes, PIRs work off of an infrared grid setup. Think of it like looking for changes in &quot;heat&quot; across a bunch of zones (not 100% accurate but close enough to get the point of how it works). Light is irrelevant.</p>
I like to move it move it
Very good tutorial, made it and also added smoke alarm. Now it's time for the next step in my project, getting notification when triggered. Any links to tutorials to do this? I've read in the comments something about pushing box. Any examples or instructions maybe?
<p>Thanks for sharing this! Very helpful for me.</p>
Yo utilice un sensor PIR como interruptor para el ba&ntilde;o. Las manos h&uacute;medas son peligrosas, cuando no se tiene interruptor diferencial. Tiene una aprobaci&oacute;n de 8/10 en mi casa, se resisten al cambio. Saludos
how do you get this to send a txt message? <br>I have made a motion activate camera and I am looking to get it to send me a text message or email when a picture is taken...any thoughts? <br>thanks
<p>I know this was posted quite some time ago, but in case you are still wondering about how to get a txt or email, you will need an ethernet controller. With an ethernet controller, you can utilize the internet and send either an email or a txt message. This is done with the arduino, the ethernet shield, the sensor for triggered input, and an external program to interface with the signal from the arduino. I use pushing box. Hope this helps.</p>
android adk is your friend. if you are into getting into app design you can do it very cheap with a bluetooth adapter
<p>Nice tutorial!</p><p>You can get the hc-sr501 PIR motion sensor for cheap here: <a href="http://voltatek.com/en/sensors/69-motion-sensor-module-hc-sr501-pyroelectric-ir-infrared-adjustable.html" rel="nofollow">http://voltatek.com/en/sensors/69-motion-sensor-m...</a></p>
What should the output voltage for the LED be. My LED has about 1Volt, not enough to turn it on, anybody with thoughts.
its a nice project sir and very impresive. but sir' i have a question ahm im working with a project that uses wireless senors for security systems with an addressable alarm. can you tech me how these things well be built?<br>
As frenzy has not replied yet, I am already going to ask you to be a bit more specific. Are you interested in just connecting wireless sensors or in building the entire system. In that case, what do you mean with 'adressable alarm'.<br><br>Just a question out of interest (forgive me if I am completely off): are you by any chance Filipino? :-)
Going to do that on my pc. Just have to try it.
Did you get a new identity recently, or is this your standard Arduino outfit?<br>Anyway, always good to read the basics...
No you got it wrong you see he was trying to make arduinos less nerdy but.........it had the opposite affect :I
&gt;.&gt; that's was she said <br><br><br>(see i can come up with great comments too)
<object width="200" height="150"><param name="movie" value="http://www.youtube.com/v/eSOSJ68xOBA?fs=1&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/eSOSJ68xOBA?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="200" height="150"></embed></object>
Sooooooooooo you like driving people crazy?
Mmm, on second thoughts, I guess you're right!
It's a great project if you can make light up sunglasses though
if you are using fritzing, can you send me the download for the pir sensor?
there is no download although adafruit has one in her fritzing tutorials. <br /><br />i just used the basic component with 3 pins and labeled it
Hey frenzy,<br>Great tutorial - very well explained. <br>I could see how a heat sensor and arduino could be used for a project I have been working on. I got the parts but am woefully underexperienced to put it together. I am trying to get a thermal array sensor to run a small motor. <br>I'm stuck. Got any suggestions on where to go for help?
are you using fritzing?
Yes he is.
Do you recommend we put a 220 ohm resistor between pin 8 and the LED to limit the current?<br> <br> Best Wishes
If you want to be the most correct about it yeah. I didn't and it probablly won't blow the led out but for something more precise, definitely.
Nice new glasses! awesome tutorial too!

About This Instructable


369 favorites


Bio: Freelance Lanceman
More by frenzy: Cómo hacer una placa iluminada con teclas de un teclado Una funda para tu dispositivo, hecha de un traje de buceo Dead Drop inalámbrico
Add instructable to: