
這款時鐘模組採用Maxim DS3231核心,為極精確的RTC芯片,它管理所有計時功能,並具有簡便的I2C接口,可以輕鬆地與Arduino, Raspberry Pi連接。
Maxim DS3231芯片保留秒,分鐘,小時,日期,日期,月份和年份的信息。對於少於31天的月份,將自動調整月末的日期,包括leap年的更正(有效期至2100年)。
帶有AM / PM指示器的時鐘以24小時或12小時格式運行。它還提供了兩個可編程的時間鬧鐘。
還帶有一個很酷的功能是帶有SQW引腳,它可以依1Hz,4kHz,8kHz或32kHz的頻率輸出漂亮的方波,並且可以通過編程方式進行處理。
.主要用途:
為Arduino提供精確時間,用以製作數據記錄,時鐘構建,計時器和警報的項目。
.商品特色:
– 帶可充電電池CR2032,系統斷電後,時鐘仍可保持精確的計時
– 採用16引腳300mil的SO封裝
– 芯片內部自帶溫度感測器 (精度為±3℃)
– 帶有2個日曆鬧鐘
– 實時時鐘,秒、分、時、星期、日期、月和年計時,並提供有效期到2100年的閏年補償
.接線說明:
SDA – 接 Arduino UNO 的 Analog Pin 4 SDA
SCL – 接 Arduino UNO 的 Analog Pin 5 SCL
GND – 接 GND
VCC – 接 +5V
.商品規格:
尺寸:38*22*14mm
重量:8g
電壓:3.3–5.5V
型號:ZS-042
時鐘芯片:高精度時鐘芯片 RTC-DS3231
時鐘精度:精度2ppm,年誤差約1分鐘
存儲芯片:AT24C32(存儲容量32K)
電池類型:CR2032
.商品包含:
1 x 高精度時鐘模組 RTC-DS3231
・示範短片:
.程式範例:
#include <DS3231.h>
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);
}










商品評價
目前沒有評價。