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

when i connect my lcd according to the scheme that comes with the arduino project book(or this one http://arduino.cc/en/Tutorial/LiquidCrystal), just nothing  happen.
There's anyway to see if it works at all? or i've to send it back to guarantee
Logged

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

Most of us are familiar with the Arduino tutorial at the link you provided.  What would have been much more helpful is a link to the datasheet for your device (http://arduino.cc/documents/datasheets/LCD-WH1602B-TMI-ET%23.pdf) and some information about the material in the project book which many of us have never seen.

That's a pretty standard LCD module so here is my generic step by step approach that should work for you:

(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: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi again sorry for my bad post, im new to this forum and arduino's stufs.
Thanks for your help, my problem was connecting the pin 15 and 16 with the resistor into the ground instead of in the power.
Sorry for my noobiness.
Logged

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

The backlight is entirely independent of the display controller and will have no effect on whether the display works or not.  On the other hand, some displays, notably those with white characters on a blue background, are virtually impossible to see without the backlight (even if they are 'working').

The resistor can go in series with either the GND or the power lead so that wasn't your problem.  Most likely you had a bad connection somewhere else that got 'fixed' when you tinkered with the backlight wiring.


Don
Logged

Pages: [1]   Go Up
Jump to: