I purchased the “esp32 course” because I am very interested in the LoRa module.
I saw your tutorial on Lilygo’s LoRa, which is the same one I use, but in your course you use another model. Can you help me understand how to configure my model too? Or how to send and receive the inputs?
Thank you Tiziano
1 Answers
Hi.
Do you have this model? https://randomnerdtutorials.com/ttgo-lora32-sx1276-arduino-ide/
You just need to take into account the pinout of the board.
You need to define the pins of your LoRa module:
//define the pins used by the LoRa transceiver module
#define SCK 5
#define MISO 19
#define MOSI 27
#define SS 18
#define RST 14
#define DIO0 26
And then, include these lines to initialize the module with those pins:
//SPI LoRa pins
SPI.begin(SCK, MISO, MOSI, SS);
//setup LoRa transceiver module
LoRa.setPins(SS, RST, DIO0);
I hope this helps.
Regards,
Sara