Book Image

Arduino Home Automation Projects

By : Marco Schwartz
Book Image

Arduino Home Automation Projects

By: Marco Schwartz

Overview of this book

Table of Contents (14 chapters)
Arduino Home Automation Projects
About the Author
About the Reviewers


In this chapter, we hacked a commercial device to control a light directly from your computer. We replaced the internal electronics of the device to insert an Arduino board and a relay. This gives us the flexibility of an Arduino-based system with the nice case that came along with the commercial device. After hacking the device, it can then be controlled directly from the web browser of your computer.

Let's see what the major takeaways of this chapter were. In the first part of the chapter, we chose the different components required for the project, including the device to be hacked. We also chose a small Arduino board and a relay module.

Then, we opened up the device to be hacked and inserted the components we chose in the first part of the project.

We then wrote the Arduino sketch to control the device by sending commands on the serial port. We tested this sketch by trying to switch the relay on and off.

Finally, we built a web-based interface to control the hacked device from your...