- 7 Talk
-
USB Remote Cable
Redirected from USB Shutter Remote
|
This page describes USB Remote operation for the current stable version of CHDK. For USB remote operation with the CHDK development / unstable version, refer to USB Remote V2 |
Contents |
Overview
Edit

Added by WaterwingzUsing a USB cable, a low voltage power supply, and a push button switch, you can construct a device that will allow you to remotely trigger the shutter of your CHDK-enabled camera. Remote triggers are most often used in low-light situations when pressing the shutter button on the camera could introduce picture spoiling camera shake, but may also be useful in other circumstances - for instance if you wish to trigger the shutter with your foot, or with an electronic signal from another device.
In order to trigger your CHDK camera remotely, you will need to:
- install CHDK on your camera;
- connect a suitable triggering device to be connected to the USB socket of your camera;
- ensure "Enable remote" to have been selected in CHDK;
- run a suitable script (see example below);
- place your camera in shoot mode (i.e. not playback mode, movie mode, alt mode, etc) with CHDK still running;
- operate the trigger!
Triggering devices
Edit
Triggering devices can be purchased commmercially or home made. An easy-to-find commercial solution is the Ricoh CA-1, available from camera stores or online, and pictured above. Home made devices come in all shapes and sizes. There are links to various web pages describing their construction at the end of this page.
Every CHDK USB triggering device will incorporate a power supply - a battery, for instance - that has its negative (or ground) terminal connected to pin 4 of a mini-USB cable and its positive terminal connected to pin 1 of a mini-USB cable via a momentary push-to-make switch. The power supply should provide a voltage that is no greater than 5V (or you may damage your camera), but which must be greater than or equal to the minimum voltage specified on the CameraFeatures page.
The power supply does not need to be able to supply a high current. (For reference, an IXUS 80 being triggered with a device drawing power from a bench PSU set to 4.62V drew a maximum of 0.4mA from the trigger circuit during triggering.)
Homemade USB remote cable
Edit
A popular method for remotely triggering CHDK-enabled cameras involves constructing a simple triggering device from a 3V CR2032 coin battery, a USB extension cable, and a push switch. The camera's USB cable is then attached to the camera at one end and to the triggering device by the other end.
Below is a circuit diagram of such a switch.
If you are cutting up a commercially-made USB extension cable, then wires 1 and 4 are red and black, respectively, according to the USB standard. It seems that even cheaply made USB cables follow this standard.
Note that the 3V CR2032 battery might not be enough to trigger your camera; if not, you may need to use a different power source, e.g. three 1.5V AAA cells connected in series or a spare camera battery like the NB-5L (a 3.7V camera battery).
- Newer Powershots now have a combined USB + video connector; to use both video and USB remote feature a "splitter" cable is necessary.
USB bus-powered remote cable
Edit
A computer's USB port incorporates a 5V power supply. This can be used in place of a battery, which could be useful for photo sessions that require the trigger to be operated more times than a battery's limited capacity will permit.
To build a USB-powered remote cable, obtain a USB-A to mini-USB cable and follow the instructions above, but instead of replacing one end of the cable with a battery, leave the USB-A plug connected. Now simply splice the push-switch into the cable's +5V wire, leave the ground wire connected, and disconnect the other two wires. Voila!
Note: an incorrectly-constructed cable could damage your computer's USB port, your camera, or both, so test it with a continuity checker before using it, to ensure you haven't made a mistake. You try this kind of USB remote trigger out at your own risk!
Enable built-in CHDK remote support
Edit
You can use a USB remote trigger without a script. First, ensure you are running a reasonably up-to-date CHDK build. Some early builds did not support remote shutter release control via USB. Now enable remote support via the CHDK menu: Main Menu > Miscellaneous Stuff > Remote Parameters > Enable Remote. See User Manual for details.
.
Added by Waterwingz
NB. If you enable the "Sync Delay" then the shutter will release after you stop the voltage to the USB port. This was done because it was found they could sync the shutters on 2 cameras for stereo imagery much better as the voltage dropped. (It can also be useful if your switch uses poor-quality contacts, in which case the rise in voltage when it closes may not occur quickly enough to trigger CHDK's remote function.) Under most single-camera circumstances, however, you won't need this unless you need to sync the shutter release more accurately to your voltage trigger signal for specialized reasons.
Simple Remote Script
Edit
Now that you've enabled the remote function via CHDK's menu, you can run a script to recognize when the remote trigger has been operated and which will then operate the shutter.
You can use this small script to trigger the shutter:
Script Code@title Remote button while 1 wait_click 1 if is_key "remote" then shoot wend end
You should find this in your /CHDK/SCRIPTS/EXAM folder. If not, save it as "remote.bas" to your /CHDK/SCRIPTS/ folder, and then access it using CHDK's menu.
Now you should be all set to attach your triggering device to your camera and use it to take some pictures!
Pulse Width Remote Script (Advanced Topic)
Edit
CHDK scripts also supports the measurement of USB pulse widths ( i.e. returns the amount of time a 5V pulse was applied to the USB port). By changing the length of the applied pulse, either manually via a switch or automatically with a micro-controller, you can communicate with a script and cause your camera to perform different actions. Some possabilities include manual focus, zoom in & out, switch from movie to still mode and back, trigger HDR etc. Here's the core of the code you need :
Script Codedo p = get_usb_power until p>0
The value of p is set by the length of the 5V pulse you provide on the USB power pin of the camera. The rest of the coding is up to you.
Testing
Edit
- Confirmed the Ricoh CA-1 cable release works for the Canon SX10. Tested Single shot only; not continuous or zoom.
- Confirmed the Ricoh CA-1 cable release works for the Canon Powershot A540. Tested single shot only; not continuous or zoom.
- Confirmed the Ricoh CA-1 cable release works for the Canon A590IS. Tested Single shot only; not continuous or zoom. Works most reliably with 'Enable Synch' turned on in Remote Parameters.
- Confirmed the Ricoh CA-1 cable release works for the Canon S95 using beta CHDK. Tested Single shot only; not continuous or zoom
Links
Edit
Remote hardware
- Usb Remote Shutter using Linear Voltage regulator (Forum)
- DIY wireless remote with a chinese door ring bell (Forum)
- DIY Wireless remote with a Chinese remote LED LAMP http://sujitshet.blogspot.com/2011/06/wireless-remote-shutter-for-canonchdk.html
- DIY Magnetic remote with Low power linear Voltaje Regulator for Underwater Case Project.
- GentLedIR (scripting info)
- building usb-remote-cable(Forum)
- http://www.flickr.com/groups/chdk/discuss/72157612167472551/
- http://www.instructables.com/id/Amiga_Joystick_USB_Camera_Cable_Release/ (Instructable for creating cable release from an Amiga Joystick)
- https://sites.google.com/site/canonremotehowto/ Short directions for building a cable release using an LED keychain flashlight
- http://www.flickr.com/photos/fvdk3d/sets/72157624151791739/ build or buy various flashlight based cable releases
- https://sites.google.com/site/kyndaldk/microhack-lego-nxt-chdk-cable?pli=1 Simple interface for triggering CHDK with LEGO NXT Brick, or other Microprocessor
- Infrared remote control receiver for Apple Remote and JIANSI remote control (closed source personal project with limited sale):
- English Website http://www.canoremote.de/
- German forum thread: http://forum.chdk-treff.de/viewtopic.php?t=649
- Rc Remote shutter control (instructions to build a very similar cable to gentled for only a pair of euros): http://www.rcgroups.com/forums/showthread.php?t=1387378#post17367575
- A very simple triggering device is explained here: http://digitaldimensionoftechnology.com/2012/05/09/going-beyond-the-device-expanding-the-horizons-of-super-zoom/
