I'm new to Arduino and want to build a Button Box. When I buyed the parts I didn't watched out for the specifications of the I2C module. When I tried to print sth on the LCD nothing happened (in retro perspective it's logical). I wouldn't like to have to buy a new LCD.
How can I make the LCD work with the I2c module?
LCD - http://cdn-reichelt.de/documents/datenblatt/A500/DEM16101SYH.pdf
I2C-module - http://mantech.co.za/datasheets/products/lcd2004-i2c.pdf
it's wired correctly (VCC to 5V, GND to GND, SDA to SDA and SCL to SCL)
The Code I used is the "Hello World" Example thats included in the LiquidCrystal_I2C library, but with a few changes:
//YWROBOT
//Compatible with the Arduino IDE 1.0
//Library version:1.1
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,1); //instead of LiquidCrystal_I2C lcd(0x27,20,4);
void setup()
{
lcd.init(); // initialize the lcd
lcd.init();
// Print a message to the LCD.
lcd.backlight();
lcd.setCursor(3,0);
lcd.print("Hello, world!");
lcd.setCursor(2,0); //isntead of lcd.setCursor(2,1);
lcd.print("Ywrobot Arduino!");
lcd.setCursor(0,0); //instead of lcd.setCursor(0,2);
lcd.print("Arduino LCM IIC 2004");
lcd.setCursor(2,0); //instead of lcd.setCursor(2,3);
lcd.print("Power By Ec-yuan!");
}
void loop()
{
}