Retun to Project Main Page |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
user entry |
|
|
|
Code Abstract: |
|
|
|
|
|
comments: |
|
|
|
|
default |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
generic counter1 (x) |
0 |
|
|
|
|
inner loop |
|
bracketed
shots (+ / -) |
|
Exposure Values from
Camera |
|
|
|
|
generic counter2 (y) |
0 |
|
|
|
|
outer loop |
|
|
|
|
** |
Shortes Exposure (Light) |
24 |
(register values) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
** |
longest Exposure (Dark) |
57 |
(register values) |
|
|
|
select i=(i) |
|
|
|
|
|
select # of shots for
bracketing |
|
|
|
time Mirror-up (mu) t |
4 |
seconds (4Mio
micro-secs) |
|
|
if i < 2 |
|
|
|
|
|
minimal Validation |
|
|
|
|
|
|
|
|
write "increase exposure
span" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Calculating operators |
|
rounded |
step (s) |
|
|
do while y >= 2 |
|
|
|
|
|
begin bracketing |
|
|
|
|
Delta (d) |
16.5 |
17 |
Value in Register |
|
|
shoot cs |
|
|
|
|
|
take Center shot |
|
|
|
|
Center shot (cs) |
40.5 |
41 |
Value in Register |
|
|
csl = cs |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
css = cs |
|
|
|
|
|
|
|
|
|
|
EV |
select one option for (i) |
|
(i) |
|
|
|
|
x=0 |
|
|
|
|
begin long exposure bracketing |
|
|
1/3 |
|
16 1/2 |
17 |
1 |
|
|
|
|
do while x <= i |
|
|
|
start 1st loop |
|
|
|
2/3 |
|
8.25 |
8 |
2 |
|
|
|
|
|
mu(t) |
|
|
move mirror up and wait |
|
|
1 |
default (i) |
5.5 |
6 |
3 |
|
|
|
|
|
csl = csl + s |
|
increase exposure by adding step
value s |
|
1 1/3 |
|
4.125 |
4 |
4 |
|
|
|
|
|
shoot csl |
|
|
take shot |
|
|
|
|
1 2/3 |
|
3.3 |
3 |
5 |
|
|
|
|
|
x=x+1 |
|
|
|
|
|
|
|
2 |
selectable (i) |
2.75 |
3 |
6 |
|
|
|
|
end do |
|
|
|
|
|
|
|
|
2 1/3 |
|
2.357143 |
2 |
7 |
|
|
|
y=y+1 |
|
|
|
|
|
|
|
|
|
2 2/3 |
|
2.0625 |
2 |
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
selectable (i) |
1.833333 |
2 |
9 |
|
|
|
x=0 |
|
|
|
|
begin short exposure bracketing |
|
|
3 1/3 |
|
1.65 |
2 |
10 |
|
|
|
|
do while x <= i |
|
|
|
start 2nd loop |
|
|
|
3 2/3 |
|
1.5 |
2 |
11 |
|
|
|
|
|
mu(t) |
|
|
move mirror up and wait |
|
|
4 |
selectable (i) |
1.375 |
1 |
12 |
|
|
|
|
|
css = css - s |
|
decrease
exposure by substracting step value s |
|
|
|
|
|
|
shoot css |
|
|
take shot |
|
|
|
|
|
|
|
|
|
|
x=x+1 |
|
|
|
|
|
|
|
|
|
|
|
|
end od |
|
|
|
|
|
|
|
|
** |
go to the 'Transform' sheet and copy the frame
in columns H,I,J to the
corresponding value of 'cs' |
|
|
|
y=y+1 |
|
|
|
|
|
|
|
|
|
|
|
|
end do |
|
|
|
|
|
end of bracketing this image frame |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Testing the code: |
replace micros() with longer values
to light up LEDs |
|
|
|
|
critical: |
can ARDUINO handle microseconds? |
|
|
|
|
|
Yes, it can, but only when using the
'delay' function. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|