ESP32 Based Clock

by marcudanf in Circuits > Arduino

19771 Views, 11 Favorites, 0 Comments

ESP32 Based Clock

20170827_234517.jpg
Esp32 based clock with ntp (get time from internet)

Tutorial how to build a clock based on an esp32 with a built-in oled display, with a touch button, without any other parts, no wiring/soldering required.

Parts & Libraries

20170827_182225.jpg
20170827_232337.jpg

Parts

  • An ESP32 module with a built in OLED display (Amazon)
  • A micro USB cable

Libraries

Code

First of all make sure you have the esp32 package added to your board manager (follow instructions here if you don't).

The code is on github, link here.

Download it or paste it in an arduino sketch. Make sure to change the ssid, password and timezone.

Select wemos lolin32 as your board and upload your code (might need to hold boot and press en buttons before uploading).

Done

20170827_182914.jpg
20170827_232520.jpg

Now the clock should be done. To toggle date view, just touch the T1 or 0 pin on the esp.

Improvements

If you want to make it cooler, you can solder a wire on pin GPIO0, then attach a metal small plate/coin on the other end. Insulate the metal cover of the esp and fix the plate/coin there (with some hot glue).

Issues

If you have any other issues don't hesitate to leave them in the comments.

References