Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Raspberry Pi Home Automation with Arduino - Second Edition
Raspberry Pi Home Automation with Arduino - Second Edition

Raspberry Pi Home Automation with Arduino - Second Edition: Unleash the power of the most popular microboards to build convenient, useful, and fun home automation projects , Second Edition

eBook
€8.99 €19.99
Paperback
€24.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

Raspberry Pi Home Automation with Arduino - Second Edition

Chapter 1. An Introduction to the Raspberry Pi, Arduino, and Home Automation

This chapter provides an introduction to the Raspberry Pi, Arduino, Arduino to Raspberry Pi connection bridge, and the subject of home automation.

We'll look at the history of the Raspberry Pi and how it came to being, as well as the Arduino platform, an open source microcontroller that provides developers with a means to interact with their surroundings through a variety of sensors and motors.

Next, we will explore the Arduino to Raspberry Pi connection bridge, a method of attaching an Arduino shield to the Raspberry Pi. We will wrap up the chapter by covering home automation and how technologies such as the Raspberry Pi have put the ability to build complex sensor-based systems in the hands of the open source community.

First, let's start by looking at what we will be covering in the coming chapters of this book. We have a number of exciting projects ahead that will slowly introduce home automation via technologies such as Raspberry Pi and Arduino. These projects include:

  • Writing software to control hardware
  • Building a thermometer using a thermistor
  • Turning the thermometer into a thermostat using relays
  • Controlling electric motors using a motor shield
  • Writing software to store sensor data generated by your projects

As you go through each chapter in this book, you will gain a basic knowledge of building circuits and hardware for home automation projects. You will then learn to write software to both control your hardware projects and record the data generated by them. Finally, we will consider future projects that you can build with your newly acquired skills.

Our next step is to learn a little about the background of the technologies that we are going to use. We will start with the Raspberry Pi.

History and background of the Raspberry Pi

From the first vacuum tube computers to the tape and punch card machines of the 1960s and the first microprocessor mainframes of the 1970s, computing had very much been the preserve of large businesses and the research departments of universities. However, by the late 1970s, with the release of Apple II and seeds planted earlier by technologies such as the TV Typewriter and Apple I, this was rapidly changing.

By the 1980s, the public could buy low-cost home computers, such as the ZX Spectrum and Commodore 64, which hit the market and subsequently gave birth to a whole generation of amateur programmers. By the 1990s, these programmers, brought up on tinkering with their home computers and writing BASIC, were heading to academia and the computer industry, and helping to forge the dot-com boom with game, web, and business technologies.

The genesis of the Raspberry Pi is linked to this in many ways. A group of computer scientists led by Eben Upton at the University of Cambridge's computer laboratory in 2006 struck upon the idea of producing a cheap, educational microcomputer geared towards amateur computer enthusiasts, budding students, and children. The aim was to help provide the skills for future computer science undergraduate applicants that many of the applicants in the 1990s possessed. This was largely because home computers of the 1980s required programming and were open to hacking.

However, it would be another two years before the project became viable, and until 2012 before the Raspberry Pi was being shipped to the public.

The 2000s saw a huge growth in mobile computing technologies, a large segment of which was being driven by the mobile phone industry. By 2005, ARM—a British designer of CPU core components and by-product of the 1980s' home computer company Acorn—had grown to a state where 98 percent of mobile phones were using their technology. This translated into around 1 billion CPU cores. ARM technology later ended up featuring on the Raspberry Pi, with the ARM1176JZF-S processor core being used as a part of the Broadcom BCM2835 System-on-a-Chip (SoC).

During the same period, Eben Upton designed several concepts for the Raspberry Pi, and by 2008, thanks to a by-product of the increasing penetration of mobile phone technology, the cost of building a miniature, portable microcomputer, with many of the multimedia functions that the public was accustomed to, was becoming viable. Thus, the Raspberry Pi Foundation was formed to develop and manufacture the Raspberry Pi computer.

By 2011, the first Alpha Models were being produced and tested, and the public finally got to see what the Raspberry Pi was capable of. Demos of Quake III Arena and full HD 1080px video showed that the tiny computer could pack a big punch for low cost.

Finally in 2012, the Raspberry Pi was ready for public consumption. Two versions of the Raspberry Pi were manufactured, namely Model A and Model B, with B being released first.

Over the subsequent years, both A and B were upgraded, with the Models A+ and B+ being release and this was complemented with the introduction of the Raspberry Pi 2 in 2015.

For the projects in this book, you will need to use at least a Model B version of the board, or the more powerful Model B+ or Raspberry Pi 2 Model B if available.

Next, let's learn about the Arduino platform.

History and background of the Arduino

One of the most popular open-hardware products to have hit the market is the Arduino platform. Developed in Italy by Massimo Banzi and David Cuartielles in 2005, Arduino is an open-hardware technology coupled with a programming language and an Integrated Development Environment (IDE) based on the open source wiring software.

The Arduino platform allows the user to create custom hardware and applications that control it via its namesake programming language. Cheap and easy to use, Arduino is an alternative to expensive programmable cards and closed commercial systems. Therefore, it helped pave the way for home enthusiasts to build their own home automation projects.

Currently, there are several board models in the market with a wide range of sizes and components; for example, the Lily Pad allows enthusiasts to attach an Arduino board to clothing for textile-based electronic projects. These boards support a wide range of shields—Arduino-compatible electronic boards that can be plugged into it and expand its functionality. One particular extension has been the introduction of Ethernet shields and wireless XBee devices that allow communication with home networks and the Web. What makes Arduino suitable for amateur enthusiasts is that little or no knowledge of how electronic components are soldered is required to use its prebuilt shields. As the user becomes more comfortable with the technology, they can progress to building their own projects using the numerous kits and sensors available on the market.

This easy adoption has helped contribute to a number of websites and books dedicated to home automation projects that use this technology.

Throughout the following chapters, you will explore the use of Arduino alongside the Raspberry Pi. For the projects in this book, we recommend using the Uno board pictured as follows:

History and background of the Arduino

Note

You can read more about Arduino products at http://arduino.cc/en/Products.Compare.

Next, we shall look at the Raspberry Pi to Arduino connection bridge, a method of connecting your Arduino shields to your Raspberry Pi.

Raspberry Pi to Arduino shield connection bridge

For two of the projects in this book, we will be using the Raspberry Pi to Arduino shield connection bridge. This is produced by Cooking Hacks, an offshoot of the Libelium wireless communications company based in Spain.

Note

Their website can be found at http://www.cooking-hacks.com.

By connecting this device to our Raspberry Pi, we get to reuse our Arduino shields and components, and get the power and storage of the Raspberry Pi running behind it. This opens up many options for complex home automation projects that may need to host databases or run memory-intensive software.

The Cooking Hacks shield is connected to the Raspberry Pi's General Purpose Input/Output (GPIO) pins. With the inclusion of the arduPi software, you will be able to communicate between your electronic devices, the Raspberry Pi's operating system, and web-based projects.

The Cooking Hacks shield should look like this:

Raspberry Pi to Arduino shield connection bridge

Image courtesy: Cooking Hacks

A wide range of Arduino shields can be used with the connection bridge. At the time of writing this book, the Arduino shield connection bridge was available for €40.

Note

Many of these shields can be found on the Arduino website at http://arduino.cc/en/Main/Products.

The shields specifications can be also be found at http://www.cooking-hacks.com/documentation/tutorials/raspberry-pi-to-arduino-shields-connection-bridge.

By learning to use this shield, you will discover how you can extend the functionality of your Raspberry Pi so that it can mimic the Arduino microcontroller and reuse components from other Arduino projects that you may have attempted in the past or will build in the future.

Soldering

Soldering is the process of attaching electronic components using a heated metal filler (the solder), in order to allow electrical current to flow between them.

At this point, it is worth mentioning that practicing some soldering before you start building the projects in this book is worth the effort, but not strictly necessary. If you are a novice, do not worry because there will be minimal soldering.

Also, if you have any old PC hardware sitting around, such as a graphics card that is no longer in use, you can practice desoldering and resoldering the components until you become comfortable with the process. This will also help you to get used to the soldering iron and desoldering tool.

Creating software for the Arduino

After you have set up the Arduino microcontroller and Arduino shield, and plugged it into the Raspberry Pi, you will probably be wondering how to interact with it. After all, it has sensors and LEDs, but these are nothing without applications to control them in a meaningful manner.

There are many software languages available for building projects with, but we are interested in the Arduino programming language, C++, Python, SQL, and HTSQL.

  • The Arduino programming language is a subset of C++ and provides us with a tool to program the Arduino microcontroller, Arduino-compatible shields, and the components connected to them. One benefit of using this technology is that there is a wealth of programs and libraries online that can be used for future projects. You will be using this language in the Arduino IDE and on the Raspberry Pi to write the core applications that will be reading data from sensors attached to your projects.
  • The next language that we will be using is Python. Python is a high-level programming language developed in the late 1980s by Guido Van Rossum named after the popular comedy show Monty Python's Flying Circus. This language allows you to build web and database applications that can be used to process the output of Arduino programs. We will be using Python to build a web application that can process data sent to it and then insert it via SQL into a SQLite3 database.
  • We will also be using SQL to build the database that our Python script connects to. In conjunction with the SQLite database management system, we will construct a repository to store some of the results from our projects, for example temperature data.
  • Besides these languages, we will also be using Hyper Text Structured Query Language (HTSQL) to provide a web interface to our database that is easy to access via the web browser and query via HTTP.

Now that we have looked at our tools to build home automation systems, the Raspberry Pi and Arduino, let's look at what home automation is.

What is home automation?

Having picked up this book, you may already have an idea of what home automation is, but just in case you don't, we'll give you a brief overview of the subject and the open source technology that is driving many projects out there today.

Home automation is more than just a remote control for your TV. Examples include programming your DVD to record your favorite shows, setting the AC unit to turn on when the temperature reaches 76 degrees Fahrenheit, and installing a fancy alarm system that contacts the police in case of a break-in.

Also known as domotics (a portmanteau between domestic and informatics), home automation can be summed up as a mechanism of removing as much human interaction as technically possible and desirable in various domestic processes, and replacing it with programmed electronic systems. It is essentially automation of home activities.

History of home automation

Concepts for home and building automation were around for decades before becoming a reality, and were featured in the writing of the 19th century science-fiction author H. G. Wells, comics, and cartoons such as The Jetsons. American industrialist George Westinghouse helped to pioneer the AC electrical system, which the X10 home automation standard would later run on, and in 1966, the company that bears his name, Westinghouse Electric, employed an engineer who developed what could arguably be called the first computerized home automation system—ECHO IV.

The Electronic Computing Home Operator (ECHO) was featured in the April 1968 edition of Popular Mechanics and had been expanded from a set of spare electronics, both in the physical sense and the literal sense, to include computing its founder Jim Sutherland's family household finances and storing their shopping lists, amid an array of other tasks.

Note

You can still read the original Popular Mechanics article online, at http://books.google.com/books?id=AtQDAAAAMBAJ&pg=PA77&source=gbs_toc_r&cad=2#v=onepage&q&f=false.

The ECHO never went commercial, and through the 1960s, hobbyists and a number of large companies such as Honeywell toyed with the idea of computerizing homes. However, it was the 1970s, much as with personal computing, that saw the birth of the modern era of home automation technology.

X10 – a standard is born

The introduction of the X10 technology standard can be arguably described as the beginning of modern home automation technology. Conceived in 1975 by Pico Electronics, who later partnered with Birmingham Sound Reproducers, X10 laid out the framework to allow remote-controlled access of domestic appliances. The X10 standard was designed to allow transmitters and receivers to work over existing electrical wiring systems by broadcasting messages such as "turn off" and "turn on" via radio frequency bursts.

In 1978, X10 products began to make their way into stores, geared towards electronics enthusiasts, and shortly after, in the 1980s, the CP-290 computer interface made its way to the market for the Mattel Aquarius computer.

The CP-290 unit allowed computers to communicate with X10-compatible home appliances. Over the years, support for Windows and Mac was included, and it gave those interested in home automation the ability to program their lighting systems, thermostats, and garage doors from their home computers.

As revolutionary as X10 has been, it unfortunately has a number of flaws. These include:

  • Wiring and interference issues
  • Commands getting lost in transmission
  • Limited scope of products supporting X10
  • Limited scope of commands available
  • Slow speed of signal transmission
  • Lack of encryption
  • Lack of confirmation messages without expensive two-way devices

By the late 1990s, home automation still hadn't penetrated the home market on a truly wide scale. However, the technological advancements of the dot-com boom were providing a whole new set of tools, protocols, and standards that addressed many of the flaws of the X10 standard.

The dot-com boom and open source – a new set of technologies

With the explosion of technologies that followed the birth of the Web in the 1990s, home computing and networking technologies were now available to the public and could be easily and cheaply installed at home. These technologies would later provide an ideal candidate to push the boundaries of what could be achieved by home automation enthusiasts, and provide the industry with the tools to build smart home appliances and systems. It was only a small step from PC-to-PC communication to appliance-to-PC communication.

Home networks running on Ethernet, and later on Wi-Fi, provided a mechanism that could allow computers and electronic appliances to communicate with one another across a home without needing to use the existing electrical wiring. In the case of Wi-Fi, no extra cabling was required.

As protocols such as FTP and HTTP became the norm to access information across the Internet, hardware developers saw the opportunity to leverage these communication technologies in open source hardware devices. While X10 appliances had no way of knowing whether a signal had been successfully sent without the purchase of costly two-way devices, web technologies provided a whole framework to return error codes and messages.

At approximately the same time when the Arduino platform was being developed, the first tablet computers were beginning to be released. From 2005 until now, there has been an explosion in mobile, tablet, and smartphone devices. This growth has been commonly referenced to as the post-PC era.

These devices have provided mobile computing platforms that can run complex software and be small enough to fit in the user's pocket. As a result of this, applications that allow the user to control consumer electronics, such as the TV, have been developed for the iPhone and Android.

Due to their size, portability, and low cost in some cases, they have provided the perfect platform to interface with home appliances and devices, and provided an extension to a medium the user is familiar with.

Alongside the explosion in hardware, there was an equivalent explosion in software. One particular product of interest that we will look at is the open source Android operating system.

Android OS is a Linux-based operating system geared towards mobile devices. As a part of the Open Handset Alliance—a consortium of 84 companies operating in the mobile sphere—Google backed and eventually purchased the Android mobile operating system. The aim has been to create an open source operating system that can compete with companies such as Apple, and provide a robust system that can work across multiple manufacturers' devices.

As a result of this, commercial manufacturers of home appliances have begun to embed the technology and software into their products, and a generation of smart devices has started to appear in stores around the world.

Commercial products

If you are interested in a smart refrigerator that can tell you the weather and keep track of your groceries, or an oven that can be controlled via your smartphone, then you are in luck. Products such as the Samsung RF4289HARS refrigerator running Android and the LG smart washing machine are paving the way for smart homes by embracing open source and web-based technologies. It is also not just appliances that are getting the makeover. Firms such as the Nest—a company founded by ex-employees of Apple—are developing smart thermostats.

Barcodes and QR codes on products now allow the consumer to scan them with their smartphones and download information about the item directly from the web. This can be extended to allow scanning and inventory management of products at home, recording data such as consumption dates of products in the refrigerator, and dynamically generating shopping lists.

This combination of hardware, software, and information now provides the potential for the home to become a part of "the Internet of Things" as quoted by Kevin Ashton.

Thanks to open source and open standard technology being used in these devices, it is easy to combine home-brewed projects built with the Raspberry Pi and commercial products by companies such as LG to build a smart home with a network of devices that can communicate with one another to combine the execution of tasks.

As we mentioned, home-brewed systems such as the Raspberry Pi can form part of this network. Let's now look at the effects of the arrival of the Raspberry Pi on the world of home automation.

Arrival of the Raspberry Pi

With the arrival of the Raspberry Pi and the Raspberry Pi to Arduino shield, there is now a set of open source technologies that combine the power of a PC, the communication and multimedia technologies of the Web, the ability to interact with the environment of a microcontroller, and the portability of a mobile device.

Coupled with the existing Arduino microcontrollers, we have the perfect set of tools to allow us to build cheap devices and systems for our homes. These devices can then interface with their commercial counterparts and can also be tailored for our own needs, while providing great tools to learn about technology.

For those familiar with the Arduino platform, the Raspberry Pi combined with its shields provides an all-in-one medium to create devices without the need for a separate PC or Mac—giving us an alternative to solutions that currently exist.

The ability of the Arduino Uno to communicate with the Raspberry Pi via an Ethernet shield over a LAN gives us flexibility in the types of projects that we can build. You will see this in the coming chapters where an Arduino Uno writes information back to a Raspberry Pi that is hosting a database.

Also, thanks to the Raspberry Pi's mission of providing an educational tool for those interested in programming, the addition of the Arduino shield will provide a mechanism for those who wish to move from writing software that manipulates the Raspberry Pi to software that manipulates their environment and provides a pathway to learn about electronics. This could have the positive effect of bolstering the ranks of Homebrew and Maker clubs with an eye towards home automation, and lead to an ever-increasing diversity of tools being produced for the public.

Summary

In this chapter, we provided an overview of the Raspberry Pi and Arduino platform. We also looked at some of the existing technologies used in home automation and their history. While Sutherland's ECHO IV filled a room in his house, the Raspberry Pi occupies space not much larger than a credit card.

Home automation now seems to be taking the next step to becoming widely adopted, and the Raspberry Pi neatly fits into this world by providing those who want to customize control of their devices with an easy and a cheap tool to achieve it, and also by expanding what can be done with Arduino technology currently out in the marketplace.

With this in mind, we will get started on our first project—setting up the Raspberry Pi. Here, we will install the necessary software to get our Raspberry Pi up and running, and install the Arduino IDE so that we can program our Arduino Uno.

Left arrow icon Right arrow icon

Description

If you are new to the Raspberry Pi, the Arduino, or home automation and wish to develop some amazing projects using these tools, then this book is for you. Any experience in using the Raspberry Pi would be an added advantage.

Who is this book for?

If you are new to the Raspberry Pi, the Arduino, or home automation and wish to develop some amazing projects using these tools, then this book is for you. Any experience in using the Raspberry Pi would be an added advantage.

What you will learn

  • Set up the Raspberry Pi and the Cooking Hacks Arduino bridge shield
  • Work with electronic components to build small circuits
  • Develop applications that interact with your circuits
  • Use thermistors, FSRs, and photoresistors to monitor and control your surroundings
  • Communicate with your Raspberry Pi from an Arduino Uno via Ethernet
  • Send yourself email updates when a parcel arrives at your home
  • Control your own mains power with a relay shield and even connect a motor to your Raspberry Pi
  • Build a device that checks for damp/flooding using the Arduino bridge shield and Raspberry Pi
Estimated delivery fee Deliver to Lithuania

Premium delivery 7 - 10 business days

€25.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Feb 25, 2015
Length: 148 pages
Edition : 2nd
Language : English
ISBN-13 : 9781784399207
Vendor :
Raspberry Pi
Category :
Tools :

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to Lithuania

Premium delivery 7 - 10 business days

€25.95
(Includes tracking information)

Product Details

Publication date : Feb 25, 2015
Length: 148 pages
Edition : 2nd
Language : English
ISBN-13 : 9781784399207
Vendor :
Raspberry Pi
Category :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 84.97
Building a Home Security System with Raspberry Pi
€29.99
Raspberry Pi Android Projects
€29.99
Raspberry Pi Home Automation with Arduino - Second Edition
€24.99
Total 84.97 Stars icon
Banner background image

Table of Contents

10 Chapters
1. An Introduction to the Raspberry Pi, Arduino, and Home Automation Chevron down icon Chevron up icon
2. Getting Started – Setting Up Your Raspberry Pi and Arduino Chevron down icon Chevron up icon
3. Central Air and Heating Thermostat Chevron down icon Chevron up icon
4. Temperature Storage – Setting Up a Database to Store Your Results Chevron down icon Chevron up icon
5. Parcel Delivery Detector Chevron down icon Chevron up icon
6. Curtain Automation – Open and Close the Curtains Based on the Ambient Light Chevron down icon Chevron up icon
7. Water/Damp Detection – Check for Damp/Flooding in Sheds and Basements Chevron down icon Chevron up icon
8. Wrapping Up Chevron down icon Chevron up icon
A. References Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
(5 Ratings)
5 star 40%
4 star 0%
3 star 0%
2 star 40%
1 star 20%
Francis Perea Jun 03, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
A really practical book, plenty of interesting projects even connected to the cloud. A must read if you are interested in home automation nowadays. Even better than the first edition.
Amazon Verified review Amazon
nhevilwench Apr 23, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Raspberry Pi Home Automation with Arduino Second edition is an updated version of the original book.I purchased the original a while back when it was one of the few books tackling the subject and worked through the projects, so was interested to see what the new edition contained. I have both the paperback and Kindle edition. I found it easier to read the Kindle edition on a monitor while working with the Arduino IDE. It's also a lot cheaper.Unlike the first edition we are also introduced to using the Arduino Uno. I found this to be a really great addition as truly provides a guide to using an Arduino Microcontroller with the RPI.As with the 1st edition is one of Packt's shorter format books (approx. 150 pages) geared towards beginners.Like the original, the book starts off with an introduction to Home Automation to give you a flavor of what can be done.Following this in Chapter 2. we learn how to setup our Pi, Arduino and connection bridge. Compared to the first edition, this chapter is far more concise and points the reader in the direction of locations where they can get apps like NOOBs to speed up the install process. Also removed from this chapter was the information on Berryboot, which I had used originally to setup my Pi.Chapter 3. guides the reader through setting up a thermostat that can interact with an HVAC system and finishes up with creating some code that outputs the temperature data. This acts as a lead in for Chapter 4. We are also given some ideas on how to expand the device using other components such as a potentiometer.In Chapter 4. we setup our Raspberry Pi to pull data from the Arduino and store it into an SQLite DB. The setup of the Raspberry Pi is the start of building a central device that the Arduino projects in the book will interact with.Following this we install HTSQL (as with the first edition) in order to be able to query the temperature data from a web browser. This is a nice touch and I am glad they included it in the second edition.Chapter 5 combines some of the techniques from Chapters 3 and 4 in order to build a parcel detection device using an Arduino that communicates with the Raspberry Pi. The end of the chapter also provides a guide to hooking in the device to using some of the parcel delivery services APIs for providing a better view of what has been delivered.Following this in Chapter 6 we learn how to build a curtain control device using the Raspberry Pi and Cooking Hacks bridge shield. This chapter was particularly useful for me as I have a number of Raspberry Pi's.Based upon the chapters so far I was able to build out a thermostat and parcel delivery device using a couple of Uno boards and cheap components. However in this chapter I also got to re-use a PI from my cluster and the Cooking Hacks shield I purchased with the first edition.On finishing the chapter I now had a small network of 2 Arduino's and 2 RPI's, with one acting as the central "brain" of the system.Chapter 7 contained some projects that were not in the original edition. Here we learn how to build our a damp and water detection device, that can communicate with the RPI.By the end of chapter 7 I had a pretty neat little system working.Chapter 8 like the first edition was a wrapping up chapter with ideas for other projects to expand the system.Conclusion:This was a great improvement over the first edition. It had more projects in and some updates to the originals. I would recommend purchasing this over the first edition as it also contains updates to the code to work with the new version of the arduPi library.Pros:1. Great projects2. Working "system" by the end of the book3. Great for re-using existing components, both RPI and Arduino if you have them4. Simple to follow5. Lots of ideas in each chapter for expanding the systemCons1. Paperback edition is expensive2. More chapters would be nice
Amazon Verified review Amazon
K.Peck Jan 23, 2018
Full star icon Full star icon Empty star icon Empty star icon Empty star icon 2
Not as advanced as I expected. Spent 10 minutes with it and now it will sit on my shelf. Oh well...
Amazon Verified review Amazon
leonardo bandiera Apr 26, 2016
Full star icon Full star icon Empty star icon Empty star icon Empty star icon 2
Non il massimo molto generico mi aspettavo qualcosa di più concreto e più progettuale.Non adeguato per un target tecnico.
Amazon Verified review Amazon
Adam Apr 21, 2015
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
This book is junk. Save your money and watch youtube. This is nothing more than a collection of tutorials on driving a motor and reading a sensor with Arduino. And just so we can say we used a Raspberry PI in the book, we'll use it to query the Arduino to get the reading from its sensor. There are only a handful of very basic projects with minimal real application. The author does not look at integrating with any of the major existing home automation frameworks nor does he even attempt to develop his own.The title of this book encompasses material that could fill thousands of pages. We could be monitoring and graphing power usage of the home and analyzing the data based on time of day, time of year and outside temperatures. We could be creating touch screen interfaces with Raspberry Pi's to act as control consoles throughout the house. We could be discussing random operation of power outlets and light switches to simulate someone being home and deterring burglars.But instead, the book wastes pages on the history of the devices and basic setup like installing Raspian on the Pi and downloading the Arduino IDE. Really? because there aren't already a million other books and free tutorials that cover this.This book is just trying to ride the popularity wave of these devices and adds absolutely no value to a market that is already over saturated with this material.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela