Book Image

Developing IoT Projects with ESP32 - Second Edition

By : Vedat Ozan Oner
3 (2)
Book Image

Developing IoT Projects with ESP32 - Second Edition

3 (2)
By: Vedat Ozan Oner

Overview of this book

ESP32, a low-cost and energy-efficient system-on-a-chip microcontroller, has become the backbone of numerous WiFi devices, fueling IoT innovation. This book offers a holistic approach to building an IoT system from the ground up, ensuring secure data communication from sensors to cloud platforms, empowering you to create production-grade IoT solutions using the ESP32 SoC. Starting with IoT essentials supported by real-world use cases, this book takes you through the entire process of constructing an IoT device using ESP32. Each chapter introduces new dimensions to your IoT applications, covering sensor communication, the integration of prominent IoT libraries like LittleFS and LVGL, connectivity options via WiFi, security measures, cloud integration, and the visualization of real-time data using Grafana. Furthermore, a dedicated section explores AI/ML for embedded systems, guiding you through building and running ML applications with tinyML and ESP32-S3 to create state-of-the-art embedded products. This book adopts a hands-on approach, ensuring you can start building IoT solutions right from the beginning. Towards the end of the book, you'll tackle a full-scale Smart Home project, applying all the techniques you've learned in real-time. Embark on your journey to build secure, production-grade IoT systems with ESP32 today!
Table of Contents (15 chapters)
13
Other Books You May Enjoy
14
Index

New features

You make the project more interesting by adding the following features:

  • The application employs SPIFFS as the filesystem. Replace it with LittleFS.
  • The images load rather slowly with a visible effect on the GUI while rendering. One way to make it faster is to load all of the images to Pseudo-RAM (PSRAM) when the application starts. Instead of reading from the flash, you can make LVGL use them from the PSRAM.
  • Create a new LVGL theme for a different level of ambient light. Use LDR to measure the light level, and change the theme automatically according to the light level (https://docs.lvgl.io/latest/en/html/overview/style.html#themes).
  • Save/restore the latest status of the player on the nvs partition (the latest volume level and the index of the last played item).
  • Add two touch sensors to navigate the playlist, with the same functionality as the left and right buttons when the playlist is active.
  • Add a beep sound when a user changes...