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 – building a sensor monitoring logger

In this section, we build a sensor monitoring logger with an ESP32 and a DHT module. Here, we will store all sensor data in a CSV file on the microSD storage. We can visualize our sensor data from the CSV file using a visual tool such as Excel.

Let's start!

Designing our program

Technically, we can develop our logger project by designing a flow chart, as shown in the following diagram. We use a deep-sleep feature from the ESP32 chip to work with sleep mode:

Figure 4-6: Program design for the logger project

We can start implementing our program scenario based on the flowchart in figure 4-6 as follows:

  • We will check if the program runs after sleep mode or not.
  • If yes...