Skip to content

pandlubek/LoRa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 

Repository files navigation

LoRa to MQTT Gateway

Basic information

This sketch is intended to be installed on Heltec LoRa32 board (V2 or V3). There's a chance it will work fine on the V1 board as well, but I haven't had a chance to test this setup.

The main goal of this sketch is to receive LoRa messages from connected nodes, translate them into MQTT messages and publish them to the MQTT broker. Communication between gateway and nodes is encrypted using the AES-128 algorithm.

All configuration parameters are located in the configuration.h file.

Electronic housing

If you are interested in a case for this device, you can print it using this 3D model.

Heltec LoRa32 gateway housing

Plans for the future

  • Replace the configuration.h file with a website where the user will be able to configure the required gateway parameters.

Door sensor

Basic information

This sketch is intended to be installed on Heltec LoRa3 V3 board. Theoretically, it can be installed on the V2 or even V1 board with some modifications in the configuration.h file, but I do not recommend doing this, because the door sensor is to be battery-powered and the V3 board has the lowest power consumption in this mode (V2 800uA, V3 <10uA).

Circuit diagram

Circuit diagram

An NO (normally open) or NC (normally closed) reed switch can be used. The switch type can be set in the configuration.h file.

Electronic housing

If you are interested in a case for this device, you can print it using this 3D model.

Heltec LoRa32 door sensor case

Plans for the future

  • Add support for remote configuration
  • Create an extended version of this device with a built-in alarm siren