60 second shutdown script? - Script Writing - CHDK Forum

60 second shutdown script?

  • 13 Replies
  • 9278 Views
60 second shutdown script?
« on: 28 / June / 2008, 12:39:00 »
Advertisements
I have been trying to figure out a script for my RC aerial photography, using a Canon A570is
with Fw 101a and the Allbest build #51. I sure like being able to save and process RAW files.

Anyway, This is my goal for the script:
 After 60 seconds of no shutter activity the camera would shut_down and power off.
 Therefore, with every photograph taken the timer would reset to 60 seconds to shutdown.
 I also need it to autostart.

Any help would be very much appreciated.

Jim

Question: Does the shut_down command not work with Allbest build #51
« Last Edit: 28 / June / 2008, 21:43:07 by Propfly »

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: 60 second shutdown script?
« Reply #1 on: 29 / June / 2008, 03:08:43 »
Before even trying to think about the other questions... what do you mean by autostart?

You can check the script autostart option in script menu and it will run at camera power-on, but there is no way I know of to power on the a570is remotely or by a timer other than by actually pressing the power button.

So I hope your rig has the ability to press the power button?

*

Offline zeno

  • *****
  • 885
Re: 60 second shutdown script?
« Reply #2 on: 29 / June / 2008, 06:29:33 »
If you use Sanyo Eneloops in your A570, the camera will happily take 1000+ shots over a two hour period before the batteries run down. I suspect your plane will run out of fuel first!
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

Re: 60 second shutdown script?
« Reply #3 on: 29 / June / 2008, 11:02:19 »
While in flight, as long as I activate the shutter before the 60 second mark the camera would stay on.The timer would
reset to 60 with each shot.
Then, when I am ready to land I would let the 60 second timer expire and the camera would power down
and retract the lense. I would then change my airplane battery, power up the camera and go get some more photos.
I want to land with the camera off and the lense retracted.

This would be an awesome script but I am only just starting to learn uBasic programing and have been struggling
with a simple 15 seconds to shut_down test script. It runs for 15 seconds but will not shutdown. It runs without an error
in the uBasic test program.    Thankyou for any help.
  This is what I have tried:
rem Simply shoot, countdown, power down
@title Shutdown
@param a Interval (seconds)
@default a 15
a=15
shoot

 do
   a=a-1
   sleep 1000
 until a=0

shut_down


Re: 60 second shutdown script?
« Reply #4 on: 29 / June / 2008, 11:08:44 »
What I meant by autostart was that when I turned on the camera the script would start.

Jim

*

Offline zeno

  • *****
  • 885
Re: 60 second shutdown script?
« Reply #5 on: 29 / June / 2008, 11:32:09 »
Ah, I see. It turns out that shut_down will only work (at least for me) when the "Miscellanous stuff" CHDK menu item "Disable LCD Off" is set to No. It also only works for certain cameras (non-DryOS ones), but does work for the A570 (I just tried it).
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

Re: 60 second shutdown script?
« Reply #6 on: 29 / June / 2008, 13:50:55 »
Thanks Zeno,

That worked!   Although, I still get a uBasic: 11 parse err
I had tried many things with no luck including
4 different builds and a variety of different commands.
Now I need to incorporate into the script a method to reset the timer after a picture has been taken.

Thanks again,

Jim
« Last Edit: 29 / June / 2008, 13:58:10 by Propfly »

Re: 60 second shutdown script?
« Reply #7 on: 29 / June / 2008, 17:00:24 »
This script may not work for me since I trip the shutter with a servo pushing the shutter button-
which would stop the script!

Anyone have any ideas???

Can it be done with a usb trigger?? I know that there is such a device for RC airplanes that plugs
into the receiver and is triggered by a spare transmitter channel. Available from gentLED.


*

Offline BB

  • ***
  • 164
Re: 60 second shutdown script?
« Reply #8 on: 29 / June / 2008, 20:52:40 »
Yes, you can use the USB to take pictures (just supply ~3.7 volts to trigger, then zero to reset)... You can read this thread for a person that did the USB trigger route for a wheel chair mounted camera.

Need remote shutter release for wheelchair photographer

There are lots of other projects talked about here in "airplane", "kite", and "balloon" threads here... Just use the search function to bring a couple up... Most include detailed discussions of cameras, batteries, and scripting (including examples). With zoom, bracketing, and even switching between snap shot and move mode for a couple cameras (A570 and A720 as I recall).

-Bill

Re: 60 second shutdown script?
« Reply #9 on: 06 / July / 2008, 21:47:38 »
OK, so now I have the remote usb shutter script ... and it works great with my RC receiver and transmitter using the
gentLED cable.
My question:  How can I make the camera shutdown for landing?? Or as I mentioned in my previous post- While in flight,
as long as I activate the shutter before the 60 second mark the camera would stay on.The timer would reset to 60 with
each shot.
Then, when I am ready to land I would let the 60 second timer expire and the camera would power down
and retract the lense. I would then change my airplane battery, power up the camera and go get some more photos.
I want to land with the camera off and the lense retracted.

Any help would be very much appreciated,

Jim


 

Related Topics