I was searching for a kind of universal intervalometer, but didn't find any, that does what I need. So after googling I did my own.
The aim was to have auto exposure done by change shutter time. And since camera auto exposure is not exactly what I want (it rather increases ISO and doesn't increase shutter time above 1') I had to be done by CHDK. I found a nice script that calculates shutter time:
http://crteknologies.fr/wiki/doku.php/photo:chdk-scripts#night_shotbut it was converted to Lua and transformed to the intervalometer with a few additional functions.
So what does this script do:
- measure brightness of the scene
- combine this with Sv and Av to calculate Tv (based on APEX and 96 values)
- take a shoot, wait and repeat.
That's the base.
Additionally there's an option to have something I called 'brightness linear correction'. I had to have a little underexposed night shoots while day shoots had to be good exposed. With this script you can set what correction will be applied at two measured brightnesses: -500 and +500. These points define a line over the brighness range. The correction is applied to shutter time.
So when I needed underexposed night shoots and good exposed day shoots I've used following corrections:
@-500 correction: -170
@+500 correction: 0
For example when camera measured scene brighness Bv=0 the correction applied was -85. Note these are APEX linear values, proportional to the shutter time - not linear in the exposure scale meaning. Seems to be working well.
Script may display a nice chart of the brightness measured over the time. It updates with each shoot. When the brightness doesn't change over the time it might look like a random chart and in that case is rather not very usefull.
Below is a video taken with early version of the script. I have lost a few nice minutes before the sunrise because of some problems with get_shootung() (which were fixed after that). Quality is not good, since ot was compressed for YT. All over the execution of the script no parameters were changed manually, all changes were done by the script.
Time-lapse day-night-dayAnd as a gift - a nice photo of the bird, which was captured accidentally on one photo: