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)

Demo – building a simple embedded game

In this section, we will develop a simple game. To do this, we integrate our previous experiences using the LCD, analog joystick, and sound buzzer. We will build a ball game here. For the implementation of this game project, we use the the ESP-WROVER-KIT for ESP32 board.

Let's start!

The game scenario

Each game has a scenario. Some games also define some levels for users. In this project, we'll make a simple game scenario. We define our game flowchart in Figure 3-12, as follows:

Figure 3-12: A game scenario for a ball-hitting game

We can build a game scenario as follows:

  1. Initialize a game by populating a circle with a different radius. These circles are represented...