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...
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...
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...
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.
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)
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.
Need help?
Do you have a question about the RV-1805 and is the answer not in the manual?
Questions and answers