Normally connecting a LCD 16x2 to arduino we require around 14 pins (using in 4 bit mode which is by default in arduino example sketch)
Connecting LCD 16x2 in this way may use up many pins of Arduino Uno and very less pins will be left for us to interface another interfacing devices
So to save us some pins on the Arduino we use a I2C module for LCD 16x2. As name says this module uses I2C Protocol, this ,odule takes data in I2C format and converts it into LCD compatible data i.e Parallel data.
This module just requires 4 pins from arduino. Those are
Connecting LCD 16x2 in this way may use up many pins of Arduino Uno and very less pins will be left for us to interface another interfacing devices
So to save us some pins on the Arduino we use a I2C module for LCD 16x2. As name says this module uses I2C Protocol, this ,odule takes data in I2C format and converts it into LCD compatible data i.e Parallel data.
![]() |
LCD 16x2 I2C module for Arduino |
This module just requires 4 pins from arduino. Those are
- VCC
- GND
- SDA (Serial data)
- SCL (Serial Clock)
Connection Diagram
Code
To use I2C module for LCD 16x2 we need to download the library.
Arduino I2C library Download link:
https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library
After downloading this library zip file do the following steps:
- Extract the Zip file.
- Copy the Extracted file to the arduino library folder which is located in C:\Program Files (x86)\Arduino\libraries.
- Open the Arduino IDE.
- Go to Sketch and then click on include library you will see list of library.
- Click on Arduino-LiquidCrystal-I2C-library-master to include the library.
- Then go to Files > Examples > Arduino-LiquidCrystal-I2C-library-master and select any example you want to execute.
No comments:
Post a Comment