problem with control camera by RC - page 2 - Script Writing - CHDK Forum

problem with control camera by RC

  • 16 Replies
  • 3557 Views
*

Offline zeno

  • *****
  • 889
Re: problem with control camera by RC
« Reply #10 on: 22 / May / 2009, 08:54:32 »
Advertisements
Inside every GentLED is an 8-bit pic microprocessor, programmed to output the appropriate signals (servo pulses, USB power pulses, infrared signals etc - depending on what sort of GentLed it is (James Gentles supports a very wide range of cameras and other devices).
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

Re: problem with control camera by RC
« Reply #11 on: 11 / June / 2009, 04:05:17 »
Hi,

I come back to you again because I need more help width CHDK2.
I use my own harware (microcontroler) to ouput the signals with different widths : 30, 60, 90, 120, 150 and 180 msec long.
First, I output only one pulse and that didn't work.
Then, I output pulses every 400 ms but that didn't work too.

I think the "get_usb_power" function doesn't return nothing.

Can you help me please?

Thank you.

Emilie

Re: problem with control camera by RC
« Reply #12 on: 11 / June / 2009, 05:06:57 »
It will be easier if you use the SDM version to debug this.

Enter ALT mode and connect camera to your computer with the lead supplied with the camera.
Is 'USB' displayed top left ?

Next, send a single 400msec pulse from your controller (no script required, still in ALT mode).

Is 'USB' briefly displayed ?


David

*

Offline zeno

  • *****
  • 889
Re: problem with control camera by RC
« Reply #13 on: 11 / June / 2009, 09:18:20 »
A simple way to test if get_usb_power is working is to quickly plug and unplug a USB cable connecting your camera to a computer (which will apply 5v as long as the connection is made).
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit


Re: problem with control camera by RC
« Reply #14 on: 11 / June / 2009, 11:37:16 »
Hi Zeno and David,

from my computer, plug and unplug a usb cable works fine.
a "USB" is displayed top left.
I used that script :

@title Remote button

:loop

wait_click 1

is_key k "remote"

if k=1 then shoot

goto "loop"

end

The camera takes a photo when I plug or unplug the usb cable. It is ok.

I also tried with a 400 msec pulse from my microcontroler (every 4 sec) but the USB is not displayed.
I have probably made a mistake in my hardware.
I output the pulse (neutral is 60 ms) on the 5V of the USB and I also connect the GND.  It is 5V voltage. I test the output pulses with an oscilloscope, my microcontroler does exactly what I want.

Where am I wrong?

Thanks.

Emilie

Re: problem with control camera by RC
« Reply #15 on: 11 / June / 2009, 12:46:20 »
Although 400 msec is a short time, if you generate such a pulse a number of times it will sometimes be 'caught' and 'USB' will be displayed.
It will catch pulses shorter than that.

Even easier, do not generate a pulse, generate a constant +5V level.

Anyway, try generating a one second or longer pulse just to prove there is a hardware problem.

What are you using for the camera USB lead ?

USB leads on devices like cellphone 'hands-free' kits do not use the standard colours.

The easy way to check the lead is to plug it into a mini USB receptacle (available from electronics shops, such as Maplin in the UK).


David
« Last Edit: 11 / June / 2009, 13:15:03 by Microfunguy »

Re: problem with control camera by RC
« Reply #16 on: 11 / June / 2009, 13:32:14 »
Thank you for your reply.

I had a problem of hardware. I output a pulse 5V but when I plug on the camera, the voltage go down, near 3V so the function "get_usb_power" can't detect nothing.
And now I have modify my hardware, that works!!!!

Thanks to everybody !!!

Emilie

 

Related Topics