How to Create a LoRa IOT Single Channel Gateway.

Create a simple LoRa IOT Gateway with a Wemos D1 and this interface PCB. This PCB is perfect for learning and experimenting with LoRa.  Just add a Wemos D1 and a HopeRF RFM92 RFM95 LoRa module to the PCB. The PCB makes all the necessary connections to the LoRa module. And you are ready to go!

Parts list:

1X LoRa Gateway PCB.  
1x Wemos D1 mini.
1X HopeRF RFM95.  
1x RF Antenna.

Connections:

RFM95 Wemos D1 Mini
VCC 3.3V VCC 3.3V
GND GND
MISO D6 / GPIO12/MISO
MOSI D7 / GPIO13/MOSI
SCK D5 / GPIO14/CLK
NSS D8 / GPIO15/CS
DIO0 D1 / GPIO5
DIO1 D2 / GPIO4
DIO2 D3 / GPIO0 (optional)

DIO2 can be optionally connected to D3 / GPIO0 with the placement of a jumper. Do this to connect an experimental feature. The RFM95 Frequency Hop connection.
Other data pins are free to use.

D3 and D4 can be used for an OLED screen. Do not place the F-Hop jumper when connecting an OLED screen.

You can place two optional capacitors the stabalize the VCC voltage. The size is SMD 0805.

 

Firmware:

This PCB is compatible with the ESP-1ch_Gateway-v5.0 Firmware. (v6.0 not tested)
https://github.com/things4u/ESP-1ch-Gateway-v5.0

Used pin configuration: ComResult 

Edit file: ESP-sc-gway.h
line 55:  #define _SPREADING SF9 //set to your sensor SF setting
line 90:  #define_PIN_OUT 2 //select pinout ComResult
line 113: #define _STRICT_1CH 0 //set to your sensor channel


Wifimanager setup for direct accessing the Wemos:
line 120/121:
#define AP_NAME “YourName”
#define AP_PASSWD “YourPassword”
(create login for setting up wifi trough wifimanager)


OLED screen optional:
line 138: #define OLED 2
Select witch OLED you want to use. The Pinout can be found in OLED.h
OLED.h line 40/42:
#elif _PIN_OUT==2 // COMRESULT
#define OLED_SCL 0 // GPIO0 / D3
#define OLED_SDA 2 // GPIO2 / D4

Gateway Ident definitions:
line 194/200:
#define _DESCRIPTION “ESP Gateway”
#define _EMAIL “mw12554@hotmail.com”
#define _PLATFORM “ESP8266”
#define _LAT 52.0
#define _LON 5.0
#define _ALT 1
line 261: setup your wifi login for automatic login
wpas wpa[] = {
{ “” , “” }, // Reserved for Wifi Manager
{ “yourWifiNetwork”, “yourPass” },
{ “ape”, “beer” } //optional extra network
};


 

2 thoughts on “How to Create a LoRa IOT Single Channel Gateway.

  1. Ernst de Vreede Reply

    My application, mcci-catena/arduino-lmic, needs the RFM95W’s DIO-2 pin. Connecting DIO-2 to D3 by soldering the bridge on the back of the PCB is obstructing the boot process of the WEMOS D1 mini.

    I patched a wire from DIO-2 to D0 (without the bridge to D3) to make the WEMOS boot again.
    This works with the mcci-catena/arduino-lmic software as a fairly cheap node for the TheThingsnetwork.
    Used pins settings for arduino-lmic:

    // Pin mapping
    const lmic_pinmap lmic_pins = {
    .nss = 15,
    .rxtx = LMIC_UNUSED_PIN,
    .rst = LMIC_UNUSED_PIN,
    .dio = {5, 4, 16},
    };

    • diycon Post authorReply

      Thank you for your comment.
      Sorry to hear that your application did not work right away.

      We did not test the firmware you are using on this PCB.
      Only the single channel gateway firmware.

      Thanks for testing this application, and keep up the good work.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.