Write a program to interface LCD with Arduino board and display ‘Hello world’ on it .
Last Updated : 15 Jul 2025
Solution:
#include <LiquidCrystal.h>
const int rs = 11; // Register Select pin
const int en = 10; // Enable pin
const int d4 = 9; // Data pin 4
const int d5 = 8; // Data pin 5
const int d6 = 7; // Data pin 6
const int d7 = 6; // Data pin 7
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
void setup(){
lcd.begin(16, 2); // Initialize the LCD with 16 columns and 2 rows
lcd.print("Hello World"); // Display "Hello World" on the LCD
}
void loop(){
// No repeated actions needed, so the loop is empty
}
Report an error
Meanwhile you can watch this video
Watch Video