Cov txheej txheem:
- Kauj Ruam 1: Qhov Yuav Tsum Tau
- Kauj ruam 2: Ua haujlwm
- Kauj ruam 3: Ua
- Kauj Ruam 4: Kev Sib Txuas, Arduino Code thiab Piav Qhia
Video: 4x4 Keypad Nrog Arduino thiab Ua: 4 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Tsis nyiam LCD zaub ??
Koj puas xav ua kom koj cov phiaj xwm zoo dua?
Zoo, ntawm no yog qhov kev daws teeb meem. Hauv Cov Lus Qhia no koj yuav tuaj yeem tso koj tus kheej los ntawm qhov nyuaj ntawm kev siv lub vijtsam LCD los tso saib cov ntsiab lus los ntawm koj li Arduino thiab tseem ua rau koj cov haujlwm zoo nrog qhov zoo kawg no thiab dawb GUI software hu ua Kev Ua Haujlwm. Txog qhov kawg ntawm txoj haujlwm no koj yuav tuaj yeem cuam tshuam ntau hom keypads nrog Arduino thiab paub txog Kev Ua Haujlwm.
Koj tuaj yeem ua dab tsi nrog qhov no?
- Interface 4x4 keypad nrog arduino.
- Tsim cov duab sib cuam tshuam uas koj xaiv
Koj yuav kawm dab tsi los ntawm qhov no
- Sib cuam tshuam nrog txhua tus keyboard nrog Arduino
- Ua software.
- Kev sib txuas lus ntawm Kev Ua thiab Arduino.
Kauj Ruam 1: Qhov Yuav Tsum Tau
Koj yuav xav tau cov hauv qab no rau qhov haujlwm no:
- Arduino (ib qho Arduino yuav ua).
- Keypad (nws tuaj yeem yog 4x4 lossis 4x3. Kuv tau siv 4x4 cov keyboard).
- Ua Software.
- Keypad tsev qiv ntawv
Nov yog qhov txuas yog tias koj tsis muaj software.
Arduino IDE Cov
Ua
Tshem tawm zip thiab txav nws mus rau cov ntawv qiv hauv Arduino. Tom qab ua qhov ntawd, koj yuav tsum tuaj yeem pom qee qhov piv txwv piv txwv hauv Arduino IDE.
Kauj ruam 2: Ua haujlwm
Tam sim no cia xub nkag siab tias lub keypad ua haujlwm li cas.
Cov keypad ua haujlwm ntawm lub hauv paus ntsiab lus yooj yim ntawm kev hloov pauv xws li lub Circuit Court tau ua tiav thaum qhov hloov pauv raug nias.
Peb muab kab pins ua kab nrog HIGH lossis VCC thiab kab pins nrog LOW lossis GND. Qhov no tuaj yeem ua tiav nrog kev pab ntawm GPIO pins ntawm Arduino. Tom qab ntawd peb tseem txheeb xyuas kab ntawv kab rau kev hloov pauv hauv kev nkag mus.
Piv txwv tias peb nias 1 ntawm tus keyboard, tom qab ntawd raws li daim duab nws nyob ntawm r1, c1. Yog li yog tias peb muab HIGH rau kab 1 ces kab ntawv 1 yuav nyeem HIGH ntawm tus pin. Qhov no yog yuav ua li cas peb thiaj tuaj yeem paub seb tus lej twg raug nias. Txij li tsuas yog kab 1 tau muab HIGH, peb tuaj yeem 100% paub tseeb tias r1, c1 raug nias. Nov yog qhov koj tuaj yeem qhia txhua tus yuam sij.
Yog tias koj xav tau kev piav qhia ntxiv lossis qhov no tsis txaus, muaj coob tus yeeb yaj kiab hauv youtube uas piav qhia kev ua haujlwm ntawm cov keyboard yooj yim. Koj tuaj yeem saib lawv yog tias koj xav tau.
Kauj ruam 3: Ua
Yog li tam sim no cia pib nrog GUI ib feem. Rau qhov no peb yuav siv software hu ua Processing. Kuv tau muab qhov txuas hauv Kauj Ruam 1.
Qhov no yog qhov uas peb yuav pom qhov peb tso tawm los ntawm Arduino. Thawj daim duab yog lub keyboard zoo li cas los ntawm cov cai uas ua raws nws. Thaum koj paub txog Kev Ua Haujlwm koj tuaj yeem ua koj tus kheej lub keyboard.
Tam sim no los piav qhia txoj cai. Nws yooj yim zoo nkauj npaum li cov lus piav qhia rau txhua lub luag haujlwm tuaj yeem pom ntawm Chaw Ua Haujlwm.
Hauv daim duab thib ob koj tuaj yeem pom tias kuv tau teeb tsa txhua lub tsev qiv ntawv tsim nyog thiab hauv qhov tsis muaj teeb tsa teeb tsa () Kuv tau pib lub qhov rai, cov ntawv sau thiab chaw nres nkoj txuas.
Daim duab thib peb yog qhov uas kuv tau ua tus keyboard, ntxiv txhua tus yuam sij, lub xwmfab, tso saib, thiab lwm yam.
Daim duab thib plaub muaj cov xwm txheej rau thaum peb tau txais cov tswv yim los ntawm cov ntawv txuas. Yeej kuv ua cov yuam sij flicker thiaj li ua rau pom tias tus yuam sij raug nias.
Daim duab kawg yog qhov xwm txheej tshwm sim tshwm sim thiab qhov no yog qhov uas peb tau txais peb cov lus pom.
Kauj Ruam 4: Kev Sib Txuas, Arduino Code thiab Piav Qhia
Txhawm rau ua kom cov kev sib txuas tuav cov keyboard nrog cov yuam sij ntsib koj. Los ntawm sab laug nws mus zoo li no R0, R1, R2….
R0 - pin 2
R1 --- pin 3
R2 --- pin 4
R3 --- pin 5
C0 --- pin 6
C1 --- pin 7
C2 --- pin 8
C3 --- pin 9
Tam sim no cia peb saib Arduino code. Nws tsis muaj dab tsi tawm ntawm qhov dog dig. Raws li ib txwm muaj nyob hauv qhov tsis muaj teeb tsa () koj pib kev sib txuas lus nrog 9600 raws li tus nqi baud. Tom qab ntawd hauv qhov khoob khoob () Kuv tau siv qhov sib txawv kom tau txais thiab khaws tus nqi los ntawm cov keyboard. Tus nqi no kuv xa los ntawm qhov chaw nres nkoj txuas nrog nres tag nrho tom qab nws kom nws yooj yim los txheeb xyuas qhov kawg ntawm cov ntaub ntawv hauv Kev Ua. Peb ua qhov no kom lub chaw nres nkoj hauv xov tooj tsis khaws tshawb xyuas qhov kawg ntawm cov ntaub ntawv. Hauv Kev Ua Haujlwm peb siv cov ntawv tsis pub dhau mus txog thaum nws pom tag nrho nres. Hauv cov vis dis aus hauv qab no kuv tau piav qhia ntxaws txog txheej txheem.
Zoo ntawd yog nws. Tshem tawm txhua cov ntaub ntawv, ua qhov sib txuas thiab txaus siab.
Ua tsaug.
Pom zoo:
Niaj hnub nimno thiab Tshiab thiab Yooj Yim Piv Txwv Ntawm Cov Xauv Nrog Arduino Matrix Keypad 4x4: 3 Cov Kauj Ruam
Niaj hnub nimno thiab Tshiab thiab Yooj Yim Piv Txwv Ntawm Lub Xauv Nrog Arduino Matrix Keypad 4x4: Lwm qhov piv txwv ntawm kev siv lub LCD keypad matrix 4x4 nrog I2C Circuit Court
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
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv
Kub thiab Vaum Zaub thiab Sau Cov Ntaub Ntawv Nrog Arduino thiab Ua: 13 Kauj Ruam (nrog Duab)
Kub thiab Vaum Zaub thiab Sau Cov Ntaub Ntawv Nrog Arduino thiab Ua: Intro: Qhov no yog Txoj Haujlwm uas siv Arduino board, Sensor (DHT11), lub khoos phis tawj Windows thiab Kev Ua Haujlwm (rub tawm dawb) program los tso saib Kub, Cov ntaub ntawv vaum hauv digital thiab bar kab ntawv, tso tawm lub sijhawm thiab hnub tim thiab suav lub sijhawm suav
Cov Cuab Yeej Siv Hluav Taws Xob thiab Cov Cuam Tshuam Xov: Ua LED Zaub thiab Npuag Hluav Taws Xob uas Rolls Up: 7 Cov Kauj Ruam (nrog Duab)
Cov Cuab Yeej Siv Hluav Taws Xob thiab Cov Cuam Tshuam: Ua kom pom LED thiab Cov Khoom Siv Hluav Taws Xob uas Rolls Up: Ua rau koj tus kheej cov ntaub ua hluav taws xob, xov, kua nplaum, thiab kab xev, thiab siv lawv los ua lub zog ntsuas hluav taws xob, tiv thaiv, hloov pauv, LED cov lus qhia thiab siv hluav taws xob. thiab cov xov hluav taws xob koj tuaj yeem ua cov lus qhia LED thiab cov kab hluav taws xob ntawm ib qho ntaub uas hloov pauv tau