# Pycom and RTC

**URL:** <https://forum.core-electronics.com.au/t/pycom-and-rtc/14344>\
**Category:** Uncategorized\
**Created:** [14 June 2022 01:10 UTC](https://forum.core-electronics.com.au/t/pycom-and-rtc/14344 "2022-06-14T01:10:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Clint165695](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@Clint165695](https://forum.core-electronics.com.au/u/Clint165695)\
**Post date:** [14 June 2022 01:10 UTC](https://forum.core-electronics.com.au/t/pycom-and-rtc/14344/1 "2022-06-14T01:10:22Z")

</div>

Are there any examples of adding an external RTC to a Lopy4?  
Examples of physically connecting a RTC module and code and libraries etc would be much appreciated.

---

<div class="post-metadata">

**Author:** ![James](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/james/32/4400_2.png) [@James](https://forum.core-electronics.com.au/u/James)\
**Post date:** [15 June 2022 00:46 UTC](https://forum.core-electronics.com.au/t/pycom-and-rtc/14344/2 "2022-06-15T00:46:30Z")

</div>

Hi Clint,

Found a guide!

> **[Pycom DS3231 RTC - mindeon](https://mindeon.com/posts/coding-journal/pycom-ds3231-rtc/)**
>
> read/write the arduino EEPROM

Also, seems the Lopy has an in-built RTC peripheral, you’d just need to look into low-power modes if you wanted to wake on a given time, say:  
[https://docs.pycom.io/firmwareapi/pycom/machine/rtc/](https://docs.pycom.io/firmwareapi/pycom/machine/rtc/)

-James

---

<div class="post-metadata">

**Author:** ![Clint165695](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@Clint165695](https://forum.core-electronics.com.au/u/Clint165695)\
**Post date:** [20 June 2022 03:11 UTC](https://forum.core-electronics.com.au/t/pycom-and-rtc/14344/3 "2022-06-20T03:11:14Z")

</div>

Thanks James - much appreciated  
The challenge we have is that we are communicating over LoRa and not via WiFi etc. we have been able to use GPS to synchronise the time with the RTC but I am keen to be able to connect an external RTC to the LoPy4 to sync the time. This way we can schedule events based on the time of day etc.  
Regards  
Clint

---

<div class="post-metadata">

**Author:** ![tepalia02203352](https://avatars.discourse-cdn.com/v4/letter/t/5f8ce5/32.png) [@tepalia02203352](https://forum.core-electronics.com.au/u/tepalia02203352)\
**Post date:** [28 June 2022 11:24 UTC](https://forum.core-electronics.com.au/t/pycom-and-rtc/14344/4 "2022-06-28T11:24:10Z")

</div>

This one may help a bit [GitHub - mindeon/DS3231-RTC: Use a DS3231 I²C real-time clock (RTC) with your Pycom board](https://github.com/mindeon/DS3231-RTC)  
Could not find a tutorial, sorry.
