Lora ra-01H and esp32 communication problem

Hello
I want to set up a Lora ra-01H module with an esp 32. I made the connections according to the figure below and programmed the following code on esp32. But the connection cannot be established and there is an error

Start LoRa init...
LoRa init failed. Check your connections.

is received

Note: The image below shows the connection of a lora ra-02 with an esp32. Because the pins of ra-01H are exactly the same as ra-02. I also made the connections in the same way.

#include <LoRa.h>
#include <SPI.h>
 
#define ss 5
#define rst 14
#define dio0 2
 
int counter = 0;
 
void setup() 
{
  Serial.begin(115200); 
  while (!Serial);
  Serial.println("LoRa Sender");
 
  LoRa.setPins(ss, rst, dio0);    //setup LoRa transceiver module
  
  while (!LoRa.begin(866E6))     //433E6 - Asia, 866E6 - Europe, 915E6 - North America
  {
    Serial.println(".");
    delay(500);
  }
  LoRa.setSyncWord(0xA5);
  Serial.println("LoRa Initializing OK!");
}
 
void loop() 
{
  Serial.print("Sending packet: ");
  Serial.println(counter);
 
  LoRa.beginPacket();   //Send LoRa packet to receiver
  LoRa.print("hello ");
  LoRa.print(counter);
  LoRa.endPacket();
 
  counter++;
 
  delay(10000);
}

Lora ra-01H datasheet

ra-01h_product_specification_en.pdf (896.4 KB)

I dont intially see why those pins wont work, but I have done a few PCBs for ESP32 and LoRa devices and these are the pins that work on those boards;

NRESET 27
DIO0 35
NSS 5
SCK 18
MISO 19
MOSI 23

Dont do that, although the LoRa device should initialise, communications can be degraded, or may not work at all, if you stray away from using the two standard syncwords.

The same code and the same connections work for Lora ra-02, but obviously it gives an error for Lora ra-01H.

Ah, you did not say that in the OP .................................

Thank you srnet
It seems that the module had a problem. The problem was solved by replacing the module.

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