Working J204A 4×16 LCD from Arduino w/LiquidCrystal.h

Connected a 4 Row LCD to an Arduino.

Wiring

    LCD Pin Connect to
    1 (VSS) GND Arduino pin*
    2 (VDD) + 5v Arduino pin
    3 (contrast) Resistor or potentiometer to GND Arduino pin*
    4 RS Arduino pin 12
    5 R/W Arduino pin 11

    6 Enable Arduino pin 10
    7 No connection
    8 No connection
    9 No connection
    10 No connection
    11 (Data 4) Arduino pin 5
    12 (Data 5) Arduino pin 4
    13 (Data 6) Arduino pin 3
    14 (Data 7) Arduino pin 2
    15 Backlight + Resistor to Arduino pin 13**
    16 Backlight GND GND Arduino pin*

Code

    #include <LiquidCrystal.h>
    LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2);
    int backLight = 13;
    void setup()
    {
    pinMode(backLight, OUTPUT);
    digitalWrite(backLight, HIGH);
    lcd.begin(16,4);
    lcd.clear();
    lcd.setCursor(0,0);
    lcd.print("Hello, World");
    lcd.setCursor(0,1);
    lcd.print("LCD Working");
    lcd.setCursor(0,2);
    lcd.print("On Arduino");
    lcd.setCursor(0,3);
    lcd.print("Simon Fearby");
    }
    void loop()
    {
    }

Pictures

20131201-032357.jpg

20131201-032417.jpg

Now I can integrate a LCD’s into Arduino projects (reporting sensors, activity, logs, history etc).

Thanks to this guide and to Gams for the hardware.