AS3935

Hello All,

I'm trying to gather a MicroBus shield AS3935 with Adafruit's datalogger shield (RTC + SD card) but without success. Each components run very well, but when I try to build all components together, the result is nothing.

I'm working with an Uno SMD3 and IDE 1.6.5.

Until the Setup, everything is right: The SD card is initialized, the record file is open and close, and the AS3935 is calibrated.
But in the loop it's finished, nothing happen, and nothing could be recording...

CS 9 for AS3935 shield
CS 10 for SDcard shield
Int1 (pin3) for interrupt
the RTC SQW is just used to blink.

This sketch is an hurdle for me but I hope for someone a simple issue...

Best regards

AS3935_datalogger.ino (6.97 KB)

KFMAKR:
Each components run very well, but when I try to build all components together, the result is nothing.

So I interpret this to mean that your results are something like:

| Hardware | | | Sketch | | | Result |
| - | - | - | - | - |
| ----------------------- | | | ------------------------- | | | ---------- |
| AS3935 | | | AS3935.ino | | | Success |
| datalogger | | | datalogger .ino | | | Success |
| AS3935 + datalogger | | | AS3935_datalogger.ino | | | Fail |

Does the code that worked on each shield individually still work when both shields are attached? By which I mean:

| Hardware | | | Sketch | | | Result |
| - | - | - | - | - |
| ----------------------- | | | ------------------------- | | | ---------- |
| AS3935 + datalogger | | | AS3935.ino | | | ? |
| AS3935 + datalogger | | | datalogger .ino | | | ? |

The both configurations are running well.

Hardware Sketch Result
AS3935 + datalogger AS3935.ino Success
AS3935 + datalogger datalogger .ino Success

In fact I'm wondering if there is not a conflict with the specific SPI mode which is required for AS3935 and this which is need by SD-card?

I confirm...
The AS3935 component need to work with SPI_MODE1
I never change something for SD card, so normally it's working with SPI_MODE0

Is there someone to confirm ?
What can i do ?