CANON A480 + script for intervalometer + shutdown camera+lens retract - Script Writing - CHDK Forum

CANON A480 + script for intervalometer + shutdown camera+lens retract

  • 4 Replies
  • 5772 Views
Advertisements
Hello,

i have a Canon A480 and i want to use a script for making pictures at a specified interval of time. After all the requested pictures are made i want the camera to shut down and lens to retract.

Here is what i tried to use :
-------------------------------------------------
rem Author - Keoeeit
rem Written for S-Series
rem Should be okay on others
rem Use Endless mode with caution
rem See documentation for important info
@title Ultra Intervalometer
@param a Delay 1st Shot (Mins)
@default a 0
@param b Delay 1st Shot (Secs)
@default b 0
@param c Number of Shots
@default c 100
@param d Interval (Minutes)
@default d 0
@param e Interval (Seconds)
@default e 3
@param f Interval (10th Seconds)
@default f 0
@param g Endless? No=0 Yes=1
@default g 0
p=a*60000+b*1000
t=d*60000+e*1000+f*100
if c<1 then let c=5
if t<100 then let t=100
if g<0 then let g=0
if g>1 then let g=1
if p<0 then let p=0
z=t*c
y=p+z
print "1 Cycle Time:", y/60000; "min", y%60000/1000; "sec"
goto "interval"
:interval
if p>0 then gosub "pause"
print "Shot 1 of", c
shoot
for n=2 to c
sleep t
print "Shot", n, "of", c
shoot
next n
if g=1 then goto "interval" else shut_down
ause
n=(a*60)+b
for m=1 to n
q=n-m
print "Intvl Begins:", q/60; "min", q%60; "sec"
sleep 930
next m
returnCheers
-------------------------------------------------

the problem is that after i'm loading the script and i want to run it i receive the error : uBASIC:50 Unk label


Any advice is appreciated.

Thank you.
« Last Edit: 17 / May / 2013, 18:05:08 by mirax7 »

*

Offline zeno

  • *****
  • 891
That error message means that line 50 has an unknown label. Line 50 appears to be the line of dashes at the end of your script - you need to delete it.

You also need to remove the word Cheers from line 49 and I think line 42 should be:
:pause
« Last Edit: 17 / May / 2013, 18:16:33 by zeno »
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

Many thanks, i have made the modifications that you mentioned and  now it's working.

Re: CANON A480 + script for intervalometer + shutdown camera+lens retract
« Reply #3 on: 24 / January / 2014, 14:54:50 »
Hello , I need additional advices :)

I have used the script posted above and it's working without any issue but I want to activate it using remote control.

What i want to do :
- I want to activate the script using remote control. The script is loaded on a Canon sx230 camera. The camera will be placed on my RC airplane. Using a custom connector i will make the link between a 5v source and the misi usb connector from the camera. While the plane is on the ground i will start the camera with the playback button and launch the plane(at this time the lens will remain closed). I want that , during the flight, if i apply 5v to the camera mini usb connector lens to open and camera to start to do pictures, if i apply 0v i want to have the lens closed and the script stopped.

- what i must modify to make this possible ? (modification on the script from above , also on the script parameters from the camera - remote control parameters).

Thank you.


Re: CANON A480 + script for intervalometer + shutdown camera+lens retract
« Reply #4 on: 24 / January / 2014, 20:54:31 »
Hello , I need additional advices :)
While its quite possible to modify the script you posted,  it will take somebody an hour or so to make the changes and test the result.

It might be easier if you used this instead : 

http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script

which does everything you want and a whole lot more.
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal