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

Well, this is easy.

Step 2: Add Code

Just paste this in the Arduino IDE


// LiquidCrystal Print

// by Peyt52

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

void setup()



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!
<p>Please update and correct your code</p>
<p>The correct code is:</p><p>// LiquidCrystal Print</p><p>// by Conor M</p><p>#include &lt;LiquidCrystal.h&gt;</p><p>LiquidCrystal lcd(8, 13, 9, 4, 5, 6, 7);</p><p>void setup()</p><p>{</p><p>lcd.clear();</p><p>lcd.begin(16, 2);</p><p>}</p><p>void loop()</p><p>{</p><p>lcd.setCursor(0, 0);</p><p>lcd.print(&quot;INSERT TEXT HERE&quot;); //First line of text</p><p>lcd.setCursor(0, 1);</p><p>lcd.print(&quot;INSERT TEXT HERE&quot;); //Second line of text</p><p>}</p>
<p>Hi,</p><p>when I upload the code, the following errors appear:</p><p>lcd1.ino:1:10: error: #include expects &quot;FILENAME&quot; or &lt;FILENAME&gt;</p><p>lcd1.ino:7:1: error: 'LiquidCrystal' does not name a type</p><p>lcd1.ino: In function 'void setup()':</p><p>lcd1.ino:13:1: error: 'lcd' was not declared in this scope</p><p>lcd1.ino: In function 'void loop()':</p><p>lcd1.ino:23:1: error: 'lcd' was not declared in this scope</p><p>could you please help me?</p>
<p>Your code is wrong. It doesn't work </p><p>Help please </p><p>thanks </p>
<p>hi , like a add a switch status on - off </p><p>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</p>
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!
Hi! As this board to change the brightness?
I'm a bit confused by your question?
Sorry. The second day of looking for how to change the level of illumination of this board :)

About This Instructable




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