Cov txheej txheem:

Nyob zoo ntiaj teb! ntawm LCD Siv CloudX M633: 4 Cov Kauj Ruam
Nyob zoo ntiaj teb! ntawm LCD Siv CloudX M633: 4 Cov Kauj Ruam

Video: Nyob zoo ntiaj teb! ntawm LCD Siv CloudX M633: 4 Cov Kauj Ruam

Video: Nyob zoo ntiaj teb! ntawm LCD Siv CloudX M633: 4 Cov Kauj Ruam
Video: Txiv zoo hlo nrog vajtswv nyob. By- Cheemeng Nkauj kho siab 2024, Kaum ib hlis
Anonim
Nyob zoo ntiaj teb! ntawm LCD Siv CloudX M633
Nyob zoo ntiaj teb! ntawm LCD Siv CloudX M633

Hauv qhov kev qhia no, peb tab tom yuav tso tawm ntawm LCD (Cov Khoom Siv Ua Kua Crystal).

Kauj Ruam 1: LCD (kua Crystal Display)

LCD (kua Crystal Display)
LCD (kua Crystal Display)

Cov LCDs muaj qhov sib txuas sib luag, txhais tau tias lub microcontroller yuav tsum tau siv ntau tus lej sib cuam tshuam ib zaug los tswj cov zaub. Lub interface muaj cov pins hauv qab no:

Sau npe xaiv (RS) tus pin uas tswj hwm qhov twg hauv LCD lub cim xeeb koj tab tom sau cov ntaub ntawv rau. Koj tuaj yeem xaiv ob qho ntaub ntawv sau npe, uas tuav dab tsi mus rau ntawm lub vijtsam, lossis daim ntawv qhia sau npe, uas yog qhov LCD tus tswj xyuas saib rau cov lus qhia yuav ua dab tsi ntxiv.

Nyeem/Sau (R/W) tus pin uas xaiv hom nyeem lossis sau hom

Enable tus pin uas ua rau sau ntawv mus rau npe

8 cov ntaub ntawv pins (D0 -D7). Cov xeev ntawm cov pins (siab lossis qis) yog cov khoom uas koj tab tom sau rau npe thaum koj sau, lossis qhov tseem ceeb uas koj tab tom nyeem thaum koj nyeem.

Kuj tseem muaj cov duab teeb pom kev zoo tus pin (Vo), lub hwj huam muab pins (+ 5V thiab Gnd) thiab LED Backlight (Bklt+ thiab BKlt-) pins uas koj tuaj yeem siv los ua lub zog LCD, tswj cov teeb pom kev zoo, thiab qhib thiab tua LED backlight, feem.

Cov txheej txheem ntawm kev tswj cov zaub cuam tshuam nrog muab cov ntaub ntawv uas tsim cov duab ntawm yam koj xav kom tso rau hauv cov ntaub ntawv sau npe, tom qab ntawd muab cov lus qhia tso rau hauv cov ntawv qhia. Lub Tsev Qiv Ntawv LiquidCrystal ua qhov no yooj yim rau koj yog li koj tsis tas yuav paub cov lus qhia qis.

Hitachi-sib xws LCDs tuaj yeem tswj tau hauv ob hom: 4-ntsis lossis 8-ntsis. Hom 4-ntsis xav tau xya I/O pins los ntawm Arduino, thaum 8-ntsis hom xav tau 11 tus pin. Txhawm rau pom cov ntawv ntawm lub vijtsam, koj tuaj yeem ua txhua yam hauv 4-ntsis hom, yog li piv txwv qhia tias yuav tswj hwm 2x16 LCD hauv 4-ntsis hom li cas.

Kauj Ruam 2: TUS KHEEJ

QHOV TSEEB
QHOV TSEEB
QHOV TSEEB
QHOV TSEEB
QHOV TSEEB
QHOV TSEEB
QHOV TSEEB
QHOV TSEEB
  • CloudX M633
  • CloudX SoftCard
  • V3 kab
  • LCD 16 x 2
  • 10k Ohm Potentiometer
  • Jumper hlau
  • 220 ohm resistor
  • BreadBoard

koj tuaj yeem yuav koj cov khoom ntawm no

Kauj ruam 3: HARDWARE

HARDWARE
HARDWARE
  • LCD RS tus pin rau tus lej digital 1 ntawm Cloudx M633
  • LCD Pab tus pin rau tus lej digital 2 ntawm Cloudx M633
  • LCD D4 tus pin rau tus lej digital 3 ntawm Cloudx M633
  • LCD D5 tus pin rau tus lej digital 4 ntawm Cloudx M633
  • LCD D6 tus pin rau tus lej lej 5 ntawm Cloudx M633
  • LCD D7 tus pin rau tus lej digital 6 ntawm Cloudx M633

Ib qho ntxiv, xaim 10k lauj kaub rau +5V thiab GND, nrog nws lub wiper (tso tawm) rau LCD cov ntxaij vO pin. 220 ohm resistor tau siv los txhawb lub teeb pom kev ntawm cov zaub, feem ntau ntawm tus pin 15 thiab 16 ntawm LCD txuas

Kauj ruam 4: CODING

Luam cov cai no rau koj li CloudX IDE

#suav nrog#suav nrog

teeb tsa () {

lcdSetting (1, 2, 3, 4, 5, 6); lcdCmd (meej); lcdCmd (cursorOff);

rov () {

lcdWriteText (1, 2, "HELLO NTIAJ TEB!"); lcdWriteText (2, 2, "Kuv Siv CLOUDX");

}

}

Pom zoo: