For years I have longed to implement a version of Charles Wenzel's (Techlib) simple lightning detectors (main link for the latest versions, link to examples) as a fun and educational technology project, optionally (but not necessarily) using a Picaxe microcontroller. I built Charles' version using compound transistors but the results I got were rather meagre: I found it difficult to get the circuit to remain both very sensitive and stable, it tended to run into oscillation.

Instead I decided to use a more standard approach where the pulses generated by the magnetic field of the lightning strikes are caught by a Medium Wave ferrite coil (2 coils) tuned at a frequency of approx. 300kHz (an "empty" space in the upper LW area). These pulses are strongly amplified in a two-stage transistor amplifier and then  "digitized" using a standard mono-stable multivibrator which includes a flashed LED for visual proof of the strikes. This circuit then constitutes the core of a lightning detector, based on Philips EE only components.  In my microcontroller-specific design it is extended with a combo of  a Picaxe-14M2 microcontroller and a 7-segment display to give the user the proper statistics. A switchable audio unit (through the microcontroller) with a battery-friendly push-pull amplifier is included as well.

Shown here is a well-tested prototype. It appears to be both extremely stable and sensitive, in a first test two weeks ago it detected some strikes from approx. 100km distance (more to test in the more appropriate spring/summertime):

LD_V34_1.jpg

Here is the circuit diagram where the sections are annotated. Note that the 5V line is generated from Vcc using a 5V Low-Dropout (LDO) voltage regulator (the blue-ish component on the back of the picture), the audio stage runs at the full Vcc=9V. Nominal current consumption is 6-8 mA but may be occasionally more with high lightning intensity (awakening the display at each strike):

LD V3.5.png

In the current implementation, two MW coils are used in series with a 330p capacitor in parallel. At the possible loss of some sensitivity a single MW coil may be used as well of course (I will test this in a later stage).

The purpose of the Picaxe microcontroller is to:

  • Count the pulses, and show the count for a short while when either 1. a flash is registered or 2. the button is pressed shortly. Goal is to limit power consumption since the 7-segment display consumes a lot,
  • Enable/disable the speaker by toggling when the button (active LOW with a Picaxe pullup-resistor enabled) is pressed for a slightly longer period (400ms). The audio stage consumes very little power (<0.2mA) when disabled this way,
  • Flash the digital point (Kdp) of the display each second (using the Time variable) to show that the device is active and "listening".

A proper lightning event triggers the Picaxe using an interrupt. The interrupt routine itself is very small and executes quickly (as it always should), the main decisions and actions (also based on the pushbutton state) are taken in the main program body.

I do want to extend the Picaxe program with more capabilities, but this is already a good basis to start with and thoroughly test the circuit. The circuit parts are all standard and can be replaced by common and cheap alternatives (note that the detector diode is a germanium type, and I use a 150 Ohm speaker - from the Philips EE kit - but the amplifier accepts any type including 8 Ohm devices). I hope is gives inspiration and fun to fellow makers!  I intend to build the final version into a nice wooden box as I have done with my Picaxe-controlled bat- detector .... .

The Picaxe-14M2 program includes a lot of documentation - including the hardware connection description to the Common Anode 7-segment display and uses the 14M2 to 7-seg code snippet for its software implementation. The program, LT-Spice model and some pictures can be accessed here:

  • Picaxe-14M2 BASIC program: LD_V4_Picaxe.bas
  • LT-Spice model: link
  • Circuit diagram (screen snapshot of the LT-Spice model): link
  • Another picture of the prototype: link
  • A picture and the circuit diagram of an earlier version based on Charles Wenzel's circuit: picture, circuit

There are different options to either simplify or extend the presented hardware which makes this a fun project to develop yourself:

  • The 7-segment display option is a nice "luxury" implementation, but the same kind of information could be conveyed through the use of a few leds (and blinking rates) to limit power consumption
  • Charles Wenzel suggest a nice analog meter circuit alternative to the 7-segment display on an older page.