Introduction
In this project, we demonstrate how to display alphabets from a to z on a 16×2 LCD using Arduino.
The characters are displayed one by one with a delay of one second.
The program also changes the text direction automatically while printing characters.
This project is useful for beginners to understand:
-
LCD interfacing
-
Character printing
-
Cursor direction control
-
Basic Arduino programming
Components Required
-
Arduino Uno
-
16×2 LCD
-
10k potentiometer (for contrast)
-
220Ω resistor (for backlight)
-
Breadboard
-
Jumper wires
16×2 LCD Pin Description
| Pin | Name | Function |
|---|---|---|
| 1 | VSS | Ground |
| 2 | VDD | +5V |
| 3 | V0 | Contrast control |
| 4 | RS | Register Select |
| 5 | RW | Read/Write (connect to GND) |
| 6 | EN | Enable |
| 11 | D4 | Data pin 4 |
| 12 | D5 | Data pin 5 |
| 13 | D6 | Data pin 6 |
| 14 | D7 | Data pin 7 |
| 15 | A | Backlight LED + |
| 16 | K | Backlight LED – |
Circuit & Connections (LCD to Arduino)
| LCD Pin | Arduino Pin |
|---|---|
| RS | 12 |
| EN | 11 |
| D4 | 5 |
| D5 | 4 |
| D6 | 3 |
| D7 | 2 |
| VSS | GND |
| VDD | 5V |
| RW | GND |
| V0 | Middle pin of 10k pot |
| A | 5V through 220Ω resistor |
| K | GND |
Arduino Program
Working Principle
-
The LCD is initialized as a 16×2 display using
lcd.begin(16,2). -
The program starts printing from the character 'a'.
-
Every second, the next alphabet is printed on the LCD.
-
When the character reaches 'm', the printing direction changes to right-to-left.
-
When the character reaches 's', the direction changes back to left-to-right.
-
After printing 'z', the cursor returns to the home position and the sequence restarts from 'a'.
Output
The LCD will display alphabets one by one:
Each character appears after a delay of one second and the sequence repeats after z.
Applications
-
LCD testing
-
Character display practice
-
Learning cursor direction control
-
Beginner Arduino LCD projects
Common Problems and Solutions
| Problem | Solution |
|---|---|
| Only black boxes | Adjust contrast potentiometer |
| No display | Check power and ground connections |
| Wrong characters | Verify RS, EN, D4–D7 wiring |
| Dim backlight | Check 220Ω resistor |
Conclusion
This project demonstrates a simple method to display alphabets from a to z on a 16×2 LCD using Arduino.
It helps beginners understand how to print characters, control cursor direction, and manage LCD display using code.