Last active
December 17, 2015 05:19
-
-
Save davedarko/5556950 to your computer and use it in GitHub Desktop.
timelapse arduino script for keycam hack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Shutterprogram for keyfob camera hack | |
http://davedarko.de/blog.php?show=blog/100520131849.php | |
*/ | |
void setup() { | |
// initialize the digital pins as an output. | |
// Pin 13 is the shutter switch | |
// Pin 12 is the power switch | |
pinMode(13, OUTPUT); | |
pinMode(12, OUTPUT); | |
digitalWrite(12, HIGH); // turning the camera on | |
delay(2000); // button needs to be pressed longer | |
digitalWrite(12, LOW); // release the power button | |
delay(2000); // wait for the initializing | |
} | |
void loop() { | |
digitalWrite(13, HIGH); // press shutter | |
delay(50); // wait press time | |
digitalWrite(13, LOW); // release shutter | |
delay(4000); // wait for 4 seconds or how long you want | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment