Why isn't my LoRa module working with Arduino?

205 views Asked by At

Pin connections:

AI-Thinker LoRa SX1278 A-2 Module | Arduino Uno R3 SMD

3.3V | 3.3V

GND | GND

NSS | D10

DIO0 | D2

SCK | D13

MISO | D12

MOSI | D11

RST | D9

Region: Pakistan

Arduino-LoRa Library by Sandeep Mistry

Sender:

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

String InputString;

void setup() {
  Serial.begin(9600);
  while (!Serial);
  Serial.println("LoRa Receiver");
  if (!LoRa.begin(433E6)) {
    Serial.println("Starting LoRa failed!");
    while (1);
  }
}
void loop() {
  while (Serial.available()) {
    InputString = Serial.readString();
    LoRa.beginPacket();
    LoRa.print(InputString);
    LoRa.endPacket();
    Serial.print("LoRa Send: ");
    Serial.println(InputString);
  }
}

Output:

LoRa Receiver
Starting LoRa failed!

Note: All components are new.

Image Of Ardunio

Image Of SX 1278

Could it be a region problem or a hardware issue? I have two SX1278 modules, and I've tried running them with the same configuration, but neither seems to work.

1

There are 1 answers

0
Ch.Muhammad.Bin.khalid On

It appears that the problem with the LoRa module not working with Arduino is a loose connection. Soldering the connections, particularly the header pins, is likely to resolve this issue