Building Smart Homes with Raspberry Pi Zero
Table of Contents
Building Smart Homes with Raspberry Pi Zero
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Configuring Your Raspberry Pi Zero Board
Introducing the Raspberry Pi Zero board
Required components for the Zero board
Assembling the different components
Installing Raspbian
Configuring the board for remote access
Installing Node.js
Summary
2. Measure Data Using Your Raspberry Pi Zero Board
Hardware and software requirements
Hardware configuration
Software configuration
Reading data from the sensor
Storing sensor data
Accessing the data remotely
Plotting the stored data
Summary
3. Building a Smart Home Thermostat
Hardware and software requirements
Hardware configuration
Testing individual components
Building the thermostat
Controlling the thermostat remotely
Summary
4. Controlling Appliances fromthe Raspberry Pi Zero
Hardware and software requirements
Controlling LEDs
Controlling the speed of a DC motor
Controlling home appliances
Summary
5. Making a Smart Plug with the Raspberry Pi Zero
Hardware and software requirements
Hardware configuration
Configuring the smart plug
Creating an interface for the smart plug
Logging your energy consumption over time
Summary
6. Sending Notifications using Raspberry Pi Zero
Hardware and software requirements
Making a motion sensor that sends text messages
Sending temperature alerts through email
Receiving measurement SATA through push notifications
Summary
7. Use the Raspberry Pi Zero to Build a Security System
Hardware and software requirements
Building a motion sensor with the Pi Zero
Making a simple alarm module
Building a wireless security camera
Creating a security system
Summary
8. Monitor Your Home from the Cloud
Hardware and software requirements
Monitoring data from a cloud dashboard
Creating a cloud dashboard for your devices
Accessing your security camera from anywhere
Summary
9. Control Appliances from Anywhere
Hardware and software requirements
Control a LED from anywhere in the world
Creating several lamps from the cloud
Make a motion-activated lamp using IFTTT
Build an automated cloud thermostat
Summary
10. Building a Home Automation System with Raspberry Pi Zero Boards
Hardware and software requirements
Building all the modules
Configuring the modules
Integrating the modules into a single interface
Automating your home
Accessing your home automation system from anywhere
Summary
Index
Building Smart Homes with Raspberry Pi Zero
Copyright © 2016 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: October 2016
Production reference: 1241016
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78646-695-2
www.packtpub.com
Author
Marco Schwartz
Reviewer
Vasilis Tzivaras
Commissioning Editor
Kartikey Pandey
Acquisition Editor
Prachi Bisht
Content Development Editor
Trusha Shriyan
Technical Editors
Nirant Carvalho
Naveenkumar Jain
Copy Editors
Safis Editing
Sneha Singh
Project Coordinator
Kinjal Bari
Proofreader
Safis Editing
Indexer
Pratik Shirodkar
Graphics
Kirk D'Penha
Production Coordinator
Shantanu N Zagade
Cover Work
Shantanu N. Zagade
Marco Schwartz is an electrical engineer, entrepreneur, and blogger. He has a master's degree in electrical engineering and computer science from Supélec, France, and a master's degree in micro engineering from the Ecole Polytechnique Fédérale de Lausanne (EPFL), Switzerland.
He has more than five years of experience working in the domain of electrical engineering. Marco's interests gravitate around electronics, home automation, the Arduino and Raspberry Pi platforms, open source hardware projects, and 3D printing.
He has several websites about Arduino, including the Open Home Automation website, which is dedicated to building home automation systems using open source hardware.
Marco has written another book on home automation and Arduino, called Home Automation With Arduino: Automate Your Home Using Open-source Hardware. He has also written a book on how to build Internet of Things projects with Arduino, called Internet of Things with the Arduino Yun, by Packt Publishing.
Vasilis Tzivaras is a software developer and hardware engineer who lives in Ioannina, Greece. He is currently an undergraduate student of the department of computer science and engineering at Ioannina. Along with his studies, he is working on many projects relevant to robotics, such as drones, home automation, and smart home systems using Arduino and the Raspberry Pi. He is also enthusiastic about clean energy solutions and cultural innovation ideas.
He has worked for the University Hospital of Ioannina as an assistant for various computer issues and ha...