sandeepmistry / arduino-LoRa

An Arduino library for sending and receiving data using LoRa radios.
MIT License
1.62k stars 621 forks source link

LoRa failed to initialize- how to debug? #37

Closed clongbottom closed 6 years ago

clongbottom commented 6 years ago

I have an AI-Thinker RA-02 (SX1278) on a LoRa32u4 board, which won't initialise. I've tried multiple modules and checked the pins are correct using LoRa.setPins()

How can I debug why it's not working?

For others with the LoRa32u4 I followed the following tutorial as I received it with no information!

https://goo.gl/kSGfyB

clongbottom commented 6 years ago

Okay seconds after posting I figured out my issue.

For anybody else using the RA-02 module on a LoRa32u4, the NSS pin is actually on digital 8, not digital 1 as the tutorial suggests.

It now seems to work fine.