Go Down

Topic: I2C Output Not Working ? (Read 870 times) previous topic - next topic

pasta1234

Hello All,

Happy New Years First off to everyone !!

I am trying to interface two new I2C 20x4 SainSmart to my Arduino Uno and i am having no success.
I have tried connecting the the SDA and SCL with and without pull up resistors (1k & 10k) and in both cases the I2C ID sketch says no I2C devices found and the screens show two horizontal lines.

Additionally, i have run the simple "Blink" sketch with a LED across Pins 4 & 5 to test the outputs and they do indeed work.

Any ideas on how to proceed ? ?

Thanks,
Pete


Nick Gammon

I can see two wires there. Have you connected Gnd and +5V as well?
http://www.gammon.com.au/electronics

NickPyner

#2
Jan 01, 2013, 05:23 am Last Edit: Jan 02, 2013, 05:30 am by NickPyner Reason: 1
It seems pretty clear from the picture that you have the +5v and gnd wires connected but some further checks might be in order.

You refer to pins 4 & 5, tested. Do you mean A4 & A5? These are the pins for the SDA and SCL but are called pins 18 & 19 in the code.

Are you sure you have the right library in installed? The display will not work with the standard LiquidCrystal library that comes with Arduino and, needless to say, the Arduino LCD examples don't work either. You probably need LiquidCrystal_I2C.h, which has its own examples included.



pasta1234

Thanks guys, i did actually have all 4 leads connected just to the wrong place on the Arduino !!

I used the Digital Lines instead of the Analog ones, its all working now :)

Thanks,
Pete

inandasram

Quote
http://arduino.cc/forum/index.php/topic,162699.0.html


Me too have this same problem,, but i have correct program which worked well but suddenly not working.....

pasta1234

Are you using Pull Up Resistors ?

Things connected properly at the right ports, double check ?

Pete

Go Up