License

Recommend Projects

IIC LCD1602 Driver Display

4 years ago 3242
  • Description
  • Documents
  • BOM
  • Attachments
  • Members
  • Comments

Description

Arduino drives I2C LCD Controller based on a LCD1602 module

LCD Software Library Information

ALL the displays will use the IMPORTANT Library written by Francisco Malpartida.You can download the Library:

the great Library

you must have the library installed correctly.

And Check the small backpack interface board on the back. These small boards on the back interface a 2wire IIC bus (unless Ground and +5V power) to the many pins on the LCD display itself. This allows running the display from only 2 signal pins on MEGA 2560.

These I2C interface displays have a built-in address. If you try to run the show and do not react or not show any code you are using the wrong address. You can check the address on the display when you run the Arduino address scanner in your IIC.

Scanner CODE:

// I2C Scanner
// Written by Nick Gammon
// Date: 20th April 2011

#include 

void setup() {
  Serial.begin (115200);

  // Leonardo: wait for serial port to connect
  while (!Serial) 
    {
    }

  Serial.println ();
  Serial.println ("I2C scanner. Scanning ...");
  byte count = 0;

  Wire.begin();
  for (byte i = 8; i < 120; i++)
  {
    Wire.beginTransmission (i);
    if (Wire.endTransmission () == 0)
      {
      Serial.print ("Found address: ");
      Serial.print (i, DEC);
      Serial.print (" (0x");
      Serial.print (i, HEX);
      Serial.println (")");
      count++;
      delay (1); 
      } // end of good response
  } // end of for loop
  Serial.println ("Done.");
  Serial.print ("Found ");
  Serial.print (count, DEC);
  Serial.println (" device(s).");
}  // end of setup

void loop() {}

on the back

To directly use this type of liquid crystal Arduino, it takes 6 pins: RS, EN, D7, D6, D5, D4, and LCD. If you are more than a simple project, you may be out of the use of the ordinary LCD shield pin. With this I2C interface LCD module, you only need 2 lines (I2C) to display information. If you already have I2C devices in your project, this LCD module is actually using no more pins.

Top to bottom: GND - GND VCC - +5V SDA - communication Pin 20 SCL - communication pin 21

Example Software code for 4 line 20 character Displays:


#include  
#include 

LiquidCrystal_I2C lcd(0x3F,16,2);  

void setup()
{
  lcd.init();                    

  // Print a message to the LCD.
  lcd.backlight();
  lcd.setCursor(0,0);
  lcd.print("Hello, body!");
  delay(1000);
  lcd.setCursor(0,1);
  lcd.print("HI!EasyEDA.com");
  delay(8000); 
}

void loop()
{

}

Documents

IIC LCD1602 Arduino

BOM

ID Name Designator Footprint Quantity
1 LCD1602 X1 LCD1602 1
2 PCF8574ADGVR U1 TSSOP-20 1
3 1k R1,R2,R3 R3 3
4 Arduino MEGA 2560 U2 DIP 1
5 100k R4 TRIM_POT_PTH 1
6 0.1u C1 C1 1

Attachments

None

Members

Success
The owner does not allow comments in this project now

Comments (1)

Arun karan Reply

Thanks for the given this post so look find wifi password windows 10 all function here and seen the update for install latest version.

goToTop
你现在访问的是EasyEDA海外版,使用建立访问速度更快的国内版 https://lceda.cn(需要重新注册)
如果需要转移工程请在个人中心 - 工程 - 工程高级设置 - 下载工程,下载后在https://lceda.cn/editor 打开保存即可。
有问题联系QQ 3001956291 不再提醒
svg-battery svg-battery-wifi svg-books svg-more svg-paste svg-pencil svg-plant svg-ruler svg-share svg-user svg-logo-cn svg-double-arrow
We use cookies to offer you a better experience. Detailed information on the use of cookies on this website is provided in our Privacy Policy. By using this site, you consent to the use of our cookies.