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.
- success and failure on your journey to physical fitness
- Ye olde electronics workbench