Contents – A DIY Smart Home Guide: Tools for Automating Your Home Monitoring and Security Using Arduino, ESP8266, and Android

Contents

1   Introduction to the Arduino

What Is an Arduino?

Why the Arduino Mega 2560?

The Arduino Mega 2560 Specifications

The Official Arduino Mega 2560

Arduino Mega 2560 Components

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

Arduino Development System Requirements

Hands-on Example: A Simple Arduino “Hello World” Program with an LED

Summary

2   Introduction to the ESP8266

What Is the ESP8266

Technical Specification of the ESP8266

The ESP-01 Module

Overview of Essential AT Commands

Quick Start Guide to the AT Command Set

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

The NodeMCU

Hands-on Example: The Blink Sketch

Hands-on Example: Multiple Blinking External LEDs

Summary

3   Introduction to the Android

What Is Android?

Hands-on Example: The Hello World Example

Importing Projects Between Android Studio Versions

Summary

4   Arduino with ESP-01 and Android Basic Wireless Framework

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

The Android Client Wireless Communication Framework Code

The Menu Items

The WifiMessageHandler Class

Class Overview

The WifiMessageHandler Class Constructor

The MainActivity Class

The Arduino with ESP-01 Server Wireless Communication Framework Code

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

Summary

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

General System Overview

The HC-SR501 Infrared Motion Detector

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

The FC-04 Sound Sensor

Hands-on Example: The Wireless Sound Sensor Alarm System

The HC-SR04 Distance Sensor

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

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

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

The Light Emitting Diode (LED)

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

The RGB LED (Common Ground Version)

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

The CEM-1203(42) Piezo Buzzer

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

Summary

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

The Reed Switch Magnetic Field Sensor

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

The Ywrobot Flame Sensor

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

The Sunfounder Tilt Switch Sensor

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

TMP36 Temperature Sensor

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

The Photo Resistor

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

The DHT11 Temperature/Humidity Sensor

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

Arduino Cameras

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

Summary

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

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

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

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

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

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

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

The SW520D Tilt and Vibration Sensor

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

The KeyesIR Obstacle Avoidance Sensor

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

The Funduino Water Level Sensor

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

Summary

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

The ArduCAM Mini OV2640 2MP Plus

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

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

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

Overview of the Android Basic Wireless Framework Version 2.0 Application

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

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

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

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

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

Summary

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

Circuit Troubleshooting Tips

Android Basic Wireless Framework APKs

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

The Automatic Battery Backup Power Supply System

The SG90 9g Micro Servo

The YwRobot 545043 Power Supply Module for a Breadboard

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

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

The Stepper Motor and the ULN2003 Stepper Motor Driver Board

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

The ArduCAM Library and GitHub

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

The MQ-2 Smoke Detector

The 5-V Active Buzzer

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

The MQ-2 Smoke Detector (Analog Version)

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

Summary

Index