I had a better look at the source change you proposed to get all lightning interrupts reported.
Just verifying that I do understand correctly:
Old source was:
if (AS3935IrqTriggered != 0)
{
Serial.println("Interrupt from lightining sensor");
//check interrupt source
delay(5); //wait so not to overflow the bus
int_src = lightX.AS3935_GetInterruptSrc();
if (int_src == 0)
{
Serial.println("IRQ source result not expected... (Ignoring this error)");
}
else
{
showScreen(81); //0:Boot, 1:Info screen, 2:Setup, 3:eCO², 4:Temperature 5:Pressure, 6:TVOC, 7:Humidity, 8:Lightning, 81:Lightning after interrupt, 9:Altitude
}
I see NO change here (may well be the temperature here making it hard to concentrate).
Looks to me that the second picture also shows the original source.
Did you mean to remove on the first picture the:
else
like this:
if (int_src == 0)
{
Serial.println("IRQ source result not expected... (Ignoring this error)");
}
// /BL remove the "else" so ALL IRQ interrupts are reported
// else
{
showScreen(81); //0:Boot, 1:Info screen, 2:Setup, 3:eCO², 4:Temperature 5:Pressure, 6:TVOC, 7:Humidity, 8:Lightning, 81:Lightning after interrupt, 9:Altitude
}
For sake of speed, I will run with this change, hoping some rain will take the temperature down while also triggering the lightning sensor.
Hi all!
With the coming thunderstorms we are investigating this further.
@Guus.Assmann: we have seen problems especially with plexi cases (VM211SE), because the plastic works as an insulator. The lightning sensor detects static discharge in the air so these should reach into the casing, but for better results you can mount the sensor externally.
It is always possible that there is a bug in the firmware, have a look at GitHub - Velleman/VM211_Firmware if you would like to investigate. We will release the lightning sensor as a separate product soon, together with the code on github so itâs easier to understand the workings.
@Pz83: that seems to be in order. Jumpers can be removed from the lightning sensor, you only need them if you want to connect the sensor via the SPI interface.
@bert.test: here are the lines that you need to change to let the sensor report everything:
Change this:
//check interrupt source
delay(5); //wait so not to overflow the bus
int_src = lightX.AS3935_GetInterruptSrc();
if (int_src == 0)
{
Serial.println(âIRQ source result not expected⌠(Ignoring this error)â);
}
else
{
showScreen(81); //0:Boot, 1:Info screen, 2:Setup, 3:eCO², 4:Temperature 5:Pressure, 6:TVOC, 7:Humidity, 8:Lightning, 81:Lightning after interrupt, 9:Altitude
}
AS3935IrqTriggered = 0;
to this:
//check interrupt source
delay(5); //wait so not to overflow the bus
int_src = lightX.AS3935_GetInterruptSrc();
showScreen(81); //0:Boot, 1:Info screen, 2:Setup, 3:eCO², 4:Temperature 5:Pressure, 6:TVOC, 7:Humidity, 8:Lightning, 81:Lightning after interrupt, 9:Altitude
AS3935IrqTriggered = 0;
Maybe safer is to use another arduino to experiment with.
Easiest would be buy a similar (or the same) âArduino ATmega2560â, but I do not know you financial situation (and do not want to know ).
If you already have another Arduino that would be easy.
After installing the gui, go to the github page of Velleman (as is very well documented in the VM211 manual), see: VM211 Earth Listener Manual
CODING.
The EarthListener is pre-programmed with all functionalities as described in the previous chapters. However, if you want to make sure you have the latest version, please visit our Github page on Velleman ¡ GitHub and look for the VM211 code.
Hope this gets you started and that the Earth Listener does report lightning and after that the weather calms down.
I do some clicking here and there I had uploaded the 3.4 version and before that I changed the code. Station is working again, but I need to wait for the thunderstorm
That is good news Przemek.
So status is you updated the software of the Earth Listener and changed it. Well done.
So we are now all waiting for the lightning to appear (hopefully not TOO near).
Thanks for Your help:)
The forecast says that thunderstorm is predicted for Saturday/Sunday for my town.
I shall see if the sensor will register any disturbances:)
At the rain predicting sites there is quite a complex traveling from Belguim to England so today it passes the Netherlands. But there is more on the way, so lets hope for a positive result.
Here in Lower Silesia in Poland we have warnings of 1st degree concerning heatwave and temperatures around 30-34 C from Friday to Sunday and also warnings about thunderstorms and hails. I hope there will be thunderstorm to see if the sensor works properly.
After the change, I would expect that a Piezo âSpark unitâ should give a reaction as well.
So a sigaret lighter (Not with a âfire stoneâ) would give a proper test unit.
@VEL342
If I have understood the Physics of Static electricity (also Lightning) correctly, a spark generates a radio-wave in a specific frequency band. The coil on the detection PCB is tuned to this band and picks up the signal. The amplitude, along with the shape of decreasing signal, represents the distance to the discharge.
So I donât understand how a wooden casing will influence this. Iâm not sure about the HF shielding properties of Plexiglass.
Maybe the Datasheet of the sensor will give some more clues?