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)

Building IoT monitoring with ESP32 and AWS

In this section, we will develop an ESP32 program to connect to Amazon AWS; we will use AWS IoT services. Our scenario is to send sensor data to AWS IoT. To perform our demo, we will complete the following steps:

  • Performing hardware wiring
  • Registering an IoT device
  • Configuring a device security policy in AWS IoT
  • Developing the ESP32 program

Next, we implement each step to build our project.

Hardware wiring

We use the DHT22 module as a sensor device for our ESP32 board. We have to use similar hardware wiring from the dhtdemo project, which you can read about in Chapter 2, Making Visual Data and Animation on an LCD.

Next, we should register our IoT device on AWS IoT.