AS3935 SRCO clock off

The AS3935 seems to be basically working, but not detecting lightning. TRCO and the antenna are in decent ranges (TRCO = 33.587, Antenna is within 3.5%). However, the SRCO is consistently reading 39.398 KHz (not 1.1MHz).

I have calibrated the antenna and run the direct command (REG0x3D sending 0x98), both with the listening and power-down procedure - no change to the SRCO reading. The RCO check (0x3A & 0x3B, bit 6&7) are returning:

TRCO: 00

TRCO: Error:0 Success:0

SRCO: 01

SRCO: Error:1 Success:0

I have the sensor hooked up to a Raspberry Pi 3B+, running Python code.

The code is a customization based on

https://github.com/ironsheep/lightning- … 2HA-Daemon (stripped down to just SPI sensor).

Technical specs are per: https://www.embeddedadventures.com/data … _EN_v2.pdf

It is successfully reading and writing registers, sending frequencies to the interrupt pin. I can get Disturbances, but no lightning.

Am I missing something, or is there a problem with the sensor (SRCO)?

Test the default sketch https://learn.sparkfun.com/tutorials/sp … stallation and see if you get detections, then if so it’s likely a bug in the code