Difference between revisions of "Real Time Clock RTC"

From HiveTool
Jump to: navigation, search
Line 2: Line 2:
  
 
<gallery mode="packed" heights=200px>
 
<gallery mode="packed" heights=200px>
File:DS3231.jpg
+
File:DS3231.jpg|DS3231 RTC
File:RTC on Pi.jpg
+
File:RTC on Pi.jpg|Installed on a Pi
 
</gallery>
 
</gallery>
  

Revision as of 00:47, 24 April 2017

Adding a RTC to the Hive Interface board.

DS3231

Hardware

This module almost plugs in to H2 (the I2C bus) on the Hive Interface board. A minor modification is required. As +5 VDC is not used and the ground must be shifted down a pin:

  1. The ground on C? must be moved.
  2. To be safe, the 4th pin of a 1x5 male header should be removed.
  3. Solder the 1x5 header in J7 BUT SHIFT IT DOWN ONE PIN.


H2 I2C Bus
Pin Signal New H2 for RTC
1 +5 No connect
2 +3.3 Pin 1 of H2
3 I2C Pin 2 of H2
4 I2C Pin 3 of H2
5 Ground No connect
Ground for C Ground Pin 5 of H2


Software

These instructions work, but are not complete in that the RTC is not set to the ntp servers when ntp servers are available:

https://learn.adafruit.com/adding-a-real-time-clock-to-raspberry-pi/overview


These instructions appear to be better but I have not tested them: https://www.raspberrypi.org/forums/viewtopic.php?t=85683