O'Reilly logo

Internet of Things Programming with JavaScript by Ruben Oliva Ramos

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

  1. Select Advanced Options:
    I2C setup
  2. Enable the I2C option, as shown in the following screenshot:
    I2C setup
  3. Select <Yes> on the next screen:
  4. Select <Ok>:
  5. Then select <Yes>:
  6. Next, select <OK>:

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required