Interfacing LoRa and Arduino UNO, Serial monitor "Starting LoRa failed!"

Hello
i'm new here. please help me. I'm from Indonesia, sorry for my bad english.
Anyone can find the solution? I'm interfacing my brand new VL53L1X sensor with arduino UNO as a Node.
I'm compiling and upload this code to arduino

[code]
#include <SPI.h>
#include <LoRa.h>

#include <ComponentObject.h>
#include <RangeSensor.h>
#include <SparkFun_VL53L1X.h>
#include <vl53l1x_class.h>
#include <vl53l1_error_codes.h>

#include <Wire.h>
#include "SparkFun_VL53L1X.h"

SFEVL53L1X distanceSensor;
//int counter = 0;

void setup(void)
{
  //Starting LoRa
  Serial.begin(9600);
  while (!Serial);

  Serial.println("Starting up LoRa");

  if (!LoRa.begin(433E6)) {
    Serial.println("Starting LoRa failed!");
    while (1);
  }
  Serial.println("LoRa Online!");
  
  //Starting Sensor
  Wire.begin();

  //Serial.begin(9600);
  Serial.println("Starting up Sensor");

  if (distanceSensor.begin() != 0) //Begin returns 0 on a good init
  {
    Serial.println("Sensor failed to begin. Please check wiring. Freezing...");
    while (1)
      ;
  }
  Serial.println("Sensor online!");
}

void loop(void)
{
  distanceSensor.startRanging(); //Write configuration bytes to initiate measurement
  while (!distanceSensor.checkForDataReady())
  {
    delay(3000);
  }
  int distance = distanceSensor.getDistance(); //Get the result of the measurement from the sensor
  distanceSensor.clearInterrupt();
  distanceSensor.stopRanging();

  Serial.print("Distance(mm): ");
  Serial.print(distance);

  // send packet
  LoRa.beginPacket();
  LoRa.print("Water level : ");
  LoRa.print("distance");
  LoRa.endPacket();

  delay (3000);
}
[/code]

then the serial monitor said "Starting LoRa failed!"
i dont know whats the problem. i've trying to testing my LoRa module and VL53L1X individually, both working as it is. but everytime i trying to run the code above, LoRa still failed to start. with no error code.
please help
thankyou

Hi, which Lora module are you using? And may you post the wiring?

Here is my wiring. I'm using LoRa RA-02 SX1278 (433 MHz).

I'm encountering the same problem and trying all different methods, Can you share your solution for this if you found it..!!

hey dude
sorry for late response. i forgot what's exactly i have done to resolve the problem.
please inform some detail about your wiring and code. i will try my best

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.