Skip to content

SvenKoos/LoRaWAN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LoRaWAN

LoRaWAN implementation with temperature and humidity sensor / display based on LilyGo T-Echo, LoRaWAN gateway RAK7246G / RAK5146 and TTN

Project plan

  1. connect temperature / humidity sensor SHT31 to T-Echo Lite ==> achieved
  2. show the measurements on the display of T-Echo Lite ==> achieved
  3. configure the gateway and register it with TTN
  4. create application in TTN and get the TTN keys
  5. extend the code on T-Echo Lite about LoRaWAN implementation (sensor authentication, measurement upload)

1. Connect sensor to T-Echo

  • 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

2. Show measurements on T-Echo

  • achieved with "Sensor connected" submission to GitHub

3. Configure gateway

  • 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)

4. Register in TTN

5. Get TTN application keys

  • 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

6. Send measurements to TTN

  • 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

About

LoRaWAN implementation with temperature and humidity sensor / display based on LilyGo T-Echo, LoRaWAN gateway RAK7246G and TTN

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors