LoRaWAN implementation with temperature and humidity sensor / display based on LilyGo T-Echo, LoRaWAN gateway RAK7246G / RAK5146 and TTN
- connect temperature / humidity sensor SHT31 to T-Echo Lite ==> achieved
- show the measurements on the display of T-Echo Lite ==> achieved
- 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
| Sensor pin | T-Echo pin | Arduino pin |
|---|---|---|
| VCC | 3V3 | 3.3V power |
| GND | GND | Ground |
| SDA | P1.03 (PI.03) | 35 |
| SCL | P1.04 (PI.04) | 36 |
- achieved with "Sensor connected" submission to GitHub
- configure gateway network, internet access, LoRa band, TTN network
- 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
- 1. RAK5146 Setup with LoRa Basic Station
- 2. Setting Up a LoRa Gateway with Raspberry Pi and RAK5146
- 3. RAK Common for Gateway
- 4. RAK2287 Quick Start Guide
- 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. and 3.
- Configure the Gateway for TTN acc. 2. and 4.
- verify / change connection to TTN server as for RAK7246G
-
register the gateway with TTN (outdated, still helpful)
-
create organization and application in TTN (outdated, still helpful)
-
register gateway in TTNS
- register application with TTN (outdated)
- create a custom end device in TTN console
- JoinEUI: enter 00 00 00 00 00 00 00 00
- DevEUI: use generate button to create new device ID
- AppKey: use generate button to create new application key
- 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