Tiny RTC I2C Module 24C32 Memory DS1307 Clock ARDUINO

Tiny RTC I2C Module 24C32 Memory DS1307 Clock ARDUINO
Tiny RTC I2C Module 24C32 Memory DS1307 Clock ARDUINOTiny RTC I2C Module 24C32 Memory DS1307 Clock ARDUINOTiny RTC I2C Module 24C32 Memory DS1307 Clock ARDUINO
รหัสสินค้า SG00010
หมวดหมู่ Clock and Timing
ราคา 40.00 บาท
สถานะสินค้า พร้อมส่ง
จำนวน
ชิ้น
หยิบลงตะกร้า
หนังสือรับรองบริษัท
บุ๊คแบ๊งค์
คุ้มครองโดย LnwPay
Tiny RTC
โมดูล Tiny RTC นี้แสดงค่าเวลาตามจริง โดยใช้ DS1307  ติดต่อกับ Arduino board โดย I2C protocol แสดงค่า วินาที นาที ชั่วโมง วัน เดือน ปี  โดยมีการปรับค่าให้ตรงตามเดือนที่มี 31 วัน และ ปีที่มี 366 วันได้อย่างถูกต้อง  แสดงค่าเวลาเป็นแบบ 24 หรือ 12 ชั่วโมงได้ครับ

บทความการใช้งานของร้าน Arduitronics

https://www.arduitronics.com/article/real-time-clock-ds3231

Interesting Link

https://www.sparkfun.com/datasheets/Components/DS1307.pdf

http://zygzax.com/2013/04/22/reloj-con-arduino-y-el-modulo-tiny-rtc-i2c/?lang=en

Download Sample and Documentation

This tiny RTC module is based on the clock chip DS1307 which supports the I2C protocol. It uses a Lithium cell battery (CR1225). The clock/calendar provides seconds, minutes, hours, day, date,month, and year information. The end of the month date is automatically adjusted for months with fewer than 31 days, including corrections for leap year. The clock operates in either the 24-hour or 12-hour format with AM/PM indicator.

Feature:

  • I2C interface
  • DS1307 based RTC with LIR2032 battery (Battery included)
  • Backup by AT24C32 32Kbit
  • DS1307,AT24C32 can work singleness
  • Dimention: 28x25x8.4mm
  • Weight:6.3g(include Battery)
#include "Wire.h"
#define DS1307_I2C_ADDRESS 0x68 // the I2C address of Tiny RTC
byte second, minute, hour, dayOfWeek, dayOfMonth, month, year;
// Convert normal decimal numbers to binary coded decimal
byte decToBcd(byte val)
{
return ( (val/10*16) + (val%10) );
}
// Convert binary coded decimal to normal decimal numbers
byte bcdToDec(byte val)
{
return ( (val/16*10) + (val%16) );
}
// Function to set the currnt time, change the second&minute&hour to the right time
void setDateDs1307()
{
second =45;
minute = 29;
hour = 13;
dayOfWeek = 2;
dayOfMonth =18;
month =9;
year= 12;
Wire.beginTransmission(DS1307_I2C_ADDRESS);
Wire.write(decToBcd(0));
Wire.write(decToBcd(second)); // 0 to bit 7 starts the clock
Wire.write(decToBcd(minute));
Wire.write(decToBcd(hour)); // If you want 12 hour am/pm you need to set
// bit 6 (also need to change readDateDs1307)
Wire.write(decToBcd(dayOfWeek));
Wire.write(decToBcd(dayOfMonth));
Wire.write(decToBcd(month));
Wire.write(decToBcd(year));
Wire.endTransmission();
}
// Function to gets the date and time from the ds1307 and prints result
void getDateDs1307()
{
// Reset the register pointer
Wire.beginTransmission(DS1307_I2C_ADDRESS);
Wire.write(decToBcd(0));
Wire.endTransmission();
Wire.requestFrom(DS1307_I2C_ADDRESS, 7);
second = bcdToDec(Wire.read() & 0x7f);
minute = bcdToDec(Wire.read());
hour = bcdToDec(Wire.read() & 0x3f); // Need to change this if 12 hour am/pm
dayOfWeek = bcdToDec(Wire.read());
dayOfMonth = bcdToDec(Wire.read());
month = bcdToDec(Wire.read());
year = bcdToDec(Wire.read());
Serial.print(hour, DEC);
Serial.print(":");
Serial.print(minute, DEC);
Serial.print(":");
Serial.print(second, DEC);
Serial.print(" ");
Serial.print(month, DEC);
Serial.print("/");
Serial.print(dayOfMonth, DEC);
Serial.print("/");
Serial.print(year,DEC);
Serial.print(" ");
Serial.println();
//Serial.print("Day of week:");
}
void setup() {
Wire.begin();
Serial.begin(19200);
setDateDs1307(); //Set current time;
}
void loop()
{
delay(2000);
getDateDs1307();//get the time data from tiny RTC
}

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

ชำระเงินค่าสินค้าโดยการโอนเงินเข้าบัญชีธนาคาร KBANK, SCB, BBL,TMB

กรุณาเก็บหลักฐานการโอนเงินของท่านไว้เพื่อแจ้งการชำระเงินด้วยค่ะ

 

ท่านสามารถแจ้งการชำระเงินผ่านระบบอัตโนมัติได้โดย Click Link ข้างล่างค่ะ

https://www.arduitronics.com/informpayment

 

บมจ. ธนาคารกสิกรไทย สาขาเซ็นทรัล แจ้งวัฒนะ ออมทรัพย์
ธนาคารไทยพาณิชย์ จำกัด (มหาชน) สาขาเซ็นทรัล แจ้งวัฒนะ ออมทรัพย์
ธนาคารกรุงเทพ จำกัด (มหาชน) สาขาเซนทรัล พระราม 3 สะสมทรัพย์
ธนาคารทหารไทยธนชาต จำกัด (มหาชน) สาขาเซนทรัล พระราม 3 กระแสรายวัน

เพิ่มเพื่อน

@rfm0967y

ติดต่อสอบถาม

เพิ่มเพื่อน

CATEGORY

Sensors / Modules [1702]

CONTACT US

มือถือ 0887823467 แฟกซ์ 02-0153201

Join เป็นสมาชิกร้านค้า

ร้านArduitronics
ร้านArduitronics
/www.arduitronics.com/
Join เป็นสมาชิกร้าน
2128
สมัครสมาชิกร้านนี้ เพื่อรับสิทธิพิเศษ

STATISTICS

หน้าที่เข้าชม15,389,628 ครั้ง
ผู้ชมทั้งหมด5,892,706 ครั้ง
เปิดร้าน21 พ.ค. 2556
ร้านค้าอัพเดท14 ก.ย. 2568

MEMBER

พูดคุย-สอบถาม