LoRa will not start

Hello Guys, hope all is well. This is my first post.

I have a ‘HELTEC 915 ESP32 LoRa OLED Board V3 Type-C SX1262 + 915MHz LoRa Antenna U.FL IPEX to SMA for Arduino IOT LoraWan Gateway, not Compatible with LoRa 32 V2’.

I am trying to run the sketch that is under ‘Demo 1 – Simple Data Transfer’ ( https://dronebotworkshop.com/lora/ )

I exactly copied this sketch on both my boards and uploaded them via my Arduin IDE. It compiled fine.

The probelm is that the Serial monitor on the Arduino IDE keeps telling me that there is an issue.

The Sender’s serial monitor says:

(����u#��!�LoRa Sender Test
Starting LoRa failed!

The receiver’s serial monitor says:

(��L��DJ�LoRa Receiver Test
Starting LoRa failed!

Those jumbled characters in both serial outputs sometimes mean that there is a Serial communcaiton issue. But, I have checked the baud rates on the sketch and the serial monitor and they are the same.

I feel that my csPin, resetPin, irqPin are not the correct pon numbers.

This is what they say on the sketch: ( The sketch is at the end below )
const int csPin = 4; // LoRa radio chip select
const int resetPin = 2; // LoRa radio reset
const int irqPin = 3; // Must be a hardware interrupt pin

I looked all over the internet and also referred to the schematic below that is provided by Heltec.

image

I changed my pins to:

const int csPin = 8; // LoRa radio chip select

const int resetPin = 12; // LoRa radio reset

const int irqPin = 14; // Must be a hardware interrupt pin

The problem still persists even after changing the pin numbers.

I was wondering if someone could give me some feedback.

Thank you for your reply!

#include <SPI.h>
#include <LoRa.h>

const int csPin = 8; // LoRa radio chip select
const int resetPin = 12; // LoRa radio reset
const int irqPin = 14; // Must be a hardware interrupt pin

void setup() {

Serial.begin(9600);

while (!Serial);

LoRa.setPins(csPin, resetPin, irqPin);
Serial.println(“LoRa Receiver Test”);

if (!LoRa.begin(915E6)) {
Serial.println(“Starting LoRa failed!”);
while (1);
}
}

void loop() {
int packetSize = LoRa.parsePacket();
if (packetSize) {
Serial.print(“Received '”);
while (LoRa.available()) {
Serial.print((char)LoRa.read());
}
Serial.print("’ with RSSI ");
Serial.println(LoRa.packetRssi());
}
}

It looks like you’re using the wrong software. The LoRa.h library that you are using does not support the SX1262 LoRa chip. You should look at the examples provided in the IDE for the V3 module(s). You need to be using either the Heltec LoRaWan_APP library or something like the Radiolib library (there are plenty of posts on this forum about these if you search for either) and they have an entirely different call structure to the LoRa library, which was compatible with the V1 and V2 modules ( which used the SX1276 LoRa chip).