Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
09 / February / 2012, 15:00:50
Home
Forum
Help
Search
Downloads
Facebook
Login
Register
CHDK Forum
»
Using CHDK
»
General Help and Assistance on using CHDK stable releases
»
usb remote help
« previous
next »
Print
Pages:
1
[
2
]
Go Down
Author
Topic: usb remote help (Read 1008 times)
drewster
Jr. Member
Posts: 56
Re: usb remote help
«
Reply #15 on:
19 / May / 2009, 01:43:20 »
Hi, I had a measure of success. The shutter fired reliably with this code:
take_picture:
low 4
pause 200
high 4
pause 400
low 4
pause 200
return
If I introduce a delay. as I wish after each picture is taken, so
GOSUB take_picture
pause 100
then loop, the shutter no longer is fired (focus occurs though) Remove that pause after picture is taken, then shutter firing is reliable again. seems at first glance that it needs a uniform pulse?
Logged
G9, Ixus75
Microfunguy
Developers
Guru Member
Posts: 3027
Re: usb remote help
«
Reply #16 on:
19 / May / 2009, 03:48:37 »
Download
this
version.
In bracketing menu, set focus mode to manual.
The word FAST will be displayed at top of screen.
In Picaxe :-
take_picture:
high 4
pause 30
low 4
return
That will take a photo.
Make sure that output 4 is initially low.
David
Logged
drewster
Jr. Member
Posts: 56
Re: usb remote help
«
Reply #17 on:
19 / May / 2009, 04:08:25 »
I don't have access to the camera at the moment, but I realised that despite renaming the original DISKBOOT.BIN and copying your firmware onto the card, the camera still booted into the previous version. How could that be?
Not sure of the mechanics of the boot, but I remember another file is present called something like PS.FI2 if my memory servers me right. I tries removing the renamed file still boots to previous CHDK firmware. This points to PS.FI2? If I remove it, the camera ignores your firmware
Logged
G9, Ixus75
drewster
Jr. Member
Posts: 56
Re: usb remote help
«
Reply #18 on:
19 / May / 2009, 12:41:18 »
Hi, OK, made the card bootable, put card to Lock, added an empy PS.IR2 for good measure, now seeing your firmware. I'll try this with the jig when I return from work.
Logged
G9, Ixus75
Microfunguy
Developers
Guru Member
Posts: 3027
Re: usb remote help
«
Reply #19 on:
19 / May / 2009, 14:23:39 »
The SDM DISKBOOT.BIN is normally installed on a bootable card.
The firmware-update method is not supported as sdminst.exe (provided in Common_files.zip from the website) creates the bootable card.
You do not need PS.FI2.
I am assuming that a 'low' on the Picaxe servo board outputs a low voltage.
A 30 msec pulse should be detected, if not increase by 10 msec increments.
It has been tested with two types of RC receiver equipment from gentLES.
David
Logged
drewster
Jr. Member
Posts: 56
Re: usb remote help
«
Reply #20 on:
20 / May / 2009, 01:53:53 »
Hi, your timings (just running take_picture) work well with SDM firmware & USB is displayed on the screen. Adding a lengthy pause at the end of take_picture makes no difference & all is well. Now, if I add this to my script, there seems to be some interference from the servo's.
USB is no longer displayed on LCD & shutter trigger don't seem in sync with the code (although pictures are now being taken). So I'm moving the camera with a servo, then pause, then take_picture. What happens, in fact, is the shutter fires straight after the servo has rotated
So, two steps forward. Camera is firing true, but servo movement is affecting shutter trigger pulse
Logged
G9, Ixus75
Microfunguy
Developers
Guru Member
Posts: 3027
Re: usb remote help
«
Reply #21 on:
20 / May / 2009, 03:03:30 »
The problems are all in your hardware and Picaxe software.
Can you post the complete Picaxe code ?
Describe the hardware connections in greater detail.
David
Logged
drewster
Jr. Member
Posts: 56
Re: usb remote help
«
Reply #22 on:
22 / May / 2009, 12:43:37 »
Hi, I've inverted a KAP rig to move a camera in both x and y axes for an automatic panorama sequence shoot. There are two servo's in ciruit controlled by the picaxe servo board. As mentioned, I've used two wires of the this picaxe servo channel to fire the camera shutter facilitated by CHDK.
Picaxe code is below:
'*** Program constants
' Delay to slow down servo motion (30ms default)
symbol servo_delay = 60
symbol top = 120
symbol bottom =120
symbol left = 80
symbol right = 200
symbol vstep = 20
symbol hstep = 20
symbol pic_delay = 100
symbol camera_steady_delay = 5000
main:
'*** Move forward
for b2 = top to bottom step vstep
servo 2,b2
pause servo_delay
for b1 = left to right step hstep
servo 1,b1
pause camera_steady_delay
GOSUB take_picture
pause pic_delay
next b1
next b2
end
take_picture:
high 4
pause 30
low 4
pause 30
return
return_to_base:
servo 2,top
return
return
Logged
G9, Ixus75
Microfunguy
Developers
Guru Member
Posts: 3027
Re: usb remote help
«
Reply #23 on:
22 / May / 2009, 14:46:26 »
What happens if you run the script with one (each in turn) or both servos disconnected ?
Is the USB cable to the camera fitted with the usual ferrite noise suppressor (the black cylinder clamped over the cable) ?
Maybe that makes a difference ?
«
Last Edit: 22 / May / 2009, 15:34:50 by Microfunguy
»
Logged
CHDK Forum
Re: usb remote help
«
Reply #23 on:
22 / May / 2009, 14:46:26 »
databoy
Guest
Re: usb remote help
«
Reply #24 on:
22 / May / 2009, 20:19:07 »
I have encountered a similar problem with motor control equipment. The motor brushes generate RF and upsets the CPU internal oscillator.
If the problem is RF noise.
Isolate you picaxe electronics and power supply from your servo electronics and power supply. Install opto isolators between you picaxe output and your servo motor driver. Install 0.1uf ceramic capacitors directly across your picaxe supply rail on your picaxe chip. Make certain the leads are as short as possible. Do the same directly across the power supply of your servo motor. Isolate both power supply rails directly back to your power supply. On your picaxe supply also use a ferrite noise suppressor.
Logged
drewster
Jr. Member
Posts: 56
Re: usb remote help
«
Reply #25 on:
24 / May / 2009, 22:05:24 »
Hi, adding a ferrite thing makes no difference to the shutter timing. Disconnecting the servo's does change the shutter release timing. When I get a chance I'll solder some decoupling caps, & add a ferrite to the picaxe supply.Certainly if the servo's are affecting the CPU timings it would be an explanation of what's happening
Can you explain your suggestion below a little further please..
>>Isolate both power supply rails directly back to your power supply
Logged
G9, Ixus75
Print
Pages:
1
[
2
]
Go Up
« previous
next »
CHDK Forum
»
Using CHDK
»
General Help and Assistance on using CHDK stable releases
»
usb remote help
SimplePortal 2.3.3 © 2008-2010, SimplePortal