Difference between revisions of "Real Time Clock RTC"

From HiveTool
Jump to: navigation, search
Line 3: Line 3:
 
==DS3231==
 
==DS3231==
 
===Hardware===
 
===Hardware===
This module almost plugs in to J? on the Hive Interface board.  A minor modification is required.  
+
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:
 +
 
 
#The ground on C? must be moved.  
 
#The ground on C? must be moved.  
 
#To be safe, the 4th pin of a 1x5 male header should be removed.
 
#To be safe, the 4th pin of a 1x5 male header should be removed.
 
#Solder the 1x5 header in J7 BUT SHIFT IT DOWN ONE PIN.
 
#Solder the 1x5 header in J7 BUT SHIFT IT DOWN ONE PIN.
 +
 +
 +
{| class="wikitable"
 +
! scope="row" colspan="2"| H2 I2C Bus
 +
|-
 +
! scope="col"| Pin
 +
! scope="col"| Signal
 +
! scope="col"| 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===
 
===Software===

Revision as of 00:35, 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


https://www.raspberrypi.org/forums/viewtopic.php?t=85683