Cov txheej txheem:

Interface Ntau LCD rau Arduino Uno Siv Cov Ntaub Ntawv Kab: 5 Cov Kauj Ruam
Interface Ntau LCD rau Arduino Uno Siv Cov Ntaub Ntawv Kab: 5 Cov Kauj Ruam

Video: Interface Ntau LCD rau Arduino Uno Siv Cov Ntaub Ntawv Kab: 5 Cov Kauj Ruam

Video: Interface Ntau LCD rau Arduino Uno Siv Cov Ntaub Ntawv Kab: 5 Cov Kauj Ruam
Video: Display input voltage as bargraph on LCD using Arduino and potentiometer 2024, Hlis ntuj nqeg
Anonim
Interface Ntau LCD rau Arduino Uno Siv Cov Kab Lus Sib Xws
Interface Ntau LCD rau Arduino Uno Siv Cov Kab Lus Sib Xws

Hnub no, hauv cov lus qhia no kuv yuav qhia koj yuav ua li cas cuam tshuam ntau 16x2 LCD module nrog arduino uno board siv cov ntaub ntawv ib txwm muaj. Qhov ntxim nyiam tshaj plaws txog txoj haujlwm no yog, nws siv cov kab ntawv sib qhia thiab nthuav tawm cov ntaub ntawv sib txawv hauv txhua lub LCD.

Kauj Ruam 1: Kauj Ruam 1: Cov Khoom Siv Hluav Taws Xob

Kauj Ruam 1: Cov Khoom Siv Hluav Taws Xob
Kauj Ruam 1: Cov Khoom Siv Hluav Taws Xob

- Arduino Uno: 1 daim

-16x2 LCD: 4 daim

-10k Ohm Potentiometer: 4 daim

-470 Ohm Resistor: 4 daim

-Lub rooj mov

-Jumper xov hlau

Kauj Ruam 2: Kauj Ruam 2: Txoj Cai

Thaum xub thawj koj yuav tsum txhais tus pin ntawm LCD nrog cov kab ntawv sib xws

LiquidCrystal lcdA (13, 12, 7, 6, 5, 4);

LiquidCrystal lcdB (11, 10, 7, 6, 5, 4);

LiquidCrystal lcdC (9, 8, 7, 6, 5, 4);

LiquidCrystal lcdD (3, 2, 7, 6, 5, 4);

Los ntawm cov lus txhais saum toj no koj tuaj yeem pom qhov ntawd, txhua cov ntaub ntawv kab ntawm LCD (LCD1 LCD2 LCD3 thiab LCD4) txuas nrog tib tus lej arduino board digital pin (D7, D6, D5 thiab D4) thaum RS thiab EN tus pin txuas nrog tus lej tus lej.

Nov yog cov lej ua tiav rau peb tes num:

#suav nrog

LiquidCrystal lcdA (13, 12, 7, 6, 5, 4); // tus lej txhais rau LCD 1

LiquidCrystal lcdB (11, 10, 7, 6, 5, 4); // tus lej txhais rau LCD 2

LiquidCrystal lcdC (9, 8, 7, 6, 5, 4); // tus lej txhais rau LCD 3

LiquidCrystal lcdD (3, 2, 7, 6, 5, 4); // tus lej txhais rau LCD 4

void teeb tsa ()

{

lcdA.begin (16, 2); // Pib ntawm LCD 1

lcdB.begin (16, 2); // Pib ntawm LCD 2

lcdC.begin (16, 2); // Pib ntawm LCD 3

lcdD.begin (16, 2); // Pib ntawm LCD 4}

void lub voj ()

{

lcdA.setCursor (0, 0);

lcdA.print ("3 16x2 LCD Siv");

ncua (100);

lcdB.setCursor (0, 0);

lcdB.print ("Tsim Los Ntawm->");

ncua (100);

lcdC.setCursor (0, 0);

lcdC.print ("Mus Saib Lub Vev Xaib");

ncua (100);

lcdD.setCursor (0, 0);

lcdD.print ("BestEngineering");

ncua (100);

lcdA.setCursor (0, 1);

lcdA.print ("Tib Arduino");

ncua (100);

lcdB.setCursor (0, 1);

lcdB.print ("Krishna Keshav");

ncua (100);

lcdC.setCursor (0, 1);

lcdC.print ("thiab Sau Npe");

ncua (100);

lcdD.setCursor (0, 1);

lcdD.print ("Cov Haujlwm");

ncua (100);

}

Kauj Ruam 3: Kauj Ruam 3: Tsim Circuit Court

Kauj ruam 3: Tsim Circuit Court
Kauj ruam 3: Tsim Circuit Court
Kauj ruam 3: Tsim Circuit Court
Kauj ruam 3: Tsim Circuit Court
Kauj ruam 3: Tsim Circuit Court
Kauj ruam 3: Tsim Circuit Court

Lub voj voog tshaj tawm ntawm no yog tsim los siv proteus 8 Professional.

Proteus pin no. 15 thiab 16 ntawm LCD tau muab zais, yog li kuv tau txuas rau tus pin 15 thiab 16 (anode thiab cathode ntawm LCD) uas tus pin tau siv rau lub teeb rov qab rau LCD.

Kauj Ruam 4: Kauj Ruam 4: Txhua Qhov Ua tiav

Kauj ruam 4: Txhua yam ua tiav
Kauj ruam 4: Txhua yam ua tiav
Kauj ruam 4: Txhua yam ua tiav
Kauj ruam 4: Txhua yam ua tiav
Kauj ruam 4: Txhua yam ua tiav
Kauj ruam 4: Txhua yam ua tiav

Vam tias txoj haujlwm no yuav pab tau koj. Yog koj muaj lus nug lossis xav paub ntau ntxiv txog qhov project thov mus saib bestengineeringprojects.com

Pom zoo: