
Raspberry Pi 3 Home Automation Projects
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Person
Shantanu Bhadoria is an avid traveler and the author of several popular open source projects in Perl, Python, Golang, and Node.js, including many IoT projects. When in Singapore, he works on paging and building control systems for skyscrapers and large campuses in Singapore, Hong Kong, and Macau. He has authored and contributed to public projects dealing with control over gyroscopes, accelerometers, magnetometers, altimeters, PWM generators, and other sensors and controllers, as well as sensor fusion algorithms such as Kalman filters. Shantanu's work in IoT and other fields can be accessed on his GitHub account with the name shantanubhadoria. He is also the author of Device::SMBus, a popular Perl library used to control devices over the I2C bus.Oliva Ramos Ruben :
Ruben Oliva Ramos is a computer systems engineer from Tecnologico de Leon Institute, with a master's degree in computer and electronic systems engineering and a specialization in teleinformatics and networking from the University of Salle Bajio in Leon, Guanajuato, Mexico. He has more than 5 years of experience of developing web applications to control and monitor devices connected with Arduino and Raspberry Pi, using web frameworks and cloud services to build the Internet of Things applications. He is a mechatronics teacher at the University of Salle Bajio and teaches students of the master's degree in design and engineering of mechatronics systems. Ruben also works at Centro de Bachillerato Tecnologico Industrial 225 teaching subjects such as electronics, robotics and control, automation, and microcontrollers. He is a consultant and developer for projects in areas such as monitoring systems and datalogger data using technologies (such as Android, iOS, HTML5, and ASP.NET), databases (such as SQlite, MongoDB, and MySQL), web servers, hardware programming, and control and monitor systems for data acquisition and programming.
Content
- Cover
- Copyright
- Credits
- About the Authors
- About the Reviewer
- www.PacktPub.com
- Customer Feedback
- Table of Contents
- Preface
- Chapter 1: Creating a Raspberry Pi-Powered Magic Mirror
- What is the Raspberry Pi?
- Purchasing the Raspberry Pi
- Setting up the Raspberry Pi
- Moving on to the LXTerminal
- Basic Linux commands
- Helpful commands
- The Magic Mirror
- Downloading the Magic Mirror repository
- Installing Node.js
- Installing Grunt
- Working with the configuration file
- Editing the configuration file
- Understanding the module
- Installing third-party modules
- Summary
- Chapter 2: Automated Gardening System
- Items required for the project
- Waterproof junction box
- Arduino Pro Mini 5v ATMEGA328P
- USB FTDI connector
- 5V power supply
- 5V relay
- Soil humidity sensor (hygrometer)
- Photoresistor
- Submersible pump
- Drip irrigation system
- Water reservoir
- Setting up gardening system code (reading humidity)
- Setting up the Arduino IDE
- Testing the Arduino Pro Mini
- Connecting the Arduino Pro Mini to the USB FTDI connector (FT232RL) and your computer
- Deploying your code
- Reading the humidity sensor
- Connect the humidity sensor to the Arduino Pro Mini
- Uploading the sketch and testing humidity measurements
- Connecting the pump power and control
- Connecting the relay to the control circuit (Arduino Pro Mini)
- Connecting Arduino to the relay
- Uploading the relay test sketch to the Arduino
- Triggering the pump with the hygrometer
- Adding another sensor (photoresistor) to optimize your gardening
- Connecting the photoresistor
- Updating the sketch to add photoresistor readings to the decision-making
- Connecting it all together
- Summary
- Chapter 3: Integrating CheerLights into a Holiday Display
- Items required for this project
- Adafruit HUZZAH ESP8266 breakout
- USB FTDI connector
- WS2811 NeoPixels LED strip
- 5V and 3.3V (optional) power supply
- 1000µF capacitor
- Logic level shifting IC
- 400-600O resistor
- JST SM or JST PH connectors (optional)
- Getting the CheerLights code set up
- Set up the Arduino IDE
- Installing the NeoPixel library
- Testing the ESP8266
- Connect the ESP8266 Huzzah to the USB FTDI connector (FT232RL) and your computer
- Switching the ESP8266 Huzzah into deployment mode
- Deploying your code
- Connecting it all together
- Connecting the data pins
- Power the NeoPixels
- Power up the ESP8266
- Programming the ESP8266 Huzzah for CheerLights
- Let's try a simple single-color display
- Let's try some interesting modifications
- Summary
- Chapter 4: Erase Parking Headaches with OpenCV and Raspberry Pi
- Introduction to smart parking systems
- Sensor devices for smart parking
- Presence sensor
- Ultrasonic sensor
- Camera
- Configure the camera
- Accessing our Raspberry Pi via SSH
- Machine vision systems
- Introduction to machine vision
- Testing the camera
- Installing OpenCV on the Raspberry Pi
- Detecting the vehicle plate number
- OpenALPR
- Integrating the library
- Programming the script for Python
- Cloud API
- PHP REST API script for OpenALPR
- Architecture of the parking system
- Logging spaces in a database
- Configuring a MySQL database server
- Installing MySQL
- Installing the MySQL driver for PHP
- Testing PHP and MySQL
- Installing phpMyAdmin for administrating databases
- Configuring the Apache server
- Entering the phpMyAdmin remote panel
- Integrating the Raspberry Pi and camera into the database
- Programming the script software
- Node Express app for openALPR
- Amazon Web Services IoT
- AWS IoT components
- Accessing AWS IoT
- Services
- Setting up the Raspberry Pi with AWS IoT
- AWS IoT connections
- Integrating the system
- Future parking systems
- Summary
- Chapter 5: Building Netflix'
- s The Switch for the Living Room
- Setting up the Particle Photon
- Getting started
- What's in the box?
- The architecture of the Particle Photon
- Requirements
- Software
- Hardware
- Wi-Fi settings
- Specifications of the board
- Connecting your Particle Photon to the internet using the setup web application
- Blinking an LED
- Hardware
- Software
- Testing the code
- Hardware and software requirements
- Hardware configuration
- The architecture of the home automation system
- Reading IR signals
- Sensor IR receiver
- Hardware connections
- Code to read IR signals
- Programming the button
- Testing the code for remote control for a Netflix TV
- Testing the code for a Philips TV
- Assembling the electronics
- The circuit to be built
- The final circuit
- The circuit layout
- Controlling smart lights
- Getting started
- Step 1
- Step 2
- Step 3
- The Philips Hue API
- Turning a light on or off
- Changing the intensity of the lights
- Sending notifications with IFTTT
- Parts of an IFTTT
- Enabling sensors with Particle Photon
- Creating the IFTTT applet
- Sending notifications
- Future ideas for projects
- Summary
- Chapter 6: Lock Down with a Windows IoT Face Recognition Door System
- Getting started: Installing and configuring Windows 10 IoT on the Raspberry Pi 3
- Preparation
- Installing Windows 10 Desktop
- Getting the package to install Windows 10 IoT Core
- Downloading and installing Windows 10 IoT Core
- Deploying Windows 10 IoT Core on Raspberry Pi 3
- Downloading and flashing the image
- Connecting the board to the network
- Attaching the MicroSD card on Raspberry Pi 3
- Putting them all together
- Ethernet and Wi-Fi connection
- Installing Visual Studio
- Enabling the Developer Mode on Windows 10 Desktop
- Creating a first example
- Writing our first application
- Loading the project in Visual Studio
- Connecting the LED to your Windows IoT device
- Hardware pins
- Hardware connections
- Deploying the app
- Developing the code
- Timer code
- Starting GPIO pins
- Modify the state of a pin
- Running the application
- Applications for the Internet of Things
- Real-life examples of the Internet of Things
- Smart home devices
- Wireless bulbs
- Smart refrigerators
- Applications of the Raspberry Pi in the Internet of Things
- Media center using the Raspberry Pi 3
- Cloud storage using Raspberry Pi 3
- Tracker using Raspberry Pi 3
- Web server using Raspberry Pi 3
- Gateway for Bluetooth devices using Raspberry Pi 3
- The architecture of the security system
- Materials required
- Hardware connections
- Initial setup
- Software required
- Software setup
- Software development
- Running the interface
- Integrating the system and putting it all together
- Future ideas
- Summary
- Index
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.