So, when hooking it all up I get rubbish. I use the correct library (I think), the LiquidCrystal_I2C and I have deleted the old LiquidCrystal library. When uploading the HelloWorld_I2C example, the backlight of the LCD keeps blinking and I can see some sort of stuff appearing on the display, but no readable text.
hey! I encountered this problem a couple of days ago t. So, i hooked it all up according to this:
gnd - gnd
vcc -5v
sda- A4
sca - A5
After, I uploaded this code = http://arduino-info.wikispaces.com/LCD-Blue-I2C#v1
see if it works, if not give me a message!
well, I have the same LCD, only 4line, and the same adapter for the lcd, and it worked fine for me, so they must be built in? What do you think bud?
I just uploaded a new library that came with the seller, and plugged it in, as the link above does (when you scroll up you see it)
and it worked
kind regards,
-Goldfile
Seems like I got it working. No idea what made it work, but I think it could have something to do with the wrong library... I used this at first: https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads/LiquidCrystal_V1.2.1.zip and it produced a lot of rubbish. Not solid blocks, but something that looked like sprites of some kind. But no text as the sketch indicates.
Then I read up on the descriptor thing, and replaced something in the sketch code for the HelloWorld_I2C :
I replaced this:LiquidCrystal_I2C lcd(0x27);
with this: LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);
and it worked fine. But then I went back to just using this LiquidCrystal_I2C lcd(0x27); and it still worked...
What I also did before this, was to download the library again and install it... So not really sure what made it work ;).
But it works, now over to the next couple of steps for my many projects ;).
Thanks for all the good help :D.
Update: I played around a bit more, and I have to use this: LiquidCrystal_I2C lcd(lcdAddr, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); to make it work.
I guess some code was still residing in the arduino, since I got this when trying to upload the new sketch: avrdude: stk500_getsync(): not in sync: resp=0x00
luddiluddludde,
You may have to dig deeper and figure out what is going on.
I can say with 100% certainty that if you are really using fm's library
that if it worked with this constructor
fm created the shortened consructor to support the i2c LCD extra i/o board from
his ElectroFun company.
It is short hand for this constructor:
LiquidCrystal_I2C lcd(i2cADDR, 6,5,4,0,1,2,3);
Not only is the pin wiring different but there is no backlight control specified.
There is no way the hardware you have would work with both of those two consructors.
You have something else going on.
It is almost a certainty that the shortened constructor does not work
on your board as I have not seen any other i2c lcd backpack that uses the same
wiring as the ElectroFun XtraIO board.
Make sure you don't have multiple i2c lcd libraries installed.