UKHAS Wiki

UK High Altitude Society

User Tools

Site Tools


code:camera_shutter

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
code:camera_shutter [2008/01/04 20:37] – created; moved from [[camera_shutter_code]] joshatkinscode:camera_shutter [2009/03/26 22:23] (current) – deleting page (just experimental) joshatkins
Line 1: Line 1:
-====== Camera Shutter Code ====== 
-This is a simple [[http://www.arduino.cc/en/Reference/HomePage|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.// 
- 
-<code> 
-int camGPIO = 12; 
- 
-void setup() 
-{ 
-  pinMode(camGPIO, OUTPUT); 
-} 
- 
-void loop() 
-{ 
-  digitalWrite(camGPIO, HIGH); 
-  delay(500); 
-  digitalWrite(camGPIO, LOW); 
-  delay(5000); 
-} 
-</code> 
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