In this chapter, we will be learning how to build a home automation system using BeagleBone Black. To get started, first we will be learning about Internet connected home automation systems and how they work. Then, we will move on to setting up Python Flask library that lets you run the HTTP server on your BeagleBone Black using Python.
Once we are up and running with the server using a Flask library on Python, we will use it to go ahead and create a program in which you can turn a GPIO on and turn off using the input from the webpage created by the server. This GPIO pin will be used to turn on and turn off an electrical relay to switch a lamp on and off.
The contents of the chapter are divided into the following:
Prerequisites
The structure of home automation systems
An introduction to webservers
An introduction to Flask for Python
Setting up Flask for Python on a BeagleBone board
Creating a webserver using Flask
Transistors, relays, and power switches...