RTC

The official PYBD running MicroPython, and its accessories.
Target audience: Users with a PYBD
Post Reply
ldbm
Posts: 14
Joined: Thu Apr 04, 2019 2:48 pm

RTC

Post by ldbm » Thu Apr 04, 2019 2:54 pm

Hello,
Could someone point me to the type of RTC onboard the Pyboard D please? I 'd like to know what kind of drift to expect over a long period of time, such as months to a year. My reference RTC at the moment is a DS3231 but I'd rather use the internal one if I can. Thx.
Laurent

jickster
Posts: 629
Joined: Thu Sep 07, 2017 8:57 pm

Re: RTC

Post by jickster » Fri Apr 05, 2019 1:28 am

Wouldn’t that be in datasheet?


Sent from my iPhone using Tapatalk Pro

ldbm
Posts: 14
Joined: Thu Apr 04, 2019 2:48 pm

Re: RTC

Post by ldbm » Fri Apr 05, 2019 1:55 am

No datasheet posted yet it seems
L.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: RTC

Post by Roberthh » Fri Apr 05, 2019 5:17 am

According to the schematics the crystal oscillator is a SIT1533, https://www.sitime.com/datasheet/SiT1533.
The RTC clock logic is part of the CPU.

ldbm
Posts: 14
Joined: Thu Apr 04, 2019 2:48 pm

Re: RTC

Post by ldbm » Fri Apr 05, 2019 1:27 pm

Thx Robert.
L.

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: RTC

Post by pythoncoder » Sun Apr 07, 2019 8:00 am

@ldbm On the Pyboard 1.x you can calibrate the RTC. Calibration values are stored in battery backed RAM. I wrote a utility which enabled the RTC to be calibrated in five minutes using a DS3231 as the reference. This may be found in this repo. So long as power to the RTC is maintained it runs at about +-2 minutes/year accuracy (at room temperature).

I haven't tested this on the Pyboard D but you might like to give it a try. The MEMS oscillator used on the Pyboard D is good, but not to timepiece standards.
Peter Hinch
Index to my micropython libraries.

ldbm
Posts: 14
Joined: Thu Apr 04, 2019 2:48 pm

Re: RTC

Post by ldbm » Wed May 20, 2020 5:30 pm

Good to know. Thx Peter.
l.

Post Reply