How to use 16×2 lcd display with arduino, project with code

how to use 16x2 lcd display with arduino
how to use 16x2 lcd display with arduino

The LCD Display 16×2 , is used to display text, symbols, numbers and characters. The lcd display consists of two lines, and each line consists of 16 box, and in each box a letter, symbol or number is displayed. It used in a wide range of projects that need to display values and measurements or symbols. In this post we will learn: How to use 16×2 lcd display with arduino.

Electronic components needed :

  • LCD Display 16×2
  • Variable Resistor 5K ohm
  • Resistance 220 ohm
  • Electrical wires
  • Arduino UNO
  • Breadboard

How to use 16×2 lcd display with arduino, project with code

Schema of the circuit :

how to use 16x2 lcd display with arduino
16×2 lcd display with arduino

Arduino programming code :

// www.andprof.com
// include the library code:
#include <LiquidCrystal.h>

// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

void setup() {
  // set up the LCD's number of columns and rows:
  lcd.begin(16, 2);
  // Print a message to the LCD.
  lcd.print("hello, world!");
}

void loop() {
  // set the cursor to column 0, line 1
  lcd.setCursor(0, 1);
  // Print a message to the LCD.
  lcd.print("AndProf");
}

Explainer video :

Discover also :

How to use digit 7-Segment LED Display with Arduino

How to make fire detector using arduino

How to control LED lights with Arduino

How to use arduino IDE software

Arduino Programming Language Structure

LEAVE A REPLY

Please enter your comment!
Please enter your name here