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)

Setting up the development environment

Espressif provides SDK development for ESP32. Technically, there is a guideline document from Espressif on how to set up the ESP32 toolchain. You can follow this guideline for Windows, Linux, and macOS: https://docs.espressif.com/projects/esp-idf/en/latest/get-started/index.html#setup-toolchain.

After completed, you can continue to get ESP-IDF to enable you to develop the ESP32 program. You also need all required libraries for Python. A detailed guideline can be read on this site: https://docs.espressif.com/projects/esp-idf/en/latest/get-started/index.html#get-started-get-esp-idf.

If done, we can develop programs for the ESP32 board. The ESP32 program is written in C programming language, which you should be familiar with. However, we can write ESP32 programs using any text editor. In this book, I use Visual Studio code: https://code.visualstudio.com. This IDE tool is available for Windows, Linux, and macOS.

Next, we develop a simple program with the ESP32 board.