Introduction: LCD Display on Arduino
The display LCD type are widely used to display status information from a machine. In the figure alone the typical aspect of this interface is displayed.
Step 1:
There are several types of display, such as 2x20, that means 2 rows by 20 columns, 4x20, 4x16, etc. In this example, we will use a 2x16 type display, which will be willing 2 rows and 16 columns. A text on the LCD in order to demonstrate how to put together a program on the Arduino to control it will be displayed.
Step 2:
Follow the table below to connect the LCD display to the digital pins of Arduino board, in which the pins not listed are not used.
Step 3:
It will be used a willing library within the program to access the LCD. The library is LiquidCrystal.h. Furthermore, lcd.begin function is used to set the type of display connected to Arduino board. The following is such a function:
lcd.begin (columns, rows);
In set columns is the number of columns in which the display has lines and the number of lines. Then, it uses the lcd.setCursor function to place the starting point at which the text is printed. Here, such function is displayed.
lcd.setCursor (column, row);
Where the case is in column 0, column 1 will be selected and if it is 1, the column 2 and so on. Same idea applies to the line option. Finally, to print a text on the LCD uses to lcd.print function as shown below.
lcd.print (text);
Step 4:
Note the steps to display a message on the 1st and 2nd line LCD display with the program made in Arduino.
#include LiquidCrystal lcd(8, 9, 10, 11, 12, 13);
void setup()
{
lcd.begin(16, 2);
lcd.setCursor(0,0);
lcd.print("Cerne Tec");
lcd.setCursor(0,1);
lcd.print("cerne-tec.com.br");
}
void loop()
{
}
Step 5:
It was presented as an information display on the LCD, one of the man-machine interfaces most widely used and is used to display various information pertaining to machine a user of an electronic system.