Raspberry Pi Home Automation with Arduino


Raspberry Pi Home Automation with Arduino
eBook: $17.99
Formats: PDF, PacktLib, ePub and Mobi formats
$14.40
save 20%!
Print + free eBook + free PacktLib access to the book: $47.98    Print cover: $29.99
$44.39
save 7%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Reviews
Support
Sample Chapters
  • Learn how to dynamically adjust your living environment with detailed step-by-step examples
  • Discover how you can utilize the combined power of the Raspberry Pi and Arduino for your own projects
  • Revolutionize the way you interact with your home on a daily basis

Book Details

Language : English
Paperback : 176 pages [ 235mm x 191mm ]
Release Date : February 2013
ISBN : 1849695865
ISBN 13 : 9781849695862
Author(s) : Andrew K. Dennis
Topics and Technologies : All Books, Other, Python

Table of Contents

Preface
Chapter 1: An Introduction to the Raspberry Pi, Arduino, and Home Automation
Chapter 2: Getting Started Part 1 – Setting up Your Raspberry Pi
Chapter 3: Getting Started Part 2 – Setting up Your Raspberry Pi to Arduino Bridge Shield
Chapter 4: Our First Project – A Basic Thermometer
Chapter 5: From Thermometer to Thermostat – Building upon Our First Project
Chapter 6: Temperature Storage – Setting up a Database to Store Your Results
Chapter 7: Curtain Automation – Open and Close the Curtains Based on the Ambient Light
Chapter 8: Wrapping up
Appendix: References
Index
  • Chapter 1: An Introduction to the Raspberry Pi, Arduino, and Home Automation
    • What we will explore in this book
    • History and background of the Raspberry Pi
      • Raspberry Pi hardware specifications
      • Dimensions
      • 3.5mm analog audio jack
      • Composite RCA port
      • Two USB 2.0 ports plus one micro USB
      • HDMI port
      • SD card port
      • 256 MB/512 MB SDRAM shared with GPU
      • CPU
      • GPU
      • Ethernet port
      • GPIO pins
    • History and background of Arduino
      • Raspberry Pi to Arduino shield connection bridge
      • Shield specifications
        • XBee socket
        • Power source selector
        • UART
        • Digital GPIO pins
        • Serial Peripheral Interface (SPI) pins
        • In Circuit Serial Programmer (ICSP) connector
        • Power pins
        • Analog inputs
        • Raspberry Pi GPIO connector
      • Soldering
      • Writing software for the Arduino
    • What home automation is
      • A 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
    • Chapter 2: Getting Started Part 1 – Setting up Your Raspberry Pi
      • The SD card – our Raspberry Pi's storage device
      • Pre-installed SD card versus a blank one
      • Setting up the SD card
        • Formatting our card
          • Formatting instructions for Windows 7
          • Formatting instructions for Mac OS X
          • Formatting instructions for Linux
      • BerryBoot – our tool for installing an operating system
        • Downloading the BerryBoot zip
          • Windows
          • Mac
          • Linux
        • Hooking up the Raspberry Pi
        • Downloading the right operating system
        • Installing Raspbian
        • Installation complete
          • Windows users
          • Mac and Linux users
      • Summary
      • Chapter 3: Getting Started Part 2 – Setting up Your Raspberry Pi to Arduino Bridge Shield
        • Raspberry Pi to Arduino bridge shield
          • Checking which version of the Raspberry Pi we have
          • Setting up the Raspberry Pi to Arduino shield and LED
          • Installing the software
          • The Arduino IDE
            • A quick look at the language
          • arduPi – a library for our Raspberry Pi and Arduino shield
          • Installing arduPi
            • Leafpad – a text editor
          • Blinking LED application
            • A guide to the code
            • Compiling and running our application
        • Summary
        • Chapter 4: Our First Project – A Basic Thermometer
          • Building a thermometer
            • Setting up our hardware
              • An introduction to resistors
              • Thermistor
              • 10K Ohm resistor
              • Wires
              • Breadboard
            • Connecting our components
          • Software for our thermometer
            • Geany IDE
              • Installing the IDE
            • An introduction to Makefiles
            • Thermometer code
            • Writing our application
            • Compiling and testing
            • What if it doesn't work
            • Up and running
          • Summary
            • Chapter 6: Temperature Storage – Setting up a Database to Store Your Results
              • SQLite
                • Installing SQLite Version 3.x
                • Creating a database
                  • A table to record our temperature
                  • A table to record our rooms
                • Writing some SQL
              • Apache web server
                • Setting up a basic web server
                • WSGI
                  • Setting up WSGI
                • Creating a Python application to write to our database
                • Conclusion
              • HTSQL
                • Download HTSQL
                • Configuring HTSQL
              • Testing our Arduino shield with our database
              • Summary
              • Chapter 7: Curtain Automation – Open and Close the Curtains Based on the Ambient Light
                • Photoresistors
                • Motor shield and motors
                • Setting up the photoresistor
                  • Wiring up the components
                  • Testing the photoresistor with software
                  • Debug
                  • Setting up the motor shield
                  • Wiring up the components
                • Curtain control application
                  • Pulse Width Modulation
                  • Threads
                  • Writing our code
                  • Debugging problems
                  • Connecting to your blinds/curtains
                  • Setting the timing
                  • Attaching the hardware
                  • Debugging problems
                • Summary
                • Chapter 8: Wrapping up
                  • A brief review of what we have learned
                  • Next steps
                    • Prototyping Pi Plate
                    • The wiringPi library
                    • The Gertboard
                    • Introduction to the Gertboard components
                      • GPIO PCB expansion board
                      • GPIO Pins
                      • Motor controller
                      • Open collector driver
                      • Buffered I/O
                      • Atmel ATmeg chip microcontroller
                      • Convertors – analog to digital and digital to analog
                      • Writing software for the Gertboard
                  • Ideas for next step 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
                  • Appendix: References
                    • Raspberry Pi
                    • Raspberry Pi to Arduino bridge shield
                    • Linux
                    • Python
                    • C/C++
                    • Arduino
                    • SQL
                    • HTSQL
                    • Apache
                    • Electronics
                    • Packt Publishing titles
                    • Home automation technology
                    • 3D printing
                    • EEG headsets
                    • Miscellaneous resources

                    Andrew K. Dennis

                    Andrew K. Dennis is the Manager of Application Development at Prometheus Research. Prometheus Research is a leading provider of integrated data management for research and the home of HTSQL, an open source navigational query language for RDMS. Andrew has a Diploma in Computing and a BS in Software Engineering; he is currently studying a second BS in Creative Computing in his spare time. He has over 10 years of experience working in the software industry in the UK, Canada, and USA. This experience includes e-Learning, CMS and LMS development, SCORM consultancy, web development in a variety of languages, open source application development, and running a blog dedicated to maker culture and home automation. His interests include web development, e-Learning, 3D printing, Linux, the Raspberry Pi and Arduino, open source projects, parallel computing, home automation, amateur electronics, home networking, and software engineering. Many of these topics were covered in his previous book from Packt Publishing, Raspberry Pi Home Automation with Arduino.

                    Code Downloads

                    Download the code and support files for this book.


                    Submit Errata

                    Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


                    Errata

                    - 1 submitted: last submission 29 Jan 2014

                    Errata type: Graphics | Page number: 14

                    The bottom-right box in the figure should be Power, analog and I2C pins.

                    Sorry, there are currently no downloads available for this title.

                    Frequently bought together

                    Raspberry Pi Home Automation with Arduino +    Kali Linux – Assuring Security by Penetration Testing =
                    50% Off
                    the second eBook
                    Price for both: $31.95

                    Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                    What you will learn from this book

                    • Install an operating system for your Raspberry Pi
                    • Set up the Raspberry Pi and Arduino bridge shield
                    • Learn how to work with electronic components to build small circuits
                    • Develop applications that interact with your circuits
                    • Use thermistors and photoresistors to monitor and control your surroundings
                    • Control your own mains power with a relay shield and even connect a motor to your Raspberry Pi

                    In Detail

                    Low-cost and high-performing, with a massively diverse range of uses and applications, the Raspberry Pi is set to revolutionize the way we think about computing and programming. By combining the Raspberry Pi with an Arduino board you'll be able to revolutionize the way you interact with your home and become part of a rapidly growing group of hobbyists and enthusiasts.

                    This essential reference will guide you through a series of exciting projects that will allow you to automate your very own home. With easy-to-follow, step-by-step examples, diagrams, and explanations you will not only find it incredibly productive but also highly engaging and informative.

                    Assuming no prior knowledge, our detailed practical examples will guide you through building hardware and software solutions using the Raspberry Pi and Arduino. You will learn how you can use thermistors and relays to keep cool and stay in the shade whilst also utilizing electrical motors and photoresistors. These meticulously designed tutorials will form the basis of automating your entire home and getting you started with dozens of potential projects.

                    Approach

                    "Raspberry Pi Home Automation with Arduino" is an easy-to-follow yet comprehensive guide for automating your home using the revolutionary ARM GNU/Linux board.

                    Who this book is for

                    Even if you have no prior experience with the Raspberry Pi or home automation you can pick up this book and develop these amazing projects. Full of detailed step-by-step instructions, diagrams, and images this essential guide allows you to revolutionize the way you interact with your home. If you don’t know where to start, then this is the perfect book for you.

                    Code Download and Errata
                    Packt Anytime, Anywhere
                    Register Books
                    Print Upgrades
                    eBook Downloads
                    Video Support
                    Contact Us
                    Awards Voting Nominations Previous Winners
                    Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                    Resources
                    Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software