Raspberry Pi Home Automation with Arduino - Second Edition
eBook - ePub

Raspberry Pi Home Automation with Arduino - Second Edition

Andrew K. Dennis

Compartir libro
  1. 148 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

Raspberry Pi Home Automation with Arduino - Second Edition

Andrew K. Dennis

Detalles del libro
Vista previa del libro
Índice
Citas

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Raspberry Pi Home Automation with Arduino - Second Edition un PDF/ePUB en línea?
Sí, puedes acceder a Raspberry Pi Home Automation with Arduino - Second Edition de Andrew K. Dennis en formato PDF o ePUB, así como a otros libros populares de Computer Science y Hardware. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
2015
ISBN
9781784399207
Categoría
Hardware

Raspberry Pi Home Automation with Arduino Second Edition


Table of Contents

Raspberry Pi Home Automation with Arduino Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
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. An Introduction to the Raspberry Pi, Arduino, and Home Automation
History and background of the Raspberry Pi
History and background of the Arduino
Raspberry Pi to Arduino shield connection bridge
Soldering
Creating software for the Arduino
What is home automation?
History of home automation
X10 – a standard is born
The dot-com boom and open source – a new set of technologies
Commercial products
Arrival of the Raspberry Pi
Summary
2. Getting Started – Setting Up Your Raspberry Pi and Arduino
The SD card – our Raspberry Pi's storage device
Preinstalled SD card versus a blank SD card
A note on Noobs
Downloading Raspbian
Setting up the SD card and installing Raspbian
Raspberry Pi SSH setup
Arduino
Installing the IDE on your Raspberry Pi
A quick guide to the Arduino IDE
Using the Arduino to Raspberry Pi connection bridge
Summary
3. Central Air and Heating Thermostat
Safety first
Introducing the thermostat
Setting up our hardware
Adding the Ethernet shield
Relays
Connecting the thermistor
Setting up our software
Thermostat software
Testing our thermostat and fan
Attaching the fan
Starting your thermostat application
Testing the JSON response
Next steps
Attaching the device to your heating system or a similar appliance
Adding a potentiometer
Adding an LCD screen
Summary
4. Temperature Storage – Setting Up a Database to Store Your Results
SSH
SQLite
Installing SQLite Version 3.x
Creating a database
A table to record our temperature
A table to record our rooms
Writing SQL queries
Creating a Python application to write to our database
Checking the results
Adding a cron job
HTSQL
Downloading HTSQL
Configuring HTSQL
Summary
5. Parcel Delivery Detector
Wiring up the parcel sensor
An introduction to resistors
Pressure sensor – force-sensing resistor
10K ohm resistor
Connecting the components to the Arduino
Writing our software
Updating the Raspberry Pi database
A web-based Python application
Setting up SMTP
Our Python application
Starting the web service
Testing our application
Installing the parcel detector
Testing the complete setup
Next steps
Upgrading from Ethernet to a wireless system
Checking the shipping details
Replacing the pressure sensor with a camera and image recognition
Summary
6. Curtain Automation – Open and Close the Curtains Based on the Ambient Light
Introduction to the Arduino bridge shield
Installing arduPi
Photoresistors
Motor shield and motors
Setting up the photoresistor
Wiring up the components
Testing the photoresistor with software
Makefiles
Setting up the motor shield
Wiring the components to the shield
Curtain control application
Pulse width modulation
Threads
Writing our code
Connecting to your blinds/curtains
Setting the timing
Attaching the hardware
Debugging problems
Next steps
Mounting the photoresistor outdoors
Adding a stepper motor
Summary
7. Water/Damp Detection – Check for Damp/Flooding in Sheds and Basements
A brief note on dampness
Damp detection system
Arduino circuit
Sketch code
Database updates
Python code
Adding a cron job
Using the humidity reading
Adding an LED alert
Blinking LED code
Expanding the LED functionality
Connecting a dehumidifier
Water detection
Summary
8. Wrapping Up
A brief review of the second edition of Raspberry Pi Home Automation with Arduino
Next steps
The prototyping Pi Plate
The wiringPi library
The Gertboard
Introduction to the Gertboard components
GPIO PCB expansion board
GPIO pins
Motor controller
The open collector drivers
Buffered I/O
Atmel ATmega microcontroller
Convertors – analog to digital and digital to analog
Creating software for the Gertboard
Ideas for future projects
Expanding the curtain automation tool to include temperature sensing
Changing the motor on the curtain automation project to a stepper motor
Switching lights on with a photoresistor
Holiday lights from LEDs
The future of home automation
3D printing
RFID chips
EEG headsets
Summary
A. References
Raspberry Pi
Raspberry Pi to Arduino bridge shield
Linux
Python
C/C++
Arduino
SQL
HTSQL
Electronics
Packt Publishing titles
Home automation technology
3D printing
Index

Raspberry Pi Home Automation with Arduino Second Edition

Copyright © 2015 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: February 2013
Second edition: February 2015
Production reference: 1200215
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78439-920-7
www.packtpub.com

Credits

Author
Andrew K. Dennis
Reviewers
Ed Baker
Rémy Bétus
Piotr Kula
Commissioning Editor
Akram Hussain
Acquisition Editor
Richard Brookes-Bland
Con...

Índice