How to use 20 x 4 display

hi,

I just bought this display:
http://www.ebay.com/itm/281224113170?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2648

But i cant control it!

I used a couple of examples but with no results.

can please someone tell me what kind of library i have to use and how to control this display?

greats,

tom

Moderately expensive and apparently incorrectly described as a "Serial LCD 20x4 Module" when it clearly has no serial interface.

Your first step is to activate the backlight and set up the contrast potentiometer so you get two lines of "blocks" when you turn on. Have you done this?

yes i have that

... and set up the contrast potentiometer so you get two lines of "blocks" when you turn on. Have you done this?

That setting is a bit low. You want to just barely be able to see the top row on a two row display and the first and third rows on a four row display.

Here's the whole sequence:
(1) If the module has a backlight then get it working properly. This involves only pins 15 and 16 on your LCD module. Make sure to use a current limiting resistor if there is none on the LCD module.

(2) Get the power and contrast working properly. This involves only pins 1, 2, and 3 on your LCD module. You should be able to see blocks on one row of a two row display and on two rows of a four row display.

NOTE: The Arduino has not been used yet, except as a possible source for the power needed for the first two steps. Do not try to go any further until this is working. If you don't see the blocks then no amount of program code will help.

(3) Connect the LCD R/W pin (pin 5) to GND.

(4) Connect the six control and data wires between your LCD module and your Arduino.

(5) Upload your sketch and it should work. Here's a sketch to use:

#include <LiquidCrystal.h>

//LiquidCrystal lcd(RS, E, D4, D5, D6, D7);
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);      // put your pin numbers here

void setup()
  {
  lcd.begin(16, 2);                          // put your LCD parameters here
  lcd.print("hello, world!");
  lcd.setCursor(0,1)
  lcd.print("it works!");
  }

void loop()
  {
  }

If you still don't get a display then make sure that your wiring matches the numbers in the descriptor (or vice versa). Also make sure that the LCD R/W pin (pin 5) is connected to GND.

If you are still having problems then we need to see a photograph of your setup that clearly and unambiguously shows all of the connections between your Arduino and your LCD module. We also need a copy/paste version of the code that you are actually using, not a link to the code that you think you are using.

Don

thx for your help!

I got the display now working!

I did not use your code, but I went away with the program still running and when I went back the Display was working.

I had to change just a couple of things and now it is working properly!

thx,

Tom

tomnie2:
I did not use your code, but I went away with the program still running and when I went back the Display was working.

Now that is a worry.

Things that work sometimes and sometimes do not are the biggest headache in electronics work (or - for that matter - just about anything else).

Still, probably just a loose connection.