I recently built a Arduino lightning detector project and used it's recomended code. It works great, however the project needs to light a LED to indicate the lightning strikes. Currently, strikes are indicated on the display. Looking for assistance on how to write and add the necessary lines of code to fire a LED.
The sketch requires libraries; AS3935, I2C, and LCD5110_Basic, which is why I am providing the direct link to the sketch and necessary libraries.
Hi David
Looks interesting. I've sent you a PM about your request.
Regards
Ray
Lightning_Detector.ino (16.5 KB)
You've done all that, but you don't know how to light an LED?
Connect an LED's + side (long leg) to an unused pin via a 220 ohm resistor, and the - side to ground, and then set the pin HIGH with DigitalWrite() when you want the LED to turn on, and LOW when you want it to turn off.