ArduinoGeneral

Problem with I2C/TWI LCD2004 Module

userHead Aklain 2013-03-08 09:49:25 5809 Views7 Replies
Hi all,

I have a problem with DFRobot I2C LCD 20x4. He only display two white line. I use the DFRobot library and Romeo V2.

Bellow, code used:
[quote]//DFRobot.com
//Compatible with the Arduino IDE 1.0
//Library version:1.1
#include <Wire.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x20,20,4);

void setup()
{
lcd.init(); // initialize the lcd

// Print a message to the LCD.
lcd.backlight();
lcd.print("Hello, world!");
}

void loop()
{
}[/quote]

Thanks
2013-03-10 17:23:02 Glad to see the problem has been sorted! Share your project with us if you like! userHeadPic R2D2C3PO
2013-03-10 09:09:18 My problem is resolved.

I thought that the RomeoV2 have pullup resistors on SCL and SDA but no. With the resistors, it work.

Thank you.
userHeadPic Aklain
2013-03-10 07:09:14 have you adjusted the potentiometers?  If this not helps, it may be a faulty item. Please contact [email protected] for replacement.  userHeadPic R2D2C3PO
2013-03-09 02:59:09 Thanks but i have already do it. userHeadPic Aklain
2013-03-09 02:21:18 Hi

Please check weather the jumper caps of the back small board match with address. The wiki Doc has update,see
[url=https://www.dfrobot.com/wiki/index.php/I2C_TWI_LCD2004_Module_(Arduino/Gadgeteer_Compatible)_(SKU:DFR0154)]https://www.dfrobot.com/wiki/index.php/I2C_TWI_LCD2004_Module_(Arduino/Gadgeteer_Compatible_(SKU:DFR0154)[/url])

Good luck ;)
userHeadPic Phoebe
2013-03-09 00:55:37 Thanks for your help but add lcd.setCursor(0, 0); don't work  :(

New code :
[quote]#include <Wire.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x20,20,4);

void setup()
{
  lcd.init(); 
  lcd.backlight();
}

void loop()
{
  lcd.setCursor(0,0);
  lcd.print("Hello, world!");
}[/quote]
userHeadPic Aklain
2013-03-08 18:15:32 Hi,


I think maybe you omit something in your code, may be you should add  the cursor setting, such as '' lcd.setCursor(0, 0);'' ;)


Best regards
userHeadPic Phoebe