LCD Scroll Icon using Arduino

In this demo, I will show you how to make some icons like heart shape or any other kind of icons and scroll them on LCD display with Arduino Board using LiquidCrystal Library. LiquidCrystal Library is very powerful library and most of the functions are available in the library which can be called and used in the Arduino program.

Before this, You must know the basic understanding of Pins of LCD, their functions and how to connect them on Arduino Board. (Please visit here).

Small program related to scrolling words on LCD is given here. (please visit here).

Below is the program for making an icon and scrolling that on LCD Display.

Program on Arduino Software

You can copy and paste whole program from here.

Compile it and Upload it on Arduino Board and observe the output on LCD.

//Program starts here


LiquidCrystal lcd(7, 8, 9, 10, 11 , 12);

byte customchar[8] = {

void setup() {
// put your setup code here, to run once:
lcd.begin(16, 2);
lcd.createChar(1, customchar);


void loop() {
// put your main code here, to run repeatedly:
// set the cursor to column 0, line 1
// (line 1 is the second row, since counting begins with 0)
for ( int i = 0; i <= 15; i++)


//Program ends here

Explanation of Program:

LiquidCrystal Library takes care of the functions related to LCD.

First we define an LCD connection using LiquidCrsyatl lcd(RS, E, D4, D5, D6, D7).

Please note that this program is different from the other two programs explained earlier (Program 1 and Program 2) for LCD display. Here, We define a byte named customchar().

In this program, we are using LCD basic characteristic, We know that each character on LCD is a 5 x 8 pixel display. So, We are initializing a byte named customchar[] which is an array of  5 x 8 pixels. In 0Bxxxxx, B stands for binary, so writing 1 in place of x will put a dot at that particular pixel.

In setup() function,

lcd.begins(16,2) defines that LCD is a 2 x 16 LCD Display.

lcd.clear() functions clears everything on the LCD if any thing is already existing on the LCD.

lcd.createChar(1,customchar) creates the icon by putting dots in place of 1.

In loop() function,

we have defined a for() loop with iteration i  and using lcd.setCursor function keeps on moving the place where the icon has to be written and lcd.clear() function to clear the display after every 1 s.

Demo of the program

Here is the snapshot of the Icon which i am displaying on LCD.


You can look at the video of the scroll happening on LCD on youtube.

-Signing Off, Arduino Novice

Please do follow my Blog and subscribe to my Youtube Channel for more demos and videos related to Arduino.


One thought on “LCD Scroll Icon using Arduino

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s