Science Score: 67.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 3 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.4%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: subairi
- License: unlicense
- Language: C++
- Default Branch: main
- Size: 21.5 KB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
DS3231
Description
Arduino library for the DS3231 real-time clock (RTC). Abstracts functionality for clock reading, clock setting, and alarms for the DS3231 high-precision real-time clock. This is a splice of Ayars' and Jeelabs/Ladyada's libraries.
Installation
First Method

- In the Arduino IDE, navigate to Sketch > Include Library > Manage Libraries
- Then the Library Manager will open and you will find a list of libraries that are already installed or ready for installation.
- Then search for DS3231 using the search bar.
- Click on the text area and then select the specific version and install it.
Second Method
- Navigate to the Releases page.
- Download the latest release.
- Extract the zip file
- In the Arduino IDE, navigate to Sketch > Include Library > Add .ZIP Library
Requirements
This library depends on the wire header file. To use this library functions, the user has to include wire.h (header) file.
Features
Easy Interface
DS3231 library has a very easy to use interface
Low-cost
DS3231 is a low-cost module
Accuracy
DS3231 is an extremely accurate I2C realtime clock (RTC) with an integrated temperature-compensated crystal oscillator (TCXO) and crystal.
Time Fomat
The clock operates in either the 24-hour or 12-hour format with an AM/PM indicator.
Information
The RTC maintains seconds, minutes, hours, day, date, month, and year information. The date at the end of the month is automatically adjusted for months with fewer than 31 days, including corrections for leap year.
Functions
- date2days()
- time2long()
- unixtime()
- bcd2bin()
- bin2bcd()
- now()
- getSecond()
- getMinute()
- getHour()
- getDoW()
- getDate()
- getMonth()
- getYear()
- setEpoch()
- setSecond()
- setMinute()
- setHour()
- setDoW()
- setDate()
- setMonth()
- setYear()
- setClockMode()
- getTemperature()
- getA1Time()
- getA2Time()
- setA1Time()
- setA2Time()
- turnOnAlarm()
- turnOffAlarm()
- checkAlarmEnabled()
- checkIfAlarm()
- enableOscillator()
- enable32kHz()
- oscillatorCheck()
- decToBcd()
- bcdToDec()
- readControlByte()
- writeControlByte()
Example
There are many examples implemented where this library is used. You can find other examples from Github-DS3231
Contributing
If you want to contribute to this project:
- Report bugs and errors
- Ask for enhancements
- Create issues and pull requests
- Tell others about this library
- Contribute new protocols
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Credits
The authors of this library are A. Wickert awickert@umn.edu, E. Ayars, J. C. Wippler, N. W. LLC info@northernwidget.com and it is maintained by A. Wickert. This library is released into the public domain by Jeelabs, Ladyada, and E. Ayar.
Based on previous work by:
- S. T. Andersen
- SimGas
- Per1234
- Glownt
License
DS3231 is licensed under The Unlicense.
Owner
- Login: subairi
- Kind: user
- Repositories: 1
- Profile: https://github.com/subairi
Citation (CITATION.cff)
cff-version: 1.2.0 message: "If you use this software, please cite it as below." authors: - family-names: "Ayars" given-names: "Eric" orcid: "https://orcid.org/0000-0003-2150-6935" - family-names: "Wickert" given-names: "Andrew D." orcid: "https://orcid.org/0000-0000-0000-0000" - family-names: "Community" given-names: "Open Source Hardware" title: "DS3231" version: 1.1.0 doi: 10.5281/zenodo.2008621 date-released: 2021-12-06 url: "https://github.com/NorthernWidget/DS3231"