top of page

Automatic scrolling text on 16x2 LCD with Arduino

Updated: Feb 12

In This DIY project, we will see how to make an automatic scrolling text on a 16*2 #LCD by

interfacing with the #Arduino UNO board.


Hardware Requirements

a) Arduino UNO board:

Arduino is an open-source programmable microcontroller that can be programmed to sense and control objects in the physical world. By responding to sensors and inputs the Arduino board can interact with a wide variety of outputs such as LED’s, motors, LCDs, etc.


To know more about the Arduino UNO, refer to this article.


b) Jumper wires:


Jumper wires are a group of electrical wires, with a connector at each end, which is used to interconnect the components of a prototype circuit.


c) Breadboard:

A #breadboard is a construction base for building electronic circuits. It has many holes into which circuit components like ICs and resistors can be inserted.


The holes in the terminals are connected horizontally and the holes in the middle are connected vertically.


d) Potentiometer:

A #potentiometer is an adjustable variable resistor with 3 terminals. Two terminals are connected to the two ends of a resistive element, and the third terminal is connected to a sliding contact also called a wiper that moves over the resistive element. The position of the wiper determines the output voltage of the potentiometer.


e) LCD display:

Liquid Crystal Display is a flat electronic panel of display that uses the light modulating properties of liquid crystals to display clear images.


Software Required

Arduino IDE:



Circuit Connections

Circuit connection involves the following steps:

  • The ground pin of the LCD is connected to the ground pin of the potentiometer.

  • The power pin of the LCD is connected to the 5V power supply of the Arduino board.

  • The contrast pin of the LCD is connected to the middle pin of the potentiometer.

  • The register select pin of the LCD is connected to digital pin 12 of the Arduino board.

  • The enable pin of the LCD is connected to digital pin 11 of the Arduino board.

  • The ReadWrite pin of the LCD is connected to the ground pin of the Arduino board.

  • DB4, DB5, DB6, and DB7 of the LCD are connected to digital pins 5, 4, 3, and 2 of the Arduino board.

  • LED anode pin of the LCD is connected to the power supply through a resistor.

  • The LED cathode pin of the LCD is connected to the ground pin of the Arduino board.

Code



Working

The circuit is connected and the code is uploaded on the arduino UNO board.

First, the LCD shows Hello Friends!

After a delay of 1000 milliseconds, The LCD first prints normally up to the index 15 that is "Welcome to Learn" then after a delay of 150 milliseconds it starts scrolling for printing characters having an index greater than 15 that is " Electronics India ".Then after a delay of 250 milliseconds, it starts all over again.


Check the Project Working video here - Automatic scrolling text on 16x2 LCD with Arduino

Project by: Ganga Sagar Tripathi


See also:









Follow us -


Please do follow us i.e #learnelectronicsindia to get daily updates about new blogs, videos, courses, quizzes, and contests.



Author - Akshara Ganeshram

2,303 views2 comments

Related Posts

See All
bottom of page