Datasheet
Arduino Usage
You can easily wire this breakout to any microcontroller, we'll be using an Arduino. For another kind of microcontroller,
just make sure it has I2C, then port the code - its pretty simple stuff!
Connect Vin to the power supply, 3-5V is fine. Use the same voltage that the microcontroller logic is based off of.
For most Arduinos, that is 5V
Connect GND to common power/data ground
Connect the SCL pin to the I2C clock SCL pin on your Arduino. On an UNO & '328 based Arduino, this is also
known as A5, on a Mega it is also known as digital 21 and on a Leonardo/Micro, digital 3
Connect the SDA pin to the I2C data SDA pin on your Arduino. On an UNO & '328 based Arduino, this is also
known as A4, on a Mega it is also known as digital 20 and on a Leonardo/Micro, digital 2
The DS3231 has a default I2C address of 0x68 and cannot be changed
Download RTCLib
For the RTC library, we'll be using a fork of JeeLab's excellent RTC library RTClib - a library for getting and setting time
from an RTC (originally written by JeeLab, our version is slightly different so please only use ours to make sure its
compatible!)
To begin reading data, you will need to download Adafruit's RTCLib from our github repository. You can do that by
visiting the github repo and manually downloading or, easier, just click this button to download the zip
Download RTClib
Oops i removed the Power wire from 5V to the Vin rail before taking this pic, don't forget it!
© Adafruit Industries https://learn.adafruit.com/adafruit-ds3231-precision-rtc-breakout Page 12 of 22