How To Use IIC/I2C Serial Interface Module For 1602 LCD Display

This tutorial demonstrates how to use our FC-113 IIC/I2C Serial Interface Adapter Module For 1602 LCD Display.  These serial interface modules simplifies connecting an Arduino to a 1602 Liquid Crystal display using only 4 wires.  This module uses the PCF8574T IC chip.

IIC/I2C Serial Interface Adapter Module For 1602 LCD Display tutorial

What you’ll need:

 

Preparation

You’ll have to remove the LiquidCrystal library that is included with Arduino.  It should be in your Arduino install folder, ie. C:\Program Files(x86)\Arduino\libraries\ .  I recommend creating a new zip file of the existing LiquidCrystal library, then delete the LiquidCrystal library.  You can then copy the newly downloaded LiquidCrystal library to this directory.  If you already have the Arduino software open, close it and re-launch it so the changes will be loaded.

 

Connect the I2C Module to 1602 Display

There’s essentially two ways to connect these:

  1. Solder header pins to your 1602 display and use a breadboard (as I’ve shown in the first photo).  Make sure you connect the pins correctly.
  2. Solder the I2C module directly to the 1602 display.  As before, make SURE you connect the pins on the module to the correct connections on the display.  It’s quite simple and goes only one way, but I suppose one *could* still solder it backwards even though it looks completely wrong.

 

Connect the I2C Module to the Arduino

This is really simple and here are the connections:

SCL = A5
SDA = A4
VCC = 5V+
GND = GND

IIC/I2C Serial Interface Adapter Module For 1602 LCD Display tutorial

IIC/I2C Serial Interface Adapter Module For 1602 LCD Display tutorial

 

Load the Arduino Sketch

I’ve created a simple sketch to get you started.  You can copy the code from this github gist:

That’s it!

It should work just fine once you upload it to your Arduino.  If the display doesn’t look quite right, adjust the trimmer potentiometer (blue square thingy on the module) to correct the contrast.  One neat feature with this module is you can turn the backlight off, such as after a certain amount of time, etc.  I’ve noted how to do this in the code, but the rest is up to you.

13 thoughts on “How To Use IIC/I2C Serial Interface Module For 1602 LCD Display

  • May 22, 2015 at 10:52 PM
    Permalink

    Just wanted to say thanks. I purchased the FC-113 I2C Module from eBay and thought for sure that ‘pin 1′ would of been in the first position with the very obvious lone ‘square’ around it. ….WRONG lol
    After spending an hour or so with fail after fail using different code blocks from various places, I decided I better start
    searching the net to see if just maybe ‘pin 1′ was not marked as such, and I might have it backwards.
    It was your above post that convinced me to grab the solder sucker(yes I had actually soldered it completely), and undo what I had done.
    After the de-soldering, there was enough leftover solder on the pins to where it allowed me to just snugly fit the module back on the LCD and try the above code you provided.

    BINGO!! ;-)

    Thanks again for the post.

    Reply
  • October 17, 2015 at 4:41 PM
    Permalink

    i cant get the screen to light at all

    Reply
    • October 17, 2015 at 8:44 PM
      Permalink

      Hey Kelvin,
      Without more information, I’m sorry that I cannot be of more help. If you’ve connected everything correctly, then it should light up. Make sure the jumper is on the two pins as shown. If you still cannot get it to work, then please contact us with your order number and we’ll get it replaced if it is indeed defective.

      Reply
  • October 18, 2015 at 3:11 PM
    Permalink

    there is voltage going to the display but its polirity is wrong ie pos is neg and vice versa, i connected it on breadboard as per your diagram so cant be wrong

    Reply
    • October 18, 2015 at 7:20 PM
      Permalink

      Hey Kelvin,
      As I mentioned before, we stand behind the products we sell, so please contact us by visiting our website, then going to the “Contact Us” section and provide us with your order information and we’ll arrange a return so we can send you a replacement item. I’ve tested another unit from our stock and it works fine, so we can get it corrected for you.

      Reply
  • October 24, 2015 at 8:14 AM
    Permalink

    Hey Kelvin, the Link for the Library is gone and I can’t find it anywhere, can you give send me the direct dowload to the library?

    Reply
  • October 26, 2015 at 4:20 PM
    Permalink

    Is there a datasheet for this module?

    Reply
    • October 26, 2015 at 5:06 PM
      Permalink

      Hi Joe,
      There isn’t a datasheet for the module itself, but it is based on the PCF8574 IC, which you can find the datasheet for that at http://wp.me/a4bB0k-4w. That should have all of the info you need.

      Reply
  • December 13, 2015 at 1:12 PM
    Permalink

    what is the jumper used for ?

    Reply
    • December 13, 2015 at 3:21 PM
      Permalink

      The jumper on the module is for the backlight. If the jumper is removed, then the backlight will not light. This can be used to turn the backlight on/off using a switch.

      Reply
  • January 10, 2016 at 7:08 AM
    Permalink

    Thank you for this nice and simple tutorial. helped me getting started with i2c lcd.

    Reply
  • January 25, 2016 at 9:59 AM
    Permalink

    Hello,

    I bought one through ebay and I have the same I2C as you, but the LCD is a four row LCD. unfortunately I have always errors when I compile.
    Can you just let me know if this is supposed to work with an arduino DUE?

    Gilles

    Reply
    • January 25, 2016 at 4:30 PM
      Permalink

      These I2C modules will work fine with 4-row displays. The error in compiling is an error with your code, not the module itself. As far as the Arduino DUE goes, it should work fine. You should try contacting the seller for support if you continue having problems.

      Reply

Leave a Reply to d Cancel reply