PIR sensors and the Pi 3 sometimes don't get along - if you're having false trigger reports, make sure the PIR Sensor is far away from the Pi 3
Connections on Prototyping Pi Plate:
PIR SensorAnd of course, some sort of stereo or portable speaker in the 1/8in jack so you can hear it!Door Switch
- Red -> 5V
- Yellow Data -> input 24
- Black -> Ground
Indicator LEDs
- One wire to ground, the other to input 23, with a 10k pull-up resistor to 3v3
- Green connected to output 18 through a 220ohm resistor, will correspond to motion detection
- Red connected to output 25 through a 220ohm resistor, will correspond to an open magnetic door switch
That's it! Now on to the code...
Text editor powered by tinymce.