Using PICAXE pin as a switch

alband

Senior Member
Hi all,

I'm wanting to set up a camera trap using a laser and detector trip wire being "watched" by a PICAXE which in turn tells the camera to fire. It could probably be done without a PICAXE using some careful circuitry, but having the PICAXE just gives that extra degree of felxibility in the final system should I want to change how it works, such as adding delays and logic statments with other detectors. Also, I've got a few 08 chips lying around which wont otherwise get used.

The canon camera remore release cable is just a 2.5mm stereo jack. Tip is shutter fire and ring is AF (auto focus). When either tip or ring are connected to the base, it takes a picture or just focuses respectively. On pinouts on the web, the base of the jack is refered to as ground.

Thing is, all the pinouts on the web tell you this much but they don't tell you how this is being used by the camera. I think there could be two ways:
1. tip and ring are being monitored by a microcontroller and are just seen as a logic low then acted upon (most likely I think)
2. the tip and ring are actually part of the circuit that makes the shooting happen, e.g. when you connect tip to base, current can then flow into actuators and stuff to make the shutter actuate.

Obviously, option two means much more current would be flowing through whatever it is that connects tip or ring to the base.

I tested it with an ameter and got no current going through whatsoever, though connecting the probes was making it fire off shots. the multimeter was on the right setting, cables in the right holes to read current. Even on the microamps setting it didn't read anything.

To me, that suggests approach 2 is being used as you would expect very little current to flow in that method. However, could there be a chance that a higher current is flowing for a very short amount of time?

The reason I want to know is because I would like to connect the tip and ring to PICAXE output legs, connect the base of the jack to the PICAXE circuit's ground (leg 8 on a PICAXE08). Then I can focus and fire by putting those outputs low, connecting them to ground and thus to the base of the jack. The legs can only take 20ma though of course, so I need to know the current.

Thanks in advance for any help,

David
 

nick12ab

Senior Member
To me, it suggests that approach 1 is being used. Use a 1k resistor to pull down the shutter release and see if it still works - if it does then that confirms that approach 1 is being used.

If approach 2 is being used then you can use pull-down transistors.
 

alband

Senior Member
Thanks, such a simple test too! Resistor confirms approach 1 so I'll give it a go with a PICAXE. Thanks nick :)
 

PaulRB

Senior Member
Ah, very usefully to know. Now I can make a time-lapse controller, or other things for my Canon. Thanks all.
 

alband

Senior Member
Just as a follow up for anyone in the future interested in PICAXE/Camera stuff: it did work fine with the Canon Camera, and in another modded digicam, litterally replacing the main shutter. Producing some very nice results too :)
 

alband

Senior Member
Haven't tested it, but I believe with Canon cameras it just depends on careful setting up of the camera. I believe the remote shutter connections are in parallel with the actual shutter buttons. If you set the camera to have a sleep time, then after that time, the camera can be woken from that sleep state using the shutter half-press (usually AF). Ergo, you can wake the camera from the sleep state using AF on a remote shutter release and therefore using a PICAXE. There's nothing that can wake it from being "Off" though, only the "on" button can do that.
I'm tending not to use the DSLR with the PICAXE atm though as I want the camera right next to the birds, so need a silent shutter.

David
 
Top