From e694618e2def55500953bc442c6fddacaa7ee74d Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 25 Mar 2023 12:42:51 +1300 Subject: [PATCH 1/4] Update README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 062eb01..513b765 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,16 @@ Serial.print(&timeinfo, "%d/%m/%y %H:%M:%S"); ## 🖼️ Schematic ![Schematic](/images/schematic.png) +- uses a cr1220 coincell (though almost any 3v lithium coincell should work) +- to not discharge the battery too fast disable output clock and alarms +- Low backup current: typical 0.25 uA at 3.0 V (theoretical not tested) +- currently I'm testing with 4.7kohm pullups on sda and scl +- currently the crystal I'm using is a Seiko Epson Q13FC1350000400 (+-20ppm) +- in theory this setup will drift by a maximum of ~11mins per year (https://www.analog.com/en/design-center/interactive-design-tools/real-time-clock-calculator.html) +- in theory a 37mAh cr1220 battery will last ~14 years without any charging (incl battery self discharge) +- 3.3V -> diode -> resistor charging of a coincell from 3.3v is hotly debated as to wether is good, ok, or horificly bad idea. I have not had any issuses but your mileage may vary +- be careful with pcb placement (have the crystal as close to the RTC chip a possible and souround it with ground planes connected with vias) + From fd5736d6e99d4b4758c3d6663e22bc189bbcb1f1 Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 25 Mar 2023 22:22:19 +1300 Subject: [PATCH 2/4] Update README.md --- README.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/README.md b/README.md index 513b765..ce7efc5 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ pcf8563-RTC ===================================== A library to interace esp chips with the NXP PCF8563 Real time clock (RTC) in the arduino (c++) Framework. - ## Features - use multiple I2C Busses -> rtc.begin(Wire1); - works with timezones (RTC is set to UTC) @@ -24,7 +23,6 @@ https://github.com/nayarsystems/posix_tz_db/blob/master/zones.csv PCF8563_Class rtc; const char *time_zone = "NZST-12NZDT,M9.5.0,M4.1.0/3"; // https://github.com/nayarsystems/posix_tz_db/blob/master/zones.csv - Wire.begin(); rtc.begin(Wire); setenv("TZ", time_zone, 1); @@ -50,11 +48,8 @@ Serial.print(&timeinfo, "%d/%m/%y %H:%M:%S"); - 3.3V -> diode -> resistor charging of a coincell from 3.3v is hotly debated as to wether is good, ok, or horificly bad idea. I have not had any issuses but your mileage may vary - be careful with pcb placement (have the crystal as close to the RTC chip a possible and souround it with ground planes connected with vias) - - - ## Based on the awesome work of Lewis he Origin created by Lewis he on April 1, 2019. https://github.com/lewisxhe/PCF8563_Library -MIT license, all text above must be included in any redistribution +MIT license From a79f3cea6c4b131839d1f4c00d091e0118bed656 Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 25 Mar 2023 22:23:10 +1300 Subject: [PATCH 3/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ce7efc5..2df6eef 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ A library to interace esp chips with the NXP PCF8563 Real time clock (RTC) in th https://github.com/nayarsystems/posix_tz_db/blob/master/zones.csv - set System (ESP32) time from RTC (assumes RTC is set to UTC/GMT) - set RTC time from System (epoch) -- Set RTC time over wifi example +- Set RTC time using wifi example ## Warnings - not all functions are implemented From 508448b57231f7a5845cd9f4652b813606325798 Mon Sep 17 00:00:00 2001 From: Chris Date: Sun, 26 Mar 2023 18:44:52 +1300 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2df6eef..8a78e8c 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ Serial.print(&timeinfo, "%d/%m/%y %H:%M:%S"); - be careful with pcb placement (have the crystal as close to the RTC chip a possible and souround it with ground planes connected with vias) ## Based on the awesome work of Lewis he -Origin created by Lewis he on April 1, 2019. +Origin created by Lewis he in 2019 https://github.com/lewisxhe/PCF8563_Library MIT license