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)

Introduction to ESP32 GPIO

The ESP32 chip features forty physical GPIO pads. Some GPIO pads cannot be used or do not have the corresponding pin on the chip package. For development boards based on the ESP32 chip or module, some board makers probably expose all ESP32 GPIO pins. However, some board makers also expose ESP32 GPIO pins but add additional pins such as battery, voltage, exclusive sensor, and ground.

Since there are many ESP32 development board models, we cannot explore all board models. Instead, we will focus on the ESP-WROVER-KIT board from Espressif.

We can access GPIO pins on the ESP-WROVER-KIT board with three locations. You can see these locations from the ESP-WROVER-KIT board in the following image. Some GPIO labels are shown in the board body so that we can see all of the GPIO pins:

Figure 2-1: GPIO pins from an ESP-WROVER-KIT board

Some GPIO pins are used for...