1 / 1
7 Segment Clock DST Addition — image 1

7 Segment Clock DST Addition

Order a print of this model

We calculate the final price from your selected file. You review and accept it before payment.

Saved on this device.

This updated code includes automatic DST adjustment for the US and EU rules

Rating
0 / 5
Likes
5
Downloads
37
Makes
0
Views
407
Reviews
0

Updated at source:

Model information

Category
Other Ideas
License
Creative Commons — Attribution — Noncommercial — Share Alike

This remix of the excellent 7 segment mechanical clock updates nothing about the actual 3D printed parts, just updates the Arduino sketch to account for DST automatically.  Code commented where it was changed.   I didn't thoroughly test the EU rules, but it works for US.  In other words (for the US rules), when it hits 2AM on the second Sunday of March, the clock goes from 1:59 to 3:00.  And, conversely, on the first Sunday of November, at 3:00, the hour doesn't change.  (It goes through the 3:00 hour twice).  This seems to be an artifact of how the DST RTC library does the calculations.

 

Libraries required (in addition to those for the original model).  Both are available through the Arduino IDE library manager.  I used Arduino IDE version 2.3.6

DST RTC by Andy Doro.  I used version 1.1.1 (current as of posting)

RTClib by Adafruit.  I used version 2.1.4 (current as of posting)

 

All credit for the original idea and code go to the original author. 

 

The cube STL is there because an STL is required to post a make…There's no need to print it!

Tags