About CHDK USB Remote - Timing diagrams - General Discussion and Assistance - CHDK Forum supplierdeeply

About CHDK USB Remote - Timing diagrams

  • 9 Replies
  • 6171 Views
*

Offline Pier

  • ***
  • 128
About CHDK USB Remote - Timing diagrams
« on: 11 / October / 2012, 09:44:36 »
Advertisements
I would like to ask the following about build in CHDK USB Remote.
I will only use "One Press Buttons", which gives pulse train output:
After appropriate button is pressed and released I have:

1.Button Half Press - Pulses-->  Half Press / delay (for focus e.t.c) / Half Press release
2.Button Shoot Full - Pulses--> Half Press / delay (for Focus e.t.c / Shoot / Shoot Full  release
  The delay will be small, but enough Cam to do reguired job.

All above In accordance with timing diagrams here: http://chdk.wikia.com/wiki/USB_Remote
Ricoh CA-1 checked.Is that correct ? Are 30, 150 and 90 miliseconds correct ?
I think if Normal mode is checked all will be OK too.... ??
                           
I don't understand what Zoom buttons todo ?
Is press=Pulse and  what Timing diagram is needed ??
If I use to say Zoom In, every press on button will Cam do Zoom 1 step ??
Or Zoom is continuous till next press ??
               
3.Button Zoom In - 1 press for Zoom In
4.Button Zoom Out - 2 press for Zoom out
=========================================
The Hardware with PIC16F628 is redy and running now with 4 buttons.
I only need Timing diagrams for sure to make real test with my SX130IS.
                   
Pros:
-Few parts: 1 LIon Battery, 1 Pic, 4 buttons, 1 small remote Box for all, 3 Resistors, 7 Condensators, 1 USB cable.
-negligible consumption - In Standby less than 1 microamper - measured 0.20-0.30 mka
 If button is pressed -less than 100 mka, and back in Standby.
-No need from On/Off Switch.If battery is like in Your Phone will be very safe to charge it  :)  and reserve     
      to Your Phone....  or vice-versa  :)                                                                   
 Full charged battery to 4.1 - 4.2 volts will drop to 3.6v maybe after the Year.During my test with same
hardware for other application battery drop from 4.1v to 3.9-4.0 v after 4 Months !
And it is enough  to trigger USB port.I will do tests and with small 3v Lithium battery to see is 3v enough to trigger.
                   
Cons - will say after the tests...And will post here shematic diagram and code.
If all is OK, it is not very hard todo this Remote control wireless.
Thanks in advance !
« Last Edit: 11 / October / 2012, 12:19:22 by Pier »

Re: About CHDK USB Remote PTP - Timing diagrams
« Reply #1 on: 11 / October / 2012, 10:13:14 »
I would like to ask the following about build in CHDK USB Remote PTP.
FYI ... PTP is something different than the USB remote code.

Quote
Ricoh CA-1 checked.Is that correct ? Are 30, 150 and 90 miliseconds correct ?
Yes.

Quote
I think if Normal mode is checked all will be OK too.... ??
I'm sure what you want to do.  Normal mode says that the camera focuses  & sets exposure on half-press,  and takes the picture on a full-press.

         
Quote
         
I don't understand what Zoom buttons todo ?
Is press=Impuls and  what Timing diagram is needed ??
If I use to say Zoom In, every press on button will Cam do Zoom 1 step ??
Or Zoom is continuous till next press ??
The zoom mode counts pulses.  The number of pulses counted in a short interval tells the code what to do
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline Pier

  • ***
  • 128
Re: About CHDK USB Remote PTP - Timing diagrams
« Reply #2 on: 11 / October / 2012, 10:39:06 »
Quote
FYI ... PTP is something different than the USB remote code.
Yes and sorry, I mixed these two things- Corrected.The word is only for USB Remote control.

Quote
The zoom mode counts pulses.  The number of pulses counted in a short interval tells the code what to do
OK.Never saw Timing diagram for these pulses.They can be up to 6 pulses...
Will try to change Assembler code for several width of pulses, this is quick to do.
Thanks.
« Last Edit: 11 / October / 2012, 12:33:54 by Pier »

Re: About CHDK USB Remote PTP - Timing diagrams
« Reply #3 on: 11 / October / 2012, 10:45:56 »
OK.Never saw Timing diagram for these pulses.They can be up to 6 pulses...
Will try to change Assembler code for several width of pulses, this is quick to do.
You can test this with a simple switch to verify the timing.   I use a standard USB cable with a small pushbutton switch spliced into the red 5V wire.
Ported :   A1200    SD940   G10    Powershot N    G16


*

Offline Pier

  • ***
  • 128
Re: About CHDK USB Remote - Timing diagrams
« Reply #4 on: 11 / October / 2012, 12:10:32 »
@waterwingz,
O'Key with the switch is also possible.I'm very good on Morse Key :)
BTW  What do You think about the delay after Half Press ? Are approximately 0.5 - 1 sec enough Cam to do focus e.t.c or No?
Thanks !
« Last Edit: 11 / October / 2012, 12:13:37 by Pier »

Re: About CHDK USB Remote - Timing diagrams
« Reply #5 on: 11 / October / 2012, 12:12:17 »
BTW  What do You think about the delay after Half Press ? Are approximately 1 sec enough Cam todo focus e.t.c or no?
That's hard to say.  Seems to depend on the camera model and the lighting conditions.  In general, one second should be okay but it might not be in low light conditions.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline Pier

  • ***
  • 128
Re: About CHDK USB Remote - Timing diagrams
« Reply #6 on: 11 / October / 2012, 12:25:20 »
Quote
Seems to depend on the camera model and the lighting conditions
Yes, realy depend and not only in lowlight conditions.Sometime Cam can't focus quick and in
very good conditions, depend of object... Will start with 1 sec for now.
Thanks.

Re: About CHDK USB Remote - Timing diagrams
« Reply #7 on: 11 / October / 2012, 12:27:22 »
You need a microphone input on your device tuned to the "beep" noise the camera makes when it is focused and exposure locked ...
Ported :   A1200    SD940   G10    Powershot N    G16


*

Offline Pier

  • ***
  • 128
Re: About CHDK USB Remote - Timing diagrams
« Reply #8 on: 11 / October / 2012, 13:51:11 »
Yes, it will be next step.
Now considering the remote box with only 4 buttons to be in my hand, and the device 
to be on/near the Cam.Then and flashing Led can be used on every beep, if Infrared pulses will
trigger the Cam on little bit longer distance.
My first step is to make test samples, to clarify timing and then the other.
« Last Edit: 11 / October / 2012, 13:59:12 by Pier »

*

Offline Pier

  • ***
  • 128
Re: About CHDK USB Remote - Timing diagrams
« Reply #9 on: 16 / October / 2012, 11:11:09 »
Today I've made some tests with my PIC16F628(A) Microcontroler and SX130IS to clarify Timing diagrams
for several options in CHDK USB Remote control V2. I prefer Ricoh CA-1 (Switch type) and my pulse train for
several buttons was consistent with that.
Although I had not so many buttons, I decided to check other options and were generated the necessary pulse sequences (with change in software).
All pulse width and Gaps between pulses are checked with Tektronix 2253 - 100 MHz dual Beam Osciloscope.
                 
Buttons:
             
1.Button Half Press
--> Start pulse width  20 msec and till 35 msec are OK.If they are below 20 and over 35 msec Cam some time missed to react.If start pulse is = > 40 msec Cam not respond.
-->The GAP after first pulse was 1 sec, but can be and less to say 0.3-0.5 seconds it's enough Cam to
Focus e.t.c..If you prefer to see what happen with Focus, TV, AV e.t.c. make it 2-3 seconds.
-->Last 2 pulsess for Half Press Release are 30 msec, the between pulses Gap is also 30 msec.Approximately 1:1
             
2.Button Full Press
-->Start pulse is 100 msec width and no Problems, followed by  0.3 sec Gap and two Full Press Release pulses width 30 msec (GAP 30 msec)
   It is very dificult to see the green reactangle for Focus (the things happened very quick), but
   all is OK with Focus e.t.c.It is possible before Full Press pulse to add Half Press pulses in the chain.
         
3.Button Burst Go (Ricoh CA-1).
Why such button ? I could not make Burst to work unless in Ricoh CA-1 mode !
I tried all possible ways exept Ricoh CA-1  but only one shoot occurs, burst does not work !
If Ricoh CA-1 is checked all is OK.               
--> One Start pulse 25-30 msec only.
To Stop you need two same pulses with Gap  also 25-30 msec.With one pulse you can't stop the burst no matter how width it is.

4.Button Burst Stop (Ricoh CA-1)
--> Two pulses 25-30 msec only with 30 msec gap between to stop burst.
    Half Press button due to two pulses on the end start burst and then immediately stop it..
       
Video Mode (Ricoh CA-1 )
-->Half Press start Record.Second Half press stop it.OK.
       
Quick (Ricoh CA-1)
--> Half Press also works.
       
Zoom Mode (Ricoh CA-1).
You need 5 buttons at least.
100-120 msec pulses width, with 30-40 msec GAP between pulses doing very good job.80 msec are not enough!
1.--> 1 pulse = 1 step Zoom in... to say from 28 to 30-31-32 (some time, very rarely occurs 2 steps) and   
                                              so on... till 336 for full Zoom In   :(
2.--> 2 pulses = 1 step Zoom out
3.--> 3 pulses = SHOOT !
4.--> 4 pulses = Full Zoom In
5.--> 5 pulses = Full Zoom out

Here I see some difference in the number of pulses from CHDK wiki... Will be good if there is possibility to make 5 or 10 Zoom steps at once somehow and to avoid 1 step moving.
       
Bracketing can't work in Ricoh CA-1 mode, but if in Switch type OnePush is checked all is OK.
-->You need only One pulse - width 30 msec.Half Press Ricoh's CA-1 pulse sequence can't work.
   Specifically works, but gets sometime 2 Shoots due to two pulses on the end of sequence  :)
    That's not very bad I belive... 
That's all.
No other test were made.The given Timing with 4 buttons is for SX130IS and Ricoh CA-1 Switch
type.Maybe it is the same for many P&S Cams.
Clearly, we need more buttons to better exploit the potential of CHDK USB Remote control V2.
Microcontrolers can do that, and PIC 16F628(A) in my case can accept up to 10 Buttons.
Thanks.




« Last Edit: 17 / October / 2012, 01:22:07 by Pier »

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal