LCD 16x2 character art (posting all my char art here)

Hey guys,

I'm looking for a simple way to show battery power and you guys seem to be good at the LCD stuff.

I'm using a sparkfun serial LCD and would like to show the battery life as a bar (one block on the LCD) where a dead battery will have one horizontal bar in a block (an underline cursor, I guess) and a full battery would be a full block (like a non-blinking box cursor). Is there an easy way to get this done? I know that the serial LCDs are a bit different with the code (I am not using a library).

Thanks a lot!

-Rob

You can use either mine or JO3RI's code. Just draw a small battery in MS paint, like this:

Then digitize them into binary numbers;

battery.GIF

I totally don't get how to do this with a serial LCD... I'm not declaring an lcd or using the lcd library therefore, the lcd.createChar(0, newChar); does not work...

edit after reading through some much older posts... It looks as if the serial LCDs requires you to write special characters to it and you only have room for 8 custom characters. It appears to be much more work than its worth.

JO3RI:
Ok, so you haven't seen nothing yet :smiley:

@ Simpson_Jr: you'll have to read a bit more on Character creating. watch this link, It might help: http://icontexto.com/charactercreator/. Mind you, you can only have 8 of those at once on the LCD screen.

@liudr: you want to see a fist fly? watch this, it's even better.

http://www.youtube.com/watch?v=eq_0PQGsbHo

and of course the code:

Mmm, seems its to long to post here. I made a project page of this on my website:

http://www.jo3ri.be/arduino/arduino-projects/lcd-16x2-running-man

He must have misbehaved big time to be behind bars, at his majesty pleasure lol eh eh eh

Thanks Man! great creation.... was literally amazed after it worked with my hardware Thrilled!!!

Cool!
Under IDE 1.5.8 small fix:

lcd.write(0);

change to

lcd.write(byte(0));

and so on.

Useful link Custom Character Generator for HD44780 LCD Modules