UKHAS Wiki

UK High Altitude Society

User Tools

Site Tools


code:camera_shutter

This is an old revision of the document!


Camera Shutter Code

This is a simple Arduino script which would trigger a camera to take picture, if GPIO 12 and the power GND pin were wired to the two solder pads on a camera's circuit board.

Important: This code should be used with a resistor to prevent sending too high a voltage to the camera.

int camGPIO = 12;

void setup()
{
  pinMode(camGPIO, OUTPUT);
}

void loop()
{
  digitalWrite(camGPIO, HIGH);
  delay(500);
  digitalWrite(camGPIO, LOW);
  delay(5000);
}
code/camera_shutter.1199479046.txt.gz ยท Last modified: 2008/07/19 23:31 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki