20130618_153028

In this post I’ll describe how to make your own cable to trigger the Samsung mirrorless cameras NX20, NX210 and NX1000. We’ll be using an ArduPilot Mega 2.5 to do the triggering but you can use any Arduino or even a soldered push button.

What you’ll need:

Some USB devices use what’s known as OTG or On the Go cables to determine master/slave status of each device. The resistance between the ground pin and the ID pin determine how the device responds – most OTG cables just short these pins which wont work for us, so avoid OTG cables if you’re recycling a USB plug. We’ll use a 68k resistor so the camera identifies our cable as a remote shutter. The design we’re going for is shown below in an Eagle schematic for clarity.

nx1000shuttersch

The problem here is that it’s not so easy to get at pin 4 of most micro USB plugs. If you buy one from Digikey you’ll see it’s no problem but if you’re trying to recycle a plug from a spare micro USB cable, it can be quite challenging. I’ve done it  and it’s possible but can be very frustrating and not all plugs even have pin 4 exposed!

First pull all your parts together and identify pins 5 and 4 on your USB plug. On this one, pin 1 is on the far right with the USB plug facing up.

20130618_153325

 

Then add a bit of solder to pins 5 and 4 to get them ready for the resistor.

20130618_153708

 

This step isn’t as hard as it sounds – with the soldering iron in one hand and tweezers in the other, pick up the resistor and get it onto pins 5 and 4 where it actually touches both pins – it fits almost perfectly in this position using this USB plug. Now melt some of the solder that is already on Pin 5 (or Pin 4, depending on how you’re holding it), just enough so that it makes a solid joint and holds the resistor in place. Then flip it over and add more solder to the other pin. Don’t spend too long on that one or it will heat up the other side and the resistor will fall off.

USBPlug

 

Easier than you thought, right? Make sure both ends have strong joints and plenty of solder, being careful not to get it too hot and let it melt off the other side. Now grab the servo cable and cut off the female end. Splice out the ground and signal wires. You can also cut back the power wire now.

20130618_153942

 

Add some solder to these wire ends to prepare them to be attached to the USB connector. Make sure there’s a bit extra so you can make the joint without a third hand for applying solder. According to the schematic, we have to attach ground (black wire) to Pin 5.

20130618_154103

 

..And then attach the signal (white) wire to Pin 3.

20130618_154244

 

Now before we do anything else, hook it up to your camera and make sure it works by shorting out the white and black wires – I use my tweezers on the exposed metal pins to do this easily.

20130618_154801

Make sure it actually takes a picture and doesn’t just focus. If you solder the signal wire to Pin 2 instead of Pin 3 it will only focus the lens, not take the picture. Now all these wires are pretty close to each other and over time with mechanical stress they could end up shorting. To prevent that, add a dab of hot glue between the connections to keep them spaced for good.

20130618_155317

 

Finally, wrap it up with heatshrink!

20130618_155630

 

Now you can trigger the camera shutter simply by supplying a low pulse to the servo wire plugged into an Arduino. If you’re looking to take aerial photographs using ArduPilot, then the rest is done for you. Just visit the Event 38 Downloads page and download the Aphex firmware and parameter file. This firmware puts out the correct pulse on pin A7 in the row of auxiliary pins on the side of APM approximately every 2.4 seconds. If you want to change the timing or have it respond to R/C input instead feel free to checkout and modify our source code from Github branch AC2.9.1b_NX.

Views: 4982

Comment by jim C. on June 18, 2013 at 6:39pm

very nice

Comment by Nuno on June 19, 2013 at 3:13am
Very cool. It's possible to includ the GPS parameters in every photo.

T3
Comment by Richard Boyhan on June 19, 2013 at 2:12pm

Very cool. Nice work.


T3
Comment by Rory Paul on June 20, 2013 at 7:29am

Thanks for the information. One tip to make it easier for those of us with aging eyes. Put a bit of white cardboard between the pins it makes them easier to see and isolates between the top and bottom rows (my depth perception is useless)  then  stick the entire plug down to the desktop with double sided tape.

Comment by Janne Mäntyharju on October 1, 2013 at 12:25am

Thanks for the post, I made something very similar, with small adapter to connect the cable directly to servo port: http://antibore.wordpress.com/2013/04/30/diy-remote-shutter-release...

Comment by Oli Drew on October 10, 2013 at 9:55am

Very interesting!

Is it true what Nuno says that you can include the GPS data with every photo? This sounds like a great solution as I wouldn't need to buy a camera with built in gps or an expensive add on. Thanks.

Comment by Jeff Taylor on October 10, 2013 at 1:44pm

In order to match up the GPS data with the photos, you still have to go through after the flight using some tool. Mission Planner has this feature built in: http://diydrones.com/profiles/blogs/geotagging-images-with-mission-...

Comment by nicolas vargas on October 28, 2013 at 2:33pm

thanks for the post, if i want to do the same thing with the arduplane, is it possible? and how can i do that, where can i change  the timing to 1 second?.

Comment by kiki boy on July 1, 2016 at 9:37am

I built it successfully with another micro usb plug. Push @1800 with setting relay under Camera gimbal on pin 54 (AUX 5) do the tricks. Inconvenient is to deal with battery because have to stay on !

Comment

You need to be a member of DIY Drones to add comments!

Join DIY Drones

© 2019   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service