Error interfacing Arduino Nano and SX1278 Starting LoRa failed!

Hello.
Please, I have problems Error interfacing Arduino Nano and SX1278.
The Serial Monitor only shows: Starting LoRa failed!

For the connection it is:

LoRa SX1278 Module Arduino NANO Board
3.3V 3.3V
Gnd Gnd
En/Nss D10
G0/DIO0 D2
SCK D13
MISO D12
MOSI D11
RST D9

I attempted to power the module with 3.3 V using external bread board supply, but issue still persists.
Here is my code

#include <SPI.h>
#include <LoRa.h>

int counter = 0;

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

  Serial.println("LoRa Sender");
  LoRa.setSPIFrequency(1E6);

  while (!LoRa.begin(433E6)) {
    Serial.println("Starting LoRa failed!");
    delay (100);
  }
}

void loop() {
  Serial.print("Sending packet: ");
  Serial.println(counter);

  // send packet
  LoRa.beginPacket();
  LoRa.print("hello ");
  LoRa.print(counter);
  LoRa.endPacket();

  counter++;

  delay(5000);
}

Is it possible that the board is fried? How can I troubleshoot it?

Quite possible.

The LoRa SX1278 modules noramally use 3.3V logic levels, the Nano uses 5V logic levels.

try using setpins, e.g.

   Serial.println("LoRa Sender");
  //LoRa.setSPIFrequency(1E6);   << comment out?
   LoRa.setPins(10, 9, 2);  // 10 for UNO, nano 
  while (!LoRa.begin(433E6)) {

what specific LoRa module are you using?

I've heard that, but I thought it just meant that I should power it with 3.3V, which I did. Am I wrong?

I did. I even used other pins, still no result.

what specific lora module is it?

Yes, in most all cases.

But if you keep the LoRa module you are using secret, we cannot be sure.

The lora module I'm using is the SX1278 Ra 01

That module should not be directly connected to a 5V logic Arduino. You need to use logic level conversion circuits.

Much easier to use 3.3V Arduinos however, you you can connect direct.

not used an RA-01 but have used a couple of RA-02 LoRa modules
with one connected to a nano the other to a ESP32
the nano using the same wiring as your post 1 and the similar code (my version is in post 4)
the RA-01 should therefore communicate with the nano OK
check your wiring ? post a photograph?
the RA-01 documentation does state a maximum IO level of 3.6V and the nano uses 5V logic so a level converter should be used or change to a micro with 3.3 logic as recommended by @srnet -

I had tried to connect it to a node MCU but it kept restarting. I'm sure node MCU uses 3.3V logic level.

I don't have a logic level converter yet, so I ordered it on eBay. When it comes I will try again.
I also ordered a new pair on SX1278, to try again.

But the thing is, how can I be sure if the module is not fried, since it did not work with the Nano or the node mcu.

what Node MCU ? ESP32 or ESP8266?
how did you connect it?
when testing a RA-02 with a ESP8266 I used

// connections
// RA-02 SS   to ESP8266 GPIO 15 D8
// RA-02 RST  to ESP8266 GPIO 16 D0
// RA-02 DIO0 to ESP8266 GPIO 4  D2
// RA-02 MOSI to ESP8266 GPIO 13 D7
// RA-02 MIS0 to ESP8266 GPIO 12 D6
// RA-02 SCK  to ESP8266 GPIO 14 D5

and the setup() is therefore

  // void setPins(int ss = LORA_DEFAULT_SS_PIN, int reset = LORA_DEFAULT_RESET_PIN, int dio0 = LORA_DEFAULT_DIO0_PIN);
  LoRa.setPins(15,16,4);  // for ESP8266
  if (!LoRa.begin(433E6)) {
    Serial.println("Starting LoRa failed!");
    while (1)      ;
  }

photo
image

You can be sure, if it does not work.

Much easier to work with 3.3V Arduinos and appreciate that the library code does work, so if it fails to detect your LoRa module, you either have it wired wrong or its faulty. Once you have a working setup, you can test the modules you have doubts about.

Okay. When the modules arrive I will test first on the node MCU since it is 3.3V.

That was the connection I used, but I had not set the pins with code like that.
It did not even show "Lora Failed", just restarted.

what Arduino are you using? e.g. ESP32, ESP8266, etc
worth noting I have had an Noan and ESP8266 working with an RA-02 but attemptss with a ESP82 have failed so far - will try again in morning

The Node MCU uses ESP8266