This project aims to allow a DSLR camera without native time-lapse movie support, to take pictures programmatically.
Originally, the project tried to use a servo controller to physically depress the shutter button as a way to control the camera. The code for this strategy exists in servo_control.py, but work going forward now focuses on controlling the camera using existing command line packages (gphoto2).
This project makes a few assumptions that you'll need to meet if you'd like to run this project yourself. Check the list of hardware at the bottom of this README to make sure you have the required hardware. This project runs using a first generation Canon 7D digital SLR camera, but other camera models will work if they can be controlled with gphoto2. You can find a list of compatible cameras here.
This project assumes you have a Raspberry Pi that you can connect to as the default user
If you're new to using a Raspberry Pi, you may want to check out the
offical setup guide.
Once you're connected to the Raspberry Pi, clone the repository by using the following commands:
cd ~ git clone https://github.com/cts-admin/timelapse-dslr.git
Change into the new directory you just cloned:
This project used to control a micro servo (sg90) to press a remote shutter release button. This enables programmatic time-lapse photography with a DSLR camera. The code for this method still exists in servo_control.py but is no longer actively developed.
- USB 2.0 Cable - A-Male to Mini-B
- Raspberry Pi 2 (newer version available; Raspberry Pi 3)
- Canon 7D (now discontinued; latest equivalent: 7D Mark II)
Used in obsolete version of the project: