I dont have an output on serial Monitor with LoRaWan

Hey, i have a question with my Arduino Lora project.
The aim of the original project doesn´t really matter. Im trying Lora chips DRF1278F out right now and used this Lora Libary as libary and the code samples for a simple reciver and Sender.

The receiver is a D1 Mini NodeMcu with ESP8266-12F from AZ-Delivery(can´t do any more links)
The Pinout:
Since im not allowed to upload it here you sadly have to get it yourself

How i connected it:

And the code:

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

void setup() {
  LoRa.setPins(5, 2, 0);
  Serial.begin(9600);
  while (!Serial);

  Serial.println("LoRa Receiver");

  if (!LoRa.begin(915E6)) {
    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());
  }
}

The sender is a ESP32 NodeMCU Module from AZ-delivery (cant do anymore links) with following pinout:

since im not allowed to upload it here you sadly have to get it yourself

That i connected :

cant show how i connected it either since im a new user

with the code:

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

int counter = 0;

void setup() {
  LoRa.setPins(5, 33, 32);
  Serial.begin(9600);
  while (!Serial);

  Serial.println("LoRa Sender");

  if (!LoRa.begin(915E6)) {
    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);
}

Ok so much to the details. When i plug bove in and oben my serial monitor on my PC it doesnt show anything. When i change line 5 on the receiver to: LoRa.setPins(1, 4, 0); it does show a bit in my serial montior but not what i want :slight_smile:

03:33.095 -> �?0��1�D�9;�����H!��h��@H��<����/����q�`�10z���H!��!9@H�� ��?)�j��D� ���U)�

15:03:59.878 -> ��f! H��?)���D������Q)�

15:04:07.240 -> ��b! H���H������@H7�0���R)�

15:04:14.598 -> ��c! H��?)���D������?Ʉ��D�����F)�

15:04:25.638 -> ���! HuF)�

15:04:29.313 -> ��֋LH9����19���10��F)�

15:04:36.660 -> ���! H9�?)=��D�#����H!��x��@H������S)�

15:04:47.717 -> ��b! H�����܄��D�9;���������q�`�10���?)�)��D�L���?��1�Dŗ����U)�

15:05:06.116 -> ��f! H���H!�����@Hʨ0����8����������������������������������� ��������������� �b "b b b b b b ������������������

I dont relly get why it makes that much trouble, since i used the example code. Any ideas?

Thanks for responses

You shouldn't buy at AZ-delivery at all.

They are trying to get the copyright for trademark-names for any kind of common type-terms like

ATMEGA328,
HC-06
MAX7219
BMP180
etc. etc.

In my opition this un-moralic money-making

best regards Stefan

Check the Serial Monitor baudrate - it should be the same as in your code.

It’s 9600, so the right one

Ohh I did not know that. I will try buying accordingly the next time

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.