Building Smart Homes with Raspberry Pi Zero - Marco Schwartz - E-Book

Building Smart Homes with Raspberry Pi Zero E-Book

Marco Schwartz

0,0
23,99 €

-100%
Sammeln Sie Punkte in unserem Gutscheinprogramm und kaufen Sie E-Books und Hörbücher mit bis zu 100% Rabatt.

Mehr erfahren.
Beschreibung

The release of the Raspberry Pi Zero has completely amazed the tech community. With the price, form factor, and being high on utility—the Raspberry Pi Zero is the perfect companion to support home automation projects and makes IoT even more accessible.
With this book, you will be able to create and program home automation projects using the Raspberry Pi Zero board. The book will teach you how to build a thermostat that will automatically regulate the temperature in your home. Another important topic in home automation is controlling electrical appliances, and you will learn how to control LED Lights, lamps, and other electrical applications.
Moving on, we will build a smart energy meter that can measure the power of the appliance, and you’ll learn how to switch it on and off. You’ll also see how to build simple security system, composed of alarms, a security camera, and motion detectors. At the end, you will integrate everything what you learned so far into a more complex project to automate the key aspects of your home.
By the end, you will have deepened your knowledge of the Raspberry Pi Zero, and will know how to build autonomous home automation projects.

Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:

EPUB
MOBI

Seitenzahl: 142

Veröffentlichungsjahr: 2016

Bewertungen
0,0
0
0
0
0
0
Mehr Informationen
Mehr Informationen
Legimi prüft nicht, ob Rezensionen von Nutzern stammen, die den betreffenden Titel tatsächlich gekauft oder gelesen/gehört haben. Wir entfernen aber gefälschte Rezensionen.



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

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

Credits

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

About the Author

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.

About the Reviewer

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 has been a part of the support team of his CSE department for over a year. He has participated in IEEE UOI Student Branch and other big organizations, such as FOSSCOMM, with personal presentations for website designing, programming, Linux systems, and drones.

He is the chair of IEEE University of Ioannina Student Branch and has proposed many projects and solutions to automate homes and many other life problems by reducing the time of everyday routines. In addition to this, he has come up with ideas to entertain kids with funny and magical projects using Arduino-like hardware and open source software. Many of the projects can be found on his GitHub account under the name of BillyTziv.

Apart from Building Smart Homes with Raspberry Pi Zero and Internet of Things with Arduino Cookbook, he has also published a book named Building a Quadcopter with Arduino. He has also worked on another book Programming in C, which is not yet published. In addition to this, he has written for blogs, forums, guides, and small chapters, explaining and sharing his knowledge of computers, networks, and programming.

www.PacktPub.com

Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at <[email protected]> for more details.

At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.

https://www.packtpub.com/mapt

Get the most in-demand software skills with Mapt. Mapt gives you full access to all Packt books and video courses, as well as industry-leading tools to help you plan your personal development and advance your career.

Fully searchable across every book published by PacktCopy and paste, print, and bookmark contentOn demand and accessible via a web browser

Preface

The Raspberry Pi is an amazing development platform that was introduced back in 2012, along with the release of the first board. However, due to its price, it was not convenient for people to use it for smart home applications, where you need to deploy several modules at different places of your home. Usually, people building smart homes with this board used it as a central hub.

However, in 2016 the Raspberry Pi foundation released the Zero board, which is a smaller and much cheaper version of the Raspberry Pi board, and this changed everything for the home automation field. Now, you can actually use several of these boards in a home automation system and enjoy all the power and flexibility of the Raspberry Pi for all your projects.

This is exactly what I will teach you to do in this book. You will learn how to use the Raspberry Pi Zero board in several home automation projects, in order for you to build a smart home that is really tailored to your needs.

What this book covers

Chapter 1, Configuring Your Raspberry Pi Zero Board, teaches you how to get started with your Raspberry Pi Zero board and also install everything that you need to carry out all the projects that you will find in this book.

Chapter 2, Measure Data Using Your Raspberry Pi Zero Board, teaches you how to measure data from a sensor using the Raspberry Pi Zero board. You will also learn how to measure data from the sensor, store this data on the Pi, and plot it graphically.

Chapter 3, Building a Smart Home Thermostat, gets you right into the core topic of this book, that is, building your first home automation system. In this chapter, we will build a simple thermostat that will allow you to regulate the temperature in your home.

Chapter 4, Control Appliances from the Raspberry Pi Zero, shows you how to use the Raspberry Pi Zero board to easily control home appliances. As an example, we'll see how to control a DC motor and switch on/off appliances, such as lamps.

Chapter 5, Making a Smart Plug with the Raspberry Pi Zero, teaches you how to build your own version of a smart wireless plug that you can buy in a shop. We'll see how to build the same using the Raspberry Pi Zero board and how to customize it for your own needs.

Chapter 6, Sending Notifications using Raspberry Pi Zero, shows you how to send automated notifications from your Pi, for example to indicate that the temperature in your home is getting low. As examples, we'll see how to send text, email, and push notifications.

Chapter 7, Use the Raspberry Pi Zero to Build a Security System, shows you how to start integrating everything we saw so far in the book and build a security system using what we have learned so far. You'll, for example, learn how to transform your Raspberry Pi Zero board into a wireless security camera.

Chapter 8, Monitor Your Home from the Cloud, guides you through an amazing field: the Internet of Things. You will learn how to use the Internet of Things for your smart home and monitor it from anywhere in the world.

Chapter 9, Control Appliances from Anywhere, guides you into the field of the Internet of Things, this time by teaching you how to control home appliances from outside of your Wi-Fi network.

Chapter 10, Building a Home Automation System with Raspberry Pi Zero Boards, uses everything you learned in the book to build a complete home automation system for your entire home.

What you need for this book

For this book, the main component you will need is, of course, a Raspberry Pi Zero board. In the first chapter of the book, I will show you how to completely configure the board, so you can use it for the projects of this book. We will use some basic components at the start, such as sensors, and then move on to using more complex components. For every project, I will of course guide you step-by-step into building the hardware part so that you are not left behind.

On the software side, it is good if you actually have some existing programming skills, especially in JavaScript and in the Node.js framework. However, I will explain all the parts of each software piece of this book; so even if you don't have good programming skills in JavaScript you will be able to follow along.

Who this book is for

This book is for all the people who want to automate their homes and make it smarter, while at the same time having complete control on what they are doing. If that's your case, you will learn everything there is to learn in this book, on how to use the amazing Raspberry Pi Zero board to automate your home.

This book is also for makers who have played in the past with other development boards, such as Arduino. If that's your case, you will learn how to use the power of the Raspberry Pi platform to build smart homes. You will also learn to create projects that can't easily be done with other platforms, such as creating a wireless security camera with the Pi Zero.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.

To send us general feedback, simply e-mail <[email protected]>, and mention the book's title in the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for this book from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

You can download the code files by following these steps:

Log in or register to our website using your e-mail address and password.Hover the mouse pointer on the SUPPORT tab at the top.Click on Code Downloads & Errata.Enter the name of the book in the Search box.Select the book for which you're looking to download the code files.Choose from the drop-down menu where you purchased this book from.Click on Code Download.

You can also download the code files by clicking on the Code Files button on the book's webpage at the Packt Publishing website. This page can be accessed by entering the book's name in the Search box. Please note that you need to be logged in to your Packt account.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

WinRAR / 7-Zip for WindowsZipeg / iZip / UnRarX for Mac7-Zip / PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Building-Smart-Homes-with-Raspberry-Pi-Zero We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title.

To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.

Piracy