Let me introduce another simple microcontroller-based do-it-yourself circuit that detects motion and excites a light source in a flash. The “snooper” here is an ordinary passive infrared (PIR) motion ...
Code to control an LED connected to pin 8 of the Arduino Uno based on input from a PIR motion sensor connected to pin 9. The LED turns on when motion is detected (HIGH signal) and turns off when no ...