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

Step 1: What You Need:

  • 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

Step 2: Connect the Sensor to the Pi

5V, GND, and any GPIO pin

Remember the pin number, you will need it in the python script.

Step 3: Connect the Rest

  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

Step 4: Setup the Raspberry Pi

Please follow the steps at my GitHub:

https://github.com/seesunmoon/rpi_camera_sensor

Then you can do some tests.

Step 5: Do Something Fun

You can use this setup to capture some wild animals you couldn't do before.

Step 6: Some Sample Videos. Enjoy!