Flash Bee : Handheld Lightning Sensing and Ranging Device
by gokux in Circuits > Sensors
10745 Views, 83 Favorites, 0 Comments
Flash Bee : Handheld Lightning Sensing and Ranging Device
Imagine you’re setting out for a hike on a clear day, with no indication of an approaching thunderstorm. However, by the time you reach the summit of the mountain, the weather changes unexpectedly, leaving you exposed without any warning.
With Flash Bee, you no longer have to rely on guesswork. You can keep it in your backpack or clip it to your gear, and it will continuously monitor lightning activity in your vicinity. If a storm begins to form nearby, the device detects lightning strikes in real time and indicates their distance from you, providing an early warning before conditions become dangerous.
Here are the features of the device Flash Bee
- Detecting thunderstorms from up to 40KM with 1km accuracy within seconds
- Detects both cloud-to-ground and cloud-to-cloud (intra-cloud) activity.
- Measures the number of strikes
- Measures the strength of the strikes
- Strike energy history indicates the strength of the few previous strikes.
- 6-7 hrs battery life with USBC Charging
- over the head strike warning
Flash Bee utilizes the AS3935 lightning sensor, a specialised chip designed to detect the electromagnetic signature of lightning. This data is processed by the XIAO ESP32C3 microcontroller, which analyzes the sensor information and displays the results on the round display of the XIAO. The device can sense lightning activity from up to 40 km away, allowing you to track storms well before they reach your location. It has a 400 mAh rechargeable battery, providing up to 6-7 hours of operation with a single charge. Additionally, there is space to accommodate a larger battery if desired.
This device is also incredibly useful in open environments such as football fields, golf courses, or any outdoor activities where immediate shelter may not be available. Rather than waiting to hear thunder or relying on unreliable network-based weather updates, you receive instant, real-time detection from your surroundings.
One of its most powerful features is the ability to track storm movement.
This clearly indicates that the storm is moving toward you. Conversely, if the distance increases, you'll know the storm is moving away.
Since Flash Bee detects real lightning signals instead of using internet data, it delivers faster, more localized, and more reliable updates than most weather apps, making it an essential tool for outdoor safety.
In this instructable, we will explore how the sensor works, how to build one yourself, and how to use it effectively. Let's get started!
Supplies
- Grove Lightning Sensor AS3935
- Round Display for Seeed Studio XIAO
- Seeed Studio XIAO ESP32-C3
- 902025 3.7V 400mAh LiPo battery
- Slide switch
- 2*M2x5mm
- 2*M3X10mm
- Connecting wires
- B7000 Glue
How Does the AS3935 Know Before You Do?
Here’s how it works:
When lightning strikes, it produces not only light and thunder but also generates electromagnetic waves (radio signals), particularly in the low-frequency range of around 500 kHz. The AS3935 uses a small inductor, also known as an antenna coil, to capture these signals from the air. Inside the chip, a sophisticated algorithm filters out unwanted noise and differentiates real lightning from false signals caused by electrical interference. It then analyzes the strength of the signal to estimate the distance to the lightning and sends an alert to the microcontroller.
Since electromagnetic waves travel at the speed of light, while the sound of thunder takes time to reach your ears, the sensor can warn you about an impending storm before you are even aware of it. Additionally, the sensor can evaluate the strength of the signal to provide an understanding of how powerful the strike was.
Design and 3D Printing
I used Fusion 360 to create this project and chose a yellow and black theme for good contrast. I utilised models of the components available on GrabCAD, which made the entire process much easier. After designing, I exported all the models in STL format for 3D printing. You can find all the STL files attached below.
Wiring Diagram
Here is the wiring diagram for this project. This will be helpful for the assembly along the way.
Grove Lightning Sensor AS3935 Prep
Before starting the assembly, we need to do some preparation,
We can start by removing the JST connector. After that, solder and short the following pads
- 0-3V PAD
- REG PAD
- CS PAD
- SI1 PAD
All of these pads are soldered for configuring the I2C and voltage selection
After that cut and solder 4 wires to PCB pads after JST connector removal
Round Display for Seeed Studio XIAO Prep
To connect the round display for the Xiao ESP32-C3, follow these steps:
1. Ensure that the power switch on the display control board is turned on.
2. Solder the sensor wires to the Xiao as follows:
- D4 to SDA.
- D5 to SCL.
- 3V3 to VCC.
- GND to GND.
Power Switch and Battery
Place the power switch into the 3D-printed slot. Place the battery in the bottom of the enclosure and use some glue to secure the battery in place. Solder the battery's positive wire to one terminal of the battery.
Power Source for the Round Display Driver
The round display for Xiao supports a JST 1.25 connector for adding a battery. However, during the build, I didn't have a battery with the JST connector. As a result, I had to cut and solder the battery wires to the JST connector terminals. I connected the positive wire from the power switch and the negative wire from the battery to the corresponding JST pins.
Additionally, please note that due to the use of the external power switch, the device needs to be powered on in order to charge the battery.
Enclosure
Now we are done with all the wiring. Place the sensor on the main body and use some glue to secure the sensor in place. After that, place the display assembly, making sure the USB-C port is visible.
Sensor Antenna Cover
Apply some glue and place the antenna over the sensor
Front Cover Assembly
Place the front cover on top of the main body and glue the decorative 3D print on top of it. On the back side, use M2 screws to fix the round display and M3 screws for the enclosure.
Flashing the Firmware
We have completed our assembly. Now, let's flash our firmware onto it.
To use round display, we need to install two libraries in advance. One is the round display device driver library, which is used to drive the screen and touch functions of the device. The other is the graphics display library, which provides some very common interfaces for drawing graphics.
Download the Seeed_Arduino_RoundDisplay library from GitHub:’
https://github.com/Seeed-Studio/Seeed_Arduino_RoundDisplay
Download the Seeed_GFX library from GitHub:
https://github.com/Seeed-Studio/Seeed_GFX
Install the library by adding the ZIP file in Arduino IDE. Go to Sketch > Include Library > Add .ZIP Library and select the downloaded ZIP file.
main code
Also, create a driver.h file with it
flash the code and we are good to go
Testing
The device can be powered up using a slide switch. After booting, the device will tune its antenna, auto-adjust its gain, and start looking for the signal.
The weather can be unpredictable, While I was developing the code, a thunderstorm was occurring in my area, and I tested the code during that time. It was working perfectly, and the results were being processed in the serial monitor, so I was 100% confident that the code would function properly. However, after compiling the build, it turned out to be a sunny day! :)
Additionally, testing the device sensors and components is quick when using a gas lighter. A gas lighter (specifically a piezoelectric lighter) generates a high-voltage spark through mechanical force. This electric spark can be detected by sensors at close range, making it a practical test to confirm that the device is working effectively.
Final Thought
Flash Bee is more than just a gadget—it’s a practical safety tool designed for real-world uncertainty. Weather can change in minutes, especially in open or elevated environments, and relying on distant forecasts or delayed alerts isn’t always enough. By detecting lightning activity directly from your surroundings, Flash Bee gives you the awareness you need, exactly when you need it.
Whether you're hiking up a mountain, playing on an open field, or working outdoors, this device adds an extra layer of confidence and preparedness. It turns invisible atmospheric signals into clear, actionable information—helping you make safer decisions before a storm becomes a threat.
And the best part? It’s something you can build, customize, and improve yourself. This project is not just about detecting lightning—it’s about combining electronics, design, and real-world problem solving into something truly useful.