Attila Tőkés
Published © CC BY-SA

LoRa-to-Ethernet Gateway

A WIZ750SR-based device that allows sending and receiving messages over LoRa and LoRaWAN.

AdvancedFull instructions providedOver 1 day35,895

Things used in this project

Hardware components

WIZ750SR
WIZnet WIZ750SR
×1
LoRa module (SX1278)
×1
Linear Regulator (Low Dropout)
Linear Regulator (Low Dropout)
or any other 3.3V voltage regulator
×1

Software apps and online services

The Things Stack
The Things Industries The Things Stack

Story

Read more

Custom parts and enclosures

case, top part

the mini stand for the Lora module

case, bottom part

Schematics

Schematics

Code

Arduino Sketch to send and receive messages over LoRa (433 MHz)

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

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

  Serial.println("LoRa Sender / Receiver (434 MHz)");

  if (!LoRa.begin(434E6)) {
    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: ");

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

  // Send
  if (Serial.available() > 0) {
    Serial.print("Sending: ");
    LoRa.beginPacket();
    while (Serial.available() > 0) {
      char c = Serial.read();
      Serial.print(c);
      LoRa.write(c);
    }
    Serial.println();
    LoRa.endPacket();
  }
}

LoraWAN-Gateway (Use Case 2)

C/C++
the TTN Gateway up and the Arduino sketch
No preview (download only).

WIZ750SR-LoRa-to-Ethernet

The eclipse project containing the LoRa-to-Ethernet code uploaded to the WIZ750SR. The project was adapted from the official WIZ750SR, Serial-to-Ethernet project.

Credits

Attila Tőkés

Attila Tőkés

36 projects • 220 followers
Software Engineer experimenting with hardware projects involving IoT, Computer Vision, ML & AI, FPGA, Crypto and other related technologies.

Comments