Comments (34)
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.
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.
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.
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
from arduino-lora.
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.
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.
OK TQ
from arduino-lora.
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.
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.
ok i will share
from arduino-lora.
I have doubt should i use level converters between lora and nano
from arduino-lora.
from arduino-lora.
I HAVE GIVEN COMMON GROUND FOR EXTERNAL 3.3 V SUPPLY
from arduino-lora.
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.
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.
Haa the connection are right
I have checked the continuity
from arduino-lora.
Can i know that you are able to receive the data from lora using nano
from arduino-lora.
If it is working can you share the circuit diagram
from arduino-lora.
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.
can you check with Aduino nano
from arduino-lora.
from arduino-lora.
and can you share the outputs and also print rssi value of received packet
from arduino-lora.
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.
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.
haa yes rst---> d9
from arduino-lora.
i m using logic level converters between lora and nano
but i m getting
LoRa Receiver
Starting LoRa failed!
from arduino-lora.
and can you share the code and as well as ouput
from arduino-lora.
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.
can you give me the voltage at every pins of lora at sender and receiver
from arduino-lora.
I think you should better use a module like this:
So that you don't have issues with the soldering.
Most likely there is something wrong with the solder.
from arduino-lora.
Hoo oky i will once again
from arduino-lora.
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.
How often are you sending the packets?
The LoRa protocol is rather limited in badwitdh
from arduino-lora.
Related Issues (20)
- Receiver not receiving from all senders HOT 3
- Lora and Serial Port HOT 1
- LoRa receiver for recieving packets
- onRecive() method never triggered. HOT 1
- our Lora device does not receive packet Continuously more than three or more packets. HOT 1
- Python library
- Any plans to support the 1262 module which is replacing the 1276 for many applications? HOT 9
- Seeking expert on LoRa module found on Arduino MKR1310 to commission library modifications.
- Duplex Communication that is compatible with sx1262 HOT 1
- lora packet buffer issue and crc algorithm HOT 1
- `Starting LoRa failed` using LoRa shield LA66 HOT 1
- Technology design project
- Starting LoRa with ESP32 fail HOT 1
- Lora RA-02 modules not receiving anything HOT 1
- Cannot get standard library to work with SPI1
- NEW LR1121 .. Support HOT 1
- SX1276 CAD
- Starting lora failed HOT 2
- Support for MSPM0 Microcontroller HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino-lora.