Projects / Ideas / Thunderstorm light-flash counter

Thunderstorm light-flash counter

IntermediateEnvironmentIdeaReviewed
In short

How do you build a thunderstorm light-flash counter?

A fast photodiode spots lightning flashes at night and a microphone times the thunder, so the logger estimates how far away each strike was. You need Arduino Nano, Photodiode BPW34, LM358 Op-Amp, MAX4466 microphone module, Resistor 100 kΩ × 2, Resistor 10 kΩ, MicroSD Card Module and DS3231 RTC module.

Level
Intermediate
Time
About 180 min
Parts
8
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

Time two events with millis(), use the speed of sound for distance and reject false triggers.

Parts list

How to build it

  1. Build a photodiode amplifier with the LM358 and feed it to an analog pin
  2. Detect a sudden jump in light against a slowly tracking baseline
  3. Start a timer at the flash and stop it at the next loud sound on the microphone
  4. Distance in km = seconds × 0.343
  5. Log time, delay and distance to the SD card

Related projects

Common questions

What parts do I need for the thunderstorm light-flash counter?

Arduino Nano, Photodiode BPW34, LM358 Op-Amp, MAX4466 microphone module, Resistor 100 kΩ × 2, Resistor 10 kΩ, MicroSD Card Module and DS3231 RTC module.

How long does the thunderstorm light-flash counter take to build?

About 180 minutes for a intermediate maker.