# Recommendation for DS3231 RTC library

**URL:** <https://forum.arduino.cc/t/recommendation-for-ds3231-rtc-library/947931>\
**Category:** Programming\
**Created:** [January 17, 2022, 4:54am UTC](https://forum.arduino.cc/t/recommendation-for-ds3231-rtc-library/947931 "2022-01-17T04:54:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnRob](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/johnrob/32/253560_2.png) [@JohnRob](https://forum.arduino.cc/u/JohnRob)\
**Post date:** [January 17, 2022, 4:54am UTC](https://forum.arduino.cc/t/recommendation-for-ds3231-rtc-library/947931/1 "2022-01-17T04:54:27Z")

</div>

I'm using the DS3231 RTC for a data logging project. I have not choses which library is the best for my purposes.  
I'm a minimalist guy and would like to find a library that is kinda of "lean". I only need to configure the SQW output and read the time and date. For setup I will use a different ino sketch who's only function is to set the time and date.

Any suggestions / experience would be appreciated.

---

<div class="post-metadata">

**Author:** ![J-M-L](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/j-m-l/32/766245_2.png) [@J-M-L](https://forum.arduino.cc/u/J-M-L)\
**Post date:** [January 17, 2022, 8:47am UTC](https://forum.arduino.cc/t/recommendation-for-ds3231-rtc-library/947931/2 "2022-01-17T08:47:52Z")

</div>

Unused functions are removed by the compiler

You could also look at any lib’s code (I like Adafruit’s RTClib) and extract the configuration you want to have and not use any library at all.

> <https://github.com/adafruit/RTClib/blob/6f73714314ae4df31b73873a98b37c7fc85e67d0/src/RTC_DS3231.cpp#L99>

---

<div class="post-metadata">

**Author:** ![hzrnbgy](https://avatars.discourse-cdn.com/v4/letter/h/90db22/32.png) [@hzrnbgy](https://forum.arduino.cc/u/hzrnbgy)\
**Post date:** [January 17, 2022, 2:13pm UTC](https://forum.arduino.cc/t/recommendation-for-ds3231-rtc-library/947931/3 "2022-01-17T14:13:33Z")

</div>

The DS3231 is a very simple device. To get date and time, you only need to read registers **0x00 to 0x06**

---

<div class="post-metadata">

**Author:** ![Nick\_Pyner](https://avatars.discourse-cdn.com/v4/letter/n/e8c25b/32.png) [@Nick\_Pyner](https://forum.arduino.cc/u/Nick_Pyner)\
**Post date:** [January 17, 2022, 3:25pm UTC](https://forum.arduino.cc/t/recommendation-for-ds3231-rtc-library/947931/4 "2022-01-17T15:25:56Z")

</div>

[bildr » Do You Have The Time? DS1307 RT Clock + Arduino](https://bildr.org/2011/03/ds1307-arduino/)  
Works for DS3231.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [July 16, 2022, 3:26pm UTC](https://forum.arduino.cc/t/recommendation-for-ds3231-rtc-library/947931/5 "2022-07-16T15:26:32Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
