SparkFun_AS3935_Lightning_Detector_Arduino_Library icon indicating copy to clipboard operation
SparkFun_AS3935_Lightning_Detector_Arduino_Library copied to clipboard

AS3935 Stroke integration threshold does not seem to work.

Open rpbgit opened this issue 9 months ago • 0 comments

Have 3935 running fine on SPI bus. And most everything seems like its working well.

I am now tuning some parameters and it appears the Strike Theshold does not seem to work.

i have a lightning simulator that indeed generates lightning strokes as expected. however, no matter what i set the strike threshold register bits to (values of 0x00-0x03), the first strike causes the interrupt request to be asserted to the micro.

i would have expected that the INTR line would be negated until the threshold count is exceeded.

Reading the INT source register (ISR) negates the INTR pin as expected. I am waiting 2ms from INTR recognition to reading of the ISR as spec mandates. is clearing of the integration stats require in the ISR? manually doing a clear statistics does not change the bahavior.

i have the Disturber mask set to prevent INTR from that source and the noise floor is set so that no noise events are generated. Yet still, the first strike created by my strike generator board results in the INTR pin being asserted.

why is this not working ? have i mis-interpreted the spec documents?

rpbgit avatar Feb 15 '25 19:02 rpbgit