Coder Social home page Coder Social logo

Comments (34)

sercero avatar sercero commented on June 21, 2024 1

Can you take a closer picture of the connections to the module?

From this far away it seems as if the connections are wrong, for example I can't see where you connected the blue cable (GND).

from arduino-lora.

sercero avatar sercero commented on June 21, 2024

Huh?

Please tell more about your setup, what are you using. How did you connect everything?

Which code are you using? The sender and receiver samples?

from arduino-lora.

Srivardhan06 avatar Srivardhan06 commented on June 21, 2024

IM USING NANO AND LORA SX1278

SENDER CODE :

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

byte msgCount = 0; // Count of outgoing messages
byte localAddress = 0xBB; // Address of this device
byte destination = 0xFF; // Destination to send to
long lastSendTime = 0; // Last send time
int interval = 3000; // Interval between sends

/*

  • Transmitter side Code

Module SX1278 // Arduino UNO/NANO
Vcc -> 3.3V
MISO -> D12
MOSI -> D11
SLCK -> D13
Nss -> D10
GND -> GND
*/

void setup() {
Serial.begin(115200);

while (!Serial);
Serial.println("LoRa Sender");

if (!LoRa.begin(433E6)) { // or 915E6, the MHz speed of your module
Serial.println("Starting LoRa failed!");
while (1);
}
}

void loop() {
String MyMessage = "Hello World";
LoRa.beginPacket();
LoRa.print(MyMessage);
LoRa.endPacket();
delay(300);
}

RECEIVER CODE :

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

byte data[50];
byte msgCount = 0; // Count of outgoing messages
byte localAddress = 0xFF; // Address of this device
byte destination = 0xBB; // Destination to send to
long lastSendTime = 0; // Last send time
int interval = 300; // Interval between sends

/*
*** Receiver Side Code**

#include <SPI.h>
#include <LoRa.h>
String inString = ""; // string to hold incoming charaters
String MyMessage = ""; // Holds the complete message

void setup() {
Serial.begin(115200);

while (!Serial);
Serial.println("LoRa Receiver");
if (!LoRa.begin(433E6)) { // or 915E6
Serial.println("Starting LoRa failed!");
while (1);
}
}

void loop() {

// try to parse packet
int packetSize = LoRa.parsePacket();
if (packetSize) {
// read packet
while (LoRa.available())
{
int inChar = LoRa.read();
inString += (char)inChar;
MyMessage = inString;
}
inString = "";
LoRa.packetRssi();
}

Serial.println(MyMessage);

}

from arduino-lora.

Srivardhan06 avatar Srivardhan06 commented on June 21, 2024

I'M Connecting the pins from sx`1278 to nano

and i'm providing the external power supply for lora

Module SX1278 // Arduino NANO
Vcc -> 3.3V
MISO -> D12
MOSI -> D11
SLCK -> D13
Nss -> D10
GND -> GND
DI00 -> D2
RST -> RST

SX1278-Pinout

from arduino-lora.

Srivardhan06 avatar Srivardhan06 commented on June 21, 2024

I'M using nano for both transmitter and receiver side

OUTPUT

Transmitter side :

LoRa Sender

receiver side :

S��LN�cn���
S��LN�cn���
S��LN�cn���
S��LN�cn���
S��LN�cn���
S��LN�cn���
S��LN�cn���
S��LN�cn���
S��LN�cn���
S��LN�cn���
S��LN�cn���
S��LN�cn���
S��LN�cn���
S��LN�cn���
S��LN�cn���
S��LN�cn���
S��LN�cn���
S��LN�cn���
S��LN�cn���
S��LN�cn���
S��LN�cn���
S��LN�cn���
S��LN�cn���
S��LN�cn���
S��LN�cn���
S��LN�cn���

from arduino-lora.

sercero avatar sercero commented on June 21, 2024

Tomorrow I'll get those modules 😊

We might have very similar setups...

Can you show a picture of how you connected everything?

Another thing... why don't you print the RSSI of the received packet?
That might help...

from arduino-lora.

Srivardhan06 avatar Srivardhan06 commented on June 21, 2024

OK TQ

from arduino-lora.

Srivardhan06 avatar Srivardhan06 commented on June 21, 2024

Connection are same as i said before |

Module SX1278 // Arduino NANO
Vcc -> 3.3V
MISO -> D12
MOSI -> D11
SLCK -> D13
Nss -> D10
GND -> GND
DI00 -> D2
RST -> RST

vcc pin is connected to 3.3v nano board
MISO pin is connected to D12 pin

from arduino-lora.

sercero avatar sercero commented on June 21, 2024

I wanted to see how you did the physical connection in part to help and in part to see how to do it myself because that module I think that the holes do not align with a protoboard.

from arduino-lora.

Srivardhan06 avatar Srivardhan06 commented on June 21, 2024

ok i will share

from arduino-lora.

Srivardhan06 avatar Srivardhan06 commented on June 21, 2024

I have doubt should i use level converters between lora and nano

from arduino-lora.

Srivardhan06 avatar Srivardhan06 commented on June 21, 2024

WhatsApp Image 2024-05-20 at 16 54 52_a698d6e4

from arduino-lora.

Srivardhan06 avatar Srivardhan06 commented on June 21, 2024

I HAVE GIVEN COMMON GROUND FOR EXTERNAL 3.3 V SUPPLY

from arduino-lora.

Srivardhan06 avatar Srivardhan06 commented on June 21, 2024

the ground from nano is given to the GROUND LINE of the bread board and ground from the external 3.3v is connected to the bread board ground line and lora is also connected to same ground line

from arduino-lora.

sercero avatar sercero commented on June 21, 2024

Have you checked continuity between the soldered cables?

I soldered cables to that module yesterday and it is a pain in the a**.

Perhaps there is a short circuit somewhere.

from arduino-lora.

Srivardhan06 avatar Srivardhan06 commented on June 21, 2024

Haa the connection are right

I have checked the continuity

from arduino-lora.

Srivardhan06 avatar Srivardhan06 commented on June 21, 2024

Can i know that you are able to receive the data from lora using nano

from arduino-lora.

Srivardhan06 avatar Srivardhan06 commented on June 21, 2024

If it is working can you share the circuit diagram

from arduino-lora.

sercero avatar sercero commented on June 21, 2024

image

Hello, I was able to make it work.

But I'm using Arduino Pro Mini.

These are the connections:

ARDUINO --------- LoRa Module
GND <- NEGRO ---> GND
VCC <- ROJO ----> 3.3V
10  <- MARRON --> NSS
11  <- AZUL ----> MOSI
12  <- NARANJA -> MISO
13  <- BLANCO --> SCK
9   <- VIOLETA -> RST
2   <- VERDE ---> DIO0

The coil antenna seems to be pretty bad, -80dBm with two modules next to each other.

I get better reception with the modules Ra-02 and a cable as an antenna

from arduino-lora.

Srivardhan06 avatar Srivardhan06 commented on June 21, 2024

can you check with Aduino nano

from arduino-lora.

Srivardhan06 avatar Srivardhan06 commented on June 21, 2024

image

from arduino-lora.

Srivardhan06 avatar Srivardhan06 commented on June 21, 2024

and can you share the outputs and also print rssi value of received packet

from arduino-lora.

sercero avatar sercero commented on June 21, 2024

Hello, I don't have an Arduino nano so that test is not possible for me...

Is it possible that Arduino nano uses 5V?

You should use 3,3V for the LoRa modules, they might work at 5V but long term they might be damaged by that voltage.

The RSSI I'm getting is -64dBm with the modules next to each other.

from arduino-lora.

sercero avatar sercero commented on June 21, 2024

Connection are same as i said before |

Module SX1278 // Arduino NANO Vcc -> 3.3V MISO -> D12 MOSI -> D11 SLCK -> D13 Nss -> D10 GND -> GND DI00 -> D2 RST -> RST

vcc pin is connected to 3.3v nano board MISO pin is connected to D12 pin

I see you connected RST -> RST, shouldn't it go to D9?

from arduino-lora.

Srivardhan06 avatar Srivardhan06 commented on June 21, 2024

haa yes rst---> d9

from arduino-lora.

Srivardhan06 avatar Srivardhan06 commented on June 21, 2024

i m using logic level converters between lora and nano
but i m getting

LoRa Receiver
Starting LoRa failed!

from arduino-lora.

Srivardhan06 avatar Srivardhan06 commented on June 21, 2024

and can you share the code and as well as ouput

from arduino-lora.

sercero avatar sercero commented on June 21, 2024

I took the code from here: https://iotprojectsideas.com/multiple-lora-nodes-communication-with-master-lora-node/

The output won't tell you much.

from arduino-lora.

Srivardhan06 avatar Srivardhan06 commented on June 21, 2024

can you give me the voltage at every pins of lora at sender and receiver

from arduino-lora.

sercero avatar sercero commented on June 21, 2024

I think you should better use a module like this:
image

So that you don't have issues with the soldering.

Most likely there is something wrong with the solder.

from arduino-lora.

Srivardhan06 avatar Srivardhan06 commented on June 21, 2024

Hoo oky i will once again

from arduino-lora.

Srivardhan06 avatar Srivardhan06 commented on June 21, 2024

And also i m receiving the data but there is a small issue that when i m sending 10 packets of data i'm only receiving 7 to 8 packets with -54 Rssi

I think there is a power supply issue with lora

from arduino-lora.

sercero avatar sercero commented on June 21, 2024

How often are you sending the packets?

The LoRa protocol is rather limited in badwitdh

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.