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)

Making a weather monitoring system

In this section, we'll build a simple weather monitoring system. We'll use the skills that we've learned about, such as reading temperature and humidity from a DHT22 sensor device. Ultimately we'll be able to display the temperature and humidity on the LCD after reading from the sensor device.

Let's begin by creating a project.

Creating a project

To simplify our weather monitoring system project, we will copy the previous project named lcddemo and create a project called weather. Our main program is weather.c on the main folder. You can see a project structure shown in figure 2-16:

Figure 2-16: Project structure for the weather system

Now, let's move on to hardware...