This project consists in developing and setting up a small network of environmental sensors (temperature, relative humidity, pressure, brightness, noise, air quality, etc.) using the LoRa technology. We propose an original, optimized and cheap solution, for a deployment in the city of Saint-Denis (France).
System OverviewObjectives
The system uses LoRa technology :
It requires a node and a gateway to send and receive the data from the sensors.
You will find in this tutorial how to build your own LoRa system (node and gateway) and how to deploy your network of environmental sensors.
- PCB
We have used Eagle to design our LoRa system. It is similar to the LoRa LoRaWAN Gateway - 868MHz Kit with Raspberry Pi 3 but we have retrieves all the unused components (such as the GPS chip on the node).
Find the schematics of the PCB on our GitHub.
- Assembly
Components of the PCB are 0603, so you will need a Reflow Oven to assembly your node and gateway.
The initial LoRa's chip from the LoRaWAN Gateway Kit has been changed to have a better scope.
You will find the BOM for the node and gateway and the stencils on our GitHub.
- Codes
ARM Cortex-M0
The ARM Cortex-M0 is not configured out of the factory, so you will have to flash a bootloader on the chip, before using the card as an Arduino. Here is a tutorial to configure the ARM Cortex-M0 :
https://www.microchip.com/wwwAppNotes/AppNotes.aspx?appnote=en591491&fbclid=IwAR0gLMq17YCeBwULy5hx0IRgeqax0Pv1hG3dDLd3792eHcKRNykshVObU2A
Bridge
We have decided to put a bridge on the node to connect all the sensors throught I2C. The bridge is here to make the link between every types of communication to I2C. That will alow modularity with our system.
Here is a tutorial to program in ISP with an ATtiny85 :
https://phmarduino.wordpress.com/2015/12/11/programmer-un-attiny-85/
Environmental sensors
You can directly download the codes on the GitHub for the SHT31-Temperature and soil sensor and the Nova PM sensor-Dust sensor.
Connect them on the node with I2C wirings.
All the sensors are configured on a sleep-mode not to use much power. The system will retrieve data every 15 minutes and then get back to the sleep-mode.
- Enclosure
We have designed a waterproof enclosure with wires going in for the LiFePo4 battery for the node, and LoRa antenna for the gateway.
Place the gateway and its antenna in height to cover a large area to retrieve the data from the sensors. The gateway is wiring on the sector whereas the node is functionnal thanks to a solar pannel and a battery that can be recharged.
All the data are sent thanks to LoRa.
These data are retrieved and exposed on Grafana, which is a graphical programming interface.

















Comments