
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.
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.
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 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.
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.
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.
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.
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.
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.
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.
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.
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.
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 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.