Cov txheej txheem:
- Kauj Ruam 1: Cov Ntaub Ntawv Yuav Tsum Tau
- Kauj ruam 2: Teeb Kho Vajtse
- Kauj Ruam 3: Daim Kab Xev
- Kauj ruam 4: Python Code
- Kauj Ruam 5: Tso Tawm Ua Ntej
Video: Interface 16x2 Alphanumeric LCD And4x4 Matrix Keypad Nrog Raspberry Pi3: 5 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Hauv cov lus qhia no, peb piav qhia yuav ua li cas cuam tshuam 16x2 LED thiab 4x4 matrix keypad nrog Raspberry Pi3.
Peb siv Python 3.4 txhawm rau txhim kho software. Koj tuaj yeem xaiv Python 2.7 ib yam nkaus, nrog kev hloov me ntsis
Kauj Ruam 1: Cov Ntaub Ntawv Yuav Tsum Tau
Peb xav tau cov khoom siv hauv qab no
- Raspberry Pi 3
- 5V 2A Adapter rau Pi
- 8GB micro SD
- 16x2 Alphanumeric LCD
- 4 x 4 matrix Keypad
- Dot PCB (qhov loj me me) lossis Breadboard
- Berg Sawb
- Jumper Hlau
- 10K kub
- Ethernet Cable (txhawm rau tsim VNC txuas nrog Laptop)
Kauj ruam 2: Teeb Kho Vajtse
Peb tsis suav nrog cov kauj ruam rau teeb tsa kho vajtse xws li hlawv OS mus rau micro SD thiab VNC interface. Koj yuav tsum nrhiav lwm cov peev txheej rau cov txheej txheem no.
Ntxig OS ua ntej thauj khoom 8GB Micro SD daim rau hauv Rapberry Pi 3. Txuas Raspberry Pi mus rau Laptop los ntawm Ethernet Cable. Ua cov cuab yeej kho mob raws li tau piav qhia hauv kab duab kab.
16x2 LCD Zaub
Peb siv 4-ntsis hom lcd interface, yog li qhov xav tau tus pin rau Tswj hu nkauj yog RS, EN, D4, D5, D6, D7 uas txuas nrog GPIOs ntawm Raspberry Pi.
4x4 Matrix Keypad
Nruab Python pob rau 4x4 thiab 4x3 matrix keypad thiaj li cuam tshuam kev ua haujlwm raws li tau ua. Yog li tsis tas yuav tshuaj xyuas cov keypad kab thiab kab txhua lub sijhawm. Ntawm no sab hauv rub-siv siv yog li tsis muaj sab nraud rub-up resistor xav tau.
Txuas Raspberry Pi mus rau lub vev xaib, tom qab ntawd qhib davhlau ya nyob twg thiab ntaus cov hauv qab no:
sudo python3.4 -m pip nruab pad4pi
Kauj Ruam 3: Daim Kab Xev
Cov Pins LCD:
- LCD_RS = 21
- LCD_E = 20
- LCD_D4 = 26
- LCD_D5 = 19
- LCD_D6 = 13
- LCD_D7 = 6
KeyPad tus pin:
Kab Pins = 17, 15, 14, 4Row Pins = 24, 22, 27, 18
Koj tuaj yeem xaiv ib qho GPIO tus pin rau cuam tshuam LCD thiab Keypad, tsuas yog hloov tus lej tus lej hauv tus lej. Koj tuaj yeem siv lub khob cij los yog PCB rau cuam tshuam nrog LCD thiab Keypad.
Kauj ruam 4: Python Code
Koj tuaj yeem rub tawm cov cai ncaj qha. Khiav code.py nrog nab hab sej 3.4 hauv koj li Raspberry Pi 3. Los yog luam cov ntawv thiab muab tso rau hauv cov ntawv sau tshiab ntawm nab nab 3.4.
Khiav qhov program:
LCD yuav tso tawm cov ntawv "Zoo Siab Txais Tos" hauv kab thawj yog tias kev sib txuas uas koj tau ua yog raug. Cov ntaub ntawv Keypad tau tshwm rau kab thib ob.
Kauj Ruam 5: Tso Tawm Ua Ntej
Kuv tau ntxiv Keyboard cuam tshuam, yog li yog tias koj tso qhov program LCD yuav tso saib zoo
Pom zoo:
Layad Circuits Alphanumeric Keyboard Nrog ESP32 thiab Cim LCD: 4 Cov Kauj Ruam
Layad Circuits Alphanumeric Keyboard Nrog ESP32 thiab Tus Qauv LCD: Kab lus no qhia txog kev siv tus lej lej lej thiab 16x2 I2C tus lej LCD tus qauv rau nkag cov ntaub ntawv rau ESP32. Txoj hauv kev no tuaj yeem siv los nkag thiab khaws cov ntaub ntawv pov thawj Wi-Fi thiab lwm yam ntaub ntawv mus thiab los ntawm ESP32
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
Phaj Pem Hauv Ntej rau 16x2 LCD + Keypad Shield: 8 Kauj Ruam (nrog Duab)
Cov Phaj Pem Hauv Ntej rau 16x2 LCD + Daim Npog Pob Ntseg: Peb tab tom yuav tsim dab tsi: Hauv qhov kev qhia no peb yuav tsim lub lasercut acrylic frontplate rau Adafruit 16x2 LCD + Keypad Shield (Arduino version). Vim yog kev hloov pauv yooj yim, koj yuav nkag tau yooj yim rau txhua lub pob
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
Keypad Interface Nrog 8051 thiab Qhia Tus Xov Tooj Tus lej hauv 7 Segment: 4 Cov Kauj Ruam (nrog Duab)
Keypad Interface Nrog 8051 thiab Qhia Tus Xov Tooj Tus lej hauv 7 Segment: Hauv qhov kev qhia no kuv yuav qhia koj txog yuav ua li cas peb tuaj yeem cuam tshuam cov keyboard nrog 8051 thiab qhia cov lej lej hauv 7 ntu zaub