Virtuabotixrtch Arduino Library

Wiring the DS1302 to your Arduino is straightforward. The library is flexible and allows you to choose any digital pins you wish. The table below shows a common wiring example:

While there are multiple RTC libraries available in the Arduino ecosystem, stands out for a few major reasons: virtuabotixrtch arduino library

In the Arduino IDE, go to and select the downloaded file. Basic Wiring (Example) Go to product viewer dialog for this item. Wiring the DS1302 to your Arduino is straightforward

void setup() Serial.begin(9600);

: Typically uses a 3-wire serial interface (SCLK, I/O, and CE/Reset) rather than standard I2C. Instructables Key Library Methods virtuabotixRTC(SCLK, IO, CE) : Constructor to define the pins connected to the DS1302. virtuabotixrtch arduino library

For the DS3231, the library exposes alarm functions that many other libraries bury: