Recently I bought a I2C backpack (sainsmart) for a 20x4 LCD. I've been having trouble getting it to work and have spent this evening troubleshooting, downloading the new libraries from f malpartida. Just a minute ago I decided to check my voltages on my I2C pins. I am getting 2.6V on my SCL and A5 pin, and 4.6V on my SDA and A4 pin. Uno R3. I tested the I2C pins next to my AREF pin as well and got the same result. Is my board toast? Is this not the reason that I can't get my I2C LCD to work? I'm only about 4 months in with arduinos and this is my original board. Did I just wear it out? (I had an analog input button pad on A5 for the last few months) Can I fix it?
lcd.setBacklightPin(BACKLIGHT_PIN,POSITIVE); //init the backlight //lcd.setBacklight(LOW);
}
void loop()
{
demoDisplay();
demoDisplay2();
lcd.setBacklight(LOW); // Backlight off
lcd.home (); // go home
lcd.print("ABCDEFGHIJKLMNOPQRST");
lcd.setCursor ( 0, 1 ); // go to the next line
lcd.print("UVWXYZ 0123456789 ");
lcd.setCursor ( 0, 2 ); // go to the next line
lcd.print("abcdefghijklmnopqrst");
lcd.setCursor ( 0, 3 ); // go to the next line
lcd.print("uvwxyz <>!?@#$%&*() ");
lcd.setBacklight(HIGH); // Backlight on //lcd.on(); // Switch fully on the LCD (backlight and LCD)
delay(3000);
These quotations take some getting used to. When I ran the I2C scanner, the board appeared to freeze. The sketch never completed and I never got past "Scanning..." on the serial display. I do not have pull up resistors installed. I assumed(probably wrongly) that they were internal on the I2C backpack.
Yea, I appologize. I had it set up in my control enclosure when you asked for the pic so I just ripped it out quick. And at that time the unit was powered down. The red LED imprinted on the backpack does come on with the LED background blue light though. It is there for power in and not the LCD information. I believe it is wired correctly because when I measure voltage at the SCL pin on the backpack I am still reading 2.6-2.8V.