10-channel LoraWAN Gateway with Raspberry Pi and Dragino PG1301

Introducion

IoT, the Internet of Things, is becoming more and more important and in addition to commercial products and services, the public and open source community is of course also growing. A very exciting project is here at The Things Network.

The Things Network is about enabling low power Devices to use long range Gateways to connect to an open-source, decentralized Network to exchange data with Applications.

Well I also wanted to be part of this community and started planning and building a gateway. Here is the result.

In addition to this article I will divide the whole project so as not to go beyond the scope. Besides the construction of the mechanics, 3D printing, electrics, which is described in this article, I used the following instructions.

  • Setup Dragino Firmware [LINK]
  • Integration into The Thing Network
  • Temperature and humidity control
  • Read and sending the climate data via Node-RED and MQTT [LINK]

Features

  • Multi channel gateway
  • Compatible with The Things Network (TTN)
  • Basic system Rasperry Pi / Linux
  • Integration of own software (Node-RED, MQTT)
  • LAN/WLAN connectivity
  • GPRS/GSM connectivity (optional)
  • Operating voltage 10 – 30VDC
  • Budget as low as possible (below Euro 250.-)
  • DIY suitable (3D printing)
  • Air-conditioned outdoor enclosure (Condensed water, solar radiation)

Material list

PartQTYSourcePrice
Housing tube1https://amzn.to/3bjayn32
Raspberry PI3 B+1https://amzn.to/2weUHqN41
GPIO adapter board1https://amzn.to/2U8KANl12.9
LoRaWAN Concentrator PG13011https://www.antratek.de/catalogsearch/result/?q=PG1301-868109
GPS Antenna1included in Dragino PG1301 Set0
Noctua NF-AFx 40x40 5V PWM1https://amzn.to/391hLXi17.9
DC/DC Converter LM25961https://amzn.to/2U97rYQ7
DHT22 Sensor1https://amzn.to/3dk3HeU6
TX screw 2.2 x 6 (DIN 7981)9https://tinyurl.com/seofmvo0.2
TX screw 2.2 x 13 (DIN 7981)5https://tinyurl.com/seofmvo0.2
TX screw 2.2 x 18 (DIN 7981)4https://tinyurl.com/seofmvo0.2
Antenna 868MHz SMA1https://amzn.to/3bfTVss4.5
GX16 Connector1https://amzn.to/2J7OkIk1.7
Huawei E3531 GSM Stick1https://amzn.to/2J9Lcvz25.5
Housing cover13D printed part0.5
Mounting ring13D printed part0.5
Mounting ring lock13D printed part0.5
Ventilation grille13D printed part0.5
Electronics carrier13D printed part0.5
Spacer43D printed part0.5
Mounting brackets23D printed part0.5
231.6

Why 10 – 30 VDC

This (my first) gateway is mounted on the roof of my house and integrated into the LAN.
Because of the length of the cable alone, it does not make sense not to supply it with 5V.

But it should also be possible to install a GSM modem and to operate it with a small photovoltaic battery system (12/24VDC)
The gateway can then be used completely independently of other infrastructure in the field.

Building instructions

It is simple. As housing I use a 75mm sewer pipe. The length of this pipe can be adjusted to the length of the antenna. In my case a pipe with a nominal length of 250 mm is the right decision.

The 3D parts have to printed out and assembled as shown on the exploded drawing.

The Rasperry Pi, the Dragino shield and the other components are assembled as shown.
Note: The Break-out board is soldered to the Rasperry Pi from below. Certainly an unconventional solution, but the easiest one. The risc that the Pi crashes is low i guess.

The wiring is done according to the circuit diagram.

Assembly into housing

For the assembling into the tube first, the „Mounting ring“ is inserted instead of the seal in the sewer pipe and locked with the „Mounting ring lock“.

The assembled electronic module is then inserted into the prepared housing and finally closed with the ventilation grill. If a LAN cable is used, the corresponding opening in the ventilation grill must be broken out.

For the mounting on a mast I have constructed very simple brackets. You only need a few cable ties for the assembly. I recommend cable ties made of stainless steel.

Et voilà

Like always all files for free – have fun!

Download STL

Download DOCs

Donate / Spende – Thank You!

Schreibe einen Kommentar