Clock controller using Wemos D1 Mini ESP8266 and BKA30D-R5 dual-shaft stepper motor As demonstrated at https://youtu.be/TJXAOOGIo2w
After calibration, open the Serial Monitor at 115200 baud and select a line ending.
Send TIME 16:32 to hold the hands at 4:32. Use 24-hour format with two digits
for both the hour and minute. Send LIVE to return to the current time.
Send HOUR SNAP to make the hour hand point exactly at the selected hour
during an override. For example, TIME 15:30 puts the hour hand on 3 and the
minute hand on 6. Send HOUR TRACK to restore normal hour-hand positioning
during an override. The setting applies immediately and is saved across
restarts. Live time always uses normal hour-hand positioning.
Connect a momentary switch between D0 (GPIO16) and 3.3 V. The sketch uses the pin's internal pull-down. Each press toggles between live time and the last override time entered over serial. The default after a restart is 10:10. A 3.3 V active-high touch sensor output can drive D0 in place of the switch.
