RPi 19.2 - PIR Motion Detector via Interrupt Experiment

2,006 views · Published 26 January 2017 · 10:15 · Indexed 22 October 2026

Channel: tsbrownie · 2017 · Science & Technology

Watch on YouTube

Use the Pi's intelligence to make a "smart" output from a PIR.  This is a change from Experiment 19's software to go from polling to interrupts.

Could be used in robotics to detect people/animals, or to activate and anti-graffiti water spray or a water spray to scare off birds, cats, dogs ... in a humane way.  Or it could be used to activate IR lights / camera followed by visible lights, cameras, etc.  

MATERIALS
- Raspberry Pi (and Pi power supply)
- Breadboard
- 3.3 volt LED
- Jumpers

WARNING: Warning: mis-wiring or mis-programming your Pi or miswiring of accessories can ruin the Pi and accessories.
Information/drawings offered as is.   Use at your own risk.   If you don't know, learn first.

RASPBERRY PI EXPERIMENTS
Experiment 1 - Blink LED
https://www.youtube.com/watch?v=IvBpoS6sJYs

Experiment 2 - Stoplight / Traffic-light
https://www.youtube.com/watch?v=an-hKDAw-lw

Experiment 3 - Massive Power Control
https://www.youtube.com/watch?v=kpoo349EOmE

Experiment 4 - Polling to Detect Input
https://www.youtube.com/watch?v=EcVINcmfWik

Experiment 5 - Interrupts to Detect Input
https://www.youtube.com/watch?v=La1MIQlCYag

Experiment 6 - Counter
https://www.youtube.com/watch?v=v8smkMklQqw

Experiment 7 - Tachometer (Beta)
https://www.youtube.com/watch?v=WG_4iChrvR4

Experiment 7x - Laser Morse Code Transmitter
https://www.youtube.com/watch?v=lySM1ybN3gs

Experiment 08 - Chronograph / Timer
https://www.youtube.com/watch?v=rUzKUL-_bYo

Experiment 09 - Ultrasonic Distance Measurement
https://www.youtube.com/watch?v=S0-Q_pJPc-A

Experiment 10 - Ultrasonic High Accuracy Distance Measurement
https://www.youtube.com/watch?v=PdkPCBJWRx4

Experiment 11 - Ultrasonic Velocity & Speed Measurement
https://www.youtube.com/watch?v=irFE6JXfyJk

Experiment 12 - Raspberry Pi Ultrasonic Accelerometer - 12 (FAIL)
https://www.youtube.com/edit?video_id=GZS3lKiZN7A

Experiment 13 - The Speed of Pi - How Fast Are The GPIO Ports? 
https://www.youtube.com/watch?v=reIqpzJbBHI

Experiment 14 - Raspberry Pi Stepper Motor 1
https://www.youtube.com/watch?v=y0NzSVqpEKM&feature=youtu.be

Experiment 15 - Analog to Digital Converter (I2C-ADS)
https://www.youtube.com/watch?v=hMrjqys_X-c

Experiment 15.1 - 8 Channel Upgrade to A2D Converter Software
https://www.youtube.com/watch?v=sh5Ak15lNGk

Experiment 16 - In Progress...

Experiment 17 - Experiment on RFI & The RPi - Does RFI Cause Inconsistent Readings?

Experiment 18a - Part 1/2: Stepper Motor using DRV8825 driver board
https://www.youtube.com/watch?v=f8gY1uwEhVo

Experiment 18b - Part 2/2: Stepper Motor using DRV8825 driver board
https://www.youtube.com/watch?v=1pO1VI8bjfs&feature=youtu.be

Experiment 18-1 Pre-Programmed Stepper Motor Control
https://www.youtube.com/edit?o=U&video_id=wX3gNT_kkkw

Experiment 19-1 Raspberry Pi - PIR Motion Detector Exp 01
https://www.youtube.com/watch?v=L2ho0-HCOwE

Experiment 19-2 Raspberry Pi & PIR Motion Detector via Interrupts
https://www.youtube.com/watch?v=9DztwNIHIME

More from this channel