How to control LCD Display with ATtiny85

Required Hardware

  • ATtiny85
  • LCD Display with I2C Connection
This is a useful example for controlling a LCD Display with ATtiny85. To connect them you need a LCD Display with I2C interface connection.

Wiring Instructions

To wire your Lcd I2C Display to your ATtiny85, connect the following pins:

  • ATtiny85 Pin1 –>  NC
  • ATtiny85 Pin2 –>  NC
  • ATtiny85 Pin3 –>  NC
  • ATtiny85 Pin4 –> Ground
  • ATtiny85 Pin5 –> LCD Sda
  • ATtiny85 Pin6 –>  NC
  • ATtiny85 Pin7 –> LCD Scl
  • ATtiny85 Pin8 –> +5V

Recommended Software

Instructions and Code

Με ετικέτα: ,
7 comments on “How to control LCD Display with ATtiny85
  1. Eivind says:

    This isn’t working for me. First of all, the LCD backlight won’t come on so I have no idea if the rest is working. Using Adafruit’s LCD i2c backpack

    • Joseph Chrzempiec says:

      Hello did you check the i2c addressing because it could be different i notice on the 16×2 lcd with the i2c backpack they could be different addressing? I just recentlty found this site today.

  2. Joseph Chrzempiec says:

    Hello i wonder if this would work for the 16×4 lcd as well with the i2c bakcpack on it like the 16×2 i only have the 16×4?

    • ed says:

      Should work, just change the statement
      LiquidCrystal_I2C lcd(0x20,16,2);
      LiquidCrystal_I2C lcd(0x20,16,4);

  3. janusz says:


    This code is not compile.

    In file included from sketch_jan06a.ino:2:
    C:\Users\jp\Desktop\arduino\arduino-1.0.5\libraries\LiquidCrystal_I2C_Library/LiquidCrystal_I2C.h:82: error: conflicting return type specified for ‘virtual size_t LiquidCrystal_I2C::write(uint8_t)’
    C:\Users\jp\Desktop\arduino\arduino-1.0.5\hardware\tiny\cores\tiny/Print.h:71: error: overriding ‘virtual void Print::write(uint8_t)’

    Why ?

  4. I tried it on my system. I am using readymade LCD i2c module and checked its address also. Its showing 0x3F. But it is not working.

  5. Ehsan says:

    Does anyone know the exact library and code for ATtiny85 to display practically something on I2C LCD (0x3F). The LCD and I2C adapter are working when programmed by Arduino UNO.
    I’ve tried all available libraries for ATtiny85, it is loaded without any errors but nothing is displayed on LCD (I used 4.7k pullup resistors as well). Please guide.

Leave a Reply

Your email address will not be published. Required fields are marked *