1
eleksir 732ade0819 Add ability to correct 0.5 second per day
+ Added ability to fix timw skew of 1 second per two
   days
* Removed text of license as it shipped as file
* Fixed some grammar mistekes
* compflag now boolean
* Coding style fixes
* Tinker a bit values for brightness, again. Make display
   more dusk.

--HG--
branch : phtoresistor
2019-06-02 15:06:04 +03:00
2019-02-23 19:01:52 +03:00

Simple Clock

Just clock that shows time, accurately.

Component base is very simple:

  • Arduino NANO v3 chinese replica (on Atmega-168 chip)
  • 7 segment 4 digit LED indicator with common anode, FYQ-5641BD-21 (red LEDs)
  • 8 resistors that limiting current on LED segments, 330 Ohms, 0.25 watts
  • RTC Module GEEGROW with DS1307 chip (very basic, only RTC chip, quartz resonator, button battery, no additional memory chip)
  • 5x7 cm single side prototyping board
  • usb phone charger as power supply
  • 2 push buttons
  • 1 on/off switch
  • 1 photoresistor
  • 1 resistor to make secund shoulder of photosensitive "bridge", 10 kOhms, 0.25 watts
  • Gainta G521G enclosure (92x66.5x28мм)
  • 5m power cord

Optionally you may need:

  • Capasitor with well capacity if your charger has small capasitor on output
  • Fuse, to protect your device
  • DC/DC transformer if you have power supply that gives more than 5 volts or less than 4.5 volts (this will give additional surge protection if your power supply dies, this can happen after 3-5 years of uninterrupted work)

Additional Notes:

My RTC module is not very accurate due to bad quartz chrystal calibration, looks like it is not exactly 32768 Hz and clock runs faster than it should be, giving about 5-8 seconds runaway per day. So i have to implement time correction in software (temperature changes during day/month/year is not very big - about 10 degrees Celsius, so we can use software compensation without thermal compensation).

Description
Simple Arduino-based clock.
Readme 1.5 MiB
Languages
C++ 100%