PCF8563 RTC Module Features
The PCF8563 real time clock module features high accuracy and low power consumption. This RTC maintains seconds, minutes, hours, day, date, month, and year information. In this module, the date is set based on whether the month is 29, 30 or 31 days and also it is leap year or not. This module can also be used in 12-hour and 24-hour formats.
DS3231 RTC Module Pinout
This module has 6 pins:
- INT: interrupt output
- COT: Clock output
- SCL: Serial Clock Input for I2C protocol
- SDA: Serial Data Input / Output for I2C protocol
- GND: Ground
- VCC: Module power supply – 5V
You can see the pinout of this module in the image below.
Interfacing PCF8563 RTC Module with Arduino
Step 1: Circuit
The following circuit shows how you should connect Arduino to PCF8563 module. Connect wires accordingly.
Step 2: Installing Library
Go to Library manager and install the Rtc_Pcf8563 library.
Step 3: Code
Upload the following code to Arduino. After that open Serial Monitor.
modified on Nov 16, 2020
Modified by MehranMaleki from Arduino Examples
In this code, at first, time information including the day, month, century and year and then hours, minutes and seconds are set as the starting point. Module starts working and is updated every second. Then every second the data is received from module and displayed in the Serial Monitor.
The output is as follows.