Are you receiving Starting LoRa failed while using the demo code?
PLEASE see the FAQ #1 about using setPinsBEFORE 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
// 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();
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
// 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); }