Parallax PIR sensor based Red light Green Light Game on a sparkfun redboard

I started working with the Parallax PIR sensor to build a simple red light green light game. I connected two LED’s 1 Red to pin 12 and 1 red to pin 13. I connected the PIR sensor to ground and 5 volts and the input to pin 2. I uploaded my code and wah lah. Pretty simple. I put the LED’s in a spare flash difuser to make them a little less bright.

Here is the beginnings of my code.

Parallax PIR sensor detecting motion

parallax pir sparkfun redboard

No motion detected

2 thoughts on “Parallax PIR sensor based Red light Green Light Game on a sparkfun redboard

  1. Pingback: Arduino shields | One Mans Anthology

  2. stamina enhancement

    Heya i’m for the first time here. I came across this board and
    I find It truly useful & it helped me out a lot.
    I hope to give something back and aid others like you aided me.

Leave a Reply

Your email address will not be published. Required fields are marked *