Cov txheej txheem:

Siv 1602 LCD Keypad Shield W/ Arduino [+Cov Haujlwm Tseem Ceeb]: 7 Kauj Ruam
Siv 1602 LCD Keypad Shield W/ Arduino [+Cov Haujlwm Tseem Ceeb]: 7 Kauj Ruam

Video: Siv 1602 LCD Keypad Shield W/ Arduino [+Cov Haujlwm Tseem Ceeb]: 7 Kauj Ruam

Video: Siv 1602 LCD Keypad Shield W/ Arduino [+Cov Haujlwm Tseem Ceeb]: 7 Kauj Ruam
Video: LCD Keypad Shield для Arduino, обзор и работа. 2024, Kaum ib hlis
Anonim
Siv 1602 LCD Keypad Shield W/ Arduino [+Cov Haujlwm Tseem Ceeb]
Siv 1602 LCD Keypad Shield W/ Arduino [+Cov Haujlwm Tseem Ceeb]

Koj tuaj yeem nyeem qhov no thiab lwm yam kev qhia zoo ntawm ElectroPeak lub vev xaib raug cai

Txheej txheem cej luam

Hauv qhov kev qhia no, koj yuav kawm paub siv Arduino LCD keypad shield nrog 3 txoj haujlwm li cas.

Yam Koj Yuav Kawm:

  • Yuav teeb tsa daim thaiv thiab txheeb xyuas cov yuam sij li cas
  • Yuav ua li cas nqes ntawv
  • Yuav ua li cas tso cov cim tshwj xeeb

Kauj Ruam 1: 1602 Arduino LCD Keypad Shield Nta

Kev qhia cov ntaub ntawv hauv cov phiaj xwm hluav taws xob ib txwm yog qhov teeb meem tshaj plaws. Muaj ntau txoj hauv kev los tso saib cov ntaub ntawv. Cov ntxaij vab tshaus no tuaj yeem yooj yim xws li 7 ntu lossis LEDs, lossis lawv tuaj yeem ntxim nyiam dua li LCDs. Siv LCDs ib txwm yog ib txoj hauv kev nrov tshaj plaws los tso saib cov ntaub ntawv. LCDs tau muab faib ua ob hom dav: Cim thiab Duab.

Ib qho ntawm feem ntau, pheej yig tshaj thiab yooj yim LCDs muaj yog tus yam ntxwv LCD. Cov LCD no suav nrog ntau kab thiab kab. Cov ntawv thiab tus lej tau sau rau hauv cov chaw tsim los ntawm kab thiab kab. Piv txwv, LCD tus cim 16*2 muaj 2 kab thiab 16 kab. Yog li nws tuaj yeem tso saib 32 tus cim. Ua haujlwm nrog cov LCDs no yooj yim heev thiab lawv muaj kev sib raug zoo nrog txhua lub microcontrollers thiab cov laug cam. Kom yooj yim siv cov LCDs no, nws 16x2 tus qauv, suav nrog plaub tus yuam sij rau ua cov ntawv qhia zaub mov, tau ua raws li daim ntaub thaiv uas tseem siv tau nrog Arduino cov laug cam.

Kauj Ruam 2: Yuav Siv Li Cas Arduino LCD Keypad Shield

Yuav Ua Li Cas Siv Arduino LCD Keypad Shield
Yuav Ua Li Cas Siv Arduino LCD Keypad Shield
Yuav Ua Li Cas Siv Arduino LCD Keypad Shield
Yuav Ua Li Cas Siv Arduino LCD Keypad Shield

Arduino shiels yog tus neeg siv-phooj ywg thiab ntaub thaiv npog yooj yim. Txhawm rau siv nws koj yuav tsum paub nws qhov pinout thiab nws txuas rau Arduino thaum xub thawj.

Kauj Ruam 3: Cov Ntaub Ntawv Xav Tau

Arduino Uno R3 × 1

1602 LCD Keypad Shield Rau Arduino × 1

Software Apps

Arduino IDE Cov

Kauj Ruam 4: Yuav Ua Li Cas Nyeem Cov Ntsiab Lus?

Yuav Ua Li Cas Nyeem Cov Ntsiab Lus?
Yuav Ua Li Cas Nyeem Cov Ntsiab Lus?

Hauv daim ntaub thaiv no, txhua 4 tus yuam sij tau txuas nrog tus pin analog 0 kom txuag ntawm cov koob digital. Yog li peb yuav tsum siv ADC los nyeem lawv. Thaum koj nias tus yuam sij, nws rov qab tus nqi rau A0 tus pin raws li kev tiv thaiv sab hauv sab hauv, uas txheeb xyuas hom tus yuam sij.

Cia peb ua tib zoo saib cov cai:

#suav nrog

Lub tsev qiv ntawv koj xav tau rau tus cim LCD.

LiquidCrystal LCD (pin_RS, pin_EN, pin_d4, pin_d5, pin_d6, pin_d7);

Txheeb xyuas cov khoom LCD raws li cov pins uas txuas nrog Arduino.

lcd.begin (16, 2);

Kev teeb tsa thawj zaug ntawm LCD los ntawm kev qhia tus naj npawb ntawm kab thiab kab. Thawj qhov kev sib cav yog tus naj npawb ntawm kab, thiab qhov thib ob yog tus lej ntawm kab.

hauv cov lus saum toj no yog qee qhov haujlwm tseem ceeb los ua haujlwm nrog LCD.

Koj tuaj yeem tshawb xyuas Arduino lub vev xaib rau ntau lub luag haujlwm.

Kauj Ruam 5: Yuav Sau Ntawv Li Cas?

Peb tuaj yeem ua nws yooj yim siv cov haujlwm saum toj no.

Kauj Ruam 6: Yuav Ua Li Cas Qhia Tus Cwj Pwm Tshwj Xeeb?

Yuav Ua Li Cas Qhia Tus Cwj Pwm Tshwj Xeeb?
Yuav Ua Li Cas Qhia Tus Cwj Pwm Tshwj Xeeb?
Yuav Ua Li Cas Qhia Tus Cwj Pwm Tshwj Xeeb?
Yuav Ua Li Cas Qhia Tus Cwj Pwm Tshwj Xeeb?

Koj tuaj yeem tsim tus cim hauv txhua qhov thaiv los ntawm koj lub LCD. Txhawm rau ua qhov no, koj yuav tsum hloov pauv koj tus cwj pwm uas xav tau mus rau ntau cov lej, tom qab ntawd tso rau ntawm LCD. Txhawm rau hloov koj tus cwj pwm rau tus lej koj tuaj yeem siv cov vev xaib online zoo li no. Tsim koj tus cwj pwm, tom qab ntawd theej cov kab tsim los rau koj tus lej.

lcd.createChar khaws koj cov array hauv qhov chaw nco thiab koj tuaj yeem tso nws nrog lcd.write

Pom zoo: