NT3881 (LCD)  (supposedly hd44780 compatible)

Hi,

I am trying to run an optrex C-51850NFJ-SLW-ADN LCD with a NT3881 chipset (supposedly hd44780 compatible) with my seeeduino mega. I was unsuccessfull with LiquidCrystal and LCD4bit so far. Anyone has experience with that controller ?

thanx for your time.

Mart

Mart:

I was unsuccessfull with LiquidCrystal ...

Can you give us a little more information. What did happen? Did the device get hot? Did you see smoke? Was one line full of 'boxes' and the other line blank? Was there jibberish on the display?

A photo of your connections and a copy of your code would really help.

Don

The connection and code are validated since my setup is working properly with a HD44780 compatible VFD.

Using the same code, I swapped the vfd with that LCD and all I got is the first line full of random garbage...

Mart:

I suggest that you try the 'Hello World' example program from the Arduino playground (http://arduino.cc/en/Tutorial/LiquidCrystal) and see if that works. Make sure you are using the code and the library from Arduino v0017 or later. The earlier LiquidCrystal libraries and LCD4bit do not properly initialize the LCD controller.

Don

Hi Don,

this is exactly what I am doing right now: I am running this: http://arduino.cc/en/Tutorial/LiquidCrystal

Heck I have 3 device:

  • Noritake VFD CU40025SCPB (WORK A1! with that example)
  • Crystalfontz LCD CFAH4002A-TFH-JT ( 2 black lines )
  • optrex LCD NFJ-SLW-ADN ( 2 lines of random character )

If you want a video, I can do one if it can help?

thanx

Mart

Mart:

  • Crystalfontz LCD CFAH4002A-TFH-JT ( 2 black lines )

Maybe a contrast problem??

  • optrex LCD NFJ-SLW-ADN ( 2 lines of random character )

This implies either a wiring problem (maybe a bad connection on the LCD module itself) or a timing problem (are you sure you are using v0017 or v0018?).

A picture might help.

Don

I am using 018. Pictures are coming in a sec...

Hello world example from http://arduino.cc/en/Tutorial/LiquidCrystal
arduino 018:

Noritake:

Crystalfontz:

optrex: random character on 2 lines

Mart:

Lets deal with the optrex first since it displays something legible.

optrex: random character on 2 lines

By random I guess you mean that the next time you run the program you get a different character, but all 80 characters are the same.

If so please list some of the characters. I'm looking for a pattern.

What happens when you just press reset?

Don

Optrex:

character 'S', 'C', '#', 's', '3', 'c', 'cs', 's ', 'C ' etc..

pattern: 2 full lines of the character repeated such as:

'cs':
cscscscscscscscscscscs
cscscscscscscscscscscs

the pattern change during the operation. it does not stay at 'cs' for example.

Mart:

There is a pattern, all of the ASCII codes for these characters have a hex value ending in '3'.

Are you running in 8-bit mode by any chance.

Are you using the same ribbon cable for all three displays?

Don

Hi,

same ribbon cable for the 3 display. I am running

LiquidCrystal lcd(4, 5, 6, 7, 8, 9, 10);

thanx

Mart

Im starting to lean toward a timing issue...

Mart:

the pattern change during the operation. it does not stay at 'cs' for example.

I overlooked this.

Does the pattern change once a second, like each time the second line is updated?

Try commenting out the stuff in loop so that all that is left is setup() with a blank loop() and see if the 'Hello World' part displays correctly.

Don

whoa,

both LCD shown "hello world" ...

Mart:

You did 'cut and paste' the code from the playground, didn't you?

Don

Mart:

My guess is that you left out the lcd.setCursor(0,1); statement.

Don

yes the code was copy/pasted.

with an empty loop(), it does print "hello world" and sit there on both LCD.

Mart:

The lcd.print() instruction is obviously overwriting your entire display, so the lcd.setCursor() is not working for some reason.

I'm not sure why it works on one display and not the others, and why all the displayed codes end in '3'. That's one of the mysteries that may be due to the interaction of the various libraries that are involved.

If you copy and paste the loop() code again and still have the problem then I would suggest adding a 1 second delay in loop() so you can see what is going on.

Don

no luck with the 1 second delay in the loop() :frowning: