This is a short demo of how an LCD display works – the advanced version without I2C module.

What will I learn?

You will learn how to communicate with an  LCD display.

Prerequisites

A Computer with a configured Arduino IDE tested and working. If you don’t know how to get the basic set up working, check out my guide for Getting started (1/5)

This instruction relies on the New Liquid Crystal library, so this must be installed before uploading the code to Arduino. You can download the library from here:

To install it, extract the library zip file (NewliquidCrystal_1.3.4.zip or later) to the library directory of where you installed the Arduino IDE. After this, you must restart all open Arduino IDE editors.

Now you can upload code to the Arduino utilizing the New Liquid Crystal library.

Important notes

  • Respect minus and plus, otherwise you may damage the components.
  • It’s important to double check the connections for this project. The LCD Display can be damaged.

What you need

  • Breadboard
  • Dupont wires & connection wires
  • CP2102
  • Arduino Pro Mini
  • 1602 LCD Display without I2C module
  • 2.2KOhm resistor
  • 10KOhm resistor

Connecting instructions

  • LCD Panel pin 1 → Arduino GND
  • LCD Panel pin 2 → Arduino VCC
  • LCD Panel pin 3 → 2.2KOhm resistor and then to GND
  • LCD Panel pin 4 → Arduino D12
  • LCD Panel pin 5 → Arduino GND
  • LCD Panel pin 6 → Arduino D11
  • LCD Panel pin 11 → Arduino D5
  • LCD Panel pin 12 → Arduino D4
  • LCD Panel pin 13 → Arduino D3
  • LCD Panel pin 14 → Arduino D2
  • LCD Panel pin 15 → 10KOhm resistor and then to Arduino VCC
  • LCD Panel pin 16 → Arduino GNC

 

Fritzing

LCD display without I2C_bb.png

 

Code

 

/**
* This is a short demo of how an LCD display works...
* Connecting instructions:
* - LCD Panel pin 1 → Arduino GND
* - LCD Panel pin 2 → Arduino VCC
* - LCD Panel pin 3 → 2.2KOhm resistor and then to GND
* - LCD Panel pin 4 → Arduino D12
* - LCD Panel pin 5 → Arduino GND
* - LCD Panel pin 6 → Arduino D11
* - LCD Panel pin 11 → Arduino D5
* - LCD Panel pin 12 → Arduino D4
* - LCD Panel pin 13 → Arduino D3
* - LCD Panel pin 14 → Arduino D2
* - LCD Panel pin 15 → 10KOhm resistor and then to Arduino VCC
* - LCD Panel pin 16 → Arduino GNC
*
* Author: Jakob Maaløe
* https://wackydeveloper.wordpress.com
*/
#include 

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);

// Print a message to the LCD.
lcd.print(" Hello from");
lcd.setCursor(0, 1);
lcd.print(" Danske Spil");
}

void loop() {

}

Next steps

Add an LCD Display to one of the other example projects.

Advertisements