Interfacing with a DS1307 I2C RTC

The DS1307 is actually a very simple I2C chip. It just gives you back 7 bytes of information that is the time.
rs1307ds1307_schematic

Wiring

To wire your DS1307 Real Clock to your Arduino, connect the following pins:

  • Ds1307 Pin 1 (X1) –> Pin 1 of Crystal
  • Ds1307 Pin 2 (X2) –> Pin 2 of Crystal
  • Ds1307 Pin 3 (VBat) –> Battery +3V
  • Ds1307 Pin 4 (Gnd) –> Ground
  • Ds1307 Pin 5 (Sda) –> Arduino Pin A4
  • Ds1307 Pin 6 (Scl) –> Arduino Pin A5
  • Ds1307 Pin 7 (Sqw) –> N/C
  • Ds1307 Pin 8 (Vcc) –> Arduino +5V
  • Connect also Ds1307 Pin 3 & 4 with a Capacitor 0.1uF
  • And Battery Ground with Arduino Battery

 

Recommended Software

  • none

 

Instructions and Code

Posted in Arduino Tutorials Tagged with: , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*