Phone

    00852-6915 1330

DS3231 RTC: Introduction to Features and Pinout [Video]

  • Contents

The DS3231 is a extremely accurate I2C real- time clock (RTC) .

The DS3231 has an internal temperature-compensated crystal oscillator (TCXO) which is not affected by temperature and therefore has higher accuracy so that it can be accurate to a few minutes per year.

In this blog, Apogeeweb will briefly introduce the basic information of DS3231, as well as the pins and functions of DS3231.

Wondering how to use the DS3231 real time clock module?

Catalog

DS3231 Overview

DS3231 Pinout

Component Datasheet

FAQ


DS3231 Overview

The DS3231 data sheet explains that this component is "Extremely Accurate I²C-Integrated RTC/TCXO/Crystal" And, hey, it does exactly what the tin says! This Real Time Clock (RTC) is the most accurate you can get in a small, low power pack.

Real Time Clock (RTC)

Most RTCs use an external 32kHz timing crystal, which is used to keep time with low current draw. And that's all right and good, but those crystals have a slight drift, particularly when the temperature changes (the temperature changes the oscillation frequency quite slightly, but it adds up!) This RTC is in a beefy package because the crystal is within the chip! And there's a temperature sensor right next to the integrated crystal. This sensor compensates for shifts in frequency by adding or removing clock ticks so that timekeeping remains on track.

DS3231 RTC Module

This is the finest RTC you can get, and now we've got it in a compact, breadboard-friendly breakout. With a coin cell plugged in the back, you can get years of precision timekeeping even when the main power is lost. Great for data logging and clocks, or anything you really need to know the time .

Comes as a fully assembled, tested breakout plus a small piece of header. You can solder the header to plug it directly into a breadboard or solder the wires.


DS3231 Pinout

- Power Pin

  • Vin-This is the pin of power. Since the RTC can be powered from 2.3V to 5.5V, you do not need a 3.3V or 5V logic/power regulator or level switch. To power the board, give it the same power as the logic level of your microcontroller-e.g. for a 5V microphone like Arduino, use 5V.
  • GND-a common ground for power and logic

- I2C Logic Pin

  • SCL-I2C clock pin, connect the I2C clock line to your microcontrollers. This pin has a 10K pullup resistor for Vin.
  • SDA-I2C data pin, connect to the I2C data line of your microcontrollers. This pin has a 10K pullup resistor for Vin.

- Other Pin

  • BAT-This is the same connection as the positive battery pad. You can use this if you want to power something else from a coin cell, or if you want to backup the battery from another separate battery. VBat can be between 2.3V and 5.5V, and the DS3231 switches when the main Vin power is lost.
  • 32K-Output of 32KHz oscillator. Open the drain, you need to attach a pull-up to read this signal from the microcontroller pin
  • SQW-Optional square wave output or interrupt output. Open the drain, you need to attach a pull-up to read this signal from the microcontroller pin
  • RST-This one is a bit different from most RST pins, rather than just an input, it is designed to be used to reset an external device or to indicate when the main power is lost. Open drain, but it has an internal 50K pull-up. This pin voltage is kept high by the pull-up as long as Vin is present. When Vin drops and the chip switches to battery backup, the pin goes down.

That’s all for our introduction to the DS3231 RTC. If you find this blog useful, please bookmark our website Apogeeweb, we will provide you with electronic component blogs, industry news, tools, etc. that you are interested in. Stay tuned for our next blog…

Component Datasheet

DS3231 Datasheet


FAQ

  • What is DS3231?

The DS3231 is a low-cost, extremely accurate I²C real-time clock (RTC) with an integrated temperature-compensated crystal oscillator (TCXO) and crystal. The device incorporates a battery input, and maintains accurate timekeeping when main power to the device is interrupted.

  • How Accurate is DS3231?

This usually results with the clock being off by around five or so minutes per month. However, the DS3231 is much more accurate, as it comes with an internal Temperature Compensated Crystal Oscillator(TCXO) which isn't affected by temperature, making it accurate down to a few minutes per year at the most.

  • How to Set Time on my RTC DS3231?

(This is A Simple Guide to Setting Time on a DS3231/DS3107/DS1337 Real Time Clock With Arduino UNO)
Step 1: Parts. You'll need only: ...
Step 2: Connect RTC to Arduino. Place the coin-cell battery in the RTC.
Step 3: Download the Arduino Library and Run the SetTime Sketch.

  • What is A DS3231 RTC Module?

The DS3231 is a low-cost, extremely accurate I2C real-time clock (RTC) with an integrated temperature- compensated crystal oscillator (TCXO) and crystal. The device incorporates a battery input, and maintains accurate timekeeping when main power to the device is interrupted.

  • What is RTC?

A real-time clock (RTC) is an electronic device (most often in the form of an integrated circuit) that measures the passage of time. Although the term often refers to the devices in personal computers, servers and embedded systems, RTCs are present in almost any electronic device which needs to keep accurate time.

  • Are CR2430 and CR2032 Interchangeable?

CR2430 coin cell batteries are known for being slightly wider than their CR2025 and CR2032 counterparts. Security sensors that use coin batteries like the CR2430 are usually small and unobtrusive. But since the CR2430 batteries are wider, they cannot be used interchangeably with CR2025 and CR2032 batteries.

Kynix

Kynix was founded in 2008, specializing in the electronic components distribution business. We adhere to honesty and ethics as our business philosophy and have gradually established an excellent reputation and credibility in our international business. With the accurate quotation, excellent credit, reasonable price, reliable quality, fast delivery, and authentic service, we have won the praise of the majority of customers.

Join our mailing list!

Be the first to know about new products, special offers, and more.

Leave a Reply

We'd love to hear from you! Feel free to share your thoughts and comments below. Rest assured, your email address will remain private.

Name *
Email *
Captcha *
Rating:

Kynix

  • How to purchase

  • Order
  • Search & Inquiry
  • Shipping & Tracking
  • Payment Methods
  • Contact Us

  • Tel: 00852-6915 1330
  • Email: info@kynix.com
  • Follow Us

authentication

Kynix

© 2008-2026 kynix.com all rights reserve.