Sorry for the video quality, but the slr was tied up :)
Finally finished the universal IR camera shutter release device.
The requirements were:
1. Remotely trigger the camera to take 3 photos in a row using a switch on the transmitter.
2. A solution that doesnt involve a physical connection to the camera, as my shutter release port on my Nikon is taken up with a GPS geotagger cable.
3. A universal trigger that will work with most cameras that have IR shutter releases.
An Arduino Uno based MCU that has specific libraries by Sebastian Setz for IR communication for cameras.
A super simple code. Involving nothing more than a shutterNow(); to trigger the shutter and delays for inbetween shots.
One of the best things is that this system is almost universal, it works with the following:
Canon
Olympus
Pentax
Minolta
Sony
Now getting the arduino to take pictures via an IR connection to the camera is easy.
The next part was triggering the arduino using the RC Transmitter. No easy feat unless you get a RelaySwitch from DIYDrones. It converts the signal from the RX to a simple on off relay.
Details are here: https://store.diydrones.com/ServoSwitch_V10_p/br-0007-01.htm
If you own an APM1 you could set up channel 7 to switch the relay then just substitute the relayswitch for that.
The reason I havent used my APM1 is cause I plan on using an APM2 and they no longer have a relay on-board.
Below is my code:
Each time I flick a switch or push a button on the tx the camera takes 3 photos. Job done. AF is integral.
#include <multiCameraIrControl.h>
const int buttonPin = 2;
int buttonState = 0;
Nikon D5000(9);
void setup(){
pinMode(13, OUTPUT);
pinMode(buttonPin, INPUT);
}
void loop(){
buttonState = digitalRead(buttonPin);
if (buttonState == HIGH) {
// turn LED on:
digitalWrite(13, HIGH);
D5000.shutterNow();
delay(800);
D5000.shutterNow();
delay(800);
D5000.shutterNow();
delay(800);
digitalWrite(13, LOW);
delay(1000);
}
else {
// turn LED off:
digitalWrite(13, LOW);
}
}
Below is the library you need:
Arduino multiCameraControl Library
http://sebastian.setz.name/arduino/my-libraries/multi-Camera-IR-Control
If you want to use this on an aircraft or multirotor, just use the arduino pro mini instead of the uno.
The Mini is 35mm x 18mm, small enough to swallow... Also you can power the board via the RX, so no extra wires.
Just a small box plugged into your RX and facing your camera.
Hopefully this helps someone like it helped me.
G:)
UPDATE
Theres no need for the relay switch! Thanks to Greg for the idea and code!
Just plug the signal cable from the RX directly into pin 2 of the arduino.
#include <multiCameraIrControl.h>
const int buttonPin = 2;
unsigned long buttonState;
Nikon D5000(9);
void setup(){
pinMode(13, OUTPUT);
pinMode(buttonPin, INPUT);
Serial.begin(9600);
}
void loop(){
buttonState = pulseIn(buttonPin, HIGH);
Serial.println(buttonState);
if(buttonState < 1500){
// turn LED on and take 3 photos:
digitalWrite(13, HIGH);
D5000.shutterNow();
delay(800);
D5000.shutterNow();
delay(800);
D5000.shutterNow();
delay(800);
digitalWrite(13, LOW);
delay(1000);
}
else {
// turn LED off:
digitalWrite(13, LOW);
}
}
Project completed using Arduino Pro Mini
A little bit of heat shrink around the board and we're in business :)
Comments
Hi, could you share the library again, the link has been dead... thanks
Hi,
Probably a silly question, But now with the APM 2.5 board, is it possible to use just one of the optional I/O ports to control the IR LED for the shutter control, uploading the appropriate code on the board of course.
Thanks
@Ahmed, it should work with all Canons, Minoltas, Nikons, Olympus', Pentaxs', and Sonys provided they have IR ports... :)
good work can you please post list of camera models which can be controlled.
@Andy, the best is either to buy one from flytron or build your own. $40 from flytron or DIY for $18.
The nice thing about the one I built is its universal, should work with most cameras that have a IR port.
An awesome light and tough camera is the new Nikon AW100. Its waterproof, shock resistant and has a built in gps for geotagging. Its the next camera Im going to buy.
@ Andy, very cool :)
@Melih, Thanks, I like making my own shields :)
or you can also use this shield for programming AtTiny ICs.
http://www.flytron.com/open-source-hardwares/162-tinyshield-all-in-...
If you want it even smaller and lighter take a look at this video about putting arduino code onto a single small chip. super small, super light, super cheap. https://www.youtube.com/watch?v=30rPt802n1k&list=FL0713sk_gctNiI...
Do any of you have a suggestion for a camera to use this with (preferably kind small)? I have been looking for a shutter release system just like this, but don't know what requirements I need to look for in the camera.
Job done :)
But thanks for the help :)