Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
ESP32 LVGL Smart Watch Lessons
32 students

ESP32 LVGL Smart Watch Lessons

Based on ESP32 SDK
Created byHUI HU
Last updated 7/2026
English
English [Auto],

What you'll learn

  • How to setup visual studio simulator for LVGL
  • How to setup command line compile tools for ESP32 SDK
  • How to drive circle LCD and run LVGL on ESP32 board
  • How to use LVGL scale widget for Smart Watch interface
  • How to use LVGL Timer for Smart Watch time counting
  • How to use LVGL Image widget for Smart Watch needle setting
  • How to switch LVGL Screen for Smart Watch different screens
  • How to use Button for Smart Watch setting and screen switch
  • How to set task for Smart Watch task
  • How to set audio for Smart Watch alarm
  • How to use file system to save the Smart Watch setting

Course content

1 section • 27 lectures • 5h 49m total length
  • Introduction6:39

    Learn lvgl smartwatch design fundamentals, including scale widgets, timers, image widgets, screen switching, and audio, with os and file system integration simulated on a computer.

  • Setup Codeblocks Simulator12:54

    Set up the code blocks simulator for LVGL on a Windows PC by installing Git, downloading Code Blocks 20.03, upgrading defaults, and building the LV port smartwatch project.

  • Setup Command Line Compile Tools for ESP32 SDK9:15

    Set up the ESP32 sdk with IDF 5.4, install the Windows installer, target ESP32-S3, then build, flash, and monitor a hello world example in VS Code for LVGL smartwatch lessons.

  • Drive Circle LCD and Run LVGL on N2 ESP32 board11:16

    Drive circle lcd using the AG9A01 driver ic on an esp32-s3 board, run lvgl, configure gpio pins and resolution, adjust display rotation, and explore watch scale examples.

  • Scale 01 -- Circle16:53

    Use the lvgl scale widget to create a circle display for a smartwatch interface, tuning the inner pyramid and angle range, and adjust the 240 resolution for proper centering.

  • Scale 02 -- Label15:30

    Control the lvgl scale label for a smartwatch. Use lv_scale_set_label to show or hide it and l_set_source to set its content, then adjust rotation and start position for 1–12.

  • Clock Hands 01 -- Image Type11:19

    Use the LVGL clock hands image type to design a red-needle clock hand image on a black background, convert it to a data array, and align to center with offset.

  • Clock Hands 02 -- Rotation13:54

    Learn how to rotate clock hands in LVGL, setting the rotate center, rotating images, and using the scale rotation function with a 0 to 360 degree range.

  • Clock Hands 03 -- Animation Rotation 0112:45

    Learn to rotate clock hands with the LVGL animation module by defining an animation template, initializing it, setting a duration and start/end angles, and linking the widget.

  • Clock Hands 04 -- Animation Rotation 0214:53

    Learn to animate clock hands with the LVGL animation module, using bounce and overshoot paths, and adjust image size during rotation. Create timelines to sequence multiple animations.

  • Clock Hands 05 -- Timer Rotation16:13

    Learn how to rotate clock hands with LVGL timers in ESP32 projects, including creating timers, timer callbacks, rotation math, and the lv_timer_ready option to start immediately.

  • Alarm 01 -- Switch Screens18:10

    Learn to define and attach LVGL screens to the display, create clock and alarm screen content, and switch between them with button callbacks and load animation.

  • Alarm 02 -- Message Box19:42

    Implement an LVGL message box on the ESP32 smartwatch alarm screen. Enforce a 60-second max and a 1-second min with increase, decrease, and ok buttons, with callbacks updating the label.

  • Run on Board14:02

    Run the smartwatch code on the board by migrating from the simulator to the SDK. Verify LVGL version 920, build, flash to the board, and test the demo UI.

  • ADC Key 017:19

    explains the adc key principle and why it is used, and compares two circuit solutions for detecting multiple keys with a single adc gpio, including priority in the second design.

  • ADC Key 0212:01

    Explore esp32 s3 adc features, including two 12-bit sar adcs with multiple controllers, pin-channel mapping, threshold interrupts, and attenuation settings for accurate lvgl smartwatch voltage measurements.

  • ADC Key 0314:07

    Explore measuring voltages with the esp32 s3 adc using a one-shot method, covering resource allocation, configuration, and reading results, then map the readings to lvgl keys.

  • ADC Key 0418:24

    Learn to integrate ADC key four into the LVGL keypad system on the ESP32 S3, including ADC config, calibration, voltage reading, and screen switching with distinct key groups.

  • NVS_017:14

    learn how to use NVS to store key‑value data on an ESP32 for LVGL smartwatch, including init, open namespace, get/set, commit, and namespace key concepts.

  • NVS_0218:05

    Michael demonstrates implementing NVS read and write for the alarm setting, using the SDK example and functions like nvs_open, nvs_get_i8, nvs_set_i8, nvs_commit, and nvs_close to save and retrieve values.

  • Virtual File System5:47

    Explore how the virtual file system unifies access to storage drivers, enabling open, read, and write operations across sd cards, usb, internet file, to play music.

  • SD Card 01 -- Hardware Interface7:37

    Explore the hardware interface for SD cards in smartwatch systems, covering micro SD cards, SD sockets, SPI, one-bit SD bus, four-bit SD bus, and card-detect wiring with pin definitions.

  • SD Card 02 -- Read and Write TXT File15:29

    Learn to read and write text files on an ESP32 S3 using the IDF SD card example, including mounting the filesystem and creating hello.txt.

  • Wave Reader Task 017:27
  • Wave Reader Task 0219:55

    Write a wave reader task to read a WAV file from the SD card, decode its format, channels, rate, and data size, and relay this info via queues.

  • I2S Protocol and Chips8:08

    Explore how the ESP32-S3 I2S interface drives audio through a chip, using clock, WS, and data lines, plus the control pin for left-right channels and the frequency range 8kHz–192kHz.

  • Wave Player Task14:55

Requirements

  • Basic programming knowledge

Description

This course is to take the "Smart Watch" application example as the teaching material to demo how to develop LVGL application based on ESP32 SDK.  "Smart Watch" project is a kind of "small" project, but it includes all kinds of LVGL knowledge for a "big" project. What we can learn from the lessons is mainly as follows:


1. How to setup visual studio simulator for LVGL

2. How to setup command line compile tools for ESP32 SDK

3. How to drive circle LCD and run LVGL on ESP32 board

4. How to use LVGL scale widget for Smart Watch interface

5. How to use LVGL Timer for Smart Watch time counting

6. How to use LVGL Image widget for Smart Watch needle setting

7. How to switch LVGL Screen for Smart Watch different screens

8. How to use Button for Smart Watch setting and screen switch

9. How to set task for Smart Watch task

10. How to set audio for Smart Watch alarm

11. How to use file system to save the Smart Watch setting


The code will run on one customized N2 ESP32S3 board, designed by Michael instructor. If anyone is interested in it, you can send one private message or an email to the instructor.

Who this course is for:

  • the person who is interested in LVGL, ESP32, Smart Watch