Pages: [1]   Go Down
Author Topic: LCD WH1602B2-TMI-ET# Winstar Display Co.  (Read 406 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,
trying to connect the LCD in subject but cannot get any result with Arduino Uno rev 3.
Has someone idea if this LCD has some particular detail which I do not understand? Looking at the data sheet it seems that all is as per standard, but the only thing I get is the back light and nothing more (using the Hello World example).
It seems a stupid issue, but if I start with such problem at the beginning.......
Can anyone advice?

Regards
Orazio
Logged

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 32
Posts: 4256
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here is my generic step by step approach that should work:

(1) If the module has a backlight then get it working properly.  This involves only pins 15 and 16 on most LCD modules.  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 most LCD modules.  You should be able to just barely 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.


Troubleshooting:

If you have a 16x1 display and there are blocks only on the left half of the row in step 2 then use lcd.begin(8, 2); in your sketch.

If you still don't get a display then make sure that your wiring matches the numbers in the descriptor (or vice versa).


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

If you get a display but it is garbled or has some other problems then try again with a 'static' sketch, one that displays a simple message on the top row of the display and then stops.  All of your code should be in setup() and loop() should be empty between the brackets.

Code:
#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 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


Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi, thank you for answering:
I attach two pics. One with connections and one with results. I did stop with power and back light, since the result is garbage. Following your suggestion I did not go ahead.
Also the cose I did use is:

#include <LiquidCrystal.h>

//LiquidCrystal lcd(RS, E, D4, D5, D6, D7);
LiquidCrystal lcd(2, 3, 4, 5, 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()
  {
  }

Thanks you sincerely for any advice.

Regards
Orazio


* 20147.jpg (1602.31 KB, 3328x1872 - viewed 21 times.)

* 20148.jpg (1180.81 KB, 3328x1872 - viewed 27 times.)
Logged

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 32
Posts: 4256
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Your display has serious problems most likely due to poor connections between the LCD 'glass' and the pc board. 

These connections are made by 'zebra strips' and there have been numerous threads with information about them.

The search capabilities of this forum software is abysmal, even if you find the camouflaged* search box.  Try the following Google search: "LCD zebra site:arduino.cc".


Don

* camouflaged in Firefox and Internet Explorer, visible in Chrome
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Don,
you were, obviously, right. My LCD was simply garbage. No way to restore bending or pushing or whatever; just replace it at the first opportunity.
Meanwhile thank you very much for your assistance.

Orazio
Logged

Pages: [1]   Go Up
Jump to: