Virtuabotixrtc.h Arduino Library 🎉
virtuabotixRTC.h library is a specialized tool for Arduino users to interface with DS1302 Real-Time Clock (RTC)
Method B: Manual Folder Copy
VCC
| DS1302 Module Pin | Connect to Arduino Pin | | :--- | :--- | | | 5V (or 3.3V, but 5V is typical) | | GND | GND | | CLK (Clock) | Digital Pin 4 | | DAT (Data) | Digital Pin 3 | | RST (Reset/Chip Select) | Digital Pin 2 | virtuabotixrtc.h arduino library
Set Time
: Push date/time values from the Arduino into the DS1302 registers. virtuabotixRTC
You cannot find this library by default in the Arduino IDE Library Manager (as of recent updates). You have to install it manually. Simplicity: Extremely easy to learn, with just 3
- Simplicity: Extremely easy to learn, with just 3 main functions.
- Low Pin Usage: Uses only 3 digital I/O pins (any pins, not hardware-specific).
- Cost-Effective: DS1302 modules are often 1/3 the price of DS3231 modules (approx. $1–$2 USD).
- Wide Availability: Installable directly via Arduino Library Manager.
- No I2C Conflicts: Leaves I2C bus free for other devices (e.g., sensors, displays).