Extra Intervalometer feature - Script Writing - CHDK Forum

Extra Intervalometer feature

  • 68 Replies
  • 21541 Views
Extra Intervalometer feature
« on: 26 / March / 2014, 23:51:10 »
Advertisements
I'm not much of a coder so I could use some assistance. 

I'm currently using Meteor.lua Intervalometer for night sky time-lapse.  This has been the best suited script I have found that so far that will work on my Powershot A4000 IS because I can control the length of exposure (shutter speed).  There are other scripts that might have this function but they wont operate correctly on my camera for whatever unknown reason.

I'm looking to add the functionality of an adjustable interval time between shots.  If someone knows of a script that can give me an adjustable shutter speed, shot interval and number of shots to take or infinite shots then I'd be glad to give it a try in hope of it working properly.

On a side note, how can I best force my focus to remain on infinity.  Occasionally a frame is out of focus due to the auto focus I imagine.  This camera doesn't have manual focus as far as I can see.

Thanks

*

Offline reyalp

  • ******
  • 14110
Re: Extra Intervalometer feature
« Reply #1 on: 27 / March / 2014, 01:09:17 »
There are other scripts that might have this function but they wont operate correctly on my camera for whatever unknown reason.
If you tell us which script fails and how it fails, we may be able to help with that.
Don't forget what the H stands for.

Re: Extra Intervalometer feature
« Reply #2 on: 27 / March / 2014, 08:17:18 »
There are other scripts that might have this function but they wont operate correctly on my camera for whatever unknown reason.
If you tell us which script fails and how it fails, we may be able to help with that.

Long Exposure Intervalometer (http://chdk.wikia.com/wiki/UBASIC/Scripts:Long_Exposure_Intervalometer) gives me an error after shutter press:       :1: '-'  expected near 'author'  ***terminated***


Re: Extra Intervalometer feature
« Reply #3 on: 27 / March / 2014, 14:44:09 »
FYI :  meteor.lua is due for a refresh - if only to get rid of the nasty hack used to translate shutter speed in second to tv96.

I'll post an update later today.

Long Exposure Intervalometer (http://chdk.wikia.com/wiki/UBASIC/Scripts:Long_Exposure_Intervalometer) gives me an error after shutter press:       :1: '-'  expected near 'author'  ***terminated***
That probably means that you failed to create the long-exp-clicker.bas file as a plain text file using a simple editor like notepad.exe

If you attach the actual script file that you created to a posting here,  we can check it for you.
« Last Edit: 27 / March / 2014, 15:17:07 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16


Re: Extra Intervalometer feature
« Reply #4 on: 27 / March / 2014, 16:18:29 »
I think you pointed out my mistake exactly.  I named it incorrectly as *.lua   when the extension should have been .bas.   I'll try it out again later.  Thanks

Is there is simple line of code/function I could insert into the script to force the focus to infinity?

Re: Extra Intervalometer feature
« Reply #5 on: 27 / March / 2014, 16:26:23 »
Is there is simple line of code/function I could insert into the script to force the focus to infinity?
Well,  that's a simple question with a complicated answer, and its very dependent on your camera model.

There is a lot more information here : http://chdk.setepontos.com/index.php?topic=11078.0

If you are using the latest version of CHDK release 1.3.0, then one or both of these will work :
Code: [Select]
set_aflock(1)
 set_focus(60000)
Code: [Select]
set_mf(1)
 set_focus(60000)

For CHDK 1.2.0, this might work :
Code: [Select]
set_aflock(1)
 set_focus(60000)
otherwise, you can try the code fragment posted here : Re: UAV camera script
« Last Edit: 27 / March / 2014, 17:01:19 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Extra Intervalometer feature
« Reply #6 on: 27 / March / 2014, 22:33:43 »
I tried all of those with both CHDK release 1.2.0 and 1.3.0 and they either did nothing or terminated the script.  I tried to plug it into the interval.bas script that comes with CHDK. 

Maybe I'm dong something wrong such as placing it in at the wrong point of the script. 

This was basically for TL of Stars which throw the AF off occasionally.

I probably could use a better Powershot but the A4000 IS is what I had.

Re: Extra Intervalometer feature
« Reply #7 on: 27 / March / 2014, 22:42:13 »
I tried all of those with both CHDK release 1.2.0 and 1.3.0 and they either did nothing or terminated the script.  I tried to plug it into the interval.bas script that comes with CHDK. 
Sorry - code posted is for Lua.  Delete the brackets to use it with uBASIC.

Update : looks like the latest version of set_mf and set_focus in uBASIC is somewhat broken.  Both calls return a status value and the code expects to see that used.  So until it's fixed,  you need to use :
Code: [Select]
a=set_mf 1
b=set_focus 60000

Or you could try this - advance version of my updates to the meteor.lua script : link > meteor2.lua

I think it captures all your requests,  and much much more.   :xmas

Quote
I probably could use a better Powershot but the A4000 IS is what I had.
Should be just fine for what you are doing.

« Last Edit: 27 / March / 2014, 23:17:47 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16


Re: Extra Intervalometer feature
« Reply #8 on: 27 / March / 2014, 23:51:31 »
waterwingz,

AWESOME :D

It has all the features I was looking for.  Thank you very much Sir.

I'll test it out as soon as I get the opportunity.

A question about the dark frame function.  It has two options one being CHDK and the other Canon.  Is the CHDK for post edit use and the Canon done in camera?   RAW has to be enabled for dark frame to work, correct?

On a side note, my camera isn't stellar at low light, is there a better model I could consider that's inexpensive?  Some have mentioned models ending in HS having better low light capability.

Re: Extra Intervalometer feature
« Reply #9 on: 27 / March / 2014, 23:56:42 »

Quote
I probably could use a better Powershot but the A4000 IS is what I had.
Should be just fine for what you are doing.

Didn't notice this replay 1st time around.  I gotta find the sweet spot for using lower ISO on my camera.  More grain/noise than I would like in night pics.  I'm more of a video editing guy.  New to photo and TL.  Underwater video is my favorite, lots of fun.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal