Cov txheej txheem:

Piv txwv ntawm Xauv Nrog Arduino Matrix Keypad 4x4: 6 Cov Kauj Ruam
Piv txwv ntawm Xauv Nrog Arduino Matrix Keypad 4x4: 6 Cov Kauj Ruam

Video: Piv txwv ntawm Xauv Nrog Arduino Matrix Keypad 4x4: 6 Cov Kauj Ruam

Video: Piv txwv ntawm Xauv Nrog Arduino Matrix Keypad 4x4: 6 Cov Kauj Ruam
Video: Hwm Pheej Thoj - Rov Mus Txog Vib Nais 2024, Hlis ntuj nqeg
Anonim
Piv txwv ntawm Xauv Nrog Arduino Matrix Keypad 4x4
Piv txwv ntawm Xauv Nrog Arduino Matrix Keypad 4x4

2 txoj hauv kev los tswj hwm 16 lub pob nyem lub pob nrog qhov tsawg kawg ntawm tus pin.

Kauj ruam 1: Intro

Tsis ntev los no kuv tau ua haujlwm ntawm txoj hauv kev los tswj hwm 4x4 kov cov lej sib txuas hauv keyboard txuas nrog Arduino clone. Cov ntsiab lus teev tseg yog:

-to siv tsuas yog 4+1 tus pin hloov ntawm 8 tus pin ntawm atmega328p

-to ntxiv LCD Zaub 4x20 CHAR txuas ntawm I2C (2 tus pin)

-los tswj cov txiaj ntsig digital thiab analog.

Yog li, muaj ntau yam los tswj nrog kev ua txhaum ntawm I/O.

Kauj Ruam 2: Yam Khoom Siv:

Yam Yuav Siv
Yam Yuav Siv

Kuv yuav lub LCD zaub 4x20 cim thiab tus I2C tus qauv hloov pauv los txuas cov zaub nrog SDA (A4) thiab SCL (A5) pins ntawm kuv cov arduino clone.

Kuv siv lub npe nrov thiab tam sim no siv tsis tau MM74C922N: 8 txog 4 txoj kev hloov pauv haum rau 4x4 matrix keypad.

Kuv tsim cov clone ntawm arduino raws li atmega328p thiab programmed ntawm tus txuas HE10 (SPI npav) thiab USBasp cable.

Kauj Ruam 3: Schematic thiab Pawg Thawj Coj:

Schematic thiab Board
Schematic thiab Board
Schematic thiab Board
Schematic thiab Board

Lub rooj tsavxwm yog ua los ntawm:

-cov keyboard LCD tsuas yog siv nrog Arduino IDE, tsis muaj peev xwm ua tau nrog LDmicro (Tus txheej txheem ntaiv)

-the MM74C922N pawg thawj coj: 16 lub pob thawb coded ntawm 16 tus lej binary ntawm 4 khoom DCBA. Thaum lub pob nyem: lub teeb xiav coj teeb thiab tus nqi tshwm ntawm DCBA (A yog LSB). Thaum lub pob raug tso tawm: lub teeb xiav coj lub teeb tawm thiab tus nqi rov pib dua rau xoom ntawm DCBA.

-the Arduino atmega238p clone board.

Kauj Ruam 4: Siv LDmicro Nrog Txoj Haujlwm Txheej Txheem:

Siv LDmicro Nrog Txoj Haujlwm Txheej Txheem
Siv LDmicro Nrog Txoj Haujlwm Txheej Txheem
Siv LDmicro Nrog Txoj Haujlwm Txheej Txheem
Siv LDmicro Nrog Txoj Haujlwm Txheej Txheem
Siv LDmicro Nrog Txoj Haujlwm Txheej Txheem
Siv LDmicro Nrog Txoj Haujlwm Txheej Txheem

Txoj cai nkag mus yog ua los ntawm 4 qhov tseem ceeb ntawm 16 qhov tseem ceeb nias kom 16x16x16x16 ua ke.

Thaum koj kos SFC, koj yuav tsum txhais nws ua LADDER nrog cov txheej txheem muab rau hauv ib qho ntawm kuv

qhia tau:

www.instructables.com/id/Arduino-tomation-…

Thaum ntaus, sau nws li xxxx.hex thiab tom qab ntawd rub nws nrog KHAZAMA downloader.

Cov zaub LCD tsis tuaj yeem ua haujlwm ntawm LDmicro.

Kuv muab LDmicro zip nrog kos duab SERRURE.id hauv nws thiab KHAZAMA downloader.

Kauj Ruam 5: Siv Arduino IDE 1.8.x Nrog Mightycore thiab SMlib:

Siv Arduino IDE 1.8.x Nrog Mightycore thiab SMlib
Siv Arduino IDE 1.8.x Nrog Mightycore thiab SMlib

Kuv txhais SFC rau hauv lub xeev tshuab. Tom qab ntawd kuv siv Arduino IDE nrog Mightycore thiab SM lub tsev qiv ntawv sab hauv.

Kuv tso tawm cov lus zoo li: Yuam kev, Tos, UNLOCK, lub xeev tau mus txog, tus nqi ntawm qhov nias ntawm LCD daim ntawv pov thawj.

Kuv muab koj cov duab kos thiab SM lib. Rau Mightycore saib ntawm no:

www.instructables.com/id/Arduino-18x-Clone…

Kauj Ruam 6: Txhawm Xaus:

Nov yog ob txoj hauv kev los tswj hwm 16 tus keyboard thiab nws coj kuv ob peb teev los nrhiav qhov ua ntu zus zoo tab sis tam sim no nws ua haujlwm tau zoo. Koj yuav tsum hwm cov kauj ruam no:

-1 txheeb xyuas qhov tseem ceeb ntawm qhov nce ntawm ntug tus pin DA

-2 nyeem tus nqi tsim tawm ntawm DCBA thiab muab piv rau qhov zoo

Tshwj tsis yog tias nws yuav tsis ua haujlwm tiag.

Ua tsaug rau txhua qhov nthuav qhia hauv net.

Pom zoo: