Skip to content

alannishioka/esp32-2432s028-clock

 
 

Repository files navigation

ESP32-2432S028 Internet Synced (NTP) Clock

Introduction

I wanted an NTP clock with time zones and automatic daylight savings time. I found ESP32-2432S028 with a TFT display. You can buy it for under $10 in China, but I paid under $20 in the US so I wouldn't have to wait for shipping.

Build

These instructions have been tested with Ubuntu 22.04.3, Windows 10 and Arduino IDE 2.0.2-2.1.1.

  • Remove brltty, an app for blind people, which interferes with ESP32-2432S028. [Ubuntu only]

    sudo apt purge brltty

  • Install pyserial which is required by Arduino IDE. [Ubuntu only]

    pip install pyserial

  • Start Arduino IDE

  • Select Board

    Board is ESP32 Dev Module

    Port is /dev/ttyUSB0 [Ubuntu]

    Port is COM?? [Windows]

    IDE will ask if you want to install esp32 core. The name has changed so you may have to select ESP32 Dev Board and later change to ESP32 Dev Module.

  • Install libraries · Use Manage Libraries... to install LovyanGFX(1.1.9) and lvgl(8.3.11) libraries.

  • Clone repository

    cd ~/Arduino/

    git clone https://github.com/alannishioka/esp32-2432s028-clock.git

  • Copy lv_conf.h to ~/Arduino/libraries/. This assumes lvgl library is in ~/Arduino/libraries/lvgl/

  • Edit config.h to input your WiFi ssid/password.

  • Connect ESP32-2432S028 to your computer with micro USB cable.

  • Build and Install using Arduino IDE

Notes

Thank you

Releases

No releases published

Packages

No packages published

Languages

  • C 88.6%
  • C++ 11.4%