Hi all,
I'm writing because I'm having trouble getting my Thunder Click to work with my Feather M0 LoRa.
I know the Thunder Click exploits the AS3935 lightning sensor and therefore I've been trying to use these libraries and the respective examples with the following results:
The only modification I applied to both sketches was to change the interrupt pin value according to the one I linked with the Thunder Click's IRQ (i.e. pin 11, which I know from previous experience works for interrupts).
I used the following pin mapping for both examples:
Feather ThunderClick
3V3 3V3
GND GND
SDA SDI
SCL SCK
11 IRQ
I'm a newbie to this stuff and I'm still kind of confused regarding SPI and I2C configurations: I know the AS3935 supports both, but I still haven't figured out if this applies to the Thunder Click too or if it only supports SPI.
Thanks in advance and sorry if I didn't explain myself very well, obviously I can provide more info if needed.
Unfortunately the Feather M0 LoRa CS pin is used for the LoRa module control (as shown in the pinout i linked in my first post), and even if I wanted to use it I can't find the reference to the physical pin in the pinout picture.
Also for the I2C configuration the CS pin shouldn't be required, but as I said before I still haven't figured out if I2C is supported or not.
Overall I'm finding many difficulties with this task since there is very little documentation about this Thunder Click module and how to use it, especially if it has to be used without the mikroBUS interface (as in my case).
I think perhaps you missunderstand how the Arduino works with SPI. Normally any avaialble IO pin, that can be set as an output, can be used for the SPI devices CS pin.
mikroBUS is not an 'interface' its just a way of arranging the pins for a device into a standardised physical layout.
Have you asked Mikroelectronica for help, they are the ones selling and presumably making money out of the Thunder Click ?
Thanks for the clarification regarding the SPI mechanism and the CS pin, I'll run again the example sketch keeping that in mind and I'll update this post with the results.
I still haven't tried asking Mikroelectronica for help since I found out from other support requests posted on their site that they only provide support for their boards, so I'm almost sure that they wouldn't help me.
masoo:
I still haven't tried asking Mikroelectronica for help since I found out from other support requests posted on their site that they only provide support for their boards, so I'm almost sure that they wouldn't help me.
The thunder click is one of Mikroelectronicas boards.
Yes I didn't express myself very well, what I meant to say is that since I'm using the Feather M0 LoRa as the main board they don't provide support to make their board work using a Feather M0 (as seen in this post).