Arduino Nano: Directly Connected 2 X 16 LCD Display With Visuino

by BoianM in Circuits > Arduino

121204 Views, 137 Favorites, 0 Comments

Arduino Nano: Directly Connected 2 X 16 LCD Display With Visuino

568b18a8937ddbc6e3000550.jpeg

Character LCD Displays are a very commonly used for Arduino projects, to display small amounts of textual information. The most common types are the basic directly connected displays, and the ones with I2C adapter. I already posted Instructable on how to use the I2C version. I also promised that I will post Instructable on how to directly connect the LCD Display.

In this Instructable, I will show you how easy it is to connect LCD Display directly to Arduino Nano without the use of the I2C adapter, and program it with Visuino to display whatever is typed in a Serial Terminal.

Please note that the annotation on some of the pictures in this Instructable will work correctly on some browsers only after you click on the image to expand it.

Please make sure you click on the image to see the annotation showing the correct spot on the image!

Components

569c13ab2e7fb6bc0d0006ba.jpeg
  1. One Arduino compatible board (I use Arduino Nano, because I have one, but any other will be just fine)
  2. One 16x2 LCD Display
  3. One 10K Potentiometer
  4. One 220 ohm Resistor
  5. 8 Male-Female jumper wires
  6. 7 short Male-Male jumper wires

Connect VSS, VDD, RS, RW and E Pins of the LCD

DSC02604.JPG
DSC02598.JPG
DSC02594.JPG
DSC02589.JPG
  1. Place the LCD on the Breadboard
  2. Connect with jumper wire the "VSS" pin of the LCD to Ground of the power bus of the Breadboard(Black wire)(Picture 1)
  3. Connect with jumper wire the "VDD" pin of the LCD to Power of the power bus of the Breadboard(Red wire)(Picture 1)
  4. Connect the Male end of one of the Male-Female wires(White wire) to the "RS" pin of the LCD (Picture 2)
  5. Connect with jumper wire the "RW" pin of the LCD to Ground of the power bus of the Breadboard (Black wire)(Picture 3)
  6. Connect the Male end of one of the Male-Female (Brown wire) wires to the "E" pin of the LCD (Picture 4)

Connect D4, D5, D6, D7, a and K Pins of the LCD

DSC02584.JPG
DSC02579.JPG
DSC02574.JPG
  1. Connect the male ends of 4 Male-Female jumper wires to the D4(Yellow wire), D5(Green wire), D6(Blue wire), and D7(Purple wire) pins of the LCD (Picture 1)
  2. Connect the 220 ohm resistor between the "A" pin of the LCD and the Power of the power bus of the Breadboard (Picture 2)
  3. Connect with jumper wire the "K" pin of the LCD to Ground of the power bus of the Breadboard (Black wire)(Picture 3)

Connect the Potentiometer to the V0 Pin of the LCD

DSC02572.JPG
DSC02566.JPG
DSC02556.JPG
  1. Place the Potentiometer on the Breadboard (Picture 1)
  2. Connect the middle(wiper) pin of the potentiometer to the "V0" pin of the LCD (Yellow wire) (Picture 2)
  3. Connect one of the end pins of the potentiometer to the Ground of the Power Bus of the Breadboard (Black wire) (Picture 3)
  4. Connect other end pin of the potentiometer to the Power of the Power Bus of the Breadboard (Red wire) (Picture 3)

Connect Power to the Breadboard

DSC02553.JPG
DSC02551.JPG
  1. Connect the Male end of a Male-Female jumper wire(Red wire) to the Power of the Power bus of the Breadboard (Picture 1)
  2. Connect the Male end of a Male-Female jumper wire(Black wire) to the Ground of the Power bus of the Breadboard (Picture 1)
  3. Picture 2 shows the completely connected Breadboard

Connect to Arduino

568366444936d486150001c7.jpeg
568af417937ddb4e280001ab.jpeg
568af45d15be4db53300068d.jpeg
LCDDisplay_bb.png
  1. Connect the other end of the Ground wire(Black wire) to Ground pin of the Arduino board (Picture 1)
  2. Connect the other end of the Power wire(Red wire) to the 5V power pin of the Arduino board (Picture 1)
  3. Connect the other end of the "RS" wire(White wire) to the Digital 2 pin of the Arduino board (Picture 2)
  4. Connect the other end of the "E" wire(Brown wire) to the Digital 3 pin of the Arduino board (Picture 2)
  5. Connect the other end of the "D4" wire(Yellow wire) to the Digital 4 pin of the Arduino board (Picture 3)
  6. Connect the other end of the "D5" wire(Green wire) to the Digital 5 pin of the Arduino board (Picture 3)
  7. Connect the other end of the "D6" wire(Blue wire) to the Digital 6 pin of the Arduino board (Picture 3)
  8. Connect the other end of the "D7" wire(Purple wire) to the Digital 7 pin of the Arduino board (Picture 3)
  9. Picture 4 shows the all the Arduino and Breadboard connections

Start Visuino, and Select the Arduino Board Type

SelectBoard.png
SelectBoard.png

To start programming the Arduino, you will need to have the Arduino IDE installed from here: http://www.arduino.cc/.

Please be aware that there are some critical bugs in Arduino IDE 1.6.6.

Make sure that you install 1.6.7 or 1.6.5, otherwise this Instructable will not work!

The Visuino: https://www.visuino.com also needs to be installed.

  1. Start Visuino as shown in the first picture
  2. Click on the "Tools" button on the Arduino component (Picture 1) in Visuino
  3. When the dialog appears, select Arduino Nano as shown in Picture 2

In Visuino: Add LCD Component, and Connect It

ComponentLCD.png
ComponentLCDConnect1.png
ComponentLCDConnect2.png
ComponentLCDConnect6.png
ComponentLCDConnect7.png
  1. Type "lcd" in the Filter box of the Component Toolbox then select the "Liquid Crystal Display (LCD)" component (Picture 1), and drop it in the design area
  2. Connect the "RegisterSelect" output pin of the LiquidCrystalDisplay1 component to the "Digital" input pin of the "Digital[ 2 ]" channel of the Arduino component (Picture 2)
  3. Connect the "Enable" output pin of the LiquidCrystalDisplay1 component to the "Digital" input pin of the "Digital[ 3 ]" channel of the Arduino component (Picture 3)
  4. Connect the "Data0" output pin of the LiquidCrystalDisplay1 component to the "Digital" input pin of the "Digital[ 4 ]" channel of the Arduino component (Picture 4)
  5. Connect the "Data1" output pin of the LiquidCrystalDisplay1 component to the "Digital" input pin of the "Digital[ 5 ]" channel of the Arduino component (Picture 4)
  6. Connect the "Data2" output pin of the LiquidCrystalDisplay1 component to the "Digital" input pin of the "Digital[ 6 ]" channel of the Arduino component (Picture 4)
  7. Connect the "Data3" output pin of the LiquidCrystalDisplay1 component to the "Digital" input pin of the "Digital[ 7 ]" channel of the Arduino component (Picture 4)
  8. Connect the "Out" pin of the Serial[ 0 ] channel of the Arduino component to the "In" pin of the LiquidCrystalDisplay1 component (Picture 5)

Generate, Compile, and Upload the Arduino Code

GenerateCtopped.png
Arduino IDE.png
  1. In Visuino, Press F9 or click on the button shown on Picture 1 to generate the Arduino code, and open the Arduino IDE
  2. In the Arduino IDE, click on the Upload button, to compile and upload the code (Picture 2)

And Play...

568b18a8937ddbc6e3000550.jpeg
SerialTerminal.png
VisuinoDiagramCrop.png

Congratulations! You have completed the project.

Picture 1 shows the connected and powered up project.

If you open Serial Terminal in the Arduino IDE or Visuino, type some text and press Enter, you should see the text appearing on the LCD.

Avoid entering lines of text of more characters than the LCD has per line, as you can overflow its buffers.

You may need to adjust the potentiometer to get clearly displayed text.

On Picture 3 you can see the complete Visuino diagram.

Also attached is the Visuino project, that I created for this Instructable. You can download and open it in Visuino: https://www.visuino.com