You are on page 1of 2

Basic Coding for LCD by using Arduino UNO

There are pins on the LCD Display need to pairing :-

The circuit:
* LCD RS pin to 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 pin to ground
* LCD VSS pin to ground
* LCD VCC pin to 5V
* 10K resistor:
* ends to +5V and ground
* wiper to LCD VO pin (pin 3)

Steps on how to control LCD:-

1. Open Arduino IDE


2. Go to file ---> Example ---> Click Liquid Crystal Library.
3. Click “Hello World”.

4. It will appear on your command window.


This is about on how you declared after pairing LCD interface with the Arduino pin number

Lcd.begin(16,2) is a starting point of every coding to declare your (column,rows) of your LCD.

Starting from void loop() is where you want to make it your coding based on your thinking skill:

You can add or modified based on your creativity to make it interesting:-


So here is an example:-

Since the word “I am powered by Arduino” is too long, you can just code in first cloumn by
Lcd.print (“I am powered by”); .The word of “Arduino” cannot be displayed in Lcd due to 16
columns.Therefore we need to adjust by coding such as Lcd.Cursor(3,1); and put it “Arduino” in
second column.

If you want to make it little bit longer you can code delay(1000)
1000=1s

Don’t forget to make it clear by using Lcd.clear code.

You might also like