Lightning Detector As3935
Rs. 1,900.00 Rs. 2,280.00
- Brand: https://ams.com/
- Product Code: SEN-LIGHTING
- SKU -
- Availability: In Stock
- Price in reward points: 27
- For Bulk Order 9962060070
Quick support on WhatsApp (+919962060070) only between morning 11am-4pm, no call will be answered
SPECIFICATIONS:
-Lightning Sensing
-Programmable Detection Levels
-Distance to storm estimation
-"Disturber" (false event) rejection algorithm
-Indoor and Outdoor Settings
-SPI Interface
-Operating Range
-Supply Voltage: 2.4V - 5.5V
OVERVIEW:
-Lightning sensor warns of lightning storm activity within a radius of 40km
-Distance estimation to the head of the storm down to1km in 14 steps
-Detection of both types of lightning phenomena Detects both cloud-to-ground and intra-cloud
-(cloud-to-cloud) flashes
-Embedded man-made disturber rejection algorithm
-Programmable detection levels enable threshold
-setting for optimal controls
-SPI and I²C interface is used for control and register reading
PACKAGE INCLUDES:
1 PCS x Lightning Detector As3935
https://ams.com/
//SOURCE CODE TAKEN FROM BELOW LINK
//https://www.14core.com/wiring-the-franklin-as3935-i2c-spi-storm-lightning-detection-sensor-on-microcontroller/
#include "AS3935_I2C.h" //Include AS393_i2C Library can be downloaded below
volatile int8_t ISR_Trigger = 0; // interrupt trigger global var
#define SI_PIN 9 //Set SI pin here
#define IRQ_PIN 2 // digital pins 2 and 3 are available for interrupt capability
#define AS3935_ADD 0x03 // x03 <-- you can use i2C scanner to see the i2c address
#define AS3935_CAPACITANCE 72 // <-- SET THIS VALUE TO THE NUMBER LISTED ON YOUR BOARD
#define AS3935_INDOORS 0 // Set to enabled for Indoor Used
#define AS3935_OUTDOORS 1 // Set to enabled for Outdoor Used
#define AS3935_DIST_DIS 0
#define AS3935_DIST_EN 1
void AS3935_ISR();
AS3935_I2C lightX((uint8_t)IRQ_PIN, (uint8_t)SI_PIN, (uint8_t)AS3935_ADD);
void setup()
{
Serial.begin(115200);
Serial.println("14CPRE | AS3935 Lightning Sensor Test");
Serial.println("Starting...................");
delay(2000);
I2c.begin(); // Set i2C Libr Enable pullups set to 400kHz speed
I2c.pullup(true); //Set i2C pUll up
I2c.setSpeed(1); //Set speed to 1
delay(2); // Delay
lightX.AS3935_DefInit(); // set registers to default
lightX.AS3935_ManualCal(AS3935_CAPACITANCE, AS3935_OUTDOORS, AS3935_DIST_EN); //
attachInterrupt(0, AS3935_ISR, RISING);
lightX.AS3935_PrintAllRegs();
ISR_Trigger = 0; // clear trigger
}
void loop()
{
while(0 == ISR_Trigger){}
delay(5);
ISR_Trigger = 0; // reset interrupt flag
uint8_t int_src = lightX.AS3935_GetInterruptSrc();
if(0 == int_src)
{
Serial.println("IRQ source result not expected");
}
else if(1 == int_src)
{
uint8_t lightning_dist_km = lightX.AS3935_GetLightningDistKm();
Serial.print("LIGHTNING DETECTED > Distance to strike : ");
Serial.print(lightning_dist_km);
Serial.println("kilometers");
}
else if(2 == int_src)
{
Serial.println("DISTRUBER DETECTED >");
}
else if(3 == int_src)
{
Serial.println("NOICE LEVEL TO HIGH >");
}
lightX.AS3935_PrintAllRegs(); // Set for debug
}
void AS3935_ISR() //IRQ Handler for AS3935 Interrupts, set to return void take no arg.
{
ISR_Trigger = 1;
}
15 days