Pages: [1]   Go Down
Author Topic: Anybody try this el-cheapo TWI LCD module  (Read 825 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Anybody try one of these cheap LCD's off Ebay:

http://www.ebay.com/itm/IIC-I2C-TWI-1602-serial-LCD-Module-Display-Arduino-HD44780-Red-Color-/160897445228?pt=LH_DefaultDomain_0&hash=item25763c2d6c

It has a real slim TWI interface card soldered to the back of the LCD module.   Says it's compatible with Arduino, but I'm not finding that true.... Arduino 'wire' lib assumes an PCF8574(A) TWI chip, and I've used some of the other el-cheapo's just fine, but this one I'm striking out on, and now believe it doesn't use that chip at all.

Here's the TWI interface card that is used, and sold seperately too:
http://www.ebay.com/itm/IIC-I2C-TWI-SPI-Interface-Module-for-1602-2004-LCD-Arduino-SMALL-/160909167310?pt=LH_DefaultDomain_0&hash=item2576ef0ace

tnx,

-mark
Logged

Dallas, TX USA
Online Online
Edison Member
*
Karma: 47
Posts: 2330
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You are mistaken on how the Arduino wire library works.
The Arduino wire library makes no assumption as to what is on the other end of the i2c connection.
It merely implements the i2c protocol.
That is why it works with all kinds of devices like i/o expanders, thermometers, LEDs, etc....

That i2c backpack uses a MCP23008 which is not used very often.
Nearly all the backpacks out there use the PCF8574.
But even when a library supports the i2c chip used,
it doesn't mean the library can make the LCD work.
This is because the library must program the output pins of the output port
of the i2c chip to talk to the LCD based on how the i2c chip is wired to the LCD.
Not all boards wire the i2c chip up to the LCD the same way.

There are libraries out there that support the mcp23008 chip,
(the maker of that board/lcd even supply one),
but the only other board I've ever seen us it is the adafruit backpack.

Are you using the library that they supplied?

--- bill
Logged

Atlanta
Offline Offline
Full Member
***
Karma: 4
Posts: 128
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've always had great luck dealing with that supplier, have you tried the sample program they put on ebay itself?

Code:
#include <Wire.h>
#include <LCDI2C4Bit.h>
//int ADDR = 0x27;
int ADDR = 0xA7;
byte x = 0;
byte data = 1;
byte c;
LCDI2C4Bit lcd = LCDI2C4Bit(ADDR,4,20);

void setup()

{
  // Serial.begin(9600);
  Wire.begin(); // join i2c bus (address optional for master)

  lcd.init();
  lcd.clear();

  lcd.cursorTo(0,0);
  lcd.printIn("WWW.WIDE.HK");
  lcd.cursorTo(2,0);
  lcd.printIn("I2C 1602 LCD");

}

void loop()

{
  lcd.backLight(true);  delay(1000);
  lcd.backLight(false);  delay(1000);
}
Logged


Offline Offline
Edison Member
*
Karma: 116
Posts: 2205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This "el-cheapo" module is quite expensive.
Logged

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

Quote
This "el-cheapo" module is quite expensive.

If you say so, but it could still be cheap as in "of poor quality".

Don
Logged

Pages: [1]   Go Up
Jump to: