Virtuabotixrtch Arduino Library -

An RTC is a battery-backed chip that keeps track of time even when your Arduino is powered off. Most hobbyists are familiar with the DS1307 or the DS3231. However, the DS1302 is another popular, low-cost option often found in sensor kits.

While the hardware is important, the software to drive it can be tricky. Some libraries are bloated or difficult to configure. The Virtuabotix RTC library was designed to simplify the interface for the DS1302 chip, making it easier for beginners to read and write time data. virtuabotixrtch arduino library

Yes, if:

No, if:

void enableTrickleCharge(int diodeType, int resistorType);
void disableTrickleCharge();

Common values:


After installation, verify success by looking for examples: File > Examples > VirtuabotixRTC. You should see SetTime and ReadTime. An RTC is a battery-backed chip that keeps


void writeRAM(int address, byte data);
byte readRAM(int address);
void burstWriteRAM(byte* data, int len);
void burstReadRAM(byte* data, int len);