跳过主要内容

DS3231 RTC模块

RTCmeans实时时钟。RTC模块只是时间和日期记忆系统,这些系统具有电池设置,在没有外部功率的情况下,该系统可以使模块运行。这可以使时间和日期保持最新。因此,我们可以随时使用RTC模块的准确时间和日期。

DS3231RTCPin Configuration

DS3231is 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

连接到电源阳性。

gnd

Connected to ground.

SDA

串行数据引脚(I2C接口)

SCL

串行时钟销(I2C接口)

SQW

方波输出引脚

32K

32K振荡器输出

DS3231 RTC模块功能

  • RTCcounts 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
  • 具有±3ºC精度的数字温度传感器
  • Two Time-of-day alarms
  • Programmable square wave output
  • 注册老化装饰
  • 400Khz I2C interface
  • 低功耗
  • 自动故障电池开关电路
  • CR2032电池备用两到三年
  • Potable size

DS3231RTCMODULE Specifications

  • DS3231模块的操作电压:2.3V - 5.5V
  • 可以在低电压上操作
  • 在电池备用上消耗500NA
  • SDA的最大电压:SCL:VCC + 0.3V
  • 工作温度:-45ºC至 +80ºC

笔记:Complete technical information can be found in theRTC模块数据表链接在此页面的底部。

DS3231等效物

DS1302,,,,DS1307,,,,etc.

在哪里使用DS3231 RTC模块?

理解use of DS3231 RTC MODULEconsider:

情况1:您想要准确的时间和日期。尽管市场上存在许多RTC模块,但DS3231是最受欢迎的模块,因为它的准确性。芯片比大多数模块更准确地保持时间最新。

案例2:功耗是问题的地方。DS3231 RTC模块消耗的功能较少。因此,该模块可以在移动系统上使用。

案例3:在高速通信的需要。DS3231RTCMODULE capable of communicating with high speed TWI interface.

DS3231还可以在GPS系统中找到24小时和12小时格式的应用程序。使用两个闹钟和温度传感器,使用DS3231模块的使用甚至比其他模块更进一步。

如何使用DS3231 RTC模块

如前所述,与此RTC模块通信的唯一方法是通过I2C interface。数据将发送到模块或通过I2C接口从模块接收到。因此,我们必须通过此界面获取日期和时间的信息。默认值DS3231 RTC模块的电路图接口如下所示。

DS3231 RTC模块接口电路图

如电路图所示,该模块连接到 +5V电源。该模块可以在 +5V调节的功率上工作,并且更高的电压可能会损坏模块。如图所示,建立了I2C接口。您需要做的就是将模块的SDA连接到控制器的SDA,SCL已连接到控制器的SCL。

控制器和模块之间的通信确实很复杂。通常,信息将发送或接收到字节到字节。因此,使用为模块DS3231编写的库是理想的选择。使用库使通信变得容易。您需要做的就是下载这些库,并在程序中致电它们。包含标头文件后,控制器将自己执行通信,并为您提供日期和时间。闹钟也可以使用库轻松设置或更改。

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.

申请

  • Robotics
  • 赌博
  • 服务器
  • Computer Peripherals
  • 全球定位系统
  • Utility power meters

2D-Model

毫米的测量

DS3231 RTC模块尺寸

组件数据表

相关文章


Comments

Comment

所提供的模块旨在为LIR2032可充电硬币电池充电。互联网上有许多有关这些模块充电电路设计的文章,并可能对电池进行火灾风险。

You can decided to play safe and cut out the charging circuit by removing R5 and then fit a standard CR2032 battery. The battery should last many years.


Join 20K+subscribers

我们绝不会垃圾邮件。

*表示需要

Be a part of our ever growing community.

Baidu