Pages: [1]   Go Down
Author Topic: [solved] Hello World with wrong characters ...  (Read 1211 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 45
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: December 26, 2010, 09:27:36 am by Schwabinger » Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 168
Posts: 12428
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?)

Logged

Rob Tillaart

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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 45
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

here comes the code:

Code:
// 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
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 168
Posts: 12428
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 ....
 
« Last Edit: December 26, 2010, 06:20:01 am by robtillaart » Logged

Rob Tillaart

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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 45
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, I use the AV1624
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 45
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Tanks a lot  smiley

Schwabinger
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 168
Posts: 12428
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


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?

« Last Edit: December 26, 2010, 07:15:37 am by robtillaart » Logged

Rob Tillaart

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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 45
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Pages: [1]   Go Up
Jump to: