Virtuabotixrtch Arduino Library

To keep the RTC running without Arduino power. 📥 How to Install the VirtuabotixRTC Library

The DS1302 RTC module requires five connections: two for power and three for data transfer. Unlike standard SPI or I2C devices, the serial pins on the DS1302 can be connected to on your Arduino board. DS1302 Pin Description Example Arduino Uno Pin VCC Power Supply (2.0V – 5.5V) 5V or 3.3V GND Ground Reference CLK / SCLK Serial Clock Pin Digital Pin 6 DAT / IO Serial Data Input/Output Digital Pin 7 RST / CE Reset / Chip Enable Digital Pin 8 Installing the Library virtuabotixrtch arduino library

Do not put setTime() inside loop() . It will reset your clock to the compile time repeatedly, making the clock appear frozen. To keep the RTC running without Arduino power

While the Arduino is capable of keeping track of time internally using functions like millis() , this tracking resets every time the board powers down. The VirtuabotixRTC library bridges this gap by allowing developers to easily communicate with an external RTC module, ensuring projects have access to uninterrupted, real-world time. Understanding the DS1302 RTC Chip DS1302 Pin Description Example Arduino Uno Pin VCC

Standard examples often use the following pin configuration: SCLK (Clock) I/O (Data) : 5V or 3.3V (depending on module) Installation Guide

Eli lived in a world of "almosts." His automated greenhouse almost watered the plants on time. His robotic blinds almost opened at sunrise. But without a sense of real-world time, his Arduino Uno was just guessing, counting milliseconds in the dark until a power flicker reset its entire memory.