Posts Tagged “canon”
Posted by: Paul René Jørgensen in CHDK, Photography, Programming, tags: ap, canon, CHDK, hack, rc, remote, scripting, trigger, usb
This is a small tutorial describing how to use a RC gear to trigger a Canon Camera loaded with the CHDK add on firmware. Using CHDK enables you to write scripts that can run triggered by a 4 volt current on the USB port of the camera.
List of parts:
- 1x old servo
- USB mini-B cable
- RC-transmitter
- RC-receiver
To make an remote controlled trigger I started by disassembling an old HXT 9g servo.
  
Be very careful not to destroy any of the wires. I removed all the gears, but kept the pot wires attached so I could adjust the center point.

I then removed the two green wires and used a multimeter to determine the polarity. Then I connected the wires to a spare USB mini-b connector.

There are 4 types of USB connectors. The Canon cameras using the Mini-B type. The pin descriptions according to Wikipedia are described in this table.
| Pin |
Name |
Cable colour |
Description |
| 1 |
VCC |
Red |
+5V |
| 2 |
D− |
White |
Data − |
| 3 |
D+ |
Green |
Data + |
| 4 |
GND |
Black |
Ground |
Connect the positive servo motor cable to pin 1 (red wire) and the negative motor cable to pin 4 (ground). You should check and double check your wiring using a multimeter. Attach a receiver and battery to your servo and test that giving you’ll get about 4.2 volts on one side of the stick and -4.2 volts on the other. Remember the correct stick movement to generate the positive voltage. If your transmitter is programmable, remove the stick movement that gives your the negative voltage or be very careful when using remote trigger.
Now it’s time to upload a script to your camera and check if it all work.
@title Remote button
:loop
wait_click 1
is_key k "remote"
if k=1 then shoot
goto "loop"
end
Create a file in /chdk/scripts/ folder of your SD card called remotetest.bas and enabled it in the scripting menu of the camera (after enabling the ALT-menu).


Attach the cables and power up the transmitter, receiver and servo. Hit the shutter button on the camera to start the script and then use the stick on the transmitter to trigger the running of the script.
Congratulations! You now have a non-mechanical way to trigger your CHDK enabled Canon camera.
1 Comment »
I’ve been putting this off for too long, and I know a lot of people have been requesting this for a while, so here we go. I’ve split the tutorial in 2 parts. Part one cover finding the correct CHDK build and installing it on your camera, the second part is about scripting and building a remote USB trigger. The CHDK project is a firmware add on for Canon’s Digic II and Digic III cameras unleashing the hidden power in your cheap or medium priced camera such as RAW format, live histograms, Zebra mode, battery indicators and my personal favorite, scripting!
Part 1 - Finding the correct build and install it on your camera
First of all, the modifications we are about to do is not permanent. You may at any time disable or uninstall the CHDK firmware. By removing the write protection on your SD card you disable the auto load of CHDK. And by deleting the CHDK files from the SD card, you totally removes any traces of it. After getting used to CHDK, you’ll hardly want to remove it, but now it’s been said
CHDK’s home page is located at http://chdk.wikia.com/wiki/CHDK and this is where our search for the correct CHDK build starts. Every camera model need a different build of CHDK, because they all are a little different internally. Customizing CHDK for a new camera model is a complex and time consuming task, so I encourage you to show your gratitude by writing about it on their thank you page.
As of today (3. May, 2008) these are the supported (See the CHDK page for an updated list) cameras:
- A450, Fw: 1.00d
- A460, Fw: 1.00d
- A530, Fw: 1.00a
- A540, Fw: 1.00b
- A550, Fw: 1.00c
- A560, Fw: 1.00a
- A570, Fw: 1.00e, 1.01a
- A610, Fw: 1.00e, 1.00f, (1.00d with CHDK version for 1.00e)
- A620, Fw: 1.00f ( 1.00e is not compatible. You must upgrade to 1.00f first (see here))
- A630, Fw: 1.00c
- A640, Fw: 1.00b
- A650 IS, Fw: 1.00d
- A700, Fw: 1.00b
- A710 IS, Fw: 1.00a
- A720 IS, Fw: 1.00c
- S2 IS, Fw: 1.00e, 1.00f, 1.00g, (1.00i with CHDK version for 1.00g)
- S3 IS, Fw: 1.00a
- S5 IS, Fw: 1.01a 1.01b
- G7, Fw: 1.00e, 1.00g, 1.00i, 1.00j
- SD450 (IXUS55), Fw: 1.00b, 1.00c, 1.00d
- SD500 (IXUS700), Fw: 1.01a, 1.01b
- SD630 (IXUS65), Fw: 1.01a
- SD700 (IXUS800), Fw: 1.00b, 1.01b, (1.01a with CHDK version for 1.01b)
- SD800 (IXUS850), Fw: 1.00e, (1.00d with CHDK version for 1.00e)
- SD850 (IXUS950), Fw: 1.00c
- SD870 (IXUS860), Fw: 1.00c
- SD1000 (IXUS70), Fw: 1.01b, 1.02a, (1.01a with CHDK version for 1.01b)
- TX-1, Fw: 1.00g, 1.01b
The version number in green refers to the original firmware version of your camera. You need to now this to be able to find the correct CHDK build for your camera.
Locating the original firmware version of your camera
- Create a file called ver.req in root directory of your SD card using a card reader and your computer. This could be an empty text file, but remember that the file extension must be .req for this to work
- Put the card back into the camera and turn on the playback mode (Don’t turn it into rec mode first and then play, playback mode must be the first mode after power on)
- Press and hold the SET button, then press DISPLAY while keeping both buttons pressed
If this is done correctly you’ll see a text string that looks like Firmware Ver GM1.00E. The “1.00E” is the firmware version you need to remember when downloading the CHDK for your camera. Note: Some cameras even support a file called vers.req that will allow you to even view more information about your camera.
Downloading CHDK
Go to http://chdk.wikia.com/wiki/Downloads and search for your camera. Download the version that matches the firmware version that you found in the last step.
Installing CHDK on your camera
- Extract the PS.fir and Diskboot.bin files into the root directory of your SD card using your card reader and your computer
- Put the SD card back into the camera
Enabling / Starting CHDK manually
- Start the camera in playback mode
- Press the MENU button
- Go to the new menu entry called “Firm Update” (probably the last item in the menu list)
- Select that item and confirm you want to update by selecting “OK”
- The camera will now reboot and you’ll see CHDK’s splash screen when it boots up again
Auto enabling CHDK every time you turn on your camera
- Enable CHDK manually as described above
- Enter ALT mode
- Press the MENU button to bring up the CHDK menu
- Enter the “Debug Parameters” item
- Select “Make Card Bootable”
- Turn off the camera
- Take out the SD card and write protect it
- Put the card back and turn on your camera
CHDK will auto load every time you turn on your camera from now on. You may disable CHDK by turning off the write protection of the SD card.
4 Comments »
|