Chapter 5. Making an XBee Smart Power Switch

In this chapter, we will build a remotely controlled smart power switch. This switch will be a do-it-yourself version of the power switches that you can find in many stores. We will be able to switch a device on and off and also measure the current consumption of the connected device. As the LabVIEW LINX interface for Arduino only supports serial-based communication at the time of writing this book, we will use XBee to communicate wirelessly with the project.

We will first connect the required components to our Arduino board: a relay module, a current sensor, and an XBee shield. Then, we will write a LabVIEW program to control the relay module and measure the current consumption of the connected device. ...

Get Programming Arduino with LabVIEW now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.