This is an Arduino library for the DS3231 RTC (Real Time Clock).
- Change library to use with ESP8266
- Add now example fpr ESP8266
Released under MIT License http://opensource.org/licenses/mit-license.php
- Pascal Gollor (http://www.pgollor.de/cms/)
- SodaqMoja (https://github.com/SodaqMoja/Sodaq_DS3231)
- Seeed Technology Inc(http://www.seeedstudio.com)
- Original DateTime Class and its utility code is by Jean-Claude Wippler at JeeLabs (http://jeelabs.net/projects/cafe/wiki/RTClib)
For more information see old readme
Transmit update
as ASCII String with CR
and LF
and the end over the serial to update the DS3231.
DS3231 Schield | ESP8266 |
---|---|
Vcc | Vcc |
GND | GND |
SDA | D4 |
SCL | D5 |
ESP8266 GPIO
Please use a DS3231 shield.
If you are using the DS3231 without any shield you have to add pull up resistors to SDA
and SCL
.
Bytes | Description |
---|---|
0 | LI (Bit 6-7), VersionNumber (3-5). Mode(0-2) |
1 | Stratum |
2 | Poll |
3 | Precision |
4 - 7 | Root Deleay |
8 - 11 | Root Dispersion |
12 - 15 | Reference ID |
16 - 23 | Reference Timestamp |
24 - 31 | Origin Timestamp |
32 - 39 | Receive Timestamp |
40 - 47 | Transmit Timestamp |
Time at the server when the response left for the client, in NTP timestamp format.
Bytes | Description |
---|---|
0 - 3 | Seconds scince 1900 |
4 - 7 | Fraction of Second |