Wiring It Up | DS1307 Real Time Clock Breakout Board Kit

Skip to main content DS1307 Real Time Clock Breakout Board Kit Wiring It Up
  • Overview
  • What is an RTC?
  • Parts List
  • Assembly
  • Wiring It Up
  • Arduino Library
  • Understanding the Code
  • Downloads
  • Single page
  • Feedback? Corrections?
  • Text View
Primary Products
  • Top down view of a DS1307 Real Time Clock breakout board on a half sized white breadboard. DS1307 Real Time Clock breakout board kit No Longer Stocked
Featured Products view all
  • Angled shot of a Adafruit DS1307 Real Time Clock Assembled Breakout Board. Adafruit DS1307 Real Time Clock Assembled Breakout Board $7.50 Add to Cart
  • Angled shot of CR1220 12mm Diameter - 3V Lithium Coin Cell Battery - CR1220. CR1220 12mm Diameter - 3V Lithium Coin Cell Battery Out of Stock
  • Angled shot of a Adafruit METRO 328 Fully Assembled Adafruit METRO 328 Fully Assembled - Arduino IDE compatible Out of Stock
  • Bundle of multi-colored multi-length wire jumpers Breadboarding wire bundle $4.95 Add to Cart
  • Angled shot of a ChronoDot - Ultra-precise Real Time Clock with a cell battery inserted. ChronoDot - Ultra-precise Real Time Clock $17.50 Add to Cart
48 Intermediate Product guide

Wiring It Up

There are only 5 pins: 5V GND SCL SDA SQW.

  • 5V is used to power to the RTC chip when you want to query it for the time. If there is no 5V signal, the chip goes to sleep using the coin cell for backup.
  • Connect GND to common power/data ground
  • Connect the SCL pin to the I2C clock SCL pin on your Arduino. On an UNO & '328 based Arduino, this is also known as A5, on a Mega it is also known as digital 21 and on a Leonardo/Micro, digital 3
  • Connect the SDA pin to the I2C data SDA pin on your Arduino. On an UNO & '328 based Arduino, this is also known as A4, on a Mega it is also known as digital 20 and on a Leonardo/Micro, digital 2

SQW is the optional square-wave output you can get from the RTC if you have configured it to do so. Most people don't need or use this pin

adafruit_products_breadboard.jpg Fun Plug-in Hack for Arduino UNO

If you set analog pin A3 to an OUTPUT and HIGH and A2 to an OUTPUT and LOW you can power the RTC directly from the pins!

Connect Arduino UNO A4 to SDA. Connect Arduino analog pin A5 to SCL.

This only works on an UNO and other ATmega328-based Arduinos!

adafruit_products_quickplug.jpg

Page last edited January 29, 2013

Text editor powered by tinymce.

Assembly Arduino Library Related Guides Low Power WiFi Datalogger By Tony DiCola beginner Arduino Lesson 17. Email Sending Movement Detector By Simon Monk intermediate Character LCDs By lady ada beginner Ladyada's Learn Arduino - Lesson #0 By lady ada beginner Adafruit CC3000 WiFi and Xively By M. Schwartz beginner I2C Addresses and Troublesome Chips By lady ada beginner Circuit Playground Sound-Controlled Robot By Anne Barela beginner How to program a Zumo Robot with Simulink By Anuja Apte beginner Adafruit Proto Screw Shield By lady ada beginner Adafruit Arduino Selection Guide By Bill Earl beginner How to Find Hidden COM Ports By lady ada beginner Arduino Lesson 2. LEDs By Simon Monk beginner IR Sensor By lady ada beginner Arduino Lesson 10. Making Sounds By Simon Monk beginner Smart Cocktail Shaker By Tony DiCola beginner
Create Wishlist
× Title Description Close Search Search
Categories

Tag » How To Use Ds1307 Clock