Step 9Programming
Follows is my code:
/* Time-Lapse Camera Controller
- ------------------
- Hits a camera shutter at a set interval
- for time-lapse photography. The rate of the
- delay can be manipulated for unique effects.
- Created 5 February 2008
- by Randy Sarafan
- http://www.randysarafan.com
*/
int camPin = 7; // sets the camera shutter pin
int stupidvar = 30000; // sets the delay between pictures
void setup()
{
pinMode(camPin, OUTPUT); // defines pin as an output
}
void loop()
{
digitalWrite(camPin, HIGH); // presses the button
delay(5000); // waits
digitalWrite(camPin, LOW); // release the button
delay(stupidvar); // delay between pictures
// stupidvar = stupidvar + 1000 // increments delay by one second for unique effect.
}
| « Previous Step | Download PDFView All Steps | Next Step » |
3
comments
|
Add Comment
|
spystealth1
says:
randofo (author)
says:
![]() |
Add Comment
|














































