pcbway




DS3231 Introduction, DS3231 Pinout, DS3231 Features, DS3231 working, DS3231 Applications, DS3231 Arduino interfacing, DS3231Hello friends, I hope you all are doing great. In today’s tutorial, we are gonna have a look at detailed Introduction to DS3231. DS3231 is a real-time clock (RTC) with an integrated temperature compensated crystal oscillator. It consists of a battery which provides supply to DS3231 when the main supply is off. In this way, it continues working without any interference. It is available in industrial and commercial temperature ranges. It exists in 16-pin, 300-mil  SO package.

DS3231 is used in industrial projects and different electronic devices such as laptops, computers, and GPS for high accuracy of time. In today’s post, we will have a look at its working, pinout, applications, protocol, etc. I will also share some links of projects where I have interfaced it with some other Microcontroller. If you have any questions please ask in comments, I will try my best to resolve your problems. So, let’s get started with a basic Introduction to DS3231.

Introduction to DS3231

  • DS3231 is a low-cost real-time clock (RTC), which has integrated temperature compensated crystal oscillator (TCXO) and I2C working protocol. It also has back up battery, which provides supply when the main supply cut off.
  • It has crystal resonator which enhances long term accuracy of the device and reduces piece-part count in a manufacturing line.
  • It is available in 16 pins, 300 mil SO package. This RTC module maintains seconds, minute, hour, date, month and yearly information. It changes to date and time at the end of month automatically including corrections for leap year.
  • This module operates in either 24 hours or 12-hour format with an AM/PM indicator.
  • It consists of temperature compensated voltage reference and comparator circuit, which monitors the status of Vcc to detect power failures. This circuit provides a reset output and automatically switch to backup supply when necessary.DS3231 Introduction, DS3231 Pinout, DS3231 Features, DS3231 working, DS3231 Applications, DS3231 Arduino interfacing, DS3231

Now, we discuss DS3231 pinout with detailed.

DS3231 Pinout & Description

There are a main sixteen pinouts of DS3231, which are described below with detailed.

Pin#Type Parameters
Pin#132KThis is a 32 kHz output. This is an open drain pin requires an external pull up resistor. If it is not in use can be left open.
Pin#2VccThis pin is for DC power supply. It should be decoupled with 0.1µF to 1.0µF capacitor. If not in use connected to ground.
Pin#3INT/SQWThis is a low interrupt or square wave output pin. It requires an external pull up resistor.
Pin#4RSTThis is an active low reset. It is open drain input/output. It indicates the status of Vcc relative to the Vpf simplifications. As Vcc falls below Vpf, the RST pin is driven low.
Pin#5-12N.CThese pins are not in use. These should be connected to ground.
Pin#13GNDThis pin is used for ground.
Pin#14Vbat This pin used for Backup Power Supply Input. It should be coupled with 0.1µF to 1.0µF low-leakage capacitor.
Pin#15SDAIt is serial data input, output pin. This pin is the data input/output for the I2C serial interface.
Pin#16SCLIt is a serial clock pin.

For better understanding, let’s see the DS3231 pinout diagram.

DS3231 Introduction, DS3231 Pinout, DS3231 Features, DS3231 working, DS3231 Applications, DS3231 Arduino interfacing, DS3231




Features of DS3231

  • Features of an electronic component can help you a better understanding of major function associated with it. It will help you to make a final decision before picking a device for your relevant project. Following are some features of DS3231.
  • Its accuracy from 0°C to +40°C is ±2 ppm and -40°C to +85°C is ±3.5 ppm.
  • It is a low power consumption device. It has battery backup for continuous timekeeping.
  • Its temperature range for commercial use is 0°C to +70°C and for industries is -40°C to +85°C.
  •  This Real Time Clock Counts Seconds, Minutes, Hours, Day, Date, Month, and Year with Leap Year Compensation Valid Up to 2100.
  •  It has two times of day alarms. It can operate up to 400kHz frequency.
  • It has a simple serial interface which can Connect to Most Microcontrollers. Its working protocol is I2C.
  • It is Underwriters Laboratories (UL) Recognized.

DS3231 Arduino Interfacing

Friends, now we discuss DS3231 Arduino interfacing with a complete description and circuit diagram.

Components Required

  • These are components of this circuit.
    • Arduino UNO
    • DS3231 RTC Module
    • Mini Breadboard
    • 16×2 LCD Display
    • Connecting Wires
    • 10 KΩ POT

Circuit Design & Description

  • First of all, we discuss connections between Arduino and DS3231. As we already know interfacing between them is I2C, If you are using board other than UNO, then first you should identify the I2C pins on your Arduino Board.
  • In Arduino UNO A4 and A5 are SDA and SCL pins. Connect these pins with corresponding SCL and SDA pins of DS3231 module. After this connect Vcc and ground pin of RTC Module with +5v and GND of Arduino.
  • For output, I have interfaced LCD with this circuit. Connect E and RS pins of LCD to 7 and 6 of Arduino, also connect D4-D7 of LCD to 5-2 of Arduino pins.

For further information, let’s see its circuit diagram.

DS3231 Introduction, DS3231 Pinout, DS3231 Features, DS3231 working, DS3231 Applications, DS3231 Arduino interfacing, DS3231

Applications of DS3231

  • These are some applications of DS3231.
    • It is used in Servers.
    • It used in Data Loggers
    • It can be used in GPS Modules.
    • It is also used in Power Meters

So, friends that were all about DS3231, if you have any question and query about it please ask in comments. I will resolve your problems. Take care.

1 Comment

Leave a Reply