Cov txheej txheem:

Arduino DS1302 RTC Tswb Tswb: 3 Kauj Ruam
Arduino DS1302 RTC Tswb Tswb: 3 Kauj Ruam

Video: Arduino DS1302 RTC Tswb Tswb: 3 Kauj Ruam

Video: Arduino DS1302 RTC Tswb Tswb: 3 Kauj Ruam
Video: Part 27 Belajar Mikrokontroler ATMEGA + Keypad via Timer Interupsi 2024, Kaum ib hlis
Anonim
Image
Image

Nyob zoo, Kuv xav qhia koj qhov haujlwm me me no, nws yog hais txog lub tswb moos diy raws Arduino UNO board thiab DS1302 RTC Module, koj tuaj yeem teeb hnub thiab sijhawm los ntawm cov keyboard thiab tseem teeb tsa lub tswb rau lub sijhawm tshwj xeeb. Kuv vam tias koj nyiam nws.

Kauj Ruam 1: Xav Tau Kho Vajtse

Kho vajtse xav tau
Kho vajtse xav tau
Kho vajtse xav tau
Kho vajtse xav tau

Txog qhov no peb yuav xav tau thawj Arduino board, Kuv tab tom siv Arduino UNO, koj tuaj yeem siv lwm tus tsuas yog ua kom paub tseeb ntawm tus lej pin.

- Tus qauv RTC, ntawm no kuv siv DS1302.

- LCD i2c npo.

- 4*4 Keypad Matrix.

- thiab Lub suab nrov, koj tuaj yeem siv tus qauv lossis 2 lub xov tooj sib txuas.

- 1kOhm tus tiv thaiv, qee qhov dhia xov hlau thiab lub khob cij.

Kauj ruam 2: Kev thaiv kab

Thaiv
Thaiv

Cov xov hlau zoo li hauv daim duab, yam uas yuav tsum tau txuas nrog GND thiab 5v zoo li RTC, LCD thiab lub suab nrov.

RTC tus pin tau txuas los ntawm D2 rau D5 thiab kuv tab tom siv 1k resistor nrog DAT tus pin thiab D4 yog li peb tau txais hnub thiab sijhawm raug, nws yog ib qho kev daws teeb meem.

LCD SDA thiab SCL txuas nrog A4 thiab A5.

Keypad ntawm sab xis mus rau sab laug (D5-D12).

thiab lub suab nrov nrog D13 uas yog sab hauv LED ntawm Arduino UNO.

Kauj Ruam 3: Txoj Cai thiab Kev Ua Haujlwm

Cov cai thiab tsev qiv ntawv kuv siv, koj tuaj yeem pom lawv hauv qhov txuas:

Kev ua haujlwm yog yooj yim zoo nkauj: koj nias "*" ntawm cov keyboard kom teeb tsa lub sijhawm tam sim no thiab hnub tim, tom qab ntawd "A" los teeb tsa lub sijhawm Tswb. Koj tuaj yeem hloov kho koj lub suab nrov yog tias koj ua tau zoo nrog lub suab nrov nrog lub suab nrov lossis saib rau lawv hauv is taws nem.

Txaus siab rau, thiab yog tias koj muaj teeb meem lossis lus nug xav nug.

Pom zoo: