I2C LCD 16×2 with Arduino simulation in proteus

I2C LCD 16x2 with Arduino simulation in proteus

In this article we will learn how to interface arduino with I2C & LCD in proteus.
In the last post we will learn how to interface arduino with RFID simulation & LCD in proteus. You can visit our website,
I hope you appreciate my work, let’s discuss about today’s project.

 

Components…

  1. Arduino nano
  2. Virtual terminal
  3. I2C
  4. LCD 16×2
  5. Jumper wires

Circuit Diagram…

I2C LCD 16x2 with Arduino simulation in proteus
I2C LCD 16×2 with Arduino simulation in proteus

Construction…

  • Connect the TX point of virtual terminal with the point RX of arduino nano
  • Connect the RX point of virtual terminal with the point TX of arduino nano
  • Connect A4 pin of arduino nano with the SDA pin of I2C
  • Connect the A5 pin of arduino nano with the SCL pin of I2C
  • Connect A0,A1,A2 points of I2C with the GND
  • Connect P0 pin of I2C with the RS point of LCD display
  • Connect P1 pin of I2C with the RW point of LCD display
  • Connect P2 pin of I2C with the E point of LCD display
  • Connect P3 pin of I2C with the D3 point of LCD display
  • Connect the P4 pin of I2C with the D4 point of LCD display
  • Connect the P5 pin of I2C with the D5 point of LCD display
  • Connect the P6 pin of I2C with the D6 point of LCD display
  • Connect the P7 pin of I2C with the D7 point of LCD display

Working…

Using an Arduino with I2C and an LCD is a common project that allows you to display information on the LCD screen with minimal wiring and efficient communication.

Applications…

  1. Temperature and Humidity Monitoring
  2. Weather Station
  3. Digital Thermometer
  4. Clock and Calendar

Advantages…

  1. Simplicity
  2. Cost-Effective
  3. Scalability
  4. Reduced Pin Usage

Code Image…

I2C LCD 16x2 with Arduino Code Image
I2C LCD 16×2 with Arduino Code Image
I2C LCD 16x2 with Arduino Code Image
I2C LCD 16×2 with Arduino Code Image
I2C LCD 16x2 with Arduino Code Image
I2C LCD 16×2 with Arduino Code Image

Program code…

[dt_code]

#include <Wire.h>

#include <LiquidCrystal_I2C.h>

 

// Set the LCD address to 0x27 for a 16 chars and 2 line display

LiquidCrystal_I2C lcd(0x20, 16, 2);

 

void setup()

{

// initialize the LCD

lcd.begin();

 

// Turn on the blacklight and print a message.

lcd.backlight();

lcd.print(“Hello, world!”);

delay(1500);

lcd.clear();

}

 

void loop()

{

lcd.setCursor(0, 0);

lcd.print(“Projectiot123.co”);

lcd.setCursor(0, 1);

lcd.print(“visit”);

delay(500);

lcd.setCursor(0, 1);

lcd.print(”      “);

delay(500);

// Do nothing here…

}

[/dt_code]