: Depends on the alarm value for hundredths.
7
: Hundredths match (once per second)
0-99
: Once per tenth (10 Hz)
240-249
: Once per hundredth (100 Hz)
255
Once you've set the alarm to your liking, go ahead and upload the code to your microcontroller. The interrupt pin
will now drop low every time the alarm is triggered. If you don't want to physically check the status of the interrupt
pin, you can uncomment the section of code in the void loop that reads the status register of the RTC. This will
alert you when the alarm has been triggered.
Example 5 - Battery Interrupt
To pull up the next example, go to File > Examples > SparkFun Qwiic RTC RV-1805 Arduino Library >
Example5-Battery_Interrupt to open the example sketch. This example checks the charge level of the
supercapacitor and alerts the user when it has reached 2.5V. You can change the voltage level at which the user is
alerted by changing the values passed into
Library Overview page to select the proper voltage. Once you've uploaded the example code to your
microcontroller, go ahead and open the serial monitor to 9600 baud. The output should look something like the
image below once the RTC is charged to the selected voltage.
Resources and Going Further
Now that you've successfully got your Qwiic RTC (RV-1805) module up and running, it's time to incorporate it into
your own project!
For more information about the Qwiic RTC (RV-1805) module, check out the resources below:
Schematic (PDF)
Eagle Files (ZIP)
RV-1805
Datasheet (PDF)
Application Manual (PDF)
DSK-141 Datasheet (PDF)
Qwiic Landing Page
GitHub
Product Repo
Arduino Library
Need some inspiration for your next project? Check out some of these related tutorials:
checkBattery(voltage, edgeTrigger);
. Follow the chart on the
Need help?
Do you have a question about the RV-1805 and is the answer not in the manual?
Questions and answers