LCD problem - need help

20 Jan 2012

hello.. hi i'm new in mbed.. i got problem in my lcd.. it didnt working properly.. i already try the solution in this forum. unfortunately it still didnt work..

my program is..

  1. include "mbed.h"
  2. include "TextLCD.h"

TextLCD lcd(p24, p25, p26, p27, p28, p29, p30); rs, rw, e, d0, d1, d2, d3

int main() { lcd.cls(); lcd.printf("12345678901234567890123456789012");

}

i'm using 16x2 LCD.. my connection is..

1 -> GND; 2 -> 5V; 3 -> variable resistor 10K -> GND; 4 -> p24; 5 -> p25; 6 -> p26; 7 -> p27; 8 -> p28; 9 -> p29; 10 -> p30; 15 -> 330 ohm -> 5V; 16 GND;

i'm using this lcd

http://www.cytron.com.my/viewProduct.php?pcode=DS-LCD-162A&name=LCD%20(16x2)

20 Jan 2012

Connect the data pins to the upper 4 bits, not the lower

20 Jan 2012

ok.. thx a lot rene...!

07 Mar 2013

Hi,

As an update to this thread (to anyone stumbling across it like me) you will find the TextLCD library only accepts 6 pins as per the below example:

TextLCD lcd(p10, p12, p15, p16, p29, p30); rs, e, d4-d7

and the R/W (Pin 5 on the JHD 162A module) should be connected directly to GND for reliable operation with the Mbed online compliler.

Incidentally this is the LCD on the "NGX Technologies" board NXP - OM13016,598 - BASEBOARD, NGX, LPCXPRESSO for mBED, Farnell order code 2251823. If you wish to run their example binary for the MBded you must connect all 7 of the pins as they direct. if you wish to run files you have compiled yourself then ground Pin 5 and map the other 6 pins accordingly.

19 Nov 2013

hi I am using a JHD162A LCD display with 16 pins,please provide the correct list of pin connections. waiting::: thnkx in advance