StuartsProjects / SX1280

Repository no longer used
16 stars 7 forks source link

TX stucked waiting for DIO to go high #3

Closed Yaoshicn closed 4 years ago

Yaoshicn commented 4 years ago

Hi,

I am doing some tests with Arduino UNO and NiceRF SX1280 module.

The test for configuration in example 1 works well. However, the chip cannot transmit any packet. I found that the code stops here, which means that it keeps waiting for DIO to go high.

while (!digitalRead(_DIO));  //Wait for DIO to go high

Would you please share your comment on this issue? Thank you in advance.

Best Regards, Xuanliang

StuartsProjects commented 4 years ago

Since the program works when the LoRa device is connected correctly, you either have it wired wrong or something is faulty.

Do you have the LoRa device connected to the UNO via the appropriate logic level conversion circuits ?

Yaoshicn commented 4 years ago

Since the program works when the LoRa device is connected correctly, you either have it wired wrong or something is faulty.

Do you have the LoRa device connected to the UNO via the appropriate logic level conversion circuits?

Hi, thanks for your quick reply.

Below is my pin connection for your kind perusal.

DIO1 -> 2
BUSY -> A1
NRESET -> 9
ANT -> a jumper (as antenna temporarily)
GND (the one near ANT) -> GND on Arduino Uno
VCC -> 3.3V power on Arduino Uno
GND (the one near VCC) -> GND on Arduino Uno
MISO -> 12
MOSI -> 11
SCK -> 13
NSS -> 10

I have no idea why the code does not work when it comes to TX. I also tried with the simple RX demo, it works smoothly.

Best Regards, Xuanliang

StuartsProjects commented 4 years ago

You should not directly connect a 3.3V logic level device to a UNO which is 5V logic level, you will likley destroy the LoRa device.

The 3V3 output from the UNO cannot normally provide enough currrent to power a transmitter.

Yaoshicn commented 4 years ago

You should not directly connect a 3.3V logic level device to a UNO which is 5V logic level, you will likely destroy the LoRa device.

The 3V3 output from the UNO cannot normally provide enough current to power a transmitter.

Hi, thank you for your reply. Let me find an Arduino NANO and try again.

Best Regards, Xuanliang

StuartsProjects commented 4 years ago

This not does not appear to be an issue with the library. The library code cannot correct for the issues that occur when you attempt to connect 3.3V logic LoRa devices to 5V logic level Arduino devices.

The library ReadMe does state;

"The Semtech SX1280 is a 3.3V logic level device, do not use with 5V logic level Arduinos. The programs have only been tested on 3.3V 8Mhz ATMega328P and ATMega1284P processors."

AlessandroAU commented 4 years ago

@Yaoshicn can I ask what sx1280 module you were using? I'm seeing something similar particular hopeRF module but normal behaviour with another.

Yaoshicn commented 4 years ago

@Yaoshicn can I ask what sx1280 module you were using? I'm seeing something similar particular hopeRF module but normal behaviour with another.

I was using NiceRF SX1280 (https://www.nicerf.com/product_193_302.html).

The author of this library told me that I should not use Arduino UNO. May I know which board you are using? ESP32? Thanks.