Book Image

Internet of Things Projects with ESP32

By : Agus Kurniawan
Book Image

Internet of Things Projects with ESP32

By: Agus Kurniawan

Overview of this book

ESP32 is a low-cost MCU with integrated Wi-Fi and BLE. Various modules and development boards-based on ESP32 are available for building IoT applications easily. Wi-Fi and BLE are a common network stack in the Internet of Things application. These network modules can leverage your business and projects needs for cost-effective benefits. This book will serve as a fundamental guide for developing an ESP32 program. We will start with GPIO programming involving some sensor devices. Then we will study ESP32 development by building a number of IoT projects, such as weather stations, sensor loggers, smart homes, Wi-Fi cams and Wi-Fi wardriving. Lastly, we will enable ESP32 boards to execute interactions with mobile applications and cloud servers such as AWS. By the end of this book, you will be up and running with various IoT project-based ESP32 chip.
Table of Contents (12 chapters)

Project - making a smart home

In this project, we will build a simple smart home application. A smart home application is an application based on technology that enables users to control devices within the house. This application is connected to some sensors and devices. We can get information about our home through sensor devices such as cameras, temperature, and electricity usage. We can also control turning lamps on and off.

In this section, we will build a simple smart home using ESP32. We can see a general design of smart home with the ESP32 board in the following diagram. We can connect sensor and actuator devices to the ESP32 board, and we can then control them over the network.

To enable us to control the ESP32 board from outside the house, we should activate a web server service. We define our commands to ESP32 through the web server, as explained in the following diagram...