Cov txheej txheem:

Luam tawm ntawm LCD - ARDUINO: 3 Kauj Ruam
Luam tawm ntawm LCD - ARDUINO: 3 Kauj Ruam

Video: Luam tawm ntawm LCD - ARDUINO: 3 Kauj Ruam

Video: Luam tawm ntawm LCD - ARDUINO: 3 Kauj Ruam
Video: LIL KIKI - A ZEI AWM (Official Music Video) 2024, Hlis ntuj nqeg
Anonim
Luam tawm ntawm LCD - ARDUINO
Luam tawm ntawm LCD - ARDUINO

QHIA

Kuv yuav qhia koj li cas kom luam tawm ntawm LCD 16X2 Siv ARDUINO

Thiab kuv tau txais tag nrho kuv cov ntsiab lus los ntawm RAM ELECTRONICS

ram-e-shop.com/

Khoom siv

-ARDUINO UNO

-LCD 16X2

-BREADBOARD

-POT 10K

Kauj Ruam 1: SCHEMATIC

SCHEMATIC
SCHEMATIC

Kauj ruam 2: CODE

/*

LiquidCrystal Library - Nyob Zoo Ntiaj Teb

Qhia pom kev siv 16x2 LCD zaub. Lub tsev qiv ntawv LiquidCrystal ua haujlwm nrog txhua lub LCD qhia uas tau sib xws nrog Hitachi HD44780 tus tsav tsheb. Muaj ntau ntawm lawv nyob ntawd, thiab koj tuaj yeem feem ntau qhia lawv los ntawm 16-pin interface.

Daim duab no luam tawm "Nyob Zoo Ntiaj Teb!" rau lub LCD thiab qhia lub sijhawm.

Lub Circuit Court: * LCD RS pin rau digital pin 12 * LCD Enable pin to digital pin 11 * LCD D4 pin to digital pin 5 * LCD D5 pin to digital pin 4 * LCD D6 pin to digital pin 3 * LCD D7 pin to digital pin 2 * LCD R/W tus pin rau hauv av * LCD VSS tus pin rau hauv av * LCD VCC tus pin rau 5V * 10K resistor: * xaus rau +5V thiab hauv av * wiper rau LCD VO tus pin (tus pin 3)

Lub tsev qiv ntawv tau ntxiv 18 Plaub Hlis 2008 los ntawm David A. Mellis lub tsev qiv ntawv hloov kho 5 Lub Xya Hli 2009 los ntawm Limor Fried (https://www.ladyada.net) piv txwv ntxiv 9 Lub Xya Hli 2009 los ntawm Tom Igoe hloov kho 22 Kaum Ib Hlis 2010 los ntawm Tom Igoe

Tus lej piv txwv no nyob hauv zej tsoom.

www.arduino.cc/en/Tutorial/LiquidCrystal *

/ suav nrog lub tsev qiv ntawv chaws: #suav nrog

// pib lub tsev qiv ntawv nrog tus lej ntawm tus lej sib cuam tshuam LiquidCrystal lcd (12, 11, 5, 4, 3, 2);

void teeb () {// teeb tsa LCD tus lej ntawm kab thiab kab: lcd.begin (16, 2); // Luam tawm cov lus rau LCD. lcd.print ("nyob zoo, ntiaj teb!"); }

void loop () {// teeb tus cursor rau kab 0, kab 1 // (nco tseg: kab 1 yog kab thib ob, txij li suav pib nrog 0): lcd.setCursor (0, 1); // luam tus lej thib ob txij li rov pib dua: lcd.print (millis () / 1000); }

Pom zoo: