新款 DS3231 AT24C32 高精度 時鐘模組 for Arduino IIC 儲存模組 附贈CR2032鋰電池

-17%

新款 DS3231 AT24C32 高精度 時鐘模組 for Arduino IIC 儲存模組 附贈CR2032鋰電池

NT$110 NT$90 未稅

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

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

尚有庫存

貨號: 967443221(C2-19) 分類: 標籤: , ,
  • 商品說明

商品說明

新款 DS3231 AT24C32 高精度 時鐘模組 for Arduino IIC 儲存模組 附贈CR2032鋰電池

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

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

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

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

 DS3231 AT24C32 高精度 時鐘模組 for Arduino

模組參數

■尺寸: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為例)

VCC -> Arduino 5V

GND -> Arduino GND

SCL -> SCL or A5

SDA -> SDA or A4

函數庫下載 http://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);
}