Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arduino Uno + RFM95W sending/receiving issue #696

Open
remi-duclos opened this issue Jun 30, 2024 · 0 comments
Open

Arduino Uno + RFM95W sending/receiving issue #696

remi-duclos opened this issue Jun 30, 2024 · 0 comments

Comments

@remi-duclos
Copy link

remi-duclos commented Jun 30, 2024

Hello,

I'm having trouble getting RFM95W to work with Arduino Uno and my problems are the following :
- On the sender setup, sending packets stop at 0, 1 or 2 (LoraSender example, Image1 below). I tried to measure the input voltage of the RFM95W during transmission and it was stable at 3.27V. Strangely, when I measured the voltage, the sending packet didn't stop at 0, 1 or 2 and kept going until I removed the probes of my multimeter from the RFM95W (Image2 below).
- On the receiver setup, there were 3 cases: 1) Nothing happens, serial monitor stays clear. 2) I'm receiving the packet with very low RSSI (-157) (Image3 below). 3) I'm receiving the packet with low RSSI (-109) and the message keeps spamming in the serial monitor (Image4 below).

Image1:
Image1

Image2:
Image2

Image3:
Image4

Image4:
Image3

I have the following setup for both sender and receiver :

  • Arduino Uno board with screw shield
  • Buck converter (5V to 3.3V to power the RFM95W) connected to Arduino 5v output and RFM95W 3.3v input
  • 8 channel 5V/3.3V bidirectionnal logic level converter
  • RFM95W

Here are a scheme and a picture of the setup (antenna in the scheme is not representative of my real antenna, which is a helical antenna as you can see on the picture) :
Lora Arduino_bb
IMG_20240630_135940

Each RF95W are connected to Arduino Uno following @sandeepmistry instructions :

RFM95W Arduino Uno
VCC 3.3V (from buck converter)
GND GND (from buck converter)
SCK 13
MISO 12
MOSI 11
NSS 10
NRESET 9
DIO0 2

And I'm using the examples of Sender and Receiver supplied by @sandeepmistry, where I've only changed the frequency (868 MHz instead of 915 MHz).

Sender :

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

int counter = 0;

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

  Serial.println("LoRa Sender");

  if (!LoRa.begin(868E6)) {
    Serial.println("Starting LoRa failed!");
    while (1);
  }
}

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

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

  counter++;

  delay(5000);
}

Receiver :

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

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

  Serial.println("LoRa Receiver");

  if (!LoRa.begin(868E6)) {
    Serial.println("Starting LoRa failed!");
    while (1);
  }
}

void loop() {
  // try to parse packet
  int packetSize = LoRa.parsePacket();
  if (packetSize) {
    // received a packet
    Serial.print("Received packet '");

    // read packet
    while (LoRa.available()) {
      Serial.print((char)LoRa.read());
    }

    // print RSSI of packet
    Serial.print("' with RSSI ");
    Serial.println(LoRa.packetRssi());
  }
}

I don't understand why the sending setup is working when I'm putting the multimeter probes to 3.3V and GDN pins of the RFM95W. And why is the RSSI so low while both setups are 1 meter apart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant