Pages: [1] 2 3   Go Down
Author Topic: NT3881 (LCD)  (supposedly hd44780 compatible)  (Read 2827 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 92
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: March 23, 2010, 07:39:40 pm by Mart » Logged

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 25
Posts: 4108
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Mart:

Quote
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
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 92
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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...
« Last Edit: March 23, 2010, 07:55:15 pm by Mart » Logged

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 25
Posts: 4108
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 92
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: March 23, 2010, 08:02:57 pm by Mart » Logged

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 25
Posts: 4108
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Mart:

Quote
- Crystalfontz LCD CFAH4002A-TFH-JT ( 2 black lines )
Maybe a contrast problem??

Quote
- 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
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 92
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 92
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Noritake:



Crystalfontz:


optrex: random character on 2 lines
« Last Edit: March 23, 2010, 08:19:12 pm by Mart » Logged

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 25
Posts: 4108
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Mart:

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

Quote
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
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 92
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
« Last Edit: March 23, 2010, 08:40:31 pm by Mart » Logged

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 25
Posts: 4108
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 92
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

same ribbon cable for the 3 display.  I am running

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

thanx

Mart
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 92
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Im starting to lean toward a timing issue...
Logged

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 25
Posts: 4108
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Mart:

Quote
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
« Last Edit: March 23, 2010, 08:56:38 pm by floresta » Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 92
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

whoa,

both LCD shown "hello world" ...
« Last Edit: March 23, 2010, 09:00:10 pm by Mart » Logged

Pages: [1] 2 3   Go Up
Jump to: