Skip to content

Bash script for capturing time lapses using gphoto2, lsusb and wiringPi to control a light trough GPIO.

License

Notifications You must be signed in to change notification settings

Daandelange/rpi-timelapse-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rpi-timelapse-controller

Bash script for capturing time lapses using gphoto2, lsusb and wiringPi to control a light trough GPIO. Made for raspberryPi, should work on other linux systems. It offers more control than the standard gphoto2 capture modes and can continue after capture failures.

Dependencies:

You must have lsusb, wiringPi (gpio command) and gphoto2 installed. See comments in the file for adjusting this to your configuration.

In order to be able to force a USB reset on the camera port, you need to compile a script and follow these instructions.

If not installed, some errors are thrown and the script continues normally.

Hardware

It uses wiringPi to turn on a light while capturing, then shut it off until the next capture starts over. The GPIO ports of the raspberryPi are used to output a small electrical signal indicating ON/OFF.
You'll need to make a little circuit with a transistor so you can control high current and switch off regular lights. Search the web for details.

Simply comment out the GPIO parts if you don't need this.

Use

There are some configuration options in the top of the main script. Let the comments guide you for instructions. There are also instructions for setting it up with init.d so it starts at boot time.

cd to the script's directory then execute with sudo for better performances. (usb reset and a better camera lock)
(No arguments, configure directly in bash file)

__The current script is just a basic start script, make it your own! :D __

License

wtfpl https://www.wtfpl.net/

About

Bash script for capturing time lapses using gphoto2, lsusb and wiringPi to control a light trough GPIO.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages