DIYables LCD I2C 16x2 Blue Background for Arduino, ESP32, ESP8266, Raspberry Pi, 2 Pieces…
WHERE TO BUY
Shop now at Amazon.com |
DESCRIPTION
- LCD 16x2 Display: Features a clear 16-column by 2-row LCD display with a blue background and I2C interface, using only 4 wires for easy connectivity.
- Adjustable Contrast: Customize the display's contrast to your preference with a built-in potentiometer for optimal visibility.
- Programmable Backlight: The backlight can be conveniently turned on and off programmably, giving you control over the display's illumination.
- Universal Compatibility: Compatible with a wide range of microcontrollers, including Arduino, ESP32, ESP8266, Raspberry Pi, and any 5V or 3.3V microcontroller for versatile usage.
- Comprehensive Tutorials: Access detailed tutorials for Arduino and ESP32 to help you get started and make the most of your LCD 1602 display.
SPECIFICATION
- LCD with I2C interface (4 wires)
- LCD 16x2 (16 columns 2 rows ⇒ two lines, 16 characters per line)
- Adjustable contrast via a built-in potentiometer
- Backlight can be turned on/off programmably
- Works with Arduino, ESP32, ESP8266, Raspberry Pi
- Dimension: 78mm x 34mm x 13mm (L x W x H).
- Power supply: +5V
- I2C address: 0x27
INTERFACE
- VCC pin: the power supply for the LCD, connect this pin to VCC (5V).
- GND pin: connect this pin to GND (0V).
- SCL pin: I2C clock signal pin, connect this pin to SCL of microcontroller
- SDA pin: I2C data signal pin, connect this pin to SDA of microcontroller
TUTORIALS
Arduino Example Code
Arduino Example Code - backlight disabled
/*
* This code is created by DIYables.io
* This code is released in the public domain
* For more detail, visit https://diyables.io/products/lcd-i2c-16x2-blue-background
*/
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2); // I2C address 0x27, 16 column and 2 rows
void setup() {
lcd.init(); // initialize the lcd
//lcd.backlight();
lcd.setCursor(3, 0); // move cursor to (3, 0)
lcd.print("DIYables"); // print message at (3, 0)
lcd.setCursor(0, 1); // move cursor to (0, 1)
lcd.print("www.diyables.io"); // print message at (0, 1)
}
void loop() {
}
Arduino Example Code - backlight enabled
/*
* This code is created by DIYables.io
* This code is released in the public domain
* For more detail, visit https://diyables.io/products/lcd-i2c-16x2-blue-background
*/
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2); // I2C address 0x27, 16 column and 2 rows
void setup() {
lcd.init(); // initialize the lcd
lcd.backlight();
lcd.setCursor(3, 0); // move cursor to (3, 0)
lcd.print("DIYables"); // print message at (3, 0)
lcd.setCursor(0, 1); // move cursor to (0, 1)
lcd.print("www.diyables.io"); // print message at (0, 1)
}
void loop() {
}