sandeepmistry / arduino-LoRa

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

`Starting LoRa failed` using LoRa shield LA66 #680

Open skyeee21 opened 5 months ago

skyeee21 commented 5 months ago

Are you receiving Starting LoRa failed while using the demo code?

PLEASE see the FAQ #1 about using setPins BEFORE submitting an issue.

Hi please help me solve the problem. I'm using LoRa shield LA66 Dragino with RFM95. And I keep getting "Starting LoRa failed!" on my serial monitor. I even tried a simple test code yet, result is still the same. Here is my code and wiring diagram, I made sure that the connection is correct, plus the LoRa shield is blinking so I doubt if it was damaged. Anyone has solve this problem? I'm also using 915MHz

image 420147126_401621202247329_8233695354398584293_n

// Add the LoRa library

include

include

include "DHT.h"

define DHTPIN 7 // Pin where the sensor is connected

define DHTTYPE DHT11 // Type of the DHT sensor

DHT dht(DHTPIN, DHTTYPE); // Create the DHT object

void setup() { Serial.begin(9600); while (!Serial); Serial.println("LoRa Sender Test");

dht.begin(); // Initialize the DHT sensor if (!LoRa.begin(915E6)) { Serial.println("Starting LoRa failed!"); while (1); }

} void loop() {

float humidity = dht.readHumidity(); float temperature = dht.readTemperature();

// Display valid readings Serial.print("Humidity: "); Serial.print(humidity); Serial.print("% Temperature: "); Serial.println(temperature);

// Transmit the LoRa packet LoRa.beginPacket(); LoRa.print(humidity); LoRa.print(temperature); LoRa.endPacket(); delay(30000); }

sercero commented 1 month ago

It seems as if the shield is not connected all the way....