DS3231 RTC Module
RTC方法Real Time Clock。RTC模块只是时间和日期记住系统,该系统具有电池设置,在没有外部电源的情况下保持模块运行。这使得最新的时间和日期。因此,我们可以随时从RTC模块的准确时间和日期。
DS3231 RTC引脚配置
DS3231是一个六个终端设备,其中两个引脚不强制使用。所以我们主要有四个引脚。这四个引脚在模块的另一侧被发出共享相同的名称。
Pin Name |
描述 |
VCC |
Connected to positive of power source. |
GND |
连接到地面。 |
SDA |
Serial Data pin (I2C interface) |
SCL. |
Serial Clock pin (I2C interface) |
s |
Square Wave output pin |
32K. |
32K.oscillator output |
DS3231 RTC MODULE Features
- RTC计数秒,分钟,小时和年度
- 精度:+ 2ppm至-2ppm0ºC至+40ºC,+ 3.5ppm至-3.5ppm-40ºC至+85ºC
- Digital temperature sensor with ±3ºC accuracy
- 两个时间的警报
- 可编程方波输出
- Register for Aging trim
- 400khz i2c接口
- Low power consumption
- Automatic power failure battery switch circuitry
- CR2032 battery backup with two to three year life
- 饮用尺寸
DS3231 RTC模块规格
- 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
Note:完整的技术信息可以在其中找到RTC Module Datasheetlinked at the bottom of this page.
DS3231 Equivalents
Where DS3231 RTC MODULE are Used?
For understanding the使用DS3231 RTC模块考虑:
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:哪里需要高速通信。DS3231 RTC模块能够与高速TWI接口通信。
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 throughI2C接口。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 defaultcircuit diagram of DS3231 RTC moduleinterface 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.
当电源下降时,RTC模块芯片从自动连接到它的电池源绘制电源。所以时间将是最新的。当系统重新启动控制器时,控制器可以从模块中获得实时时间而没有错误。
Applications
- 机器人
- Gaming
- Servers
- 计算机外围设备
- GPS
- 型电力表
2D模型
Measurements in millimeter
充电功能
As supplied the module is designed to charge a LIR2032 Rechargeable Coin Cell Battery. There are many articles on the internet about the design of the charging circuit for these modules and possible fire risk to the battery.
您可以通过去除R5然后拟合标准的CR2032电池来决定使用安全性并切断充电电路。电池应该持续多年。