Motion Triggered Camera With Raspberry Pi

by seesunmoon in Circuits > Raspberry Pi

5058 Views, 14 Favorites, 0 Comments

Motion Triggered Camera With Raspberry Pi

DIY Motion triggered camera with Raspberry Pi - SONY A6300

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
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:

http://gphoto.org/proj/libgphoto2/support.php

Connect the Sensor to the Pi

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
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
  1. Make sure the camera is in PC Remote mode (SONY A6300)
  2. Connect the Raspberry Pi to the camera
  3. Connect the power source to the Raspberry Pi

For a list of supported camera, please check here:

http://gphoto.org/proj/libgphoto2/support.php

Setup the Raspberry Pi

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

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
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!

Best Squirrel Close Up
Squirrel vs Toy Soldier - SONY A6300 Powered by Raspberry Pi