Jump to content

Walking on the Moon

Raspberry Pi camera trigger


Recommended Posts

I have an old dslr, which won't connect to a computer anymore (USB isn't responsive, not even as a mass storage device). So, for astrophotography I have to use an intervallometer. The problem with this is that I can't control or monitor my camera remotely (remote = garden -- living room). Another, more annoying problem is that intervallometers have these absurdly small batteries that run low by just being outside, it seems. Especially during the rare clear nights we've had this winter, the intervallometer can't be trusted once the temperature drops below zero.

Having nothing better to do, I decided to solve these problems. As I use a raspberry pi as a guiding computer, and have installed INDI for mount control, it only seemed natural to write a script to control my camera.

With a few cents (kronor actually) worth of hardware, and a python script, I now have a cheap remote control for my camera.


This is the hardware: an optocoupler and a resistor. The input (left) is connected to two GPIO pins of the RPi, and the output (right) goes to the remote port of the camera.

The script and a more detailed description of its workings can be found here:


Hope this can be of use to someone.




Edited by wimvb
  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. By using this site, you agree to our Terms of Use.