Cov txheej txheem:
- Kauj Ruam 1: Cov Khoom Uas Koj Xav Tau
- Kauj ruam 2: Pin Out
- Kauj ruam 3: Schematic
- Kauj ruam 4: Code
- Kauj Ruam 5: Tso Tawm
Video: Keypad Access 4x4 Nrog Arduino: 5 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:30
Lub 4x4 keypad yog sib xyaw ntawm 16 tus yuam sij tau teeb tsa zoo li cov lej. Txoj hauv kev siv rau nkag mus 4x4 cov keyboard nrog matrix scanning method. Lub 4x4 keypad xav kom 8 tus pin nkag mus rau nws, piv txwv li 4 tus pin rau kab thiab 4 tus pin rau kab. Yuav ua li cas txoj kev ntsuas ntsuas ua haujlwm yog tias tus lej kem siv LOW logic sib pauv, tom qab ntawv kab ntawv ua tiav qhov nyeem ib yam thiab.
Kauj Ruam 1: Cov Khoom Uas Koj Xav Tau
Koj yuav xav tau:
- Arduino
- Keypad 4 x 4
- Jumper Hlau
Kauj ruam 2: Pin Out
- PIN A3 tus pin rau 0 kab
- PIN A2 tus pin rau 1 kab
- PIN A1 tus pin rau 2 kab
- PIN A0 tus pin rau 3 kab
- PIN 4 pin to 0 colomn
- PIN 5 pin to 1 colomn
- PIN 6 pin to 2 colomn
- PIN 7 pin to 3 colomn
Kauj ruam 3: Schematic
Txuas txhua feem raws li daim duab saum toj no.
Kauj ruam 4: Code
#suav nrog // ntshuam lub tsev qiv ntawv keyboard
const byte ROWS = 4; // tooj ntawm colomn
const byte COLS = 4; // tus naj npawb ntawm kab char hexaKeys [ROWS] [COLS] = {{'1', '2', '3', 'A'}, {'4', '5', '6', 'B'}, {'7', '8', '9', 'C'}, {'*', '0', '#', 'D'}}; byte rowPins [ROWS] = {A3, A2, A1, A0}; // tus pin siv rau kab byte colPins [COLS] = {4, 5, 6, 7}; // tus pin siv rau colomn
// initialization kuj sib txawv thiab
Keypad customKeypad = Keypad (uaKeymap (hexaKeys), rowPins, colPins, ROWS, COLS);
void teeb tsa () {
Serial.begin (9600); } void loop () {char customKey = customKeypad.getKey (); yog (customKey) {Serial.println (customKey); }}
Kauj Ruam 5: Tso Tawm
Txheeb xyuas qhov tso tawm!
Pom zoo:
Arduino Calculator Siv 4X4 Keypad: 4 Cov Kauj Ruam (nrog Duab)
Arduino Calculator Siv 4X4 Keypad: Hauv qhov kev qhia no peb yuav tsim peb tus kheej lub laij lej nrog Arduino. Qhov muaj nuj nqis tuaj yeem xa mus los ntawm cov keyboard (4 × 4 keypad) thiab cov txiaj ntsig tuaj yeem pom ntawm lub vijtsam LCD. Lub laij lej no tuaj yeem ua haujlwm yooj yim xws li Ntxiv, Rho Tawm, Ntau Dua
Arduino Keypad 4x4 Tutorial: 4 Kauj Ruam (nrog Duab)
Arduino Keypad 4x4 Tutorial: Cov keyboard nkag tau pom rau cov saib txuas nrog arduino uno thiab 4x4 keypad tag nrho cov lej
Lego 4x4 Keypad Matrix: 8 Kauj Ruam (nrog Duab)
Lego 4x4 Keypad Matrix: Thaum kuv tau daig hauv tsev ob peb lub asthiv dhau los, thaum kawg kuv tau nyob ib puag ncig kom ua tiav qee qhov haujlwm uas tau ncig hauv kuv lub taub hau. Kuv tau siv Lego ua lub hauv paus rau feem ntau ntawm kuv cov haujlwm hauv ob peb lub lis piam dhau los
4x4 Keypad Nrog Arduino thiab Ua: 4 Cov Kauj Ruam (nrog Duab)
4x4 Keypad Nrog Arduino thiab Ua Haujlwm: Tsis nyiam LCD cov lus? Xav ua kom koj cov phiaj xwm saib zoo li cas? Hauv Cov Lus Qhia no koj yuav tuaj yeem tso koj tus kheej los ntawm qhov teeb meem ntawm kev siv lub vijtsam LCD los tso saib cov ntsiab lus los ntawm koj li Arduino thiab tseem ua rau koj txoj haujlwm
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no