code:camera_shutter
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
code:camera_shutter [2008/07/19 23:33] – external edit 127.0.0.1 | code: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:// | ||
- | 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.** | ||
- | |||
- | < | ||
- | int camGPIO = 12; | ||
- | |||
- | void setup() | ||
- | { | ||
- | pinMode(camGPIO, | ||
- | } | ||
- | |||
- | void loop() | ||
- | { | ||
- | digitalWrite(camGPIO, | ||
- | delay(10000); | ||
- | digitalWrite(camGPIO, | ||
- | delay(100); | ||
- | } | ||
- | </ |
code/camera_shutter.1216510404.txt.gz · Last modified: 2009/03/26 22:23 (external edit)