Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Arduino PIR motion alarm

Loading...

Sign in or sign up now!
4,026
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 20, 2009

This is a little security alarm that lights a green strobe light for a duration of a few seconds when it detects motion. It uses an arduino mega and a Quest PIR motion sensor.. link to strobe lights

http://www.allelectronics.com/index.php?page=search&search_query=strobe&a...

Link to PIR motion sensor

http://www.allelectronics.com/make-a-store/item/IRD-12/PIR-DETECTOR/-/1.html

GEER SORRY PIR SENSOR WAS 11 bucks not 9

code

int ledPin = 13;
int inPin = 32;
int val = 0;

void setup() {
pinMode(ledPin, OUTPUT);
pinMode(inPin, INPUT);
}

void loop() {
val = digitalRead(inPin);
if (val ==LOW) { digitalWrite(ledPin, LOW);
} else { digitalWrite(ledPin, HIGH); delay(9000);
}
}




Pin13 (LEDPIN) goes to your relay and turns on the 12 volt line to the strobe.

InPin 32 can be changes to what ever digital in pin your arduino has. and is the input from the PIR motion sensor from ground.

I plan to add email notifications eventually. Or lol everyone does this but a twitter notification maybe?

any ideas? tlavite@gmail.com

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (tylerlavite)

  • LoL that looks so cool gj

  • Ha ha lol thanks for watching its pretty cool but so far tonight its getting pretty annoying :P

Video Responses

This video is a response to Arduino motion detector with alarm v1
see all

All Comments (5)

Sign In or Sign Up now to post a comment!
  • could to use analogRead on sensor?

  • shit your phone looks fuked up!

  • ESP pir. They made right by me in uk. Didn't know they got shipped around the world

  • That's awesome dude! I'm considering doing this to secure a whole house...

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more