Cov txheej txheem:

Yuav ua li cas cuam tshuam 16x4 LCD Nrog Arduino: 6 Kauj Ruam
Yuav ua li cas cuam tshuam 16x4 LCD Nrog Arduino: 6 Kauj Ruam

Video: Yuav ua li cas cuam tshuam 16x4 LCD Nrog Arduino: 6 Kauj Ruam

Video: Yuav ua li cas cuam tshuam 16x4 LCD Nrog Arduino: 6 Kauj Ruam
Video: Yuav ua li cas thiaj khiav dim lub ntiajteb no 2024, Kaum ib hlis
Anonim
Yuav ua li cas cuam tshuam 16x4 LCD Nrog Arduino
Yuav ua li cas cuam tshuam 16x4 LCD Nrog Arduino

Taw qhia

Tsis ntev los no kuv tau txais qee qhov qauv dawb LCD los ntawm kuv cov phooj ywg ntawm FocusLCDs.com. Ib qho uas yog 16x4 LCD; P/N: C164AXBSYLY6WT. Nws siv tus tswj ST7066U (saib cov ntawv teev cia ntawm no) hloov qhov HD44780 feem ntau pom hauv LCD cov ntaub thaiv npog. Kuv tsis paub meej tias nws yuav ua haujlwm nrog Arduino thiab nws cov tsev qiv ntawv, yog li kuv xav sim nws.

Cov ntsiab lus ntawm cov yam ntxwv

  • Cov Duab Zoo, Pom Pom Lub Zos
  • Tsav tsheb: ST7066U
  • Tom Qab Daj
  • Y/G Backlight
  • Kub ntau: -20 ° C txog +70 ° C
  • Ua raws ROHS

Kauj ruam 1: Cov ntaub ntawv

Sau cov ntaub ntawv teev tseg hauv qab no:

  1. Arduino (UNO lossis MEGA)
  2. 16 x 4 LCD; C164AXBSYLY6WT
  3. Tsis Siv Neeg Breadboard
  4. Dupont Jumper Wires
  5. 2.54mm-Suab Headers
  6. 10k Ohm Potentiometer
  7. Arduino IDE Cov
  8. USB Cable

Kauj Ruam 2: Cov Taub Hau Solder

Solder Lub Taub Hau
Solder Lub Taub Hau

Solder lub taub hau rau lub LCD module. Tag nrho 16 tus pin. Xa mus rau daim duab no rau pinouts.

Kauj Ruam 3: Txhim Kho Cov Hluav Taws Xob

Hlau Circuit
Hlau Circuit

Hlau lub Circuit Court raws li qhia; ua nws nrog Fritzing. Lub potentiometer yog rau sib txawv teeb pom kev zoo.

Kauj Ruam 4: Hluav Taws Up Arduino IDE

Tua koj tus Arduino IDE. Saib xyuas kom xaiv lub rooj tsav xwm raug cai xws li Arduino UNO lossis MEGA, thiab lwm yam thiab xaiv qhov chaw nres nkoj raug.

Kauj ruam 5: Code Sketch

Code Sketch
Code Sketch

Ntaus hauv daim duab no hauv IDE thiab rub tawm.

/* Nov yog cov duab kos los ntsuas 16x4 LCD:

* FocusLCD P/N: C164AXBSYLY6WT

*/

#suav nrog LiquidCrystal lcd (8, 9, 4, 5, 6, 7);

void teeb tsa () {

lcd.begin (16, 4);

lcd.setCursor (0, 0);

lcd.print ("FocusLCDs.com");

lcd.setCursor (0, 1);

lcd.print ("Qhov zoo tshaj plaws LCDs!");

lcd.setCursor (0, 2);

lcd.print ("P/N:");

lcd.setCursor (0, 3);

lcd.print ("C164AXBSYLY6WT");

}

void voj () {

}

Kauj Ruam 6: Saib Qhov tshwm sim

Saib qhov tshwm sim
Saib qhov tshwm sim

Nrog koj zoo siab! Koj lub LCD yuav tsum qhia qee yam zoo li no.

Pom zoo: