I have uploaded the final code for ESPCLOCK4 to GitHub. Full details and schematic at the repository.
I have also created 2 prototypes, 20cm and 30cm clocks:
Future enhancements will include:
- Adding an external clock crystal to eliminate the RTC_SLOW_CLK drift.
- Using C to write the ULP code. Assembly code is tedious and error-prone.