Closed davefes closed 6 months ago
Ugh, I do not have any experience regarding the rtc
module, all I can do is to explain to you what these macros are about:
MICROPY_HW_RTC_USE_CALOUT
: Everything it does is to enable or disable the calibration output when your given value is out of range, and nothing more.
MICROPY_HW_RTC_USE_LSE
: This enables the 32K crystal. Which is extenal. Hence Low Speed External.
MICROPY_HW_RTC_USE_US
: This add a subseconds
value to the function rtc.datetime()
. And this is all it does.
Neither of these 3 macros shall have anything to do with the real time clock accuracy itself, at least in theorie for me.
but after a test run of 1 hour I got a "delay" of 1 hour 5 minutes.
Also, what I have understood is, that your blackpill is deplayed by 1 hour 5 minutes, so it took totally 2 hours and 5 minutes to recover from pyb.stop()
. Is that correct?
Sorry ... rtc.wakeup(3600000)
took 1 hour 5 minutes. Probably similar to an ESP32 but I thought the BlackPill used the 32KHz crystal.
Thanks for the information.
Ouch! Another trap ... I was testing on a "pirated" board. On a WeAct board it was within the +/- 2 second window after 1 hour, so one could calibrate that board.
Finally closed. Didn't mean to click the emoji!
Trying to use
pyb.stop()
, but after a test run of 1 hour I got a "delay" of 1 hour 5 minutes. Reading throughrtc.calibration
for the PYboard it appears you can adjust it by +/-500ppm. This is only +/- 2 seconds.In mpconfigboard:
Doesn't that say it should be using the 32KHz oscillator?