Skip to content

randomtatbuilder/DotW-Clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

This is a sketch for use with an ESP 8266 chip to control a Day of the Week (DotW) clock

The clock is available on Thingiverse https://www.thingiverse.com/thing:6347703

There is a youtube video showing the clock and its construction on youtube https://www.youtube.com/watch?v=u2YcKe2Kwwc

The DotW clock has two modes of operation. • A basic inbuilt timer that’s reasonably accurate. • An internet time server synchronisation mechanism that is very accurate.

Setting the clock using the basic timer Owing to the basic nature of the timing in the clock, setting of the clock should be done around 12 noon. Unplug then insert the USB power (this resets the clock to 12 noon), and detach the clipped on base – you will see 2 buttons.

If today is a Sunday, Press the “Sunday” button”, the display will slowly rotate until it finds it’s calibrated Sunday position (this also sets the clock to turn in 12 hours). If today is not Sunday, Press the “Sunday” button”, and the clock will align the day to Sunday, then repeatedly press the “Day Advance” button until the shown day is correct.

Clip on the base and place the clock where you’re going to use it – don’t disconnect the power, otherwise the clock will not know when to turn.

12 hours from doing this the clock will advance the day, reboot, then every 24 hours it will advance the day and reboot.

If the alignment starts to go wrong, just reset the clock as above at noon.

Setting the clock using the internet based timer The clock generates a wifi access point that shows a web page. From eg a phone search for wifi signals and you should see an SSID of

DoW Clock Settings 192.168.4.1

Connect to that wifi, and then using a browser go to http://192.168.4.1

The default password for the clock wifi is saturday

You will see a web page that allows you to enter your Wifi SSID, Wifi password, and present timezone.
Enter those details and press Save.

The clock will then reboot, when it does so it will use the details provided to find the present time, then rotate the display to Sunday, and then advance the day to the correct day of the week.
The clock can be unplugged and moved around, and then when plugged in again it will again connect to the wifi, rotate to Sunday, and then advance to the correct day.

If the clock cannot connect to the wifi, it will try 30 times to do so, and if it fails, it will again generate and access point where you can connect to it (as above), and enter the details again in case of a typing error – until working wifi details are entered, it will be working in basic mode.

If you wish to completely reset the wifi details, then pressing both buttons in the base until a complete rotation past Sunday is achieved (approx 60 seconds) then the Wifi SSID and password are deleted from the clock and replaced with an empty value. The clock should then be unplugged and plugged in again and the access point will be available.

When using the internet based timer mode the words in the clock will be realigned to the centre of the display window each Sunday, so the days should not drift out of the window over time, as they may do in the basic mode.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages