DS3231 RTC Module & DS3231 RTC Module Pinout
RTC means Real Time Clock. RTC modules are simply TIME and DATE remembering systems which have battery setup which in the absence of external power keeps the module running. This keeps the TIME and DATE up to date. So we can have accurate TIME and DATE from RTC module whenever we want.
DS3231 RTC Pin Configuration
DS3231 is a six-terminal device, out of them two pins are not compulsory to use. So, we have mainly four pins. These four pins are given out on other side of module sharing the same name.
|VCC||Connected to positive of power source.|
|GND||Connected to ground.|
|SDA||Serial Data pin (I2C interface)|
|SCL||Serial Clock pin (I2C interface)|
|SQW||Square Wave output pin|
|32K||32K oscillator output|
DS3231 RTC MODULE Features
- RTC counts seconds, minutes, hours and year
- Accuracy: +2ppm to -2ppm for 0ºC to +40ºC , +3.5ppm to -3.5ppm for -40ºC to +85ºC
- Digital temperature sensor with ±3ºC accuracy
- Two Time-of-day alarms
- Programmable square wave output
- Register for Aging trim
- 400Khz I2C interface
- Low power consumption
- Automatic power failure battery switch circuitry
- CR2032 battery backup with two to three-year life
- Potable size
DS3231 RTC MODULE Specifications
- Operating voltage of DS3231 MODULE: 2.3V – 5.5V
- Can operate on LOW voltages
- Consumes 500nA on battery backup
- Maximum voltage at SDA, SCL: VCC + 0.3V
- Operating temperature: -45ºC to +80ºC
DS1302, DS1307, etc.
Where DS3231 RTC MODULE are Used?
For understanding the use of DS3231 RTC MODULE consider: Case1: Where you want accurate time and date. Although there are many RTC modules present in the market DS3231 is one of the most popular one because of its accuracy. The chip keeps the time up to date more accurately than most modules. Case2: Where power consumption is issue. DS3231 RTC MODULE consumes very less power to function. So this module can be used on mobile systems. Case3: Where high speed communication is of need. DS3231 RTC MODULE capable of communicating with high speed TWI interface. The DS3231 can also work on both 24Hr and 12Hr format finding applications in GPS systems. With two alarm clock and temperature sensor on board the use of DS3231 module is promoted even further than other modules.
How to use DS3231 RTC MODULE
As mentioned earlier the only way to communicate with this RTC module is through I2C interface. The data is sent to the module or received from the module though I2C interface. So, we have to get the information of DATE and TIME through this interface. The default circuit diagram of DS3231 RTC module interface is shown below.
As shown in circuit diagram the module is connected to +5V power supply. The module can work on +5V regulated power and higher voltage may damage the module. The I2C interface is established as shown in figure. All you need to do is connect SDA of module to SDA of controller and SCL is connected to SCL of controller.
The communication between controller and module is really complex. Usually the information is sent or received byte to byte. So using libraries which are written for the module DS3231 is ideal. Using libraries makes the communication easy. All you need to do is download these libraries and call them in programs. Once the header file is included, the controller performs the communication by itself and provides the date and time for you. The alarm clock can also be set or changed easily using libraries.
And when the power goes down, the RTC module chip draws the power from battery source connected to it automatically. So, the time will be up to date. And when the system restarts the controller can get the real time from module without error.
- Computer Peripherals
- Utility power meters
Measurements in millimeter