DS1302 โมดูลนาฬิกา RTC Real Time Clock Module with CR2032 3V Battery

DS1302 โมดูลนาฬิกา RTC Real Time Clock Module with CR2032 3V Battery
DS1302 โมดูลนาฬิกา RTC Real Time Clock Module with CR2032 3V BatteryDS1302 โมดูลนาฬิกา RTC Real Time Clock Module with CR2032 3V BatteryDS1302 โมดูลนาฬิกา RTC Real Time Clock Module with CR2032 3V Battery
รหัสสินค้า SKU-00609
หมวดหมู่ โมดูลนาฬิกา
ราคา 55.00 บาท
สถานะสินค้า พร้อมส่ง
ลงสินค้า 19 ก.ย. 2565
อัพเดทล่าสุด 19 ก.ย. 2565
คงเหลือ ไม่จำกัด
จำนวน
ชิ้น
หยิบลงตะกร้า
บัตรประชาชน
บุ๊คแบ๊งค์
คุ้มครองโดย LnwPay

DS1302 RTC Real Time Clock Module with CR2032 3V Battery

A Real Time Clock Module with battery backup using the easy to use DS1302 chip. The DS1302 chip uses a simple serial interface (see datasheet) and example code is available for Arduino, Raspberry Pi and many others. 

Features

  • 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
  • Serial I/O for Minimum Pin Count
  • 2.0V to 5.5V Full Operation
  • Uses Less than 300nA at 2.0V
  • Single-Byte or Multiple-Byte (Burst Mode) Data Transfer for Read or Write of Clock or RAM Data
  • Board Size: 44mm x 24mm

Documents



 
การต่อใช้งาน Arduino DS1302

1. ต่ออุปกรณ์ DS1302 โมดูลนาฬิกา กับ Arduino

DS1302 Module -> Arduino
VCC -> 5V
GND -> GND
CLK -> ขา4
DAT -> ขา3
RST -> ขา2


2.ดาวน์โหลด Library DS1302 โมดูลนาฬิกา ติดตั้งลง Arduino ide


3. อัพโหลดโค้ดตัวอย่างลงบอร์ด Arduino

1
// DS1302_Serial_Hard (C)2010 Henning Karlsen
2
// web: http://www.henningkarlsen.com/electronics
3
//
4
// A quick demo of how to use my DS1302-library to
5
// retrieve time- and date-date for you to manipulate.
6
//
7
// I assume you know how to connect the DS1302.
8
// DS1302: RST pin -> Arduino Digital 2
9
// DAT pin -> Arduino Digital 3
10
// CLK pin -> Arduino Digital 4
11
 
12
#include <DS1302.h>
13
 
14
// Init the DS1302
15
DS1302 rtc(2, 3, 4);
16
 
17
// Init a Time-data structure
18
Time t;
19
 
20
void setup()
21
{
22
// Set the clock to run-mode, and disable the write protection
23
rtc.halt(false);
24
rtc.writeProtect(false);
25
 
26
// Setup Serial connection
27
Serial.begin(9600);
28
 
29
// The following lines can be commented out to use the values already stored in the DS1302
30
// rtc.setDOW(MONDAY); // Set Day-of-Week to FRIDAY
31
// rtc.setTime(15, 1, 0); // Set the time to 12:00:00 (24hr format)
32
// rtc.setDate(3, 6, 2019); // Set the date to August 6th, 2010
33
}
34
 
35
void loop()
36
{
37
// Get data from the DS1302
38
t = rtc.getTime();
39
 
40
// Send date over serial connection
41
Serial.print("Today is the ");
42
Serial.print(t.date, DEC);
43
Serial.print(" Day,");
44
Serial.print(rtc.getMonthStr());
45
Serial.print(" Month,");
46
Serial.print(t.year, DEC);
47
Serial.println(" year");
48
 
49
// Send Day-of-Week and time
50
Serial.print(t.hour, DEC);
51
Serial.print(" hour,");
52
Serial.print(t.min, DEC);
53
Serial.print(" minute,");
54
Serial.print(t.sec, DEC);
55
Serial.println(" second");
56
 
57
// Send a divider for readability
58
Serial.println(" - - - - - - - - - - - - - - - - - - - - -");
59
 
60
// Wait one second before repeating :)
61
delay (1000);
62
}

4.ถ้าต้องการตั้งเวลาใหม่ให้เอา // หน้าบรรทัด 30 31 32 ออก

วิธีการชำระเงิน

ร้านค้านี้ยังไม่ได้กำหนดวิธีการชำระเงิน กรุณา ติดต่อกับทางร้าน เกี่ยวกับรายละเอียดในการชำระเงิน
ทางร้านยังไม่ได้ทำการเพิ่มบัญชีรับเงิน กรุณาติดต่อ เจ้าของร้าน

CATEGORY

MEMBER

STATISTIC

หน้าที่เข้าชม114,272 ครั้ง
ผู้ชมทั้งหมด51,034 ครั้ง
เปิดร้าน31 ก.ค. 2559
ร้านค้าอัพเดท4 ก.ย. 2568

CONTACT US

รายการสั่งซื้อของฉัน
เข้าสู่ระบบด้วย
เข้าสู่ระบบ
สมัครสมาชิก

ยังไม่มีบัญชีเทพ สร้างบัญชีใหม่ ไม่มีค่าใช้จ่าย
สมัครสมาชิก (ฟรี)
รายการสั่งซื้อของฉัน
ข้อมูลร้านค้านี้
ร้านบ้านโค้ด-Bancode
บ้านโค้ด-Bancode
จำหน่ายบอร์ดไมโครคอนโทรลเลอร์ Arduino,Module,Shield,Sensor,R,L,C,IC เเละอื่นๆ โทร.0624952525
เบอร์โทร : 0964188828
อีเมล : bancode.dev@gmail.com
ส่งข้อความติดต่อร้าน
เกี่ยวกับร้านค้านี้
สินค้าที่ดูล่าสุด
ดูสินค้าทั้งหมดในร้าน
สินค้าที่ดูล่าสุด
บันทึกเป็นร้านโปรด
Join เป็นสมาชิกร้าน
แชร์หน้านี้
แชร์หน้านี้

TOP เลื่อนขึ้นบนสุด
พูดคุย-สอบถาม