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
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
we will require the following Material
16 X 2 I2C L.C.D. Display
https://www.gearbest.com/other-accessories/pp_2166...
Arduino UNO
https://store.arduino.cc/usa/arduino-uno-rev3
https://www.gearbest.com/development-boards/pp_477...
Male To Female Jumper wire
https://www.gearbest.com/diy-parts-components/pp_2...
Multi Purpose Wire Stripper
Learn Basics
if you are new to I2C LCD, watch this video
Written Instructable
here is the link to Written Instructable
Understand the Concept
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
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.
Downloads
Be Creative!
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.