Motion Triggered Camera With Raspberry Pi
by seesunmoon in Circuits > Raspberry Pi
5077 Views, 14 Favorites, 0 Comments
Motion Triggered Camera With Raspberry Pi

Raspberry Pi with HC-SR501 Passive Infrared Sensor to detect squirrel's appearance, and then trigger SONY A6300 to record the video at the best angle and distance.
What You Need:
![20160416 - Tip 3 - rpi a6300.mov_snapshot_00.10_[2016.04.17_21.52.11].jpg](/proxy/?url=https://content.instructables.com/FEQ/LOCY/IN4W0NMS/FEQLOCYIN4W0NMS.jpg&filename=20160416 - Tip 3 - rpi a6300.mov_snapshot_00.10_[2016.04.17_21.52.11].jpg)
![20160416 - Tip 3 - rpi a6300.mov_snapshot_00.17_[2016.04.17_21.52.22].jpg](/proxy/?url=https://content.instructables.com/FP0/IFCB/IN4W0NNB/FP0IFCBIN4W0NNB.jpg&filename=20160416 - Tip 3 - rpi a6300.mov_snapshot_00.17_[2016.04.17_21.52.22].jpg)
- A camera, I used SONY A6300
- Raspberry Pi, mine is version 2 model B
- HC-SR501 motion sensor, with some cables
For a list of supported camera, please check here:
Connect the Sensor to the Pi
![20160416 - Tip 3 - rpi a6300.mov_snapshot_00.20_[2016.04.17_21.52.27].jpg](/proxy/?url=https://content.instructables.com/FNP/NL0Z/IN4W0NP1/FNPNL0ZIN4W0NP1.jpg&filename=20160416 - Tip 3 - rpi a6300.mov_snapshot_00.20_[2016.04.17_21.52.27].jpg)
5V, GND, and any GPIO pin
Remember the pin number, you will need it in the python script.
Connect the Rest
![20160416 - Tip 3 - rpi a6300.mov_snapshot_00.30_[2016.04.17_21.52.35].jpg](/proxy/?url=https://content.instructables.com/FF4/BPTZ/IN4W0NST/FF4BPTZIN4W0NST.jpg&filename=20160416 - Tip 3 - rpi a6300.mov_snapshot_00.30_[2016.04.17_21.52.35].jpg)
![20160416 - Tip 3 - rpi a6300.mov_snapshot_00.37_[2016.04.17_21.52.38].jpg](/proxy/?url=https://content.instructables.com/FBJ/TQXZ/IN4W0NX1/FBJTQXZIN4W0NX1.jpg&filename=20160416 - Tip 3 - rpi a6300.mov_snapshot_00.37_[2016.04.17_21.52.38].jpg)
![20160416 - Tip 3 - rpi a6300.mov_snapshot_00.49_[2016.04.17_21.52.41].jpg](/proxy/?url=https://content.instructables.com/FHX/CBE2/IN4W0NXJ/FHXCBE2IN4W0NXJ.jpg&filename=20160416 - Tip 3 - rpi a6300.mov_snapshot_00.49_[2016.04.17_21.52.41].jpg)
- Make sure the camera is in PC Remote mode (SONY A6300)
- Connect the Raspberry Pi to the camera
- Connect the power source to the Raspberry Pi
For a list of supported camera, please check here:
Setup the Raspberry Pi
![20160416 - Tip 3 - rpi a6300.mov_snapshot_00.54_[2016.04.17_21.52.47].jpg](/proxy/?url=https://content.instructables.com/F6B/HU23/IN4W0O8O/F6BHU23IN4W0O8O.jpg&filename=20160416 - Tip 3 - rpi a6300.mov_snapshot_00.54_[2016.04.17_21.52.47].jpg)
![20160416 - Tip 3 - rpi a6300.mov_snapshot_00.57_[2016.04.17_21.52.57].jpg](/proxy/?url=https://content.instructables.com/FOR/AG34/IN4W0O96/FORAG34IN4W0O96.jpg&filename=20160416 - Tip 3 - rpi a6300.mov_snapshot_00.57_[2016.04.17_21.52.57].jpg)
Please follow the steps at my GitHub:
https://github.com/seesunmoon/rpi_camera_sensor
Then you can do some tests.
Do Something Fun
![20160416 - Tip 3 - rpi a6300.mov_snapshot_01.03_[2016.04.17_21.53.03].jpg](/proxy/?url=https://content.instructables.com/FKB/C5BA/IN4W0O9P/FKBC5BAIN4W0O9P.jpg&filename=20160416 - Tip 3 - rpi a6300.mov_snapshot_01.03_[2016.04.17_21.53.03].jpg)
![20160416 - Tip 3 - rpi a6300.mov_snapshot_01.16_[2016.04.17_21.53.04].jpg](/proxy/?url=https://content.instructables.com/F09/6QMP/IN4W0ODF/F096QMPIN4W0ODF.jpg&filename=20160416 - Tip 3 - rpi a6300.mov_snapshot_01.16_[2016.04.17_21.53.04].jpg)
You can use this setup to capture some wild animals you couldn't do before.
Some Sample Videos. Enjoy!

