Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starting LoRa failed using LoRa shield LA66 #680

Open
skyeee21 opened this issue Feb 1, 2024 · 1 comment
Open

Starting LoRa failed using LoRa shield LA66 #680

skyeee21 opened this issue Feb 1, 2024 · 1 comment

Comments

@skyeee21
Copy link

skyeee21 commented Feb 1, 2024

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 <LoRa.h>
#include <SPI.h>
#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
Copy link

sercero commented May 19, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants