Cov txheej txheem:

Kev cuam tshuam LCD nrog Arduino ntawm Tinkercad: 5 Kauj Ruam
Kev cuam tshuam LCD nrog Arduino ntawm Tinkercad: 5 Kauj Ruam

Video: Kev cuam tshuam LCD nrog Arduino ntawm Tinkercad: 5 Kauj Ruam

Video: Kev cuam tshuam LCD nrog Arduino ntawm Tinkercad: 5 Kauj Ruam
Video: LIVE|TSOVROG 24/2|KIM JONG UN ROV NRHIAV KEV TUAG,QHIB TUA NTXIV 4 LUB CUAB LUAJ UA NTXAIJ TWM MEKAS 2024, Kaum ib hlis
Anonim
Image
Image
Yam Koj Xav Tau
Yam Koj Xav Tau

Tinkercad Cov Haujlwm »

Cov cai hauv kab lus no tau sau rau LCD's uas siv tus qauv Hitachi HD44780 tus tsav tsheb. Yog tias koj lub LCD muaj 16 tus pin, ces tej zaum nws muaj Hitachi HD44780 tsav tsheb. Cov lus qhia no tuaj yeem txuas rau hauv 4 hom lossis 8 hom me ntsis. Kev xaim lub LCD hauv 4 ntsis yog feem ntau nyiam vim nws siv plaub lub xov hlau tsawg dua li 8 ntsis. Hauv kev xyaum, tsis muaj qhov sib txawv pom hauv kev ua tau zoo ntawm ob hom. Hauv qhov kev qhia no, Kuv yuav txuas lub LCD hauv 4 ntsis hom.

Kauj Ruam 1: Yam Koj Xav Tau

Yam Koj Xav Tau
Yam Koj Xav Tau
Yam Koj Xav Tau
Yam Koj Xav Tau
Yam Koj Xav Tau
Yam Koj Xav Tau

Rau qhov kev qhia no koj yuav xav tau:

1. Arduino ib

2. Breadboard lossis PCB

3. LCD 16x2

4. Potentiometer

Kauj Ruam 2: LCD Pinout thiab Txuas Nrog Arduino

LCD Pinout thiab Kev Sib Txuas Nrog Arduino
LCD Pinout thiab Kev Sib Txuas Nrog Arduino
LCD Pinout thiab Kev Sib Txuas Nrog Arduino
LCD Pinout thiab Kev Sib Txuas Nrog Arduino

Nov yog daim duab ntawm tus pin ntawm LCD kuv tab tom siv. Cov kev sib txuas ntawm txhua tus pin mus rau Arduino yuav zoo ib yam, tab sis koj cov koob yuav raug teeb tsa sib txawv ntawm LCD. Nco ntsoov xyuas daim ntawv lossis saib cov ntawv cim ntawm koj lub LCD tshwj xeeb:

Tsis tas li, koj yuav xav tau txuas lub 16 tus pin header rau koj lub LCD ua ntej txuas nws mus rau lub khob cij. Ua raws daim duab hauv qab no txhawm rau xaim LCD rau koj Arduino:

Rs pin (RS) - 1

Pab kom (E) - 2

D4 - 4

D5 - 5

D6 - 6

D7 - 7

Tus tiv thaiv hauv daim duab saum toj no teeb lub teeb ci ci. Tus nqi raug yog 220 Ohms, tab sis lwm qhov txiaj ntsig yuav ua haujlwm ib yam. Cov tiv thaiv me me yuav ua rau lub teeb pom kev zoo dua qub.

Lub potentiometer tau siv los kho qhov sib piv ntawm lub vijtsam. Kuv ib txwm siv 10K Ohm potentiometer, tab sis lwm qhov txiaj ntsig tseem yuav ua haujlwm.

Kauj ruam 3: Programming Arduino

Programming Arduino
Programming Arduino

Txhua qhov ntawm cov cai hauv qab no siv lub tsev qiv ntawv LiquidCrystal uas tau teeb tsa ua ntej nrog Arduino IDE. Lub tsev qiv ntawv yog txheej txheej ntawm cov haujlwm uas tuaj yeem yooj yim ntxiv rau ib qho program hauv cov ntawv luv.

Txhawm rau siv lub tsev qiv ntawv, nws yuav tsum tau suav nrog hauv txoj haujlwm. Kab 1 hauv cov cai hauv qab no ua qhov no nrog cov lus txib #include. Thaum koj suav nrog lub tsev qiv ntawv hauv ib qhov program, tag nrho cov cai hauv lub tsev qiv ntawv tau muab tso rau hauv Ardunio nrog rau cov cai rau koj li haujlwm.

Tam sim no peb tau npaj kom nkag mus rau hauv qhov program! Kuv yuav hla ntau yam ntxim nyiam koj tuaj yeem ua nyob rau ib pliag, tab sis tam sim no cia cia li khiav qhov kev sim yooj yim. Txoj haujlwm no yuav luam tawm "Zoo siab txais tos rau kuv chav kawm" rau lub vijtsam tom qab qee qhov ncua "Txoj hauv kev tshiab ntawm kev kawm" thiab thaum kawg "Arduino chav kawm los ntawm Mudit jain" qhov twg kuv lub npe yuav ntsais muag. Nkag mus rau tus lej no rau hauv cheeb tsam tinkercad code thiab pib simulation.

Kauj ruam 4: Code

Yog xav paub ntau cov phiaj xwm txuas nrog kuv ntawm:

Youtube:

Facebook nplooj ntawv:

Instagram:

#suav nrog

LiquidCrystal lcd (1, 2, 4, 5, 6, 7); teeb tsa tsis muaj dab tsi () {lcd.begin (16, 2); lcd.setCursor (5, 0); lcd.print ("Zoo siab txais tos"); lcd.setCursor (3, 1); lcd.print ("NYOB HAUV KUV"); ncua (2000); lcd.setCursor (5, 0); lcd.print ("Txoj Kev Tshiab"); lcd.setCursor (3, 1); lcd.print ("Ntawm Kev Kawm"); ncua (2000); lcd.clear (); } tsis muaj dab tsi voj () {lcd.setCursor (2, 0); lcd.print ("Arduino chav kawm"); lcd.setCursor (2, 1); lcd.print ("Los ntawm MUDIT JAIN"); ncua (500); lcd.clear (); lcd.setCursor (2, 0); lcd.print ("Arduino chav kawm"); ncua (500); }

Pom zoo: