ESP32 Quick Internet Clock (automatic Timeset)

by khinds10 in Circuits > Clocks

838 Views, 8 Favorites, 0 Comments

ESP32 Quick Internet Clock (automatic Timeset)

clock7.jpg

ESP32 Quick Internet Clock (automatic timeset)

ESP32 Internet Clock, Handsfree sets time automatically.

Supplies

ESP32.jpg
OTG-Splitter.jpg
7Segment.jpg
Polycarbonate-Semi-Transparent.jpg

Supplies Needed

1.2" 7 Segment Display

ESP DEV KIT v1

OTG USB Splitter (display needs 5V Power)

Polycarbonate-Semi-Transparent (smoke gray)



Clone Project & 3D Print Assembly Panels

Clone Project From github download/clone the project to get started

https://github.com/khinds10/QuickInternetClock

3D Printing:

From the "3D Print" folder print 1 back panel, 1 case, 2 edges and 1 front panel.

Wire Solder the Components

Schematic.png
clock4.jpg

Connect the SCL/SDA Pins from the display to the ESP32.

Connect the RED and BLACK wires from the USB split cable to the GND and +5 and V_IO pins of the display, it needs a full 5V of power to work.

Connect the GND of the ESP32 to the GND of the Display as well.

Solder and connect the Pins according the schematic.

Assemble the Project With the Panels

clock1.jpg
clock3.jpg
clock2.jpg

Gather the 3D printed panels and assemble as follows, you'll need to cut the plexiglass to fit the frame.


Flash the ESP32 / Adjust Code to Your Own WiFi / Timezone

Flash the ESP32

Load the project folder (which you've checked out) to Visual Studio Code (this is free software).

IMPORTANT

Copy the src/settings-default.h to settings.h and adjust your ssid , password variables to your own WiFi connection.

Adjust gmtOffset_sec as a number of seconds different from Greenich Mean Time. Looks like -18000 seconds is -5 hours for the timezone of America/Eastern Standard.

Plug the ESP32 USB to the computer USB and build/deploy the project.

NOTE: a lot of times you have to plug the ESP32 directly to the computer and not use the USB splitter, it's interfering with the deploy process to the ESP32, after flashing, plug it back to the USB splitter so the ESP and the 7 Segment are all connected to USB power correctly.

Final Assembly

clock6.jpg
clock5.jpg

Attach the back frame and panel cover with the female OTG usb cable extended to plug in to the power supply.


Finished

clock8.jpg

Finished!