A word clock with four languages, digital and analog display. Settings can be controlled with BLE and WIFI.
Porting the code from an other ESP32 project with storage, WIFI and BLE was easy.
It took many days to find the GPIO clash between the LDR analog input and the TFT-DC of the display on GPIO2.
The display froze every minute.
At first I tried the TFT_eSPI library instead of the Adafruit_ILI9341 library that worked on other ILI-9314 displays.
The TFT_eSPI library can be used for many displays but it makes it also difficult to find and use the proper setup, especially when the hardware is not working.
In the end I opted for the Adafruit library but code for the eSPI library can also be used.
In the User_Setup.h file stored in this repository the settings for the CYD are kept.
Install the following libraries in the Arduino IDE with the Arduino IDE library manager.
(The May 2024 versions can be found in the libraries ZIP in this repository)
NimBLEDevice // For BLE communication https://github.com/h2zero/NimBLE-Arduino ESPNtpClient // https://github.com/gmag11/ESPNtpClient AsyncTCP // Used for webpage https://github.com/me-no-dev/ESPAsyncWebServer ESPAsyncWebServer> // Used for webpage https://github.com/me-no-dev/ESPAsyncWebServer AsyncElegantOTA // Used for OTA TFT_eSPI // Graphics and font library for ILI9341 driver chip Adafruit_ILI9341 // https://github.com/adafruit/Adafruit_ILI9341 Adafruit_GFX // Core graphics library, with extra fonts.
Load the ESP322432S028_WordclockV0xx.ino in the IDE, compile and upload
Open the Serial monitor in the Arduino IDE Set the baudrate to 115200 and send the letter I for the menu. Enter the character A followed with your routers SSID and send Enter the character B folloeed with your routers password and Send Finally restart by sending the charcter @ or turn off and power for the display
Control of the clock, explaination of the source code et cetera
here: https://github.com/ednieuw/Arduino-ESP32-Nano-Wordclock
The display can be placed in its container box and run on an USB 5V power supply (for some time).