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

Both sides previous revisionPrevious revision
Next revision
Previous revision
code:camera_shutter [2008/02/02 18:24] – rephrasing text 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. 
  
-This code seems to work with three resistors attached to the wire linked from the shutter pad to the GPIO. 
-It has been designed for cameras with shutters that use 3.3 volts. 
- 
-It is important to note that the delay(10000) command actually only delays for 5 seconds - 5000 milliseconds and half the interval entered. 
- 
-**This is experimental code and may not be reliable.** 
- 
-<code> 
-int camGPIO = 12; 
- 
-void setup() 
-{ 
-  pinMode(camGPIO, OUTPUT); 
-} 
- 
-void loop() 
-{ 
-  digitalWrite(camGPIO, HIGH); 
-  delay(10000); 
-  digitalWrite(camGPIO, LOW); 
-  delay(100); 
-} 
-</code> 
code/camera_shutter.1201976689.txt.gz · Last modified: 2008/07/19 23:31 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki