26231042103
?????????????????????????????? ?????????????????????
Assignment |
Title :
2??????-???????????????????????? 4 DS3231
From มกราคม 21, 2020 at 03:03 PM until กุมภาพันธ์ 10, 2020 at 03:03 PM
Submission type :
File (file required, description text optional)
Submission visibility :
Only visible for teacher(s) and submitter(s)
Assignment type :
Individual
Allow late upload :
Users can not submit after end date
??
??
DS3231 ???????????????????????????????????????????????????????????????????????????? RTC Real Time Clock ??????????????????????????????????????????????????????????????????????????????????????????????????????? Arduino ??????????????????????????? ??????????????? DS3231 ?????????????????????????????????????? IC EEPROM AT24C32 ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ???????????? ????????????????????????????????????????? ??? ????????? ??????????????? DS3231 ???????????????????????????????????????????????????????????????? ???????????????????????????????????????????????? ????????????????????????????????????????????? ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ??????????????????????????????????????? ???????????????????????????????????????????????? ????????????????? RTC , ????????????????????????????????? EEPROM ??????????????????????????????????????????????? ???????? ????????????????????????????????????????????????????????????????????????????????? ???????????????????????????????????????????? ?????????????????????????????????????????????????????????????? Arduino ???????????????????????????????????????? ?????????????????? DataSheet DS3231 ?????????????????????????????????????????????????????????????? ???????????????????????????????????????????? ??????????????????????????? ??? ????????????????????????????????????????????????
??
1. ????????????????????????????????????????????? RTC DS3231 ?????????????????????????????
2. ???????????????????????????????????????????? DS3231 -> Arduino Uno ??????????????????
GND >> GND
VCC>> +5V
SDA>> A4
SCL>>A53. ????????????????????????????????????????? ???????????????????????????????????? ????????????????????????????????????????????????????????????????????????????????????????????? ????????????????????????????????????????? Arduino ??????????? ???????????????????????????????????????????????? Serial Monitor ????????????????????????????????????
??
??
?????????????????????????????????????????????????????????????????????????????????????????????????????????? RTC ???????????????????????????????????????????????????????? RTC.adjust(DateTime(__DATE__, __TIME__)); ???????? ????????????????????????????????????????????????????? ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
Serial.begin(9600);
Wire.begin();
RTC.begin();//?????????????????????????????????????????????????? ???????????????????????????????????????????????????????????????????????????????????? ????????????????????????????????????????????????????? ??????????????????????????????????????????????? ???????????????????????????
//RTC.adjust(DateTime(__DATE__, __TIME__));
Author(s) | Last submission | Submissions | Feedbacks |
---|