Pages: [1]   Go Down
Author Topic: I2C Output Not Working ?  (Read 813 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 21
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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



* 20121231_181632.jpg (93.21 KB, 640x480 - viewed 32 times.)
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 474
Posts: 18696
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I can see two wires there. Have you connected Gnd and +5V as well?
Logged

Dee Why NSW
Offline Offline
Full Member
***
Karma: 5
Posts: 206
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.


« Last Edit: January 01, 2013, 11:30:39 pm by NickPyner » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 21
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley

Thanks,
Pete
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote


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

Offline Offline
Newbie
*
Karma: 0
Posts: 21
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Are you using Pull Up Resistors ?

Things connected properly at the right ports, double check ?

Pete
Logged

Pages: [1]   Go Up
Jump to: