
1 / 4 · Click to enlarge
AI Summary
A compact Gravity I2C module that detects lightning and estimates strike distance up to 40 km using the AS3935 sensor IC and a dedicated antenna. Built-in disturber rejection helps keep readings usable indoors and outdoors.
Key Highlights
- Detects lightning activity within a 40 km radius
- Estimates distance in 15 steps, 1 to 4 km resolution
- AMS AS3935 sensor IC with Coilcraft MA5532-AE antenna
- Gravity I2C interface, logic level 0 to VCC
- Three selectable I2C addresses: 0x03, 0x02, 0x01
- Compact 30.0 x 22.0 mm board for embedded builds
Ideal For
- Weather station builders measuring local thunderstorm activity
- Makers building outdoor early-warning wearables for climbers
- Photographers automating lightning shutter triggers
- Engineers protecting lightning-sensitive indoor equipment
- Arduino and Raspberry Pi users adding environmental sensing
Buying Tip
Plan for the 15-step, 1 to 4 km distance resolution: use the sensor to judge how close a storm is, not to measure an exact strike distance.
Elecvora expert review
Our verdict
A tidy, well-integrated lightning sensor for the price, with the AS3935 IC, antenna and Gravity connector already combined on one small board. It is best treated as a storm-proximity and event sensor rather than a precision distance meter, because the 1 to 4 km resolution is coarse by design.
AI-assisted analysis based on the manufacturer's specifications. Not a hands-on lab test.
Pros
- Ready-to-use AS3935 sensor with dedicated antenna on one board
- Wide 40 km detection range in a 30 x 22 mm footprint
- Gravity I2C connector and three selectable addresses
- IRQ pulse enables shutter or power-switching triggers
- Disturber rejection helps in indoor installations
Cons
- Distance resolution of 1 to 4 km limits precision
- Requires a separate host controller and Gravity-compatible cabling
- Indoor electrical noise can still affect readings despite filtering
Best for
Makers and weather enthusiasts wanting lightning proximity and event detection in Arduino or Raspberry Pi projects
Not ideal for
Anyone needing exact strike distances or a standalone weather station without a controller
Specifications
| Voltage Rating (V) | 3.3 to 5.5 |
|---|---|
| Detection range | 40 km |
| Distance resolution | 1~4 km |
| I2C Address | Three options 0x03, 0x02, 0x01 |
| Interface | Gravity I2C (logic level: 0-VCC) |
| Overall Dimension | 30.0mm*22.0mm/1.18*0.87 in |
| Shipping Weight | 0.013 kg |
| Shipping Dimensions | 6 × 5.5 × 2.5 cm |
What's in the box
- 1 x Gravity Lightning Sensor
Frequently Asked Questions
How far away can this sensor detect lightning?
How accurate is the distance reading?
What voltage does the board need?
Can I connect more than one sensor to the same bus?
Does it work indoors?
What is included with the sensor?
Overview
The DFRobot Gravity Lightning Distance Sensor is a small sensor board built around the AMS AS3935 Franklin lightning sensor IC and a dedicated Coilcraft MA5532-AE antenna. It listens for lightning activity and reports both the intensity of the event and an estimate of how far away the strike is, within a radius of up to 40 km. The board connects through DFRobot's Gravity I2C interface, so a single cable carries power and data to your controller.
An embedded man-made disturber rejection algorithm helps the sensor ignore electrical noise produced by household appliances, which makes it practical for indoor installations as well as outdoor monitoring. Because the board is compact and the detection range is wide, it fits into small enclosures and wearable prototypes without much space.
Key Features
- Lightning detection within a 40 km radius, reported in 15 steps
- Lightning intensity detection alongside distance estimation
- Works both indoors and outdoors
- Embedded man-made disturber rejection algorithm
- Interrupt pin IRQ generates a pulse at the moment of a lightning event
- Three selectable I2C addresses for multi-sensor setups
Specifications Explained
Voltage rating 3.3 to 5.5 V means the board can be powered from common 3.3 V and 5 V logic systems, and the Gravity I2C logic level follows VCC from 0 V to VCC.
Detection range up to 40 km covers the distance at which the sensor can estimate a strike. Distance resolution of 1 to 4 km is a limit of the measurement method and algorithm rather than a fault: the 40 km span is divided into 15 steps, so treat the output as a distance band, not a precise figure.
I2C addresses 0x03, 0x02 and 0x01 let you place more than one sensor on the same bus and address each one separately. The board measures 30.0 x 22.0 mm (1.18 x 0.87 in).
Compatibility and Requirements
The sensor uses the Gravity I2C interface with a logic level of 0 to VCC, and the supplied voltage must stay within 3.3 to 5.5 V. You need a host controller with an I2C bus, such as an Arduino or Raspberry Pi board, plus a Gravity-compatible cable or adapter to connect it. DFRobot publishes a wiki page with wiring and example code for both Arduino and Raspberry Pi, which is the place to check for library details and demo sketches.
Typical Uses
- Consumer weather stations measuring local thunderstorm activity
- Wearable devices giving outdoor thunderstorm early warning
- Indoor protection devices for lightning-sensitive equipment
- Lightning photography, using the IRQ pulse to trigger a shutter
For photographers, the interrupt pulse at the instant of a strike can be used to open a shutter, helping capture the event precisely. For equipment protection, the same pulse can trigger a device to switch to backup power and isolate the grid.
What's in the Box
Package includes 1 x Gravity Lightning Sensor.


Quick specs
- Voltage Rating (V)
- 3.3 to 5.5
- Detection range
- 40 km
- Distance resolution
- 1~4 km
- I2C Address
- Three options 0x03, 0x02, 0x01
- Interface
- Gravity I2C (logic level: 0-VCC)
- Overall Dimension
- 30.0mm*22.0mm/1.18*0.87 in


















