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)

Arduino programming for ESP32

Arduino is the biggest community for open source hardware. It has various Arduino boards to fit your needs. Arduino also provides software to develop the Arduino program, Sketch. Arduino Sketch can be downloaded at

Now, ESP32 boards support Arduino development. Technically, ESP32 development with Arduino still uses Espressif SDK. You should set Arduino Sketch software to enable you to work with ESP32 boards. You can configure this based on your platform. Please follow this guideline on the following website:

It is recommended to install ESP32 boards into Arduino software via Board Manager. Open the Preferences dialog from Arduino, then put this URL into the board manager URL:

Adding ESP32 boards into Arduino software

When this is done, click OK.

Now, you can install ESP32 boards. To do this, open Boards Manager from the Tools menu. Type esp32 on this form so you can see the esp32 package, as shown in the following screenshot:

Installing ESP32 boards

After you have clicked Install, Arduino will download all required libraries for ESP32. If done, we will see a list of ESP32 boards on the Arduino software. You can see this in the following screenshot:

A list of ESP32 boards in Arduino

Now, your Arduino is ready for ESP32 boards.