Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Arduino code for wireless "wired" shutter release

View Wireless Shutter for X100 Camera
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
/*
*************************** Wireless Shutter For X100 Camera **********************************************
( cable release cameras )
code for controlling a servo thats wirelessly triggered
Created 23 February 2013
by Andrew D. Farquharson
More at www.handya.co.nz
*******************************************************************************************************
*/
 
 
 
#include <Servo.h>
 
Servo servo;
 
int FocusButton = 12;
int ShootButton = 11;
int FocusState = 1;
int ShootState = 1;
int powerbutton = 13;
 
 
void setup() {
pinMode(FocusButton, INPUT);
pinMode(ShootButton, INPUT);
pinMode(powerbutton, OUTPUT);
servo.attach(10); // start servo
servo.write(35);
delay(1000);
digitalWrite(powerbutton, HIGH); // power on wireless module
delay(3000);
digitalWrite(powerbutton, LOW);
 
}
 
 
void loop() {
 
FocusState = digitalRead(FocusButton); //get wireless module state
ShootState = digitalRead(ShootButton);
if(FocusState == 0){ // drive servo to take photo
servo.write(120);
delay(500);
servo.write(35);
}
delay(10);
 
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.