Coder Social home page Coder Social logo

Comments (19)

sandeepmistry avatar sandeepmistry commented on May 13, 2024

Hi @tomitoxy,

Could you please share a photo of your wiring? I would highly recommend using a logic level converter.

from arduino-lora.

tomitoxy avatar tomitoxy commented on May 13, 2024

picture 2

from RF to logic converter and next to arduino UNO connect axactly like Your diagram
Semtech SX1276/77/78/79 wiring

VCC 3.3V
GND GND
SCK SCK
MISO MISO
MOSI MOSI
NSS 10
NRESET 9
DIO0

and If I have 868MHz module what I must in LoRa.begin : like this : LoRa.begin(915E6)
tomek

from arduino-lora.

sandeepmistry avatar sandeepmistry commented on May 13, 2024

Ok, the photo is not hi res enough, however if you followed the wiring in the read me things should be fine. Could you try with an external 3.3V supply, the Uno might not be able to provide enough current on the 3.3V pin.

Also, you could try to edit the library, and see what version value is received here: https://github.com/sandeepmistry/arduino-LoRa/blob/master/src/LoRa.cpp#L79

by adding Serial.println(version, HEX);

and If I have 868MHz module what I must in LoRa.begin : like this : LoRa.begin(915E6)

LoRa.begin(868E6)

from arduino-lora.

tomitoxy avatar tomitoxy commented on May 13, 2024

This is result of cpp modyfication 👍 module version: 0
LoRa Sender
module version: 0
Starting LoRa failed!
Hi res photos of my wire:

img_20170206_124926
img_20170206_124941
img_20170206_124953

from arduino-lora.

sandeepmistry avatar sandeepmistry commented on May 13, 2024

Definitely a wiring or hardware problem if the version is 0x00. I suggest you quadruple check everything ...

Is VCCB disconnected? I would expect it to be connected to 5V on the Arduino. Also, it looks like the 3.3V pin on the Arduino is not connected to anything, what's VCCA connected to?

from arduino-lora.

tomitoxy avatar tomitoxy commented on May 13, 2024

No, all VCCA and VCCB is connect to power supply
img_20170207_090354

Maybe I more easy with second modules with UART/RS232 manufactured HOPE too HM-TRLR-S-868
but I don't see any support on github, maybe You know who make skatch with lora rs/uart included ?

Tomek

from arduino-lora.

sandeepmistry avatar sandeepmistry commented on May 13, 2024

Maybe I more easy with second modules with UART/RS232 manufactured HOPE too HM-TRLR-S-868 but I don't see any support on github, maybe You know who make skatch with lora rs/uart included ?

Those are not supported by this library.

What frequency is your logic level converter rated for?

Another thing to try it lowering the SPI frequency: https://github.com/sandeepmistry/arduino-LoRa/blob/master/src/LoRa.cpp#L50 ... maybe try 4 MHz (4E6) or 1 MHz (1E6).

from arduino-lora.

orlax avatar orlax commented on May 13, 2024

hey there, i am having the same problem of starting LoRa Failed, i have check and rechecked my wiring am i am pretty sure it is ok. after editing the library to print the module version i get:

LoRa Sender
2
Starting LoRa failed!

so i am guessing that it is something else than my wiring?

i am using an arduino uno with a logic level converter and a barebones hope rfw96m

https://electronilab.co/tienda/modulo-transceptor-rfm96w-hoperf-lora-ultra-long-range-433-mhz/

i have change the frequency to 433E6 with no change. do you have any idea what i could try to make this work?

from arduino-lora.

sandeepmistry avatar sandeepmistry commented on May 13, 2024

@orlax looking at page 85 of the datasheet the version value (reg 0x42) should be 0x11, however the SX1276 modules I've tested with have a value of 0x12.

Two suggestions:

  1. Try to lower the SPI frequency as I mentioned in #5 (comment)
  2. Remove the version check from the .cpp, and see if things continue to work.

from arduino-lora.

orlax avatar orlax commented on May 13, 2024

@sandeepmistry thank you for the suggestion, setting SPI frequency to 1E6 and using the wiring layout from here: https://things4u.github.io/HardwareGuide/Arduino/Mini-Sensor-HTU21/mini-lora.html solved my issue althougth i dont fully understand the difference between connecting only DIO0 and connecting them all?

from arduino-lora.

sandeepmistry avatar sandeepmistry commented on May 13, 2024

@orlax thanks for trying the out!

Did you try any other SPI frequencies, like 8E6 or 4E6? Let me know, then I can edit the library to the appropriate SPI frequency for AVR boards.

Also, what logic level converter are you using?

from arduino-lora.

sandeepmistry avatar sandeepmistry commented on May 13, 2024

@tomitoxy @orlax ping ...

from arduino-lora.

orlax avatar orlax commented on May 13, 2024

from arduino-lora.

sandeepmistry avatar sandeepmistry commented on May 13, 2024

@orlax

i dont have the reference for the logic converter, but will find out and post.

Thanks, that would be great!

I'll retest with my Dragino shield and Uno, but from what I remember the default SPI frequency was fine. Maybe each logic level converter has it's own max speed. I think it should be fine to add a LoRa.setSPIFrequency(frequency) API to this lib.

from arduino-lora.

sandeepmistry avatar sandeepmistry commented on May 13, 2024

I've added the LoRa.setSPIFrequency(frequency) API in ee09672. Note: the RadioHead Library uses a default SPI frequency of 1 MHz.

from arduino-lora.

aniketmad avatar aniketmad commented on May 13, 2024

hi, we are using sx1276 with 868mhz and arduino uno board

we got sender senior monitor as:
SLoRa Sender
Sending packet: Sending packet: Sending packet:

but at LoRa receiver
LoRa Receiver
what should i do to receive the packets??

from arduino-lora.

Apeksha9 avatar Apeksha9 commented on May 13, 2024

Hello,
I have a LoRa sender connected to a Nano and the LoRa receiver connected to a UNO. The issue is that the sender is not getting initialized. The LoRas that I am using are LoRa-02, SX1278.

PIN CONNECTIONS OF THE SENDER:
/ Nano LoRA
// D2 DIO0
// D9 RST
// D10 NSS
// D11 MOSI
// D12 MISO
// D13 SCK

PIN CONNECTIONS OF THE RECEIVER:
// UNO LoRA
// 3V3 3V3
// GND GND
// D2 DIO0
// D9 RESET
// D13 SCK
// D12 MISO
// D11 MOSI
// D10 NSS

How can I proceed with this problem?

Thanking you,
Apeksha Nayak

from arduino-lora.

EsKliwoN avatar EsKliwoN commented on May 13, 2024

Definitely a wiring or hardware problem if the version is 0x00. I suggest you quadruple check everything ...

Is VCCB disconnected? I would expect it to be connected to 5V on the Arduino. Also, it looks like the 3.3V pin on the Arduino is not connected to anything, what's VCCA connected to?

What if my problem the REG_VERSION is FF?

from arduino-lora.

HefnySco avatar HefnySco commented on May 13, 2024

@orlax looking at page 85 of the datasheet the version value (reg 0x42) should be 0x11, however the SX1276 modules I've tested with have a value of 0x12.

Two suggestions:

  1. Try to lower the SPI frequency as I mentioned in Lora.begin() problem #5 (comment)
  2. Remove the version check from the .cpp, and see if things continue to work.

This is probably 1278 module . I have this module and this is its reply from the datasheet.
image

from arduino-lora.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.