A DIY Smart Home Guide: Tools for Automating Your Home Monitoring and Security Using Arduino, ESP8266, and Android / Edition 1

A DIY Smart Home Guide: Tools for Automating Your Home Monitoring and Security Using Arduino, ESP8266, and Android / Edition 1

by Robert Chin
ISBN-10:
1260456137
ISBN-13:
9781260456134
Pub. Date:
03/24/2020
Publisher:
McGraw Hill LLC
ISBN-10:
1260456137
ISBN-13:
9781260456134
Pub. Date:
03/24/2020
Publisher:
McGraw Hill LLC
A DIY Smart Home Guide: Tools for Automating Your Home Monitoring and Security Using Arduino, ESP8266, and Android / Edition 1

A DIY Smart Home Guide: Tools for Automating Your Home Monitoring and Security Using Arduino, ESP8266, and Android / Edition 1

by Robert Chin
$25.0 Current price is , Original price is $25.0. You
$25.00 
  • SHIP THIS ITEM
    Qualifies for Free Shipping
  • PICK UP IN STORE
    Check Availability at Nearby Stores

Overview

Publisher's Note: Products purchased from Third Party sellers are not guaranteed by the publisher for quality, authenticity, or access to any online entitlements included with the product.

Design and build custom devices that work through your phone to control your home remotely

Setting up a “smart home” can be costly, intimidating, and invasive. This hands-on guide presents you with an accessible and cheap way to do it yourself using free software that will enable your home and your mobile devices to communicate. A DIY ‘Smart Home’ Guide: Tools for Automating Your Home Monitoring and Security Using Arduino, ESP8266, and Android contains step-by-step plans for easy-to-build projects that work through your phone to control your home environment remotely.

All the projects in the book are geared towards helping you create a “smart home,” with fun and useful examples such as wireless temperature and humidity monitors, automated lights, sensors that can trigger alarms in the event of broken glass, fire, window entry, or water heater leakage, and much more! All projects can be accomplished with no previous knowledge; for those with some background in C/C++ or JAVA, the projects can be customized.
• All projects use easy, free, flexible, open-source platforms such as Arduino
• Focuses projects on real-world remote control activations for protecting the home
• Written by a “smart home” expert and experienced author


Product Details

ISBN-13: 9781260456134
Publisher: McGraw Hill LLC
Publication date: 03/24/2020
Pages: 480
Product dimensions: 8.40(w) x 10.80(h) x 0.90(d)

About the Author

Robert Chin has a B.S. in computer engineering and is experienced in developing projects on a wide variety of platforms. He is the author of Arduino and Raspberry Pi Sensor Projects for the Evil Genius, Home Security System DIY PRO using Android and TI CC3200 SimpleLink, and Home Security Systems DIY using Android and Arduino.

Table of Contents

1 Introduction to the Arduino 1

What Is an Arduino? 1

Why the Arduino Mega 2560? 1

The Arduino Mega 2560 Specifications 2

The Official Arduino Mega 2560 2

Arduino Mega 2560 Components 3

Overview of the C/C++ Language for the Arduino 7

Arduino Development System Requirements 17

Hands-on Example: A Simple Arduino "Hello World" Program with an LED 20

Summary 25

2 Introduction to the ESP8266 27

What Is the ESP8266 27

Technical Specification of the ESP8266 27

The ESP-01 Module 30

Overview of Essential AT Commands 34

Quick Start Guide to the AT Command Set 35

Hands-on Example: Using an ESP-01 with an Arduino Mega 2560 40

The NodeMCU 48

Hands-on Example: The Blink Sketch 52

Hands-on Example: Multiple Blinking External LEDs 55

Summary 57

3 Introduction to the Android 59

What Is Android? 59

Hands-on Example: The Hello World Example 77

Importing Projects Between Android Studio Versions 82

Summary 85

4 Arduino with ESP-01 and Android Basic Wireless Framework 87

The Arduino with ESP-01 and Android Basic Wireless Communication Framework Overview 87

The Android Client Wireless Communication Framework Code 88

The Menu Items 90

The WifiMessageHandler Class 95

Class Overview 95

The WifiMessageHandler Class Constructor 98

The MainActivity Class 115

The Arduino with ESP-01 Server Wireless Communication Framework Code 139

Hands-on Example: The Basic Arduino, ESP-01, and Android Wireless Communications Framework 154

Summary 159

5 Arduino with ESP8266 (ESP-01 Module) and Android Wireless Sensor and Remote Control Projects I 161

General System Overview 161

The HC-SR501 Infrared Motion Detector 162

Hands-on Example: The HC-SR501 Infrared Motion Detector Alarm System 163

The FC-04 Sound Sensor 175

Hands-on Example: The Wireless Sound Sensor Alarm System 175

The HC-SR04 Distance Sensor 181

Hands-on Example: HC-SR04 Distance Sensor Intruder Alarm System 182

The YL-38/YL-69 Water/Moisture Detector 190

Hands-on Example: The Water Detector Water Leak Wireless Alarm System 190

The Light Emitting Diode (LED) 195

Hands-on Example: The Remote Wireless Control of an LED 196

The RGB LED (Common Ground Version) 203

Hands-on Example: The Remote Wireless RGB LED Control System 204

The CEM-1203(42) Piezo Buzzer 212

Hands-on Example: The Remote Wireless Piezo Buzzer Control System 212

Summary 219

6 Arduino with ESP8266 (ESP-01 Module) and Android Wireless Sensor and Remote Control Projects II 221

The Reed Switch Magnetic Field Sensor 221

Hands-on Example: The Wireless Reed Switch Door Entry Alarm System 221

The Ywrobot Flame Sensor 227

Hands-on Example: The Wireless Flame Sensor Fire Alarm System 227

The Sunfounder Tilt Switch Sensor 232

Hands-on Example: The Tilt/Vibrate Wireless Alarm System 232

TMP36 Temperature Sensor 237

Hands-on Example: The TMP36 Wireless Temperature Monitoring and Alarm System 238

The Photo Resistor 248

Hands-on Example: The Wireless Remote Controlled Light Activated LED 248

The DHT11 Temperature/Humidity Sensor 254

Hands-on Example: The Wireless DHT11 Temperature/Humidity Remote Monitoring and Alarm System 255

Arduino Cameras 268

Hands-on Example: The ArduCAM OV2640 Camera Wireless Remote Surveillance System 270

Summary 298

7 Standalone ESP8266 (Model: NodeMCU ESP-12E) and Android Wireless Sensor and Remote Control Projects 299

The Android and NodeMCU (ESP-12E) Wireless System Overview 299

Modifying the Android Basic Wireless Framework for the NodeMCU (ESP-12E) Platform 300

The NodeMCU (ESP-12E) Basic Wireless Server Framework 303

Hands-on Example: The Basic Wireless Framework Version 1.3 for the Android and NodeMCU Microprocessor 315

Hands-on Example: The Wireless Glass Break/Sound Detector Alarm System 317

Hands-on Example: The Wireless HC-SR501 Infrared Motion Detector Alarm System 322

The SW520D Tilt and Vibration Sensor 325

Hands-on Example: The Wireless Tilt and Vibration Sensor System 325

The KeyesIR Obstacle Avoidance Sensor 327

Hands-on Example: The Wireless KeyesIR Obstacle Avoidance Alarm System 327

The Funduino Water Level Sensor 330

Hands-on Example: The Wireless Water Level Detector Alarm System 330

Summary 335

8 Android, Arduino, ESP-01, and NodeMCU ESP-12E Wireless Sensor and Remote Control Projects 337

The ArduCAM Mini OV2640 2MP Plus 337

Hands-on Example: The Wireless ArduCAM Mini 2MP Plus Camera Surveillance System 338

Hands-on Example: The Wireless ArduCAM Mini OV2640 2MP Plus Camera and HC-SR501 Infrared Motion Detector Surveillance and Alarm System for the Arduino Mega 2560 Server 341

The Basic Android, Arduino with ESP-01, and NodeMCU Wireless Multi-Client Framework 347

Overview of the Android Basic Wireless Framework Version 2.0 Application 347

Example of Setting Up the Arduino with ESP-01 for Station/Client Mode 373

Hands-on Example: The ArduCAM OV2640 2MP Mini Plus Camera Arduino Mega 2560 Client Surveillance System with NodeMCU Server 373

Hands-on Example: The ArduCAM OV2640 2MP Mini Plus Infrared Motion Detection Arduino Mega 2560 Client Surveillance and Alarm System with NodeMCU Server 387

Hands-on Example: The Infrared Motion Detection Alarm System Using the NodeMCU Server 395

Hands-on Example: The ArduCAM OV2640 2MP Mini Plus and Infrared Motion Detection Arduino Mega 2560 Client Surveillance and Alarm System with NodeMCU Server with an Infrared Motion Detection Alarm System 398

Summary 399

9 The Bonus Chapter: The Emergency Backup Battery Power System, Power Intensive Related Projects, Using the NodeMCU with an ArduCAM Mini Camera, and Some Important Downloads 401

Circuit Troubleshooting Tips 401

Android Basic Wireless Framework APKs 402

Converting the Android Basic Wireless Framework Version 2.0 Project from Android Studio 1.5 to Android Studio 2.3.1 402

The Automatic Battery Backup Power Supply System 403

The SG90 9g Micro Servo 407

The YwRobot 545043 Power Supply Module for a Breadboard 408

Hands-on Example: The Wireless Remote Control Servo System Using the Arduino Mega 2560 and ESP-01 Server 408

Hands-on Example: The Remote Control Wireless DC Motor Control System Using the Arduino Mega 2560 with an ESP-01 Server 415

The Stepper Motor and the ULN2003 Stepper Motor Driver Board 420

Hands-on Example: The Wireless Remote Controlled Stepper Motor System Using the Arduino Mega 2560 and the ESP-01 Server 421

The ArduCAM Library and GitHub 426

Hands-on Example: The Wireless NodeMCU and ArduCAM Mini OV2640 Plus Surveillance System 427

The MQ-2 Smoke Detector 434

The 5-V Active Buzzer 434

Hands-on Example: The Wireless Remote Controlled Smoke Detector Alarm System Using the Arduino Mega 2560 and the ESP-01 Server 434

The MQ-2 Smoke Detector (Analog Version) 440

Hands-on Example: Wireless Remote Controlled Smoke Detector (Analog) Alarm System Using Arduino and ESP-01 440

Summary 448

Index 449

From the B&N Reads Blog

Customer Reviews