Author Topic: building usb-remote-cable  (Read 80739 times)

Offline stevodude

  • Rookie
  • *
  • Posts: 8
Re: building usb-remote-cable
« Reply #75 on: 11 / April / 2008, 09:53:54 »
well I worked out the s5is doesn't  work with less than 3.3v, as I tried a usb cable with a button lithium with 3.3v no load, and wouldn't detect with the script running.
Chassed around the deep dungeon of my desk and found an old pc front case reset switch/led, 3 1.5v AA batteries, and an old clear plastic case, and hacked off the end of a usb-usb extension lead.

hahaha, skip that, found this: CameraFeatures - CHDK Wiki

and stated 3.7v needed, so wacked 3x1.5v together and baboomba, works a tread... AWSOME?!!!!!!!.....

mkII remote usb RTA with bits found in my workshop. (PCD is an old front panel from a computer case, with led and micro switch all ready cabled up :-)


Assembled ready to go.


Button press makes led light up :-) mmmmmm  led's....


and it works. but the script seems to do something first, like focus etc then takes a shot, ie about 1.5seconds...
Wonder if there is a way to capture instantly, is pre focus, zoom, set settings, run remote script and then snap.? maybe questions for another thread, but I can't create threads atm...

Offline Barney Fife

  • Hero Member
  • *****
  • Posts: 1157
    • Gay Outdoorsmen
Re: building usb-remote-cable
« Reply #76 on: 11 / April / 2008, 14:34:03 »
Deleted
« Last Edit: 23 / April / 2008, 02:16:41 by Barney Fife »
[acseven/admin commented out: please refrain from more direct offensive language to any user. FW complaints to me] I felt it imperative to withdraw my TOTAL participation. Nobody has my permission, nor the right, to reinstate MY posts. Make-do with my quoted text in others' replies only. Bye

Offline photoscott

  • Rookie
  • *
  • Posts: 15
Re: building usb-remote-cable
« Reply #77 on: 12 / April / 2008, 00:56:56 »
Here is another idea for a wired and wireless remote in one.  I purchased a Skylink garage remote from Radio Shack. It needs a 12V power supply for the receiver, and you also need to provide 3-5V to the USB port.  I used a 8xAA battery holder for the 12V, and soldered some wires to the leads for 3 of the batteries to give me 4.5-4.8V.
The Skylink unit basically closes a set of contacts but doesn't push any voltage through them.  You can trigger via the button on the receiver, or with the small remote transmitter.  It couldn't be easier!  The remote unit cost $20.  The battery holder was $2.
I now have a compact wired and wireless remote.  I haven't tested the distance yet, but I would suspect that it is at least 70-80 feet.
Now I just need to buy an S2 IS to go with my SD850.  Anyone have one for sale?  ::)

So how did you wire the receiver end to your power and USB? I am doing your design with a twist. I am adding a Canon RS60 E3 switch to the transmitter via 1/8" female jack so I can get the locking feature and enable the autofocus with the half way press of the button. I am just curious did you wire one of each of the receiver wires to the red and white wires of the USB cable? You can't see the wiring route with the heat shrink. I know it says in the manual for the remote that the wires coming off the transmitter are parallel, so that is why I am curious to how you wired it. With having the provided controller as your trigger, does it allow you to enable auto  focus or does it just release the shutter without focusing?  I really like your idea, that is why I follow but being the creative type like to add my touch.
Your reply would be very appreciated or if any else knows how this wiring schematic looks could you please post. I would love to use this with my Canon A570 IS.
Thank you from the somewhat electrically challenged hobbiest.
Scott
« Last Edit: 12 / April / 2008, 01:00:55 by photoscott »

Offline photoscott

  • Rookie
  • *
  • Posts: 15
Re: building usb-remote-cable
« Reply #78 on: 12 / April / 2008, 01:16:16 »
Check the UBASIC/TutorialScratchpad - CHDK Wiki page and look at the differences between shoot and click/press/release "shoot_half" / "shoot_full" commands. The most simplest USB-Remote scripts only use the shoot command. Using more elaborate script commands is how you get more control over your camera with CHDK. CHDK is not meant to be used just by itself (though it can be, with limits). It's a system of both scripting and the CHDK operating system.



So does that mean a script can be written for the usage of external microphones through the USB port? Does scripting affect the 3.5mm jack at all?
Just getting my feet wet here and liking it.
Thanks for the useful info Barney.

Scott

Offline Barney Fife

  • Hero Member
  • *****
  • Posts: 1157
    • Gay Outdoorsmen
Re: building usb-remote-cable
« Reply #79 on: 12 / April / 2008, 02:28:57 »
Deleted
« Last Edit: 23 / April / 2008, 02:17:04 by Barney Fife »
[acseven/admin commented out: please refrain from more direct offensive language to any user. FW complaints to me] I felt it imperative to withdraw my TOTAL participation. Nobody has my permission, nor the right, to reinstate MY posts. Make-do with my quoted text in others' replies only. Bye

Offline wrybread

  • Rookie
  • *
  • Posts: 15
Re: building usb-remote-cable
« Reply #80 on: 29 / April / 2008, 08:43:24 »
I just built a wireless USB button using really simple parts. A quick description:

I used this cheap wireless doorbell so the range is about 100 feet, though I haven't tested the range yet: ACE TRADE- HEATH ZENITH        AC6150 CHIME DOOR WIRELS OFFWHT . I like it because both the button and the receiver are battery powered. I bought it at a local Ace Hardware (ubiquitous in San Francisco) for $19. Note that its the same doorbell as this one, but rebranded: Hacker's Bench : Wireless Doorbell Hacking



Remove the speaker, then put this relay across the speaker wires: RadioShack.com - Cables, Parts & Connectors: Component parts: Relays & transformers: Compact 5VDC/1A SPST Reed Relay



Now when you press the button the relay should be triggered. Note that until I removed the speaker, the doorbell didn't produce enough current to trip the relay.

Now your wireless button can trigger any external switch.

For the camera part:

I used this voltage regular, as suggested by a previous poster: RadioShack.com - Cables, Parts & Connectors: Component parts: Transistors & analog ICs: +5V Fixed-Voltage Regulator 7805



Connect a 9v battery to the voltage regulator's input (positive line of the battery to the input pin, negative to the ground). Obviously one of those 9v battery sockets from Radio Shack (a bag of 5 costs $2) is handy here.

Then splice a USB mini cable. Mine had 4 wires: red, black, green and white. USB mini has 5 contacts, one of which usually isn't used; two are data; two are power. You want to connect the positive power (in my case, that was the red wire) to the output pin of the voltage regulator, and the negative power (black wire) to the ground of the voltage regulator.

Obviously you should figure out which pin on the USB cable goes to which wire. I used this chart and a multimeter's continuity mode: Tech Info - USB & Firewire



Now connect the output pins of the relay in-line with the output from the 9v battery, so when the button of the doorbell is pressed, the voltage regulator gets 9v power, which sends 5v to the camera, which makes the camera do whatever you want it to do.

Remember to enable the USB button in your firmware.

Here's a crappy picture before I put everything back together.



I should note that the link at the beginning of this post to the guy hacking the wireless doorbell is a more complicated circuit and probably much more correct. But mine works just fine for my purposes.

Here's a basic script to test it out. I'm using AllBest, not sure about other builds:

Code: [Select]
@title Remote Button
while 1
  wait_click 1
  if is_key "remote" then shoot
wend

end

Here's my timelapse script that has a couple of nice features:

- shoots a picture every X seconds
- prints how many seconds remain until the next picture is taken
- if the USB button is pressed, it takes a picture and resets the countdown for the timelapse. Handy for emphasizing certain moments in your timelapse.

Code: [Select]
@title Timeless Lapser
@param a Interval (Seconds)
@default a 10

print "Timeless Lapser!"


rem shot counter
b=0

:looper

b=b+1
cls
print "Shot ", b
print "0 seconds until next"
shoot

rem routine to pause in a way that will show countdown on console
x=0

:pauser
r=a-x
x=x+1
cls
print "Shot ", b
print r, "seconds until next"

   wait_click 1000
   if is_key "remote" then x=a

if x < a then goto "pauser"

goto "looper"

Feel free to email me with any questions, wrybread at gmail dot you know what.

Edit: I've since made the modification from that "hacker's workbench" page, and it indeed works better than my simpler mod. It simply involves shorting one of the resistors, and installing a single capacitor, and the unit is much more responsive now.
« Last Edit: 16 / May / 2008, 23:56:00 by wrybread »

Offline A630Lover

  • Full Member
  • ***
  • Posts: 115
Re: building usb-remote-cable
« Reply #81 on: 29 / April / 2008, 18:02:11 »
Here is another remote control. I used an old Sony battery pack, a female (and male on the cable) 3,5 mm jack, a red led ,a little switch and a rechargeable 3v lithium battery. Cost: 0. Everything is reused material.

Offline PhyrePhoX

  • Global Moderator
  • Guru Member
  • *****
  • Posts: 2254
  • make RAW not WAR
    • PhyreWorX
Re: building usb-remote-cable
« Reply #82 on: 29 / April / 2008, 18:41:48 »
okay, after seeing all these new fancy remote controls i thought i'd finally share mine:

here it is. well, it certainly isnt fancy, but it sure does its job.
built out of a cheap "dog control leash" (dont worry, no hurtin to the puppies!!!). atm i can connect two cams to it, planning to add 2 usb ports though, as i will have the chance to gather 4 powershots and do "mini matrix bullettime action" :D
the usb ports are soldered to where the "vibrating motor" (english?) was before, 3 volts output - to my liking.
the second button on the remote control triggers the usb ports now. the first (bigger) button was and is controlling a small speaker which beeps when pressed. this actually is fun to do because in groupshots this way you are garantueed to get smiling (surprised?) faces.
the case itself is made in a way that it allows to be attached to a leash (the case is dirty on my pics as i had tape around it, took it off for pics and to solder the other ports to it).this makes it easy fixing it to a lamppost or a tree or even to the camera itself, by just using a leash (well, if you dont own a dog you can take your belt :D j/k). 

hm, matrix bulletttime, did anybody ever try to sync more than two powershots, i mean here, in this forum? anywhere else? i mean SDM - fine, but thats been optimized for 2 cams (i guess i can sync 4 cams, no doubt!). but i havent seen any "results" yet. theres gotta be a techguy among you who owns a photo store and has all the equipment to create a professional bullet-time environment, eh? imagine high-speed synched pictures.

databoy

  • Guest
Re: building usb-remote-cable
« Reply #83 on: 02 / May / 2008, 07:51:35 »
The use of 5 volt regulators in dropping a voltage from 9 volts to 5 volts has to be approached with caution.

REFERENCE:

www.national.com/appinfo/power/files/f4.pdf

The above PDF document is a technical document from National Semiconductor one of the main manufacturers of regulators.

According to the document, the use of a 5 volt regulator to drop the voltage to 5 volts for the USB cable is operating outside the manufacturer's design parameters.

Page 18 addresses the issues of applications of regulators. Regulator circuits may oscillate if the bypass capacitors are not selected properly.

It would be advisable to download and read the document carefully. The long term effects of using a 5 volt regulator in the USB cable is unknown. It may operate without problems. You may be the unlucky one who purchases a 5 volt regulator which exhibits parasitic oscillations and places above 5 volt spikes on your USB cable.

The internal electronic design of Canon cameras is an unknown quantity. The USB cable is  operating outside Canon's manufacturing parameters. You may be the unlucky one who finds out that a parasitic oscillation has damaged the USB interface.

My advice is do not use any equipment which uses a voltage higher that 5 volts on your camera. 3 volt remote door bells are cheap enough. Use one of the designs posted on the forum.

We all live on different parts of the planet. Ultimately whatever you choose as a USB remote has to be sourced from locally supplied components. It may be beneficial for everyone if the moderators can document all the USB cable ideas as a sticky or transfer them to the wiki with technical links to application notes.       
« Last Edit: 02 / May / 2008, 07:59:13 by databoy »

CHDK Forum

Re: building usb-remote-cable
« Reply #83 on: 02 / May / 2008, 07:51:35 »

Offline vine

  • Full Member
  • ***
  • Posts: 124
  • A560
    • my chdk page
Re: building usb-remote-cable
« Reply #84 on: 02 / May / 2008, 15:51:10 »
I have used the 7805 for ages in various applications, a USB charger in my car among other things. I never had any trouble. Not to say your experience might differ, just sharing my two cents here. However when you look at the USB implementation on many cheap computer mainboards these days you'd image most USB devices have a rather high tolerance to voltage spikes.
Here is one of my remote boxes:

Material:
-USB-A jack, for example: ASSMANN A-USB-A-TOP
-pushbutton of your choice, for example: SCHURTER 0041.9141.1.1.0.1
-5V voltage regulator, for exampe: ESTEK ELECTRONICS 7805B
-9V battery and matching battery connector
-some sort of casing, for example: KEMO G01B
-circuit board and some cables, solder
-5V LED, for example: KINGBRIGHT L-934GD-5V (optional)

Tools:
Soldering iron, knife or drill to cut openings in the casing
How to build:
Connect all components according to the following schematic:


my photo map

my chdk page with tutorials, scripts and more

>> finally back from vacation (was a bit longer than intended) <<

Offline Aristoc

  • Jr. Member
  • **
  • Posts: 52
Re: building usb-remote-cable
« Reply #85 on: 04 / May / 2008, 00:58:19 »
Those are nice photos and schematic but I am wondering if you took any photos of how you soldered everything together and how that looks on the inside.

I am looking for a box that it is easy to open and replace a battery if I had to instead of unscrewing everything.

databoy

  • Guest
Re: building usb-remote-cable
« Reply #86 on: 04 / May / 2008, 07:43:42 »
Vine, why not use a 4.7 volt zener diode and a 500 ohm series resistor.

The point I am making is that you may be lucky with your 7805 configuration and not have any problems. Premium component manufacturers build some immunity into their regulator components. Unfortunately there are some dodgy name brands around which take short cuts.

According to National Semiconductor's application notes, voltage regulators require a tantalum capacitor as close as possible to either side of the voltage regulator to stop oscillation. Without the capacitors installed the voltage regulator is capable of oscillating.

Regardless of the brand of computer motherboard; the power supply regulators would have the appropriate bypass capacitors.

The point I am making is that I do not know what the long term effects of using a voltage regulator in your configuration is. It may be ok, but I would add at least a 10uf tantalum on each side of the regulator and a 1k ohm bleed resistor across the +ve and -ve output to the USB cable. At least that is within the manufacturer's guidelines and specifications.

Ultimately whatever you use as a USB trigger has to be sourced from within the community where you live. Beware of the dodgy brands sold and stick with known American manufacturer's like National Semiconductor, Harris, Texas Instruments, etc.             

databoy

  • Guest
Re: building usb-remote-cable
« Reply #87 on: 04 / May / 2008, 08:19:12 »
I have been looking a PICaxe chips as a flexible means of USB control. There are a number of already published circuits and programs which use four buttons to achieve four output states. I am a hardware guy not a programmer. Maybe if one of the programmer guys are interested, I will post the basic program and see if it can be modified and can be implemented into a CHDK script.

Offline vine

  • Full Member
  • ***
  • Posts: 124
  • A560
    • my chdk page
Re: building usb-remote-cable
« Reply #88 on: 04 / May / 2008, 15:18:48 »
Those are nice photos and schematic but I am wondering if you took any photos of how you soldered everything together and how that looks on the inside.

I am looking for a box that it is easy to open and replace a battery if I had to instead of unscrewing everything.


No pics form the inside, but it's really very simple, just stick to the schematic. The box I used is screwed together and I will only open it again to change the battery, but that will be a loooong time (at least 30000 remote captures, I don't know if I'll ever reach that number)
If you want a casing with a separate battery compartment (for example if you not only want to use it as a remote, but also charge your camera from it) I recommend the KEMO G01B (which I actually listed under materials). It is however rather large:

Note that if you want to build a box that you can also charge your camera from you will need an additional switch (unless you don't mind holding down the pushbutton for the entire duration of charging) and should add a capacitor to stabilize the regulator as mentioned by databoy.
my photo map

my chdk page with tutorials, scripts and more

>> finally back from vacation (was a bit longer than intended) <<

Offline flaquito

  • Newbie
  • *
  • Posts: 1
Re: building usb-remote-cable
« Reply #89 on: 07 / May / 2008, 09:02:02 »
Like databoy said, a zener diode is the best way to do this. Have a look here, near the bottom of the page for a schematic.

Since we don't know the specs on the cameras, it's hard to say what resistor value to use, but a 50-100ohm, 1/2watt resistor should work well. Someone feel free to correct me if I'm wrong, though.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal