訂單發貨回覆正常, 3-5工作天發貨。滿$50包本地平郵,滿$500 包順豐速遞。

DS3231 時鐘模組 Clock Module

$28.00

DS3231 AT24C32 高精度時鐘模組 for Arduino IIC 儲存模組

DS3231是低成本、高精度I2C即時時鐘(RTC),具有集成的溫補晶振(TCXO)和晶體。該器件包含電池輸入端,斷開主電源時仍可保持精確的計時。集成晶振提高了器件的長期精確度,並減少了生產線的元件數量。DS3231提供商用級和工業級溫度範圍,採用16引腳300mil的SO封裝。

商品說明

DS3231 AT24C32 高精度 時鐘模組 for Arduino IIC 儲存模組

DS3231是低成本、高精度I2C即時時鐘(RTC),具有集成的溫補晶振(TCXO)和晶體。該器件包含電池輸入端,斷開主電源時仍可保持精確的計時。集成晶振提高了器件的長期精確度,並減少了生產線的元件數量。DS3231提供商用級和工業級溫度範圍,採用16引腳300mil的SO封裝。

RTC保存秒、分、時、星期、日期、月和年資訊。少於31天的月份,將自動調整月末的日期,包括閏年的修正。時鐘的工作格式可以是24小時或帶/AM/PM指示的12小時格式。提供兩個可設置的日曆鬧鐘和一個可設置的方波輸出。位址與資料通過I2C雙向匯流排序列傳輸。

精密的、經過溫度補償的電壓基準和比較器電路用來監視VCC狀態,檢測電源故障,提供重定輸出,並在必要時自動切換到備份電源。另外,/RST監視引腳可以作為產生μP復位的手動輸入。

除計時精度高之外,DS3231還具有一些其它功能,這些功能擴展了系統主機的附加功能和選擇範圍。該器件內部集成了一個非常精確的數位溫度感測器,可通過I2C*介面對其進行訪問(如同時間一樣)。這個溫度感測器的精度為±3°C。片上控制電路可實現自動電源檢測,並管理主電源和備用電源(即低壓電池)之間的電源切換。如果主電源掉電,該器件仍可繼續提供精確的計時和溫度,性能不受影響。當主電源重新加電或電壓值返回到容許範圍內時,片上重定功能可用來重新開機系統微處理器。

 

 

模組參數

■尺寸:38mm(長)*22mm(寬)*14mm(高)
■重量:8g
■工作電壓:3.3–5.5V
■時鐘晶片:高精度時鐘晶片DS3231
■時鐘精度:0-40℃範圍內,精度2ppm,年誤差約1分鐘
■帶2個日曆鬧鐘
■可程式設計方波輸出
■即時時鐘產生秒、分、時、星期、日期、月和年計時,並提供有效期到2100年的閏年補償
■晶片內部自帶溫度感測器,精度為±3℃
■存儲晶片:AT24C32(存儲容量32K)
■IIC匯流排介面,最高傳送速率400KHz(工作電壓為5V時)
■可級聯其它IIC設備,24C32位址可通過短路A0/A1/A2修改,默認地址為0x57
■帶CR2032電池,保證系統斷電後,時鐘仍然正常走動
■接線說明(以Arduino uno r3為例)


The DS3231 is a low-cost, extremely accurate I2C real-time clock (RTC) with an integrated temperaturecompensated crystal oscillator (TCXO) and crystal. The device incorporates a battery input, and maintains accurate timekeeping when main power to the device is interrupted. The integration of the crystal resonator enhances the long-term accuracy of the device as well as reduces the piece-part count in a manufacturing line.

The DS3231 is available in commercial and industrial temperature ranges, and is offered in a 16-pin, 300-mil SO package.

The RTC maintains seconds, minutes, hours, day, date, month, and year information. The date at the end of the month is automatically adjusted for months with fewer than 31 days, including corrections for leap year. The clock operates in either the 24-hour or 12-hour format with an AM/PM indicator. Two programmable time-of-day alarms and a programmable square-wave output are provided. Address and data are transferred serially through an I2C bidirectional bus. A precision temperature-compensated voltage reference and comparator circuit monitors the status of VCC to detect power failures, to provide a reset output, and to automatically switch to the backup supply when necessary. Additionally, the RST pin is monitored as a pushbutton input for generating a μP reset.

Key Features
Highly Accurate RTC Completely Manages All Timekeeping Functions
Real-Time Clock Counts Seconds, Minutes, Hours, Date of the Month, Month, Day of the Week, and Year, with Leap-Year Compensation Valid Up to 2100
Accuracy ±2ppm from 0°C to +40°C
Accuracy ±3.5ppm from -40°C to +85°C
Digital Temp Sensor Output: ±3°C Accuracy
Register for Aging Trim
Active-Low RST Output/Pushbutton Reset Debounce Input
Two Time-of-Day Alarms
Programmable Square-Wave Output Signal
Simple Serial Interface Connects to Most Microcontrollers
Fast (400kHz) I2C Interface
Battery-Backup Input for Continuous Timekeeping
Low Power Operation Extends Battery-Backup Run Time
3.3V Operation
Operating Temperature Ranges: Commercial (0°C to +70°C) and Industrial (-40°C to +85°C)
Underwriters Laboratories® (UL) Recognized

連接/Connetion:

VCC -> Arduino 5V

GND -> Arduino GND

SCL -> SCL or A5

SDA -> SDA or A4

 

 

函數庫下載 www.rinkydinkelectronics.com/library.php?id=73

 

// DS3231_Serial_Easy
// Copyright (C)2015 Rinky-Dink Electronics, Henning Karlsen. All right reserved
// web: http://www.RinkyDinkElectronics.com/
//
// A quick demo of how to use my DS3231-library to 
// quickly send time and date information over a serial link
//
// To use the hardware I2C (TWI) interface of the Arduino you must connect
// the pins as follows:
//
// Arduino Uno/2009:
// ----------------------
// DS3231:  SDA pin   -> Arduino Analog 4 or the dedicated SDA pin
//          SCL pin   -> Arduino Analog 5 or the dedicated SCL pin
//
// Arduino Leonardo:
// ----------------------
// DS3231:  SDA pin   -> Arduino Digital 2 or the dedicated SDA pin
//          SCL pin   -> Arduino Digital 3 or the dedicated SCL pin
//
// Arduino Mega:
// ----------------------
// DS3231:  SDA pin   -> Arduino Digital 20 (SDA) or the dedicated SDA pin
//          SCL pin   -> Arduino Digital 21 (SCL) or the dedicated SCL pin
//
// Arduino Due:
// ----------------------
// DS3231:  SDA pin   -> Arduino Digital 20 (SDA) or the dedicated SDA1 (Digital 70) pin
//          SCL pin   -> Arduino Digital 21 (SCL) or the dedicated SCL1 (Digital 71) pin
//
// The internal pull-up resistors will be activated when using the 
// hardware I2C interfaces.
//
// You can connect the DS3231 to any available pin but if you use any
// other than what is described above the library will fall back to
// a software-based, TWI-like protocol which will require exclusive access 
// to the pins used, and you will also have to use appropriate, external
// pull-up resistors on the data and clock signals.
//

#include 

// Init the DS3231 using the hardware interface
DS3231  rtc(SDA, SCL);

void setup()
{
  // Setup Serial connection
  Serial.begin(115200);
  // Uncomment the next line if you are using an Arduino Leonardo
  //while (!Serial) {}
  
  // Initialize the rtc object
  rtc.begin();
  
  // The following lines can be uncommented to set the date and time
  //rtc.setDOW(WEDNESDAY);     // Set Day-of-Week to SUNDAY
  //rtc.setTime(12, 0, 0);     // Set the time to 12:00:00 (24hr format)
  //rtc.setDate(1, 1, 2014);   // Set the date to January 1st, 2014
}

void loop()
{
  // Send Day-of-Week
  Serial.print(rtc.getDOWStr());
  Serial.print(" ");
  
  // Send date
  Serial.print(rtc.getDateStr());
  Serial.print(" -- ");

  // Send time
  Serial.println(rtc.getTimeStr());
  
  // Wait one second before repeating :)
  delay (1000);
}

商品評價

目前沒有評價。

只有註冊並且購買過商品的顧客才能撰寫評價。