sparkfun RV-1805 Hook-Up Manual

Qwiic real time clock module

Advertisement

Quick Links

Qwiic Real Time Clock Module (RV-1805) Hookup Guide
Introduction
The Qwiic Real Time Clock (RTC) module is a Qwiic-enabled breakout board for the RV-1805 module! The RTC is
ultra-low power (running at about 22 nA in its lowest power setting) so it can use a supercapacitor for backup
power instead of a normal battery. This means infinite charge and discharge cycles without any degradation to the
"battery" (in this case, a supercapacitor). The breakout board is also a part of SparkFun's Qwiic system, so you
won't have to do any soldering to figure out what time it is.
SparkFun Real Time Clock Module - RV-1805 (Qwiic)
 BOB-14558
In this hookup guide, we'll take advantage of the Arduino IDE to automatically set the time of the RTC to the
compiler time. Once we have the time set, we'll set the alarm to a time of our choice and have it generate a signal
on the interrupt pin. We'll also look at how charged the RTC is so we know when to unplug the RTC from power
(when it's full of course). Finally, we'll look at how to store other data into the RTC so we can keep important
variables safe when our system loses power. We'll also go over how to extend the battery life of your RTC by
adding an external battery.
Required Materials
To get started, you'll need a microcontroller to control everything in your project.
O
O
U
C
C
A
R
U
T
N
Y
R
T
E
S
I
G
E
R

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RV-1805 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for sparkfun RV-1805

  • Page 1 Introduction The Qwiic Real Time Clock (RTC) module is a Qwiic-enabled breakout board for the RV-1805 module! The RTC is ultra-low power (running at about 22 nA in its lowest power setting) so it can use a supercapacitor for backup power instead of a normal battery.
  • Page 2 Now to get your microcontroller into the Qwiic ecosystem, the key will be one of the following Qwiic shields to match your preference of microcontroller: SparkFun Qwiic Shield for Arduino SparkFun Qwiic HAT for Raspberry Pi  DEV-14352  DEV-14459...
  • Page 3 SparkFun Qwiic Shield for Photon  DEV-14477 You will also need a Qwiic cable to connect the shield to your RTC, choose a length that suits your needs. Qwiic Cable - 200mm Qwiic Cable - 100mm  PRT-14428  PRT-14427...
  • Page 4: Suggested Reading

    Get started with our Qwiic ecosystem with the Qwiic shield for Arduino or Photon. Hardware Overview Let’s look over a few characteristics of the RV-1805 RTC so we know a bit more about how it behaves. Characteristic Range Operating Voltage (Startup) 1.6V - 3.6V...
  • Page 5: Optional Features

    Time Accuracy ±2.0 ppm Current Consumption 22 nA (Typ.) I C Address 0xD2 Pins The characteristics of the available pins on the RTC are outlined in the table below. Input/Output Notes Label Function 3.3V Power Input Should be between 1.95 - 3.6V Supply Ground Input...
  • Page 6: Hardware Assembly

    If you haven’t yet assembled your Qwiic Shield, now would be the time to head on over to that tutorial. With the shield assembled, Sparkfun’s new Qwiic environment means that connecting the sensor could not be easier. Just plug one end of the Qwiic cable into the RTC breakout, the other into the Qwiic Shield of your choice.
  • Page 7: Library Overview

    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...
  • Page 8 — Set’s the RTC to the time on the compiler. bool setToCompilerTime(); bool setTime(uint8_t hund, uint8_t sec, uint8_t min, uint8_t hour, uint8_t date, uint8_t month, uin — Set’s the time registers of the RTC to a chosen time using individual variables. —...
  • Page 9 — must be between 0 and 7, alarm goes off with match of void setAlarmMode(uint8_t mode); mode second, minute, hour, etc depending on the value of mode : Disabled : Hundredths, seconds, minutes, hours, date and month match (once per year) : Hundredths, seconds, minutes, hours and date match (once per month) : Hundredths, seconds, minutes, hours and weekday match (once per week) : Hundredths, seconds, minutes and hours match (once per day)
  • Page 10: Example Code

    Example 1 - Set Time Once you’ve installed the SparkFun Qwiic RTC RV-1805 Arduino library go to File > Examples > SparkFun Qwiic RTC RV-1805 Arduino Library > Example1-Set_Time to open the example sketch. We will use this first sketch to set up our RTC’s internal clock.
  • Page 11 Example 3 - Trickle Charging To pull up the next example, go to File > Examples > SparkFun Qwiic RTC RV-1805 Arduino Library > Example3-Trickle_Charging. This example will show us how to fiddle with the RTC’s trickle charging circuit to configure it for different charge rates as well as disable it if we want to use a coin cell battery.
  • Page 12 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.
  • Page 13 A quick introduction to the DS1307 RTC module and a have to set! Using GPS and some formulas, we figure hookup guide for the SparkFun Breakout. out what day of the week and if we are in or out of daylight savings time.
  • Page 14 MARCH 26, 2018 MAY 8, 2018...

Table of Contents