LCD Screen + Arduino

by UnicornClockworks in Circuits > Arduino

4039 Views, 28 Favorites, 0 Comments

LCD Screen + Arduino

Slide01.jpg

Hello World!
This is my first Instructables and I thought I'd like to share my vast knowledge of the Arduino to all you makers of all skills and strengths!
Here, we will learn how to connect, control, and code the Liquid Crystal Display with any Arduino or microcontroler board (like NodeMCU, ESP8266, Beaglebone, etc). I'm demonstrate it on my Arduino, but I will also add notes on the steps in italics to show which parts are transferrable to any micro controller device you have at your disposal

Materials

Slide02.jpg

* Arduino or any other microcontroller board

* Wires

* Potentiometer

* Breadboard

Connections

Slide03.jpg
Slide04.jpg
Slide05.jpg
Slide06.jpg
Slide07.jpg
Slide08.jpg
Slide09.jpg
Slide10.jpg
Screen Shot 2017-08-14 at 11.07.30 PM.png

The connections are labeled in the picture and the wires corresponding to the images are noted below

1a

  • Connect the Brown wire (pin 16) to the GND pin on the Arduino
  • Connect the Red wire (pin 15) to the 3.3V VCC pin on the Arduino
  • Connect the Orange, Yellow, Green, Blue (pins 14-11) to pins 2 to 5 on the Arduino

2

  • Connect the White wire (pin 1 on the LCD) to the common ground (pin 16)
  • Connect the Grey wire (pin 2 on the LCD) to the common VCC source (pin 15)
  • Connect the Purple wire to the signal pin of the potentiometer (pin 2 on the potentiometer)

3

  • Connect the Purple wire (pin 1 on the potentiometer) to the common ground (pin 16)
  • Connect the Grey wire (pin 3 on the potentiometer) to the common VCC source (pin 15)

4

  • Connect the Yellow wire (pin 4 on the LCD) to pin 12 on the Arduino
  • Connect the Black wire (pin 5 on the LCD) to the common ground (pin 1 on the potentiometer or pin 16 on the LCD, either works)
  • Connect the Green wire (pin 6 on the LCD) to pin 11 on the Arduino

Programming

Screen Shot 2017-08-14 at 11.23.28 PM.png
// built in arduino library
#include 
<liquidcrystal.h></liquidcrystal.h>
LiquidCrystal lcd(12,11,5,4,3,2);
void setup()
{
  lcd.begin(16, 2);
  // clear old screen data
  lcd.clear();
  // text to be dispalyed on the screen
  lcd.print("Unicorn");
}
void loop()
{
  
  // (column 0) of the second line (line 1):
  lcd.setCursor(0,1);
  lcd.print ("Clockworks");
  
  // (column 0) of the second line (line 12):
  lcd.setCursor (12, 1);
  lcd.print("...");
}

You're Done

Slide11.jpg

Try making it yourself. Let me know how you like the guide and thanks for reading!

Unicorn Clockworks Out!