รหัสสินค้า | C06001 |
หมวดหมู่ | นาฬิกา Real Time Clock (RTC) |
ราคา | 35.00 บาท |
ขนาด | 5 |
สถานะสินค้า | พร้อมส่ง |
ลงสินค้า | 20 พ.ค. 2562 |
อัพเดทล่าสุด | 14 พ.ค. 2568 |
ความพึงพอใจ | 5.00/5 จาก 1 คน |
คงเหลือ | 3 ชิ้น |
จำนวน | ชิ้น |
DS1302 RTC Real Time Clock Module นาฬิกา DS1302 พร้อมแบตเตอรรี่ สามารถใช้งานได้ง่าย โดยใช้ DS1302 Chip สามารถใช่ร่วมกับ Arduino Raspberry Pi และอื่นๆ
ข้อมูลเพิ่มเติม
The DS1302 is a real-time clock (RTC) IC that uses a 32.768kHz crystal oscillator to keep accurate time. It includes a built-in calendar and alarm functions, and can also be used to provide a simple timekeeping function. The IC is available in a small DIP package and is designed to be easy to use with a microcontroller. It communicates with a microcontroller using a simple 3-wire interface (serial clock, data, and chip select). The DS1302 can run on a wide range of voltages (3V to 5V) and has a built-in power-sense circuit to detect when the power supply voltage drops too low to maintain accurate timekeeping.
The DS1302 real-time clock (RTC) can be used with an Arduino microcontroller to provide accurate timekeeping. To use the DS1302 with an Arduino, you'll need to connect the DS1302 to the Arduino board using three wires:
Once the hardware is set up, you can use an Arduino library to interact with the DS1302. The widely used libraries are RTClib and the Time library. You can also use the Wire library to communicate with the RTC via the I2C protocol
ข้อมูลเพิ่มเติม
Example For Arduino:
#include <Wire.h>
#include "RTClib.h"RTC_DS1307 rtc;
void setup () {
Serial.begin(9600);
Wire.begin();
rtc.begin();
}void loop () {
DateTime now = rtc.now();
Serial.print(now.year(), DEC);
Serial.print('/');
Serial.print(now.month(), DEC);
Serial.print('/');
Serial.print(now.day(), DEC);
Serial.print(" ");
Serial.print(now.hour(), DEC);
Serial.print(':');
Serial.print(now.minute(), DEC);
Serial.print(':');
Serial.print(now.second(), DEC);
Serial.println();
delay(1000);
}
หน้าที่เข้าชม | 4,510,768 ครั้ง |
ผู้ชมทั้งหมด | 2,466,540 ครั้ง |
ร้านค้าอัพเดท | 6 ก.ย. 2568 |