Template: PCF8563 RTC Board Arduino Guide
From Waveshare Wiki
The Arduino example is written for the Arduino UNO. If you want to connect it to other Arduino boards, you may need to change the connection.
Arduino
Hardware connection
PCF8563 | Arduino | Description |
---|---|---|
VCC | 5V | Power input |
GMD | GND | Power ground |
SDA | SDA | I2C data input |
SCL | SCL | SCL clock pin |
Examples
- Download the demo codes to your PC and unzip them.
- Install the Arduino IDE on your PC.
- Go into PCF8563-Code/Arduino/PCF8563.
- Run the PCF8563.ino file.
- Select the correct Board and the Port.
- Create a project and upload it to the board.
- Open the serial monitor of the Arduino IDE or the SSCOM software and check the serial data.
Effect
Open the serial debugging software and output the year, month, day, hour, minute, and second on the serial port.