รหัสสินค้า | C06002 |
หมวดหมู่ | นาฬิกา Real Time Clock (RTC) |
ราคา | 90.00 บาท |
ขนาด | 5 |
สถานะสินค้า | พร้อมส่ง |
ลงสินค้า | 20 พ.ค. 2562 |
อัพเดทล่าสุด | 30 ก.ค. 2568 |
ความพึงพอใจ | 5.00/5 จาก 1 คน |
คงเหลือ | 6 ชิ้น |
จำนวน | ชิ้น |
DS3231 RTC Real Time Clock AT24C32 Module นาฬิกาแบบเวลาแสดงเวลาจริง RTC (Real time clock) มีความถูกต้องแม่นยำสูง มาพร้อมแบตเตอร์รี่ ใช้งานได้แม้ไม่มีแหล่งจ่ายไฟจากภายนอก สามารถตั้งค่า วัน เวลาได้อย่างง่ายดย มีไลบารี่พนพร้อมใช้งานกับ Arduino สามารถแสดงผลเวลาแบบ 24 ชั่วโมงและแบบ 12 ชั่วโมงได้ นอกจากจะแสดงเวลาได้แล้ว ยังสามารถตั้งเวลาปลุกได้อีกด้วย การต่อใช้งานกับ Arduino ง่ายดายผ่าน I2C/IIC
To use the DS3231 with the Arduino IDE, you will need to install a library that provides functions for accessing the RTC's features. Here are the steps to get started:
You can find more examples and information on using the DS3231 with the Arduino in the library documentation and examples provided with the library.
ข้อมูลเพิ่มเติม
สินค้า 1 ชุดประกอบด้วย
Example of how you can use the DS3231 library to set and read the time and date on an Arduino:
#include <DS3231.h>
DS3231 rtc;void setup() {
// Initialize serial communication
Serial.begin(9600);
// Initialize the DS3231
rtc.begin();// Set the time and date
rtc.setTime(12, 34, 56, 7, 1, 1, 2021); // 12:34:56, Sunday, January 1, 2021
}void loop() {
// Read the time and date from the RTC
tm time = rtc.getTime();// Print the time and date to the serial monitor
Serial.print(time.hour);
Serial.print(":");
Serial.print(time.min);
Serial.print(":");
Serial.print(time.sec);
Serial.print(", ");
Serial.print(time.mday);
Serial.print("/");
Serial.print(time.mon);
Serial.print("/");
Serial.print(time.year);
Serial.println();// Delay for one second
delay(1000);
}
หน้าที่เข้าชม | 4,510,795 ครั้ง |
ผู้ชมทั้งหมด | 2,466,567 ครั้ง |
ร้านค้าอัพเดท | 6 ก.ย. 2568 |