If you are like me and backed the Digispark tiny Arduino compatible dev board and got the LCD kit, you have a nice 16 char, 2 lines i2c lcd display which works fine with a digispark. But when trying to use the display with my Arduino Uno I ran in several problems. But to get it working is really trivial if you know how to do it.

The default LCD code in the Arduino samples doesn’t work. You need another library which can be found here under Documents: http://www.dfrobot.com/image/data/TOY0046/LiquidCrystal_I2Cv1-1.rar.

If you’re running linux like me, you have to delete the LiquidCrystal folder in /usr/share/arduino/libraries and put the content in a folder there, maybe correct the access rights to the folder and you’re ready to go!

Connect the SCL pin to analog pin 5 and the SDA one to analog 4 if you’re using an Uno model one, the later versions have dedicated SCL and SDA pins. Connect ground and VCC (5V) accordingly and have fun with your display and arduino 🙂

Kategorien: Allgemein

2 Kommentare

Simmi · 21. August 2013 um 14:52

Hi.
I also backed Digispark and I want to use the LCD that I got from them with my Arduino Uno board.
I have tried doing as you say but it only displays bars on the top of the LCD and empty on the lower part.
Can you post a more detailed explenation of how to get this working. Maybe with example code.
Thanks

    Benni · 21. August 2013 um 16:18

    Use the lcd.setCursor() function:
    for the first line: lcd.setCursor(0, 0);
    for the second: lcd.setCursor(0, 1);

    Hope that helps

Kommentare sind geschlossen.