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

Raspberry Pi Home Automation with Arduino - Second Edition

Andrew K. Dennis

Condividi libro
  1. 148 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

Raspberry Pi Home Automation with Arduino - Second Edition

Andrew K. Dennis

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
Raspberry Pi Home Automation with Arduino - Second Edition è disponibile online in formato PDF/ePub?
Sì, puoi accedere a Raspberry Pi Home Automation with Arduino - Second Edition di Andrew K. Dennis in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Computer Science e Hardware. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Anno
2015
ISBN
9781784399207
Categoria
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...

Indice dei contenuti