I don't know if this information will be of any use to anyone but I just wanted to contribute to the group and this thread to show my appreciation of the work others have done so that I can use CHDK and build this remote.
I started playing with CHDK a couple of weeks ago because I wanted to do a better job with some of my macro shooting and thought CHDK and some DOF stacking experiments might be the direction. I found this thread and read it backwards and forwards looking for ideas for building my own remote switch. Today I finally went to my local surplus electronics store looking for as long a USB cable as I could find with the Mini A connector and some kind of pocket flashlight with some kind of battery configuration that gave me 4.5v. Well I really lucked out and found a little utility or book light that ran on 3 watch batteries for $1.75. Also picked up a 6ft Type A to Mini A USB cable for $3.
(Not sure the best way to put photos or links to photos in the forum but here goes)
Here's what the flashlight looks like
http://farm4.static.flickr.com/3529/3466829084_b06e13ab4f_o.jpg
http://farm4.static.flickr.com/3661/3466013535_1727fa9eef_o.jpg
The front lens and led assembly unscrews to access the battery pack which is three AG13 watch batteries shrink wrapped providing 4.5v
http://farm4.static.flickr.com/3528/3466829142_e8fc326367_o.jpg
Removing the LED assembly there were three LEDs soldered on a little circle printed circuit board
http://farm4.static.flickr.com/3543/3466829180_0b943a01e7_o.jpg
http://farm4.static.flickr.com/3554/3466013651_40d7aa7b7d_o.jpg
I un-soldered and removed two of the three LEDS. Since the switch on this light latches on and you have to push it again to turn it off I thought I'd leave one LED in to act as an power indicator.
http://farm4.static.flickr.com/3521/3466829228_35a78f6e99_o.jpg
Cutting off the Type A USB connector on the cable reveals the standard 4 wires in a USB cable. Fortunately for me the manufacturer of this cable followed industry standards for USB and the color coding of the wires was correct. I used this link to determine the correct pinout of the Mini A connector.
http://pinouts.ru/Devices/mini-USB_pinout.shtml
It can be a little confusing because USB standards describe only four wires but a Mini A connector has five connectors, pin #4 isn't used and pin #5 is called pin #4.
Red = +voltage(pin#1
Black = -voltage(pin#5 but called in#4)
http://farm4.static.flickr.com/3517/3466829258_8ea193e912_o.jpg
I trimmed back the braid shielding on the cable, cut off the green and white data wires, soldered the red and black wires onto the pc board making sure that I got the polarity correct. I created the sample remote.bas script file, copied it onto my SD card, crossed my fingers that my educated guess on the wiring was correct and plugged in the cable. Surprise, Surprise, after loading the script the cable did nothing? So now what's the problem? Well for some reason to start the script working I had to push on the camera's shutter button and then the remote button worked !!!!!!!!!!!!!
http://farm4.static.flickr.com/3518/3466013731_b2113e933d_o.jpg
So now I have a remote switch with a handy clip to attach it to the tripod or whatever when not in use.
The camera that I'm using this on currently is a
SD1000. I think that's about it. If anyone has any questions, shot me an email instead of posting. I'll get back to you quicker that way. I think that there's a way on this forum to send emails to people?