Introduction: LCD Arduino Shield

Picture of LCD Arduino Shield

Today, I will be showing you how to use a LCD shield to display text using an Arduino. It is very easy.

Things you will need

1 Arduino UNO
1 LCD shield

Step 1: Assemble

Picture of Assemble

Well, this is easy.

Step 2: Add Code

Picture of Add Code

Just paste this in the Arduino IDE

#include

// LiquidCrystal Print

// by Peyt52

LiquidCrystal lcd(8, 13, 9, 4, 5, 6, 7);

void setup()

{

lcd.clear();

lcd.begin(16, 2);

}

void loop()

{

lcd.setCursor(0, 0);

lcd.print(""); //First line of text

lcd.setCursor(0, 1);

lcd.print(""); //Second line of text

}

I hope that was easy enough. Ask questions in the comments!

Comments

Conor M (author)2015-05-11

Please update and correct your code

Conor M (author)2015-05-11

The correct code is:

// LiquidCrystal Print

// by Conor M

#include <LiquidCrystal.h>

LiquidCrystal lcd(8, 13, 9, 4, 5, 6, 7);

void setup()

{

lcd.clear();

lcd.begin(16, 2);

}

void loop()

{

lcd.setCursor(0, 0);

lcd.print("INSERT TEXT HERE"); //First line of text

lcd.setCursor(0, 1);

lcd.print("INSERT TEXT HERE"); //Second line of text

}

ArthurB2 (author)2015-05-03

Hi,

when I upload the code, the following errors appear:

lcd1.ino:1:10: error: #include expects "FILENAME" or <FILENAME>

lcd1.ino:7:1: error: 'LiquidCrystal' does not name a type

lcd1.ino: In function 'void setup()':

lcd1.ino:13:1: error: 'lcd' was not declared in this scope

lcd1.ino: In function 'void loop()':

lcd1.ino:23:1: error: 'lcd' was not declared in this scope

could you please help me?

hS5 (author)2015-03-03

Your code is wrong. It doesn't work

Help please

thanks

tbear5 (author)2015-01-20

hi , like a add a switch status on - off

I do not know how to write the status of my interuteur , OPEN or close. the screen. pouver you helped me ? thank you for avence . thx

peyt52 (author)2015-01-07

Oh yes! In the picture, do you see the little blue box in the upper left hand corner? There is a silver knob on top of it with a little slit it. You can use your finder nail or a screwdriver to twist it and change the brightness. If I'm right, twisting it left will increase the contrast. I hope I helped!

Bligoan (author)2015-01-07

Hi! As this board to change the brightness?

peyt52 (author)Bligoan2015-01-07

I'm a bit confused by your question?

Bligoan (author)peyt522015-01-07

Sorry. The second day of looking for how to change the level of illumination of this board :)

About This Instructable

3,524views

35favorites

License:

Bio: I like Arduino
More by peyt52:LCD Arduino ShieldArduino Button Blink
Add instructable to: