CodeHub
HomeUploadContact
Back to Hub

Lcd display text

April 8, 2026 Watch Tutorial

Wiring Schematic

Lcd display text wiring diagram

Hardware Required

  • Arduino Board
    Buy on Amazon

Source Code

Arduino / C++
1#include <LiquidCrystal.h>
2
3// Initialize the library with your exact pin sequence: 
4// RS = 7, EN = 8, D4 = 9, D5 = 10, D6 = 11, D7 = 12
5LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
6
7void setup() {
8  // Set up the LCD's number of columns and rows (assuming a standard 16x2 display):
9  lcd.begin(16, 2);
10
11  // Set the cursor to column 0, line 0 (top row)
12  lcd.setCursor(0, 0);
13  lcd.print("you are my 5V");
14
15  // Set the cursor to column 0, line 1 (bottom row)
16  lcd.setCursor(0, 1);
17  lcd.print("I am your GND");
18}
19
20void loop() {
21  // Nothing to loop! The text will stay on the screen.
22}
Lcd display
Buy on Amazon
  • Jumper wires
    Buy on Amazon
  • USB Cable
    Buy on Amazon
  • Potentiometer
    Buy on Amazon
  • Breadboard
    Buy on Amazon