How to Create Custom Character for LCD

by MissionCritical in Circuits > Arduino

20800 Views, 17 Favorites, 0 Comments

How to Create Custom Character for LCD

thumbnail.jpg

Hello there, fellow electronic enthusiasts, ever wanted to create your own custom characters for your boring L.C.D. display and spice things up a little in display aspects of your project? If yes, then this Instructable is for you, let’s get started.

Watch the Video

Gather the Requirements

Material.jpg
Material 2.jpg
Material 3.jpg
material 4.jpg

Learn Basics

if you are new to I2C LCD, watch this video

Written Instructable

here is the link to Written Instructable

https://www.instructables.com/id/Fall-in-Love-With...

Understand the Concept

Dot.JPG
row.JPG
column.JPG
block.JPG

A L.C.D display is made up of blocks, which are fundamentally 5 dots in a row and 8 dots in a column, which are lighted up according to the code or predefined characters inside the LCD Control ic, there are 32 such blocks in a 16 x 2 LCD display.

Note

there are a few hardware limitations because of these inbuilt characters, which leave us space for only 8 custom characters in total.

Create and Learn

Heart.JPG
heart1.JPG
code.JPG

To create a Custom Character, we need to define which dot out of that 5 x 8 block has to be lighted up, which can be done by writing the binary equivalent of each row and column,using this web tool by IOXhop.

https://maxpromer.github.io/LCD-Character-Creator/

So for an example, we let's create a heart symbol.

1.Click on the dot that you want to light up, until you see a character that you want to achieve.

2.Copy the variable byte.

3.Include the library,

4.Setup the LCD and initialize it.

5.Paste the variable below the LCD setup syntax and also rename as per your choice.

6.Define custom character and allocate a location to it using the syntax

lcd.createChar(location, name);

7.Write lcd.home();

8.Set cursor and print custom character using the syntax

lcd.write(location)

9.upload the code.

Be Creative!

Robot.JPG
Smiley.JPG
Custom Char.jpg

We can create large text, interesting emoticons, gun, robot, or anything you wish.

try your Creativity and Share it With The Community!

share your work, i would love to see your creativity in custom characters.