Book Image

Raspberry Pi 3 Home Automation Projects

By : Shantanu Bhadoria, Ruben Oliva Ramos
Book Image

Raspberry Pi 3 Home Automation Projects

By: Shantanu Bhadoria, Ruben Oliva Ramos

Overview of this book

Raspberry Pi 3 Home Automation Projects addresses the challenge of applying real-world projects to automate your house using Raspberry Pi 3 and Arduino. You will learn how to customize and program the Raspberry Pi 3 and Arduino-based boards in several home automation projects around your house. This book aims to help you integrate different microcontrollers like Arduino, ESP8266 Wi-Fi module, Particle Photon and Raspberry Pi 3 into the real world, taking the best of these boards to develop some exciting home automation projects. We will start with an interesting project creating a Raspberry Pi Powered smart mirror and move on to Automated Gardening System, which will help you build a simple smart gardening to keep your garden healthy with minimal effort. You will also learn to build projects such as CheerLights into a holiday display, a project to erase parking headaches with OpenCV and Raspberry Pi 3, create Netfl ix's "The Switch" for the living room and lock down your house like Fort Knox with a Windows IoT face recognition-based door lock system. By the end of the book, you will be able to build and automate the living space with intriguing IoT projects and bring a new degree of inter connectivity to your world.
Table of Contents (7 chapters)

Sensor devices for smart parking

To build a smart parking system, it's necessary to have some sensors that can be applied to such a system. Let's see them in detail.

Presence sensor

To detect when a car is in a parking lot, there are some sensors available; in this case, we will use a presence sensor like this:

In some parking lots, there is a gate that goes up when the driver arrives in front of it and they press the button and receive their ticket; in others, they have an identity card. Here is a common parking lot:

This is a prototype of the entrance to the parking lot:

Now we will make a sketch that we can use with Arduino; it detects when the car gets close to the sensor. We use the digitalread() instruction...