In this example, MATLAB is used to continuously monitor the temperature throughout an apartment by interacting with a wireless network of temperature sensors built using XBee Series 2 modules. Each XBee edge-node reads analog voltages (that are linearly proportional to the temperature) from multiple temperature sensors. The readings are transmitted back to MATLAB via a coordinator XBee module. This example illustrates how to manipulate, acquire, and analyze data from a network of multiple sensors connected to multiple XBee edge-nodes. Data are acquired over periods ranging from hours to days to help design and build a smart thermostat system.
XBee is a registered trademark of Digi International, http://www.digi.com.
This example requires the XBee class from the MATLAB Central file exchange entry available here:
Added code and example functions for the final MakerZone article.
Fixed broken links to the MakerZone articles.
Added code and example functions for the third MakerZone article.
Added code and example functions for the second MakerZone article.
I added "Copyright 2014 The MathWorks, Inc." to the MATLAB file in the submission. I also moved the images so that they would show up properly in the "Example" display on the File Exchange.
Inspired by: Wireless control and monitoring of an LED using XBee
More Files in the Maker Community
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.