Arduino – I2C 20 X 4 LCD Display - Eli The Computer Guy

I2C Control Boards allow you to connect an LCD Display to your Arduino using only 4 wires.

Note: I2C is an Addressable Communication Protocol. 0x27 should be the default address of the display. If this does not work you will have to find the address by running a sketch designed to find I2C address on an Arduino: https://playground.arduino.cc/Main/I2cScanner/

Links:

  • New Liquid Crystal Library – https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home
  • Liquid Crystal I2C Library – https://www.arduinolibraries.info/libraries/liquid-crystal-i2-c

Functional Parts in the Project:

  • Arduino Uno – https://store.arduino.cc/usa/arduino-uno-rev3
  • 20 x 4 I2C LCD Screen – https://amzn.to/2JVuKzn
  • 560 Piece Jumper Wire Kit – https://amzn.to/2MsCLjL
#include <Wire.h> #include <LCD.h> #include <LiquidCrystal_I2C.h> LiquidCrystal_I2C lcd(0x27,2,1,0,4,5,6,7); void setup() { lcd.begin(20,4); lcd.setBacklightPin(3,POSITIVE); lcd.setBacklight(HIGH); lcd.setCursor(0,0); lcd.print("Hello, World!"); lcd.setCursor(0,1); lcd.print("This is:"); lcd.setCursor(0,2); lcd.print("An I2C Display"); lcd.setCursor(4,3); lcd.print("Kinda Cool..."); } void loop() { }
  • Arduino
  • I2C
Previous

Arduino – Send Email Notifications with PHP Mail Function

Next

Arduino – Find I2C Addresses (I2C Scanner)

Related Articles

Arduino

Arduino – Soil Moisture Sensor

Eli the Computer Guy Arduino, Arduino - Sensor Basics

Analog Soil Moisture Sensors allow you to determine how dry soil is and then trigger an event such an LED turning , or a water pump being turned on. Note: Give the sensor a few […]

Arduino

Temperature LED Alert and Fan Activation with Arduino

Eli the Computer Guy Arduino, Arduino - Simple Projects

This project determines the temperature using an Analog Temperature Sensor and then turns on LED warning lights, and exhaust fans. Functional Parts in the Project: Arduino Uno – https://store.arduino.cc/usa/arduino-uno-rev3 L298N Motor Module – https://amzn.to/2Xa9uiR 200mm 12v Fan […]

Arduino

Arduino – PIR Sensor (HC-SR501)

Eli the Computer Guy Arduino, Arduino - Sensor Basics

PIR Sensors (Passive Infrared) are the standard sensors used for motion detection. They offer a wide field of view and are easy to configure, but offer only HIGH/LOW output and are not overly accurate. Functional […]

Be the first to comment

Leave a Reply Cancel reply

You must be logged in to post a comment.

DONATE

If you want to tip a few dollars for the education videos.

Search for:

Tag » Arduino Lcd I2c Download