hey,
After many hours on google and a lot of atempt, I'm stuck.
I try a LCD screen (LM041L with HD 44780) but the result is random: in place of "hello, world!", I have "hVl? vr?!"
The result on the screen is wrong. (see picture in next message)
Are you sure the D4, D5, D6,. D7 pins are connected in the right order? If you look up the caracters that you see on the LCD in the ASCII code table for that LCD, and look at the binary version, do you see a pattern?
Hi,
Yes, the DB pins are connected in the right order.
I don' t understand why some characters are fine and other are not ?
Maybe some pb of timer in library ?
I have had a similar issue when i had connected my 4 lines LCD for the first time.. yet the first line was always shown fine..
My first suggestion is that you look for the 4_bit library or 4_bit_mod library and try those.
Then a question - whats that command sent at the beginning? Are you sure its the right initialisation?
Hi,
Just now, *I have a correct result, In fact, I modified the library and I added a delayMicroseconds(50); just after each digitalWrite.
Now I have a other pb :
For the moment I initiale the LCD with lcd.command(0x28); but the function set is documented for 1 or 2 lines.
Glad to hear that adding delays fixed the problem! I think you can initialise the LCD as if it was a 2-line type, and it'll work. I have a 4-line LCD that works fine. I also have a 1-line LCD that behaves a little strange because the LCD library always initialises it as a 2-line.