Hello all,
My name is Aaron. I've been hitting my head up against the wall all day. So I have an Arduino Project thats hooked up to a 20 x 4 LCD that works just fine by connecting the 6 data lines and then programming it etc.....However, I have purchased an I2C serial interface board that uses the Two wire interface of TWI as well as VCC and Ground to operate the code from the arduino onto the LCD....
After I received the New LCD with the I2C I hooked up pins analog 4 from arduino Uno to the SDA on the I2C and analog 5 from arduino to SDL on I2C and loaded this code for testing from the website I bought it from:
/* YourDuino.com Example Software Sketch
20 character 4 line I2C Display
terry@yourduino.com */
/*-----( Import needed libraries )-----*/
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
/*-----( Declare Constants )-----*/
/*-----( Declare objects )-----*/
// set the LCD address to 0x27 for a 20 chars 4 line display
LiquidCrystal_I2C lcd (0x27,20,4);
/*-----( Declare Variables )-----*/
void setup() /*----( SETUP: RUNS ONCE )----*/
{
lcd.init(); // initialize the lcd
// Print our characters on the LCD
lcd.backlight(); //Backlight ON if under program control
lcd.setCursor(3,0); //Start at character 3 on line 0
lcd.print("Hello, world!");
lcd.setCursor(2,1);
lcd.print("From YourDuino");
lcd.setCursor(0,2);
lcd.print("20 by 4 Line Display");
lcd.setCursor(0,3);
lcd.print(http://YourDuino.com);
}/*--(end setup )---*/
void loop() /*----( LOOP: RUNS CONSTANTLY )----*/
{
// Do nothing
}/* --(end main loop )-- */
/* ( THE END ) */
Loads just fine...I even hooked up the SDA and SDL to pull up resistors as I once saw on this website:
http://www.spikenzielabs.com/SpikenzieLabs/I2C-SPI_LCD.html
But this is an older site.....I have a newer Arduino Uno and using 1.0.1 and theres nothing on my LCD (contrast Pot is good too)
I don't get it...do I need to set my I2C address to something else?
I am using this as a reference:
http://arduino-info.wikispaces.com/LCD-Blue-I2C
Thanks
My name is Aaron. I've been hitting my head up against the wall all day. So I have an Arduino Project thats hooked up to a 20 x 4 LCD that works just fine by connecting the 6 data lines and then programming it etc.....However, I have purchased an I2C serial interface board that uses the Two wire interface of TWI as well as VCC and Ground to operate the code from the arduino onto the LCD....
After I received the New LCD with the I2C I hooked up pins analog 4 from arduino Uno to the SDA on the I2C and analog 5 from arduino to SDL on I2C and loaded this code for testing from the website I bought it from:
/* YourDuino.com Example Software Sketch
20 character 4 line I2C Display
terry@yourduino.com */
/*-----( Import needed libraries )-----*/
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
/*-----( Declare Constants )-----*/
/*-----( Declare objects )-----*/
// set the LCD address to 0x27 for a 20 chars 4 line display
LiquidCrystal_I2C lcd (0x27,20,4);
/*-----( Declare Variables )-----*/
void setup() /*----( SETUP: RUNS ONCE )----*/
{
lcd.init(); // initialize the lcd
// Print our characters on the LCD
lcd.backlight(); //Backlight ON if under program control
lcd.setCursor(3,0); //Start at character 3 on line 0
lcd.print("Hello, world!");
lcd.setCursor(2,1);
lcd.print("From YourDuino");
lcd.setCursor(0,2);
lcd.print("20 by 4 Line Display");
lcd.setCursor(0,3);
lcd.print(http://YourDuino.com);
}/*--(end setup )---*/
void loop() /*----( LOOP: RUNS CONSTANTLY )----*/
{
// Do nothing
}/* --(end main loop )-- */
/* ( THE END ) */
Loads just fine...I even hooked up the SDA and SDL to pull up resistors as I once saw on this website:
http://www.spikenzielabs.com/SpikenzieLabs/I2C-SPI_LCD.html
But this is an older site.....I have a newer Arduino Uno and using 1.0.1 and theres nothing on my LCD (contrast Pot is good too)
I don't get it...do I need to set my I2C address to something else?
I am using this as a reference:
http://arduino-info.wikispaces.com/LCD-Blue-I2C
Thanks