Building a sensor network with LoRaWAN
Summary
At the Chemnitz Linux Days 2018, Chris Fiege, a hardware developer at Pengutronix, gave an introduction to LoRaWAN. Where there is no Wi-Fi, LoRaWAN offers an alternative to mobile networks, and together with online services it can be used to build radio networks that are open to everyone. The talk gave an overview of available hardware and free software.
What is LoRaWAN?
LoRa is a radio technique that transmits very small amounts of data over long distances, often several kilometres, while using so little power that a sensor can last for years on one battery. LoRaWAN is the network protocol on top: sensors send their readings, gateways receive them and forward them via the internet to a network server.
In Europe, LoRaWAN uses the licence-free band around 868 MHz. There each device may only transmit for a small fraction of the time, which strongly limits the amount of data but is enough for readings such as temperature, fill levels or soil moisture.
Open community networks
The best-known open LoRaWAN network is The Things Network. Anyone can set up a gateway and thereby extend coverage for everyone. In this way community-run radio networks for sensors are emerging in many cities, similar to Freifunk for Wi-Fi. For hobbyists, municipalities and agriculture, this is an inexpensive way of collecting readings over wide areas.
Ideas
- LoRa transmits small amounts of data over several kilometres with very little power.
- Gateways forward received sensor data via the internet.
- Community-run gateways create open radio networks.
Insights
- Not every application needs high bandwidth; range and battery life are often more important.
- Open networks grow when every participant contributes a piece of infrastructure.
Facts
- In Europe LoRaWAN uses the band around 868 MHz.
- The speaker was Chris Fiege from Pengutronix.
- A basic understanding of communication networks was expected.
References
Remarks
- The duty cycle limit in the 868 MHz band is one percent for many channels.
Recommendations
- Check The Things Network map to see whether there is already a gateway near you.
- Send readings as rarely as possible to save the battery and the radio channel.
- For your first LoRaWAN nodes, 868 MHz boards such as the Heltec WiFi LoRa 32 V3 (affiliate link: if you buy something, I get a small commission and the price does not change for you) are a good choice.
Found a mistake or have something to add? Get in touch.
Links to the original source and the Web Archive open in a new tab.