This wiki has been archived and made read-only.
For up-to-date information about TkkrLab and it's projects please visit our main website at tkkrlab.nl.

Arduino LCD 1602 11C

From

Jump to: navigation, search

LCD1602 IC V1

LCD module controlled via I2C. You can create custom chars.

T313S06

Dealextream

Software

You need a specific LiquidCrystal_I2C2004V1 library for this module, you can find this here

Schematic

  • Arduino +5V --> Module VCC
  • Arduino GND --> Module GND
  • Arduino Analoog 4 --> Module SDA
  • Arduino Analoog 5 --> Module SCL

Example

//LCD1602 IC V1  - LiquidCrystal_I2C2004V1
//Compatible with the Arduino IDE 1.0
//YWROBOT Library version:1.1
//Example modified by TkkrLab
#include <Wire.h> 
#include <LiquidCrystal_I2C.h>
 
LiquidCrystal_I2C lcd(0x27,16,2);  // set the LCD address to 0x27 for a 16 chars and 2 line display
 
void setup()
{
  lcd.init();                      // initialize the lcd 
  lcd.init();
  // Print a message to the LCD.
  lcd.backlight();
  lcd.setCursor(1,0);
  lcd.print("Hello TkkrLab");
  lcd.setCursor(0,1);
  lcd.print("Workshop Arduino!");
}
 
void loop()
{
}