How to Connect AS3935 Lightning Sensor to Raspberry Pi

CJMCU-3935 AS3935

Local Hazard Warning System

In order to make a Local Hazard Warning System, I bought a few different sensors in the previous post. I decided to try the Lightning Strike Distance Sensor (AS3935, CJMCU-3935) using I2C protocol.

Introduction Video

What is Lightning Distance Sensor?

The AS3935 or CJMCU-3935 lightning distance sensor detects the presence and approach of potentially hazardous lightning activity in the vicinity and provides an estimation on the distance of the storm.

You can find out more by Searching CJMCU-3935 Datasheet.

Find Lightning Sensor on eBay >>

Connecting to Raspberry Pi

We need 8 wires to connect this device to a Raspberry Pi using the I2C protocol.

AS3935 connection to Raspberry Pi via I2C protocol

The 3v signal to “SI”, “ADD0” and “ADD1” are required for Raspberry Pi to recognise it as an I2C device.

CJMCU-3935 datasheet pin section

Test I2C Connection

Run following command to check current I2C devices.

i2cdatect -y 1

This device should be under “03” if successful.

I2C detect result showing devices 03 and 27 are detected

What’s Next?

The device is connected and recognised as an I2C device. However, how do you test this device? Wait for a thunder storm to come?