<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[M5Stack D3231 uRTC module]]></title><description><![CDATA[<p dir="auto">Hi,<br />
I would like to inform that I just published a small repo on Github, title: <code>M5Stack_DS3231_uRTC</code>. It is a module for use in MicroPython. It uses a modified version of Adafruit-uRTC library (which Adafruit marked 'Deprecated'). Beside various modifications in the file <code>urtc.py </code>, like the use of dictionaries, I added several functions as: weekday(), isLeapYear(), daysInMonth(), yearday() and cur_month(). The module provides the use of an external DS3231 RTC device with a M5Stack Core1 (BASIC) as host, connected via I2C.<br />
See: <a href="https://github.com/PaulskPt/M5Stack_DS3231_uRTC" target="_blank" rel="noopener noreferrer nofollow ugc">M5Stack_DS3231_uRTC</a>,<br />
The <code>main.py</code> file is a combination of some tests: a) getting /setting date and time from the external RTC; b) read and display images from flash and from SD-Card; c) use of an MYVARS class to save variables and use them globally. The module is tested on a Core1 (BASIC).</p>
]]></description><link>https://community.m5stack.com/topic/4138/m5stack-d3231-urtc-module</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 14:40:34 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4138.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 21 Mar 2022 23:41:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5Stack D3231 uRTC module on Sat, 09 Apr 2022 01:40:26 GMT]]></title><description><![CDATA[<p dir="auto">PROBLEM SOLVED</p>
<p dir="auto">At startup :<br />
if flag 'power_lost' is True:<br />
the external DS3231 is set with pre-determined datetime (adjust by hand)<br />
next the built-in RTC is started with the datetime from the DS3231</p>
<p dir="auto">if the flag 'power_lost is False:<br />
the built-in RTC is started with the datetime from the DS3231</p>
<p dir="auto">During the main loop displaying the datetime from the built-in RTC.</p>
<p dir="auto">I put a short video in the images folder inside the dropbox folder (see the link in my post above).</p>
]]></description><link>https://community.m5stack.com/post/17139</link><guid isPermaLink="true">https://community.m5stack.com/post/17139</guid><dc:creator><![CDATA[Paulskpt]]></dc:creator><pubDate>Sat, 09 Apr 2022 01:40:26 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stack D3231 uRTC module on Wed, 06 Apr 2022 10:34:04 GMT]]></title><description><![CDATA[<p dir="auto">I have some experience with programming RTC modules but this problem I am not (yet) able to solve.</p>
<p dir="auto">Is there anyone who read my post above and has looked into the code to see if he/she can give me a hint<br />
to solve this problem of RTC not updating ?</p>
<p dir="auto">See my tweet in May 2021:</p>
<p dir="auto"><img src="https://i.imgur.com/Kz96g0B.jpg?1" alt="tweet in may 2021" class=" img-fluid img-markdown" />.</p>
]]></description><link>https://community.m5stack.com/post/17108</link><guid isPermaLink="true">https://community.m5stack.com/post/17108</guid><dc:creator><![CDATA[Paulskpt]]></dc:creator><pubDate>Wed, 06 Apr 2022 10:34:04 GMT</pubDate></item><item><title><![CDATA[Reply to M5Stack D3231 uRTC module on Tue, 05 Apr 2022 14:54:35 GMT]]></title><description><![CDATA[<p dir="auto">Troubleshooting</p>
<p dir="auto">The past week I am trying 2 different external DS3231 devices on a m5stack FIRE. I have a GROVE Hub (with 3 I2C connectors) connected to the Port A of the Fire. The DS3231 I connected to the I2C Hub. I connected a MiniWare LA104 analyzer to a 2nd port otf the I2C Hub. a M5 RGB LED I connected to Port B of the Fire. The main script I programmed to let the middle RGB LED blink at the moment the script calls rtc.datetime(). Everything works except the readings from the DS3231 clock register (Addresses 0x0 - 0x6) remain mostly static. I don't see the seconds increase. I see the minutes increase but after 3 increases jump back to zero, e.g.: time is 18:40:00 After a minute the time shows 128:41:00, then 18:42:00 and then back to 18:40. This while at that moment the script runs inside a loop. So, the initial setting of the datetime registers only occur at the startup moment.</p>
<p dir="auto">I created a link to a Dropbox folder with the script <a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow ugc">main.py</a>, the rtc classes in <a href="http://urtc.py" target="_blank" rel="noopener noreferrer nofollow ugc">urtc.py</a> and other files used during a run. Also a subfolder with various images that will give some impressions about the setup and signals visualized.<br />
Link: <a href="https://www.dropbox.com/sh/rx0pdlu6cjfrha7/AAB0aC7FrXw-mU82Z9MhA2uba?dl=0" target="_blank" rel="noopener noreferrer nofollow ugc">RTC_folder_in_Dropbox</a></p>
<p dir="auto">Question:<br />
Why are the datetime rtc registers not updating?</p>
<p dir="auto">Note:<br />
I modified the <a href="http://urtc.py" target="_blank" rel="noopener noreferrer nofollow ugc">urtc.py</a> file. Added various functions. Also added some try...except... blocks to prevent crashes in case functions receive a NoneType value or in case an I2C bus error occurs (this happened once in a while since I have the I2C analyzer connected to the bus. Mayby the handling of the analyzer did cause some noises on on or more lines.</p>
]]></description><link>https://community.m5stack.com/post/17098</link><guid isPermaLink="true">https://community.m5stack.com/post/17098</guid><dc:creator><![CDATA[Paulskpt]]></dc:creator><pubDate>Tue, 05 Apr 2022 14:54:35 GMT</pubDate></item></channel></rss>