- Internet of Things Programming with JavaScript
- Rubén Oliva Ramos
- 93字
- 2025-03-31 03:55:13
Connecting an RTC
To control a system, it is very important to have a circuit that can read the time; it can help control the outputs from the Raspberry Pi or detect an action at a specific time. We will interface an RTC module DS3231 with the Raspberry Pi.
I2C setup
The first step is to enable the I2C interface by performing the following steps:
- Select Advanced Options:
- Enable the I2C option, as shown in the following screenshot:
- Select <Yes> on the next screen:
- Select <Ok>:
- Then select <Yes>:
- Next, select <OK>: