Go Down

Topic: Lightning photography.. (Read 5449 times) previous topic - next topic

_6ix

I was told to post here.. I asked for some help first in the programming section as I was trying to time the delay of the system I had.
(original post http://arduino.cc/forum/index.php?topic=118770.new;topicseen#new )

My first "big" arduino project... using salvaged parts to make a lightning trigger.

A tiny solar cell from a DOA solar thermometer..
An optical isolator from a powersupply
a potentiometer scavenged from a tv aerial booster...
a couple of other bits & pieces...

Here's a pic of the components..



and then the result





code.. messy but I am using rusty skills.... and hey - it worked!

Code: [Select]
/*
   Lighttrigger by _6ix (Kyle)
   Pot on blue & Bluewhite to +5v & gnd .brown to A0
   solar to earth & a1
   isolator pin 1 to D2 via resistor
   iso pin 3 to gnd.
   iso pin 4 to camera ground.
   iso pin2 to camera trigger gnd and iso pin2 to camera fire (red)
  */
 
int led = 13;
int trigger = 2;
int potPin = A0;
int lightValue = 0;
int sensitivityValue = 0;

void setup() {
//  Serial.begin(9600);
   pinMode(led, OUTPUT);
   pinMode(trigger, OUTPUT);
}

void loop() {
   
int sensitivityValue = analogRead(potPin); 
int lightValue = analogRead(A1); 
      if (lightValue *1.5 > sensitivityValue){
        digitalWrite(led, HIGH);
        digitalWrite(trigger, HIGH);
        delay(1500);
        digitalWrite(led, LOW);
        digitalWrite(trigger, LOW);
       }

//Serial.println(sensitivityValue);
//Serial.println(lightValue);
}

codlink

Beautiful pictures indeed!
//LiNK

_6ix

cheers codlink... I dont get this sort of opportunity very often like other places....most of our photos are of storms above us.

codlink

In Florida, US, we are the top state for lightning.   Might have to do a project like yours one day after I get done with some others.
//LiNK

Jack Christensen

Nice job! I really like storm photos!
MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

sbright33

Even if/when your circuit and code responds instantly, doesn't it take time for your shutter to release after you trigger the camera?  This is not significant?  I guess not, your results are excellent.
If you fall... I'll be there for you!
-Floor

Skype Brighteyes3333
(262) 696-9619

_6ix

If ya read my link to the other thread, you can see I have a delay... the rest is just luck.

sbright33

I have built a circuit to detect sound, but this does not help, obviously.  For lightning I keep the shutter open for 10-30s in the dark.  Hoping to catch multiple flashes.  Do this over and over.  Quickly scan thru the images on a PC to find the good ones.  When it's light you have to use a shorter time with a narrow aperture.  You can close the shutter after the lightning to increase the contrast.  A simple sketch might tell me how many good pictures I have if I'm not concentrating by counting the flashes.  It could tell me the image number to look at.  It could close the shutter.  But I don't see how to use it as a trigger.
If you fall... I'll be there for you!
-Floor

Skype Brighteyes3333
(262) 696-9619

MichaelMeissner

I remembered there was a link on the triggertrap site that compares commercially available lightning triggers.  Three of them (triggertrap, camera axe, doc-diy) are open source, if you wanted to see how they did it: https://docs.google.com/spreadsheet/pub?hl=en_US&hl=en_US&key=0AjH3_u9oGuKYdHFfSlhwWHVmWnhKbzdUTW1reGRaemc&single=true&gid=0&output=html

sbright33

For many modern DSLR cameras there is a delay required to open the shutter.  You can't go back in time to do it.  This is a problem which causes you to miss the beginning of every flash every time. 
If you fall... I'll be there for you!
-Floor

Skype Brighteyes3333
(262) 696-9619

focalist

#10
Sep 26, 2012, 10:02 pm Last Edit: Sep 26, 2012, 10:07 pm by focalist Reason: 1
The delay in that shutter opening varies between cameras, but luckily Lightning is usually a pretty complex event with multiple cloud to ground and return strokes.. it's not uncommon for a stroke of lightning to last up to half a second.  Since the ionization pathway is usually the same for the return stroke, even though you miss the start of the cloud to ground stroke, you will most likely make up for it with the return and subsequent discharge strokes on the pathway.  Going back in time isn't necessary because the event duration is long enough and repeated multiple times, even if our eyes don't SEE it that way.

I've not done a lightning trigger yet, but they are easy to make and do work well.  The best alternative (which isn't any better) is to stop down the lens and do repeated time exposures hoping for a strike during any particular exposure period.  I've done this, and though it works, it tends to produce washed-out images, even if the "beginning" of the stroke is captured.  The contrast captured above is far superior to what can be gotten by doing time exposures, including motion blur of moving clouds and incident lighting from other lightning occurring within the storm but not directly visible as strokes to the eye or camera, just diffuse flash carried through the cloud.  By making a short exposure, the contrast and sharpness can be kept, particularly since a large aperture and slow ISO can be used.
When the testing is complete there will be... cake.

sbright33

Great discussion!  But you do miss the first 250ms with a T2i.  I would like to capture that, but as I stated it is impossible using the traditional method.  An instant trigger would produce an interesting image that you cannot get no matter how many times you wait 1/4 sec. 
If you fall... I'll be there for you!
-Floor

Skype Brighteyes3333
(262) 696-9619

MichaelMeissner


Great discussion!  But you do miss the first 250ms with a T2i.  I would like to capture that, but as I stated it is impossible using the traditional method.  An instant trigger would produce an interesting image that you cannot get no matter how many times you wait 1/4 sec. 

Well given shutters are mostly mechanical devices, it does take some time to physically move the shutter.  There are a few cameras with electronic shutters that should be faster.

My Olympus SP-550UZ from a few years ago has a pre-capture mode when it is in 15 frames/second mode.  In that mode, the picture size is reduced to 1280x960, and as long as you hold the shutter down 1/2 way (usually used for pre-focus), the camera will continuously record pictures in internal memory.  When you complete the shutter press, the camera will dump the last 5 pictures into the memory card, as well as 15-20 pictures afterwards.  The Olympus SP-550UZ does support the RM-UC1 shutter release, so it could be controllable via an Arduino.  Hmmm, I should try this sometime.  Unfortunately, I think Olympus only supported pre-capture for a few of the SP series of cameras (SP-550UZ through SP-590UZ, as well as the E-100RS from over 10 years ago).  I haven't used my SP-550UZ for about 2 years now other than quick tests.

sbright33

Magic Lantern allows you to take "video" at 1-4fps.  The shutter is always open.  This would let enough light in for lightning and allow you to capture hours worth of data without missing anything.  Still I prefer my 10 second exposure.  To increase contrast you close the shutter AFTER the lightning flash. 
If you fall... I'll be there for you!
-Floor

Skype Brighteyes3333
(262) 696-9619

focalist

I won't have time to finish it up until next week at the earliest, but I'm in the process of making a shutter trigger which uses a phototransistor not mounted externally, but mounting it so the phototransistor is IN the viewfinder- the idea being that I can set a particular scene and the camera will trigger with any large (adjustable) change in the overall brightness "seen" by the phototransistor.  My intended target with this is to get some wildlife shots, but it would work for lightning also-- anything that will change the overall illumination through the lens ought to do the job.. 
When the testing is complete there will be... cake.

Go Up