Turn out this can be a nice analog-clock on my desk to replace the widget analog-clock of windows 7.
Analog Clock v2.4
- Use DS3231 - extreme precise does not effect by temperature like DS1307
- Clockface with date/time inside
Behind the scene
This Analog clock uses precision RTC DS1307 for time keeping and uses arduino-pro-mini clone to read the time from DS1307 and displays it on the TFT screen as Analog clock.
When using arduino Uno, you can power DS1307 RTC module directly with IO pins using A2 sink to GND, and A3 pull up to Vcc and connect the TFT display through a 5v to 3v3 level shifter module.
If you use ArduinoPro mini (clone) like mine, you have to use a USB / Serial adaptor like this.
You should not connect DTR pin because PL2303 acts weird sometime, and send DTR signal before everytime data is sent from PC. And thus it makes ArduinoPro mini restart when PC app scan the com port. Actually I got mix up between output pin and input pin of AMS1117, but somehow LCD works even it was almost 4v. After fixing, arduinoPro mini no longer restart when scanning com port.
The code consists of two part:
- Code for Arduino: Read time and draw a clock, receive time from serial connection (Com port)
- Code from PC: Auto scan from COM1 to COM16 and send time to Arduino if Analog Clock is found
Libraries and tool:
Fill out the form below to add your own comments