Intro: I2C / IIC LCD Display | Convert a SPI LCD to the I2C LCD Display
using spi lcd display needs too many connections to do which is really hard to do so i found a module which can convert the i2c lcd to the spi lcd so let's get started.
Step 1: Get the I2C LCD Module and Other Parts
first of all you need to get the I2C module , LCD display and arduino You can get everything from the given affiliate links-
LCD Display - https://www.banggood.com/1Pc-1602-Character-LCD-Display-Module-Yellow-Backlight-For-Arduino-p-978155.html?p=LU070313923481201709
for india- https://www.amazon.in/gp/product/B00XT53RI0/ref=as_li_qf_asin_il_tl?ie=UTF8&tag=ele0f1-21&creative=24630&linkCode=as2&creativeASIN=B00XT53RI0&linkId=2709e8e6082144c744620e85c8d1fe57
Arduino Uno- https://www.banggood.com/UNO-R3-ATmega328P-Development-Board-For-Arduino-No-Cable-p-964163.html?p=LU070313923481201709
(for india) -
I2C module for LCD - https://www.banggood.com/IIC-I2C-TWI-SP-Serial-Interface-Module-Port-For-5V-Arduino-1602LCD-p-80365.html?p=LU070313923481201709
for india- https://www.amazon.in/gp/product/B071JRMRB8/ref=as_li_qf_asin_il_tl?ie=UTF8&tag=ele0f1-21&creative=24630&linkCode=as2&creativeASIN=B071JRMRB8&linkId=090f5b29fcb373a1c4fc1cb75273c893
Jumper wires - https://www.banggood.com/3-IN-1-120pcs-10cm-Male-To-Female-Female-To-Female-Male-To-Male-Jumper-Cable-Dupont-Wire-For-Arduino-p-1054670.html?p=LU070313923481201709
for india -
Digispark Attiny 85 Board - https://www.banggood.com/Digispark-Kickstarter-Micro-USB-Development-Board-For-ATTINY85-Arduino-p-1038088.html?p=LU070313923481201709
for india - https://www.amazon.in/gp/product/B00Z09R3YC/ref=as_li_qf_asin_il_tl?ie=UTF8&tag=ele0f1-21&creative=24630&linkCode=as2&creativeASIN=B00Z09R3YC&linkId=6c22922d8b688ac4b2497bc923f13764
Step 2: Plug the Module to the Display
so plug the module on the back of the display as shown in image and for more precise idea of how to do that please refer video.
Step 3: Install the Libraries
for the i2c lcd download the given library and paste it in libraries folder of arduino as shown in image
Step 4: Get the Address of I2c Display
So to get the i2c address of i2c display just connect the lcd to Arduino as given -
SDA. >. A4(sda)
SCL. >. A5(scl)
Vcc. >. 5V
Gnd. >. Gnd
Then upload the code i2c scanner to the arduino
then open the serial monitor and you'll find your i2c address on serial monitor as mine is 0x27
Step 5: Upload the Code
go to examples then under arduino liquid crystal i2c library you'll find hello world code and just change the i2c address with the address you got by i2c scanner and upload the code and hello world will be printed on the screen.
If having problem refer video.