Show Posts
Pages: 1 ... 7 8 [9]
121  Using Arduino / Displays / Re: SainSmart 20 x 4 LCD wanting to use I2C from Arduino Uno on: August 31, 2012, 12:30:46 pm
Downloaded......installed in place of old library......still doesn't work.....The address my I2C is communicating on is 0x3F.

I upload the code and the LCD just turns off its backlight and flashes from time to time.

Does anyone know some GOOD -verified working test code for the LCD just to say ANYTHING using an I2C connection?
122  Using Arduino / Displays / Re: SainSmart 20 x 4 LCD wanting to use I2C from Arduino Uno on: August 31, 2012, 11:15:51 am
Ok I found the serial monitor thing....I have an I2C device at 0x3F  which is cool now I'm getting somewhere...

But I upload my simple code here:   and the LCD backlight just blinks...no characters still....what am I missing??

#include <Wire.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x3F,20,4);

void setup()
{
 

lcd.init();
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("Hello");
lcd.setCursor(0, 1);
lcd.print("World ");

}


void loop()
{

}
123  Using Arduino / Displays / Re: SainSmart 20 x 4 LCD wanting to use I2C from Arduino Uno on: August 31, 2012, 10:58:02 am
This is a dumb question, I know...but how do I "open the serial monitor"  I uploaded the code for the I2C scanner and it compiled fine...but now what?

I did try the new liquid crystal library but which version are you referring to? There are like 10 downloads on that bitbucket page.....

so confusing....and is this for 1.0 or 1.0.1?

I saw some posts of some sainsmarts getting to work, but dammit I want mine to
124  Using Arduino / Displays / Re: SainSmart 20 x 4 LCD wanting to use I2C from Arduino Uno on: August 31, 2012, 10:21:19 am
can anybody help me please?  has anyone ever built an arduino I2C lcd project
125  Using Arduino / Displays / Re: SainSmart 20 x 4 LCD wanting to use I2C from Arduino Uno on: August 31, 2012, 09:49:19 am
sainsmart LCD    HD44780   with the I2C  board on back......

wire library is needed for I2C but I was wondering myself what wire.begin   would do.....
126  Using Arduino / Displays / Re: HOW many serial 20X04 lcd work on arduino mega 2560 on: August 31, 2012, 09:35:58 am
I'm in the same boat man...read my 20 x 4 LCD post using the Uno......

I'm not familiar with the atmega 2560, just the Uno....but are you getting any type of any display on the LCD...not just the white pixels?
127  Using Arduino / Displays / Re: SainSmart 20 x 4 LCD wanting to use I2C from Arduino Uno on: August 31, 2012, 09:34:20 am
Scope yes.....I did try the pullups with 5K's  and it still didn't work....I just want the LCD to display something.....I don't want my code written for me....am I not using the correct Libraries? I don't know....

simply..SDA and SDL are hooked up from arduino Uno to the I2C interface board behind the LCD...power and gnd are good...

is there any libraries I need beside LiquidCrystal_I2C and wire...

???????

How do I know which address to use as well? I have seen a lot of 0x27 stuff

I was using the LiquidCrystal_I2C lcd( 0x27, 20, 4);

to initiate the LCD...i read how someone wrote you have to also code wire.begin    but that just shows an error.

Damn it man
128  Using Arduino / Displays / Re: problem interfacing LCD using I2C bus (Solved :) ) on: August 31, 2012, 09:20:24 am
I don't understand the Bit bucket website...I have been there and don't get what you're trying to point to....I am having the same deal ...why won't my LCD function using I2C...
129  Using Arduino / Displays / SainSmart 20 x 4 LCD wanting to use I2C from Arduino Uno on: August 31, 2012, 09:11:26 am
Hello all,

I have been using arduino for awhile, but this is my first post in the forums. I have built a project that is working fine using the 6 data pins that I declare in my code:


LiquidCrystal lcd(7, 8, 9, 10, 11, 12);

but my senior partners and I in my class would like to imply more use of the Digital Pin outs especially the SPI pin outs, so I have decided to try the I2C route. Now I have connected Pin analog 4 (SDA ) and analog 5 (SDL) to the resepective Two wire interface for the board on the back of the 20 x 4 LCD as well as VCC and GND.

All the test code provided online doesn't work, I have arduino 1.0  and arduino 1.0.1 and it is kicking my @$$ on trying to get some readout on the LCD at all...I can get it to load using this code:
Code:
#include <Wire.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27 20,4); //set the LCD address to 0x27

void setup()
{
lcd.init();
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("b2cqshop");
lcd.setCursor(0, 1);
lcd.print("Voltage: ");
lcd.setCursor(13, 1);
lcd.print("V");
}
void loop()
{
int val;
float temp;
val=analogRead(0);
temp=val/4.092;
val=(int)temp;//
lcd.setCursor(9, 1);
lcd.print(0x30+val/100);
lcd.print(0x30+(val%100)/10);
lcd.print('.');
lcd.print(0x30+val%10);
delay(100);
}


but the LCD just doesn't do anything......I know all about the ACK bit for the 7 / 8 bit transfer using I2C and the wire library needs to be included which it is.....

IS THERE ANYONE OUT THERE THAT HAS DONE a simple Arduino Uno to I2C LCD  that could step me through some simple basics to get any readout on the 20 x 4 LCD...direct me to a proper library ...something....

the 4 wire harness I have is fine as well (Ohmed it out..) ...Pot for contrast is good too....

Please Please help

Aaron

Moderator edit: Code tags added.
Pages: 1 ... 7 8 [9]