Cov txheej txheem:

Arduino Moos Nrog DS3231 thiab LCD1602: 3 Cov Kauj Ruam
Arduino Moos Nrog DS3231 thiab LCD1602: 3 Cov Kauj Ruam

Video: Arduino Moos Nrog DS3231 thiab LCD1602: 3 Cov Kauj Ruam

Video: Arduino Moos Nrog DS3231 thiab LCD1602: 3 Cov Kauj Ruam
Video: Xa Suab Nug Moo Instrumental + Lyrics 2024, Kaum ib hlis
Anonim
Arduino Moos Nrog DS3231 thiab LCD1602
Arduino Moos Nrog DS3231 thiab LCD1602

Txoj haujlwm no yog ib feem ntawm qhov loj dua tab sis nws tuaj yeem yog qhov haujlwm ib leeg. Nws yog lub moos nrog ob lub nyees khawm rau teeb lub sijhawm thiab hnub tim.

Nws tsis zoo li ntawm daim ntawv qhia zaub mov nrog txhua cov xov hlau tab sis nws ua haujlwm thiab nws tuaj yeem yooj yim dua los ntawm kev siv I2C zaub, tab sis kuv yuav npog qhov kev kawm yav tom ntej.

Hom kev ua haujlwm yog yooj yim heev, koj muaj ob lub nyees khawm, thawj qhov, txuas rau tus pin 8 ntawm arduino tau siv los xaiv qhov ntsuas (hnub, teev feeb…) thiab thaum kawg txhawm rau txuag hnub tshiab. Khawm thib ob, uas txuas nrog tus pin 9 ntawm arduino, yog siv los ua kom qhov kev ntsuas ntsuas tau xaiv thiab thaum kawg tso tseg cov ntaub ntawv koj nyuam qhuav nkag (tsis khaws) yog tias koj tsis txaus siab rau nws.

Kauj Ruam 1: Qhov Yuav Tsum Tau:

Qhov Yuav Tsum Tau
Qhov Yuav Tsum Tau
Qhov Yuav Tsum Tau
Qhov Yuav Tsum Tau
Qhov Yuav Tsum Tau
Qhov Yuav Tsum Tau
Qhov Yuav Tsum Tau
Qhov Yuav Tsum Tau

1. Arduino UNO R3 lossis pawg thawj coj saib tau

2. DS3231 RTC (Lub Sijhawm Tiag) module

3. CR2032 roj teeb, yog tus qauv tsis tuaj nrog ib qho

4. LCD 1602 zaub

5. 50K ohm kuj sib txawv resistor rau kho qhov sib txawv ntawm 1602 LCD

6. 2 lub nyees khawm rau kev hloov kho hnub thiab sijhawm

7. Ob 10K ohm resistors rau khawm pins pulldown

8. Jumper hlau rau txuas cov khoom

9. Cov qhob cij

Kauj ruam 2: Sib sau ua ke

Sib sau ua ke
Sib sau ua ke

Txij li kuv paub tseeb tias koj tsis tuaj yeem ua qhov txuas raws li thawj daim duab ntawm qhov haujlwm, ntawm no yog cov phiaj xwm rau nws.

Kauj Ruam 3: Sau Txoj Cai:

Koj tuaj yeem pom cov cai rau txoj haujlwm no ntawm no, hauv cov ntawv txuas nrog. Xav tias dawb los hloov nws kom haum rau koj cov kev xav tau. Cov cai tau piav qhia hauv cov ntawv.ino. Cov lus pom zoo txais tos.

Kuj lub tsev qiv ntawv kuv siv tau txuas nrog. Lwm lub tsev qiv ntawv ntawm DS3231 yuav tsis ua haujlwm.

Pom zoo: