Experiment 6
Experiment 6
6
LCD Interfacing
OBJECTIVES:
This exercise aims to create a program that will interface a liquid crystal display to the Arduino
microcontroller.
SYNTAX:
PROCEDURES:
2. Write the given program code in the Arduino editor. ( //Ignore the comments )
#include <LiquidCrystal.h>
void setup() {
lcd.begin(16, 2); // set up the LCD's number of columns and rows:
lcd.print("hello, world!");
}
void loop() {
4. Verify and upload the program. Make sure to set the correct com port and type of board.
6. Modify the program so that the LCD will display your name in the first line and your student ID
number in the 2nd line.
SUPPLEMENTARY:
Create a program that will monitor the contrast of your LCD. Make the table below as your
reference for identifying the contrast of LCD.