Summary

In this chapter, we learned how to reproduce a smart plug using the Raspberry Pi Zero. We built a device that can control electrical devices and also measure their energy consumption. We built a nice interface to control this device, and also made it log data on the Pi itself.

You can, of course, now improve this project in many ways. You could, for example, plot the data measured by the project and have a real-time graph of the energy consumption of the device. For the more adventurous, you could also think about integrating all the components into a nice 3D-printed case, making it almost like a commercial smart plug.

In the following chapter, we are going to dive into an amazing field: the Internet of Things. We'll see how to use your ...

Get Building Smart Homes with Raspberry Pi Zero 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.