Pages: [1]   Go Down
Author Topic: Problem with interfacing an LCD with PCF8574N  (Read 1136 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 38
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, I did a board based on the schematic shown on the attached picture. The first time i ran it it looks to work fine. On my second try it didn't work any more. I decided that there is some wire connection problem. I measure all of the connections. Everything looks normal. And the board sometime works sometime not. So I did another board and another one ( 3 of them) completly different parts. And the same problem. I'm using TI's PCF8574A, the schematic is for the NPX's chip. Is there any differeneces between them. May be TI's chip need pull-up resistor (I think I saw it somewhere...). Thanks!


* I2C-LCD_Shema.png (143.23 KB, 1729x1166 - viewed 56 times.)
« Last Edit: February 20, 2011, 03:05:20 pm by Morpheous » Logged

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

Quote
the schematic is for the NPX's chip.
Sorry, my crystal ball is out for repair.

Quote
May be TI's chip need pull-up resistor (I think I saw it somewhere...).
That's the purpose of R2 and R3.

Don
Logged

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

Quote
the schematic is for the NPX's chip.
Sorry, my crystal ball is out for repair.

The schematic should be attached now ( don't know what happend). I mean pull-up resistor on the output PCF8574N's pins for D4-D7,E,R/W,RS. Like this one - http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1233786313/3#3
Logged

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

Quote
The schematic should be attached now
It was attached before as well - how else could I have identified R2 and R3 without a crystal ball?

It was 'NXP' that had me confused since I didn't recognize the name.  I don't think that two ICs with the same part number would differ in the need for pull-up resistors on their I/O pins.  Neither datasheet mentions the need for external pull-ups so I doubt they are needed.  I do not see LCDs mentioned in the post to which you linked in your reply and I don't see a link to the library that it is using either.

I don't see a link to the library that you are using either so that could be the cause of your problem.  

Is your contrast potentiometer adjusted properly?

You mention that your circuit worked at one time but that it no longer works.  What exactly does it do when it 'doesn't work' ?  
  Is the display blank?
  Are strange characters displayed?
  Are the correct characters displayed in the wrong location?
  Do the characters appear upside down?
  Are the characters displayed from right to left?
  Is one line of blocks displayed?
  Do you understand why I miss my crystal ball?


Don
« Last Edit: February 20, 2011, 04:13:08 pm by floresta » Logged

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

So, first the two I2C chips have same name (only different suffix). The LCD I'm using is 16x2 - RC1602B. It's not the first time I use an LCD, so the contrast potenciometer is not the problem 100%. The used library is in the attached archive. The LCD is not blank (somethimes is), but shows strange characters, sometimes some of the real characters are shown, but not on their location, or only some of them. The strange is that, after these anomalies, I power it up again and everything is OK. I hope you'll not need the crystal ball any more smiley

* LiquidCrystal_I2C (1).zip (1090.4 KB - downloaded 12 times.)
Logged

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

Fixed! Bad jumer did all the problems.
Logged

Pages: [1]   Go Up
Jump to: