Wireless sensor data collection with Linux
Summary
At the Chemnitz Linux Days 2011, Axel Wachtler, Jörg Wunsch and Matthias Vorwerk showed how to record temperature and humidity with wireless sensors. IEEE 802.15.4 transceivers served as the radio link because they are easy to control and use little power. Using a distributed temperature measurement as an example, the talk led from firmware for AVR microcontrollers to processing the data on a web server.
Why wireless sensors?
Readings such as temperature or humidity help to monitor and improve processes, for example in buildings, greenhouses or server rooms. Wireless sensors can also be installed in places that are hard to reach, without laying cables. Power consumption is crucial: a sensor should last as long as possible on one battery.
IEEE 802.15.4 is a radio standard for exactly such applications with small amounts of data and very low energy requirements. The µracoli project provided libraries and examples for AVR microcontrollers for this; Linux handled collecting, storing and displaying the data.
What became of it
IEEE 802.15.4 is now the basis of Zigbee, Thread and therefore also of Matter devices in the smart home. For hobbyists, inexpensive radio modules such as the ESP32 and platforms such as Home Assistant have become widespread. The structure has remained the same, though: an energy-saving sensor, a radio link, a Linux computer as the collection point and a web page for evaluation.
Ideas
- Low-power radio makes battery-powered sensors possible.
- A Linux computer collects the readings and displays them in the web browser.
- The whole chain from firmware to evaluation can be built with free software.
Insights
- With sensors, power consumption decides whether they are practical.
- The structure of sensor, radio and collection point has hardly changed over the years.
Facts
- The radio modules worked to the IEEE 802.15.4 standard.
- The firmware ran on AVR microcontrollers.
- Knowledge of Linux, C and Python was expected.
References
Remarks
- Zigbee and Thread, the basis of many of today’s smart home devices, are built on IEEE 802.15.4.
Recommendations
- With radio sensors, plan the energy budget and transmission intervals first.
- Store readings in a time series database so that you can evaluate trends later.
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.