Development of Lightning Detector Based on the AS3935 Sensor
Abstract
Abstract. This paper presents the development and experimental validation of a portable lightning detector based on the AS3935 sensor and an ESP32-S3 microcontroller platform. The study addresses the increasing need for affordable and mobile devices capable of early detection of atmospheric electrical discharges under conditions of rising extreme weather events. After analyzing the existing industrial and research solutions, the AS3935 radio-frequency sensor was chosen due to its high sensitivity, low power consumption and built-in noise rejection algorithms. A complete hardware and software system was designed and implemented, including the schematic of the device, data acquisition and signal processing routines, and an OLED display for real-time user notification. The event-driven software architecture enables efficient power usage by placing the microcontroller in a standby mode until an interrupt from the sensor occurs. The device can distinguish between real lightning discharges and electrical disturbances, estimate the distance to the lightning source up to 40 km and display corresponding messages such as “Lightning detected” or “Disturber detected”. User interaction is simplified to three stages: power connection and automatic system initialization, continuous background monitoring, and optional manual enabling or disabling of detection via the BOOT button with instant visual feedback on the display. Prototype testing confirmed correct functioning, reliability, and suitability for field use. The proposed system can be applied by farmers, emergency services, tourists, and power facility operators to enhance safety and preparedness. Future work will focus on integrating GPS and cloud connectivity for remote monitoring and adding mobile application support, thereby extending the functionality of the detector.
References
2. Lighting & Thunderstorm – World Map. URL: https://www.blitzortung.org (Last accessed: 08.05.2025).
3. Da Silva T. A., Serrano A. L. M., Figueiredo E. R. C., Rocha Filho G. P., De Mendonça F. L. L., Meneguette R. I., Gon-çalves V. P. New model for weather stations inte-grated to intelligent meteorological forecasts in Brasilia. Sensors. 2025. Vol. 25, № 11. P. 3432. DOI:10.3390/s25113432.
4. Mialdea-Flor I., Segura-Garcia J., Felici-Castell S., Garcia-Pineda M., Alcaraz-Calero J. M., Navarro-Camba E. Development of a low-cost iot system for lightning strike detection and location. Electronics. 2020. Vol. 8, № 12. P. 1512. DOI:10.3390/electronics8121512.
5. Yoon Y.-H. Operation of PV power generation facilities using lightning detectors. The transactions of the korean institute of electrical engineers. 2022. Vol. 71, № 12. P. 1868–1873. DOI:10.5370/kiee.2022.71.12.1868.
6. Nerella O., Ahmed S. M. Deployment of LoRa based lightning safety awareness and alert system with announcement in remote areas. 2023 IEEE 5th International Conference on Cybernetics, Cognition and Machine Learning Applications (ICCCMLA), Hamburg, Germany, Oct. 07–08, 2023. P. 621–625. DOI: 10.1109/ICCCMLA58983.2023.10346755.
7. Afanasiev V., Fustii V., Kompaniiets O., Maksymov M., Afanasiev Y., Tymochko O. Synthesis method for sensor systems and UAVs in the problem of monitoring lightning. 2022 IEEE 9th International Conference on Problems of Infocommunications, Science and Technology (PIC S&T), Kharkiv, Ukraine, 2022. P. 315–319. DOI: 10.1109/PICST57299.2022.10238485
8. Zhang L., Zenget J.-Q., Cai M., Lv T., Lai Q. Study on the construction of lightning protection and safety supervision system in fujian. Advances in intelligent systems and computing. Cham, 2020. P. 147–152. DOI:10.1007/978-3-030-00214-5_19.
9. Nerella O., Ahmed S. M., Balakrishnan P. Experimental evaluation of lightning and weather alert methods in rural india using lora and iot technology with nanosensors. Journal of nanomaterials. 2024. Vol. 20. P. 1–18. DOI: 10.1155/2023/7734847.
10. Arshad N. S., Abdullah M., Samad S. A., Abdullah N. High intensity lightning recognition system using very low frequency signal features. Journal of atmospheric and solar-terrestrial physics. 2020. Vol. 216 P. 105520. DOI: 10.1016/j.jastp.2020.105520.
11. AS3935 Franklin Lightning sensor. Tasmota. URL: https://tasmota.github.io/docs/AS3935/ (Last accessed: 02.06.2025).
12. Heilmann A., Silva E., Tertuliano Filho H., Schuhmann J. C., et al. Detection efficiency analysis of atmospheric discharges using AS3935 Sensor : Data correlation of LINET network. 2019 International Symposium on Lightning Protection (XV SIPDA), Sao Paulo, Brazil, 2019. P. 1–7, DOI: 10.1109/SIPDA47030.2019.8951657.
13. Extreme weather monitoring with special-ized sensors. Hackster.io. URL: https://www.hackster.io/bluetiger9/extreme-weather-monitoring-with-specialized-sensors-da426f (Last accessed: 08.05.2025).
14. Gravity: Lighting Sensor SKU: SEN0290 - DRFobot. URL: https://wiki.dfrobot.com/Gravity: Lightning Sensor SKU: SEN0290 (Last accessed: 08.05.2025).
15. AS3935 lightning detector hookup guide (v20). SparkFun URL: https://learn.sparkfun.com/tutorials/sparkfun-as3935-lightning-detector-hookup-guide-v20 (Last accessed: 03.06.2025).
16. SparkFun Electronics. Product showcase: sparkfun lightning detector, 2019. YouTube. URL: https://www.youtube.com/watch?v=txJ-x6xisYY (Last accessed: 08.05.2025).
17. SwitchDoc Labs. Tuning the as3935 lighting detector – the thunderboard, 2019. YouTube. URL: https://www.youtube.com/watch?v=fTEEDfWbGEU (Last accessed: 08.05.2025).
18. Esp32 solar weather station-v1 – share project – pcbway. China PCB Prototype & Fabrication Manufacturer – PCB Prototype the Easy Way. URL: https://www.pcbway.com/project/shareproject/Esp3
2_Solar_Weather_Station_V1_4561b818.html (Last accessed: 08.05.2025).
19. GitHub – evsc/thunderandlightning: let's sense lightning and make thunder. with the AS3935 franklin lightning sensor™ IC. GitHub. URL: https://github.com/evsc/ThunderAndLightning (Last accessed: 08.05.2025).
20. GitHub – shred/kaminari: AS3935 and ESP8266 based Franklin Lightning Detector. GitHub. URL: https://github.com/shred/kaminari (Last accessed: 08.05.2025).

This work is licensed under a Creative Commons Attribution 4.0 International License.
