LoRa TX

arduino uno lora tx

Transmit from a LoRa point with 433 MHz. Use this with receiving from a LoRa point.

Code

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

int counter = 0;

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

  Serial.println("LoRa Sender");

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

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

  LoRa.beginPacket();
  LoRa.print("hello ");
  LoRa.print(counter);
  LoRa.endPacket();

  counter++;

  delay(5000);
}

Serial console

Serial output from the firmware.

LoRa TX serial console

Prototype

A photo of the actual setup.

LoRa TX prototype

Schematic

Wire up the hardware accordingly

LoRa TX schematic

References