beep... beep... blink... blink...
 
Zeus: trigger your camera with lightning

Zeus: trigger your camera with lightning

Introduction

I have always been fascinated by photographs about lightnings. While it is relatively easily to put a lightning strike in any photograph using image editing techniques 🙂 I still prefer the real thing. Since photography is a hobby of mine, I wanted to be able to photograph lightnings. However, when I tried to do it without any specialized equipment, I didn’t have much success.

Corrected version

Reading a bit about the subject on the internet I found there are many designs/solutions available, to get around the problem. Since the price of the commercially available ones are too high for my budget (and let’s face it, it’s not much fun buying something ready made when you can also make it yourself), I decided to make one for myself for less.

I found many similar designs on different web sites and finally I came up with my own, which is – admittedly – very similar to one particular one I found on this photography site (only in Hungarian). I kept most of the design, but replaced the relays with opto couplers and put the whole thing in a plastic box to make it easy to drag around.

If you are interested to make one like this, please e-mail me. I can provide you with customized kits that contain as many or as few components as you need/like (from just a programmed microcontroller to a fully built and tested PCB) to suit your experience/skills. Please note, I do NOT provide the enclosure as it is very time consuming for me to make. The code for the PIC is also available on request.

Hardware

The circuit is based on a 16F628A PIC microcontroller. This is one of my favourite PIC micros and I have used it in several previous projects.

Schematics of the circuit

The light sensing part (OPT101) is a monolithic photodiode and single-supply transimpedance amplifier in a single 8DIP package allowing a smaller final product size. When designing the PCB care must be taken to position this part in a place where it can “see” the ambient light and lightning bolts. The connection with the camera is provided by two opto couplers. This allows the camera’s circuitry to be completely decoupled from my circuit so that any problem in my circuit will not damage the camera.

The cable that attaches to the camera is recycled from an old, cheap camera remote release cable – I just removed the original buttons from it. These remote release cables (for any camera that supports it) can be easily sourced through eBay for a couple of euros. My latest one for Nikon cameras cost around €1,50. The advantage of this is that you don’t have to prepare your own special cable/connector combo for a specific camera, which can be tricky.

The PCB was designed to use mostly SMT parts to save on PCB manufacturing costs and make the device as compact as possible.

The circuit also contains an ICSP interface for easy development.

You can order your own PCBs here.

Operation

After powering up, the circuit enters calibration mode. In this mode the user must adjust the light sensitivity. This is to allow operation in both total darkness and with some ambient light. The best setting is when the Mode and the Calibration LEDs are bot lit up (or almost), although this is not critical.

The 4 LEDs are used for calibration and mode feedback to the user.

By clicking once the Mode button the device is armed and waiting for the lightning. This is signalled by lighting up the Meter LED. At the same time the camera enters metering mode (the equivalent of pressing the exposure release button half way). When the device senses a sudden change of ambient light it lights up the Trigger LED for a while and sends the exposure release signal to the camera synchronously (the equivalent of pressing the exposure release button all the way). For proper operation the camera’s autofocus feature should be disabled and a suitable long exposure time should be set.

In the following video I demonstrate the operation of the device. Unfortunately, I haven’t been able to test it in an actual storm with lightning, since I live in an area where storms are very rare (Greece). Instead, I faked the lightning with a flash activated manually. If you listen carefully you can hear when the camera enters “metering” mode and when it takes the photograph.

Steps shown in the video:

  • Switching on the device
  • Calibrating for the light available in the room
  • Arming the device
  • Simulating a lightning
  • The camera is triggered and the picture is taken – you can see it showing up for a few seconds on the camera’s screen.

Battery life

I used a very low quality, “no name” rechargeable 9V Ni-MH battery for the tests. During tests conducted in-house I was able to keep the device continuously in armed mode (awaiting lightning) with the occasional exposure (you can test it very easily with a manual flash) for more than 5 hours with one charge. This is more than enough to cover a storm since most ones with lightnings are very brief (at least in my area).

Although the battery is “no name”, the connections try to be professional – shrink tubes protect each solder joint on every off-the-PCB part.

Case for the circuit

The most difficult part of the project (for me) is almost always the presentation, i.e. a nice, user friendly case or housing. For this project I ordered a small plastic project box on eBay and customized it. The box is 130*24*68 mm, big enough to contain all the parts including the PCB and a 9V battery.

I designed the PCB so that the light sensor, the control LEDs and button are nicely aligned with each other, so only holes had to be drilled on the face of the box. Only two components (+ the battery) are separate from the PCB: the on/off switch and the sensitivity potentiometer. They are both mounted on the face of the box under the battery.

The PCB was designed to fit snugly in the enclosure box next to a 9V battery

Possible future improvements

  • If I have some time in the future I may change the software to auto calibrate the device, i.e. the user should not fiddle with it manually.
  • Once I find a suitable socket, I will also add external power support which will power the device as well as recharge the battery in the enclosure.

More images

I took the following pictures while I was assembling a device for someone. This is the recommended order of assembly, from small to larger elements.

And finally, some close ups of the enclosure.

Some sample photographs from photographers using the above trigger

Matthieu Sinico (Belgium)

Update 23/01/2013

I have made some improvements to the PCB. It got smaller and some of the parts that have not been integrated to the PCB are now soldered to the PCB.

Update 6/8/2013

I just won Lifehacker’s “Best Camera Hacks” competition with this entry!

75 Comments

  1. @ptantiku: I finished this project a couple of months ago, and since then we have never had any storms in this area. As soon as I will some images taken I will post some. Sorry about that.

  2. @Dan: I apologize. There seems to have been some problems with Blogger or something because I am sure I included the video before publishing the article. This morning all the images also disappeared. Now I have re-uploaded and linked them, so they should be all OK now. Thanks for letting me know!

  3. @Anonymous: Well, I'm not familiar with SDM, but from what I saw in 2 minutes on the site you mentioned it's not quite the same.
    For starter, it only supports a handful of Canon cameras, my gizmo works with any camera (SLR or point and shoot, digital or film) with remote release connectivity. Also, it seems to me that it triggers on movement rather than light change (although these might be closely related, I don't know).
    Thanks for letting me know about SDM, though! Interesting project.

  4. @Anonymous: Yes, I have previously heard of CHDK and have been jealous of it since I don't have a Canon system 🙂
    Would you have any info on how well the motion sensing scripts could be used for sensing change of light?

  5. Anonymous

    Well, I would not call 56 cameras 'a handfull' :-

    http://stereo.jpn.org/eng/sdm/cams.htm

    It detects sudden change of light intensity as well as motion and is widely used for lightning photography :-

    http://chdk.wikia.com/wiki/Samples:_Lightning_photography

    You can even specify what colour to detect and its location on the screen.

    When the lightning is detected you could even flash the cameras autofocus led and with a simple phototransistor circuit trigger a DSLR.

  6. @Anonymous: Cool, it's great that it can be used for lightning photography, now I see.
    I still stand by my "handful" 🙂 though: if you compare those 56 cameras with all the cameras from all the manufacturers, it IS a handful. I didn't mean to lessen the value of CHDK and I do feel jealous because I can't use it!

  7. Good project, and the case is very professional. Your idea for auto calibration is a good one. Anything that reduces user input and makes the device more reliable should be implemented. You might add an ELF receiver, as lightning has quite an EMP when it strikes, and use a coincidence detector in software to eliminate false triggering on car headlights at night, but that might be overkill. Good work, and I enjoyed reading your article.

  8. drecked

    Hi Vitya , Sorry about the name mix up! Can you give me a Idea on the price of
    your kit , And how to go about it If I wish to purchase It ?

    regards Drecked

  9. Anonymous

    Very nice project! Why are you using a microcontroller? Wouldn't it be easier to use a high speed comparator to trigger the camera, this would make the circuit faster as well?

  10. what about building this into a wireless remote trigger? I want to say there might be lag (where the bolt may already be gone)… but, the trigger that my D90 has being IR is quite responsive.

    Which brings me to another question, could the IR sensor on the camera be made to act like this? If it's waiting for the IR to IR trigger, why not for a flash?

    I'm no engineer, but this is an awesome project! 😀

  11. @thecolor: It is definitely possible to make it trigger the IR remote – I am already working on a simple one. It only requires the disassembly of the IR remote and hooking my device up with its button. Well, if you don't want to take your expensive one apart, there is always the option to get a cheap one – eBay is full of them.

    As for the camera's built in IR receiver: I'm afraid it won't work: Although it is sensitive to IR light, the circuit (and firmware) behind it expects a certain coded "message" that it can "understand". A single flash will not work. Just imagine your camera taking pictures every time somebody uses a flash in your vicinity 🙂

  12. @Anonymous: yes, you could probably do away without a microcontroller, but I kind of used this as a learning project for me – I am fairly new (not completely lost 🙂 though) with microcontrollers. It would probably also limit its usability – this way you can adjust its functionality should you come up with a new idea to use it for.

  13. I have a question: where can I buy one of your PCB boards? Do you just have one made per project? or do you mass produce them? Ive tried to prototype my own pcb for various projects but it is not economically feasable unless I have at least twenty made…

  14. @Joh: On the schematics have a look at LED3 and LED4 (trigger and meter, respectively). The same line goes to the two opto couplers, and in turn to the connector (X4). From this you can tell it's X4[1:2] is the metering and X4[3:4] is the trigger connection.

    I designed this part (primarily) with my camera's remote release cable in mind. It has 3 pins: GND, Meter, Trigger. The opto couplers' emitters go to the GND of the remote release cable and the rest is obviuos. On the Nikon D300 you can connect the two emitters with no problem. For other cameras you have the option to use copmletely separate circuits. That's why I made a terminal for all four lines.

  15. This is great idea! (especially on picking OPT101, never know about this IC! much more elegant way then using a regular photo transistor or CDS!)
    Gonna build one in a slightly different way! (by skipping the MCU, and do everything with analog circuit. hopefully to reduce lag time. )

  16. Anonymous

    What is the duration of a lightening flash and what is the delay from the beginning of the flash to the circuit being triggered? Will you loose a significant portion of the lightening ray? It could be better to stop way down for a long exposure and just wait for the flash.

  17. I am asking for the cost to send a complete unit minus the enclosure and the cable. I would need to know the wiring diagram for the cable. I have a "cheap" shutter release that I can use. Email will follow.

    Jacqueline Alkula
    Chillicothe, Missouri USA

  18. Sorry about the late reply – I was out of town.

    @Anonymous:
    The duration of a lightning usually is from a few hundred milliseconds up to more than a second. The delay of my camera (shutter lag) is 45ms, the delay of the circuit is next to nothing, so there is plenty of time for capturing the lightning. Your idea of a long exposure only works in total darkness (i.e. night). With my trigger you can take pictures also in daylight.

    @Jackie:
    Please send an e-mail to me for quotation – you can use the link towards the top of the article.

  19. You should be able to pick up a vintage replica volume or tone knob for a Fender Stratocaster on Ebay for a couple of dollars to replace the grey one. If you can get one that goes all the way to 11 that would be cool.

  20. good work !!
    But it's very complicated for a person who don't have good skills in electronics for create the assembly.
    You use the light detection technic, another technic exist, it's to detect the radio noise of the lightning.
    The advantage of the noise detection, it's that the noise is before the light and permit to win a few milliseconds from the lightning.
    That permit to take photo in day or during formation of the lightning.
    You can see this at : http://rienquepourlesyeux.free.fr/Detecteur%20de%20foudre/Lightning%20detector.htm
    It's very easy to make the assembly for all.

  21. @ThierryD: Sorry about the complexity – I can't help it. If you need a kit assembled I can make it for you.
    About the other method: Thanks for letting me know about the idea, I will try it!

  22. Anonymous

    Hallo
    I would like buy zeus-lighting trigger (in full built). Please send your e-mail to me.
    Perhaps I can offer something for photography (panoramic photo) what you will find interesting.
    My address is "kupeca&seznam.cz" Thank you.

  23. Have you tested it and it works?
    My experience is that the time required to trigger the camera is much larger than the time the lightning is "on".
    This is why people use long exposures and maybe stop the exposure after the lighting struck.

  24. Yes, it's been tested by many and it works.

    The time required to trigger the camera is a few tens of milliseconds, depending on the camera model. This device ands a few microseconds to it, which is negligible. A typical strike is made of 3 or more strokes (re-strike), and the total duration is from 100ms up to 1s, so even if you miss the first strike, you have plenty to catch after the initial one.

    Long exposures are, of course, a way of doing this, but you can only do that at night. With my solution you can catch them during daylight too.

  25. Anonymous

    Sorry, I cant read the text /components at your diagram.
    I se you sell all the components. What is your Price for a full set of
    components and your Price for a fully built and tested PCB?
    Thank You

  26. Anonymous

    Sorry, but I cant read the text/components at your diagram.
    I se you sell all the components. What is your Price for a
    full set of components and your Price for a fully built and testet PCB?
    Thank you

  27. Vitya, I understand that the purpose of this project is not necessarily the outcome, but more of the fact of just doing it. One thing that I would like to point out about photographing lightning is that this device is actually not necessary.

    You can photograph lightning by setting the camera to bulb and then keep the shutter open until you see a flash of lightning. The relative difference in the brightness of the lightning bolt and a much darker ambient light will allow you to get wonderful lightning shots.

    This is the method, 99% of all lightning pictures are taken. Also because it is on bulb and open for a few seconds to a few minutes you're able to capture multiple lightning strikes in one frame.

    Have you been able to use this device for other purposes?

  28. Pingback: DIY 3D Printed Camera Dolly with Pan and Tilt Head – Viktor’s DIY Blog

What do you think?

This site uses Akismet to reduce spam. Learn how your comment data is processed.