Hi! Im new to the arduino and electronics in general, the other day i got two LCD displays from a friend.
One of them is a Hitachi with the HD44780 driver, its a 20x2 LCD.
My problem is that the connectors on it isn't in one row like in the example, its a 2x7 plug. and to make it even more complicated the plug and the PCB itself has different markings on what pin is number 1..
So my questions is:
Should i trust the PCB or the plug?
How are the layout of these connectors typically?
(is it
1 2 3 4 5 6 7
8 9 10 11 12 13 14
or
1 3 5 7 9 11 13
2 4 6 8 10 12 14)
Could i have destroyed the LCD by attaching the wires in the wrong way?
I also have a 40x4 LCD from optronix, but i im not sure if its supported by the liquidCrystal libary (its a DMC 40401)..
Any clues to get me going would be greatly appreciated, i would really like at least one of the screens to work..
The 40x4 displays have a second Enable pin (typically pin 15) to handle the lower half of the display. You probably could get the upper half running using the liquidCrystal library. Getting the lower half to work with liquidCrystal is not out of the question, but not trivial either.
The standard is to do odd pins on one row and even on the other, but occasionally people violate it. You should try to find a datasheet if you're in doubt.
There are webpages with info on LCD pinouts. A Google search will turn up lots of them.
One thing to be careful about is that there never was a standard that I've been able to find for 15- and 16-pin LCDs that bring the backlight connection over to the header. At least one of the LCDs I've got is different from the others, and the backlight doesn't work with the "backpack" module I bought.