LoRaWAN implementation with temperature and humidity sensor / display based on LilyGo T-Echo, LoRaWAN gateway RAK7246G and TTN
- connect temperature / humidity sensor SHT31 to T-Echo Lite
- show the measurements on the display of T-Echo Lite
- configure the gateway and register it with TTN
- create application in TTN and get the TTN keys
- extend the code on T-Echo Lite about LoRaWAN implementation (sensor authentication, measurement upload)
- connect SHT31 to T-Echo Lite using the following pins (to be verified)
| Sensor pin | T-Echo pin | Arduino pin |
|---|---|---|
| VCC | 3V3 | 3.3V power |
| GND | GND | Ground |
| SDA | P1.04 (PI.04) | 36 |
| SCL | P1.03 (PI.03) | 35 |
- configure gateway network, internet access, LoRa band, TTN network
- RAK7246G:
- RAK7246G Quick Start Guide
- verify / change the TTN server name to new TTN V3 name (assuming EU1 selected in gateway setup in TTN): eu1.cloud.thethings.network
- enable and restart LoRa services (assuming service name ttn-gateway): sudo systemctl enable ttn-gateway | sudo systemctl start ttn-gateway | sudo systemctl status ttn-gateway
- verify communication of the gateway with TTN: sudo journalctl -u ttn-gateway -f
- RAK5146 PiHAT Kit for LoRaWAN and Concentrator (SPI model)
- 1. RAK5146 Setup with LoRa Basic Station
- 2. Setting Up a LoRa Gateway with Raspberry Pi and RAK5146
- Raspberry Pi OS setup acc. 1.
- Remote connection via SSH acc. 1.
- Post-installation steps (Update, upgrade and reboot Raspberry Pi) acc. 1
- Setup Raspberry Pi’s Interfaces (SPI, I2C) acc. 1.
- Install RAK Common for Gateway acc. 2.
- Configure the Gateway for TTN acc. 2.
- register the gateway with TTN (outdated, still helpful)
RAK7246G LoRaWAN Network Server Guide
- create organization and application in TTN (outdated, still helpful)
- register gateway in TTNS
Setup LoRaWAN gateway on TTN Gateway Pro
- register application with TTN (outdated)
RAK7246G LoRaWAN Network Server Guide
- use RadioLib in LoRaWAN mode
- implement OTAA (over the air activation) of the sensor / T-Echo
- create the LoRaWAN payload for measurement data with CayenneLPP
- use CayenneLPP library to create LoRaWAN paylod