Go Down

Topic: [solved] Hello World with wrong characters ... (Read 1 time) previous topic - next topic

Schwabinger

Dec 26, 2010, 11:26 am Last Edit: Dec 26, 2010, 03:27 pm by Schwabinger Reason: 1
Hello,

I just connected my uno with a 2x16 LCD.
It is a ANAG VISION AV1624.

My problem is that it seems to use a different character set than expected.

The counter in line 2 starts correctly with 0, 1 ,2, 3 but then it goes on with <, =, >, ?, <, =, 10, ....

"Hello World" is displayed in a different character set as well; for instance the o is reprlaced with an "ö".

Any ideas?

Schwabinger

robtillaart

Could you please share the code used?

What did work, what did not?
What characters came across the screen?
Have you connected the pins in the right order (high-low reversed?)

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Schwabinger

Hi,

here comes the code:

Code: [Select]
// include the library code:
#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
 // set up the LCD's number of columns and rows:
 lcd.begin(16, 2);
 // Print a message to the LCD.
 lcd.print("hello, world!");
}

void loop() {
 // set the cursor to column 0, line 1
 // (note: line 1 is the second row, since counting begins with 0):
 lcd.setCursor(0, 1);
 // print the number of seconds since reset:
 lcd.print(millis()/1000);
}


Instead of "Hello, world" it prints different characters on the screen.
For instance, instead of the two "o" characters in "hellO" and "wOrld" it prints twice the character "ö".

Line 2 shows the seconds till arduino had started.

It displays the following:

0 --> 1 --> 2 --> 3 ---> < (instead of "4") --> = (instead of "4") ....

Regards,

Schwabinger

robtillaart

#3
Dec 26, 2010, 12:14 pm Last Edit: Dec 26, 2010, 12:20 pm by robtillaart Reason: 1
this one - http://www.mikrocontroller.net/attachment/61375/lcd_av1624.pdf - ?

Quote
0 --> 1 --> 2 --> 3 ---> < (instead of "4") --> = (instead of "4") ....

loose wire?

4 = 0x34 = 0011 0100
< = 0x3C = 0011 1100

5 = 0x35 = 0011 0101
= = 0x3D = 0011 1101
                ^
that wire ....
Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Schwabinger


Schwabinger

Wow ... can you please tell me, which wire is that?
Or how to find out?

Tanks a lot  :)

Schwabinger

robtillaart

#6
Dec 26, 2010, 01:14 pm Last Edit: Dec 26, 2010, 01:15 pm by robtillaart Reason: 1

look at page 11 of the PDF mentioned earlier and you will see it is bit 8 that transforms the o into ö   the 4 and the < was bit 4  ==> so the same line (4 bit communication)  ==>  it is 99% sure line 5 .

Check your soldering?

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Schwabinger

Thanks you so much!

There was a short curcuit with the wire next to it.
Oh ... my aging eyes ... :-/

Thanks to your help my project is going on again.

Happy greetings from Munich,

Schwabinger

Go Up