**[[ad_ul_data_logger|Uno-Leonardo Data Logger]]** ====== Real Time Clock DS3231 ====== ===== Description ===== RTC DS3231 is connected to standard TWI (I2C) bus. ==== Used Pins ==== === Arduino Leonardo Compatibility=== Digital Pin: **2, 3**\\ Bus: **TWI**\\ Power Pin: **GND, +5V**\\ {{:ad_ul_data_loger_1_0_0:leo_pin_twi.png?300|}} === Arduino Uno Compatibility=== Analogue Pin: **4,5**\\ Bus: **TWI**\\ Power Pin: **GND, +5V**\\ {{:ad_ul_data_loger_1_0_0:uno_pin_twi.png?300|}} ==== Config options ==== **SQW** (left side) is output pin on which is available square wave depends of DS3231 setings.\\ Pin header (right side with LED) in short show output on **SQW** (left side)\\ **SQW** (right side) is output pin on which is available square wave of 32kHz.\\ \\ {{:ad_ul_data_loger_1_0_0:uno_leo_mega_duo_data_loger_v1_0_0_ds3231.png|}} ==== Code example ====