External Coin Cell Battery
Now if you've decided that you'd like to power the RTC from a battery instead of a supercapacitor, you'll need to
cut the trace jumper on the back of the board to disconnect power from the supercapacitor. Add solder to the other
side of the jumper to connect power to the battery. Once you've done this, add a little bit of solder on the circular
pad for contact, solder the battery holder legs to the board, insert the battery, and you're good to go!
Library Overview
Note: This example assumes you are using the latest version of the Arduino IDE on your desktop. If this is
your first time using Arduino, please review our tutorial on installing the Arduino IDE. If you have not
previously installed an Arduino library, please check out our installation guide.
Before we get into programming our RTC, let's download and check out the available functions in our library.
SparkFun has written a library to control the Qwiic RTC. You can obtain these libraries through the Arduino Library
Manager. Search for SparkFun Qwiic RTC RV1805 Arduino Library to install the latest version. If you prefer
downloading the libraries from the GitHub repository and manually installing it, you can grab them here:
DOWNLOAD THE SPARKFUN QWIIC RTC RV1805 LIBRARY (ZIP)
Let's get started by looking at the functions that set up the RTC.
Setup and Settings
boolean begin( TwoWire &wirePort = Wire );
trickle charging circuit along with low power mode. Also sets the RTC to a 12-hour time format.
void reset(void);
— Performs a full software reset on the RTC.
— The begin function initalizes the RTC, enabling the
Need help?
Do you have a question about the RV-1805 and is the answer not in the manual?
Questions and answers