HD44780 BASED LCD DISPLAY – Part 2 (Non standard sizes)


In this example we are going to connect to some specialized HD44780 based displays.


This article is followup on our previous article called HD44780 based LCD display.

DISCLAIMER

We do not take any responsibility for possible errors in the guide or errors that you might do wiring it up. Incorrect wiring can result in damaged sensor or damaged Raspberry Pi.

The standard 16 x 2, or 20 x 2 or even 20 x 4 are great for many purposes, and cheap as well.

But sometimes you just want different size, different character count or even different panel color. For those reasons we wanted to test some of the less standard mainstream HD44780 displays.

Note that when dealing with rare sizes then you often cannot shop around for as low prices as with the standard sizes.

Displays that we will be looking at:

40 x 2 display – ERM4004-1 Series (Blue background):

Just like with most of the standard size displays then I had to solder header pins on all the displays.

I got this one to work with the same code as the standard 16 x 2 from the original article, and was able to use 40 letters per line as well as the custom glyph feature.

The header pin arrangement was a bit different from the standard 16 x 2 display, but pin numbers are compatible. 

Instead of one line of pins then we have 2 columns arranged as follows:


The header pins on the 40 x 2 display.

Connection map (same as in the original article):

LCD
Raspberry PI cobbler
Potentiometer (10 kΩ) 560 Ω Resistor
#1 (GND) or (VSS) GND
#2 (VCC) 5V
#3 (Vo) Middle pin
#4 (RS) GPIO25
#5 (RW) GND
#6 (EN) GPIO24
#7, #8, #9, #10 Not used
#11 (D4) GPIO23
#12 (D5) GPIO17
#13 (D6) GPIO21
#14 (D7) GPIO22
#15 (LED+) To resistor
#16 (LED-) GND
5V To resistor
GND #1
5V #3


See the original article for more detail on how to connect the potentiometer and how it all comes together. 


40 x 4 display – ERM4004-1 Series (White background):

The 40 x 4 is very large, the picture bellow does not give good idea of the size, but it is much longer than iPhone max size for example.

With this one things got a bit tricky, it does not have pin compatibility with the original article for the 16 x 2 display, and this display comes with 2 enable pins which is due to the fact that it has
basically 2 controllers.

Because of this then updated Xojo code was needed so that it could support displays that need two controllers.

Updated Xojo code can be downloaded bellow. (And of course we made sure that the custom glyphs work for both the controllers in the display).


The 40 x 4 comes with two headers, one on right side and one on left. Where the header for the backlight has been separated from the main header.


The header pins on the 40 x 4 display.

Connection map (Note note same as in the original article and this one has two E pins):

LCD
Raspberry PI cobbler
Potentiometer (10 kΩ) 560 Ω Resistor
#1 (D7) GPIO22
#2 (D6) GPIO21
#3 (D5) GPIO17
#4 (D4) GPIO23
#5, #6, #7, 8# Not used
#9 (E1) GPIO24
#10 (RW) GND
#11 (RS) GPIO25
#12 (VEE) Middle pin
#13 (VSS) GND
#14 (VCC) 5V
#15 (E2) GPIO13
#16 Not used
#17 (LED+) To resistor
#18 (LED-) GND
GND #1
5V #3
5V To resistor

Getting the updated code for the 40 x 4 display

You can find this example code at Example code for GPIO guides.


8 x 2 display – ERM802-3 Series (Blue background):

The pin layout of the 8×2 was a bit strange, notice where pin 15 and 16 are vs 1 and 2.

But apart from the strange layout then the 8×2 connects in mostly same way as the 16×2 in our original guide (except pins 15 and 16).


The header pins on the 8x 2 display.

Connection map (mostly same as in the original article except pin 15 and 16 are swapped):

LCD
Raspberry PI cobbler
Potentiometer (10 kΩ) 560 Ω Resistor
#1 (GND) or (VSS) GND
#2 (VCC) 5V
#3 (Vo) Middle pin
#4 (RS) GPIO25
#5 (RW) GND
#6 (EN) GPIO24
#7, #8, #9, #10 Not used
#11 (D4) GPIO23
#12 (D5) GPIO17
#13 (D6) GPIO21
#14 (D7) GPIO22
#15 (LED-) GND
#16 (LED+) To resistor
5V To resistor
GND #1
5V #3

I had 20 x 2 and 24 x 2 ready but I decided to not solder them and cover them for now as their interface and specs hinted that they were just like the 40 x 2, so not offering any new knowledge.

Then there was a miniature 12 x 2, which had normal header except backlight cathode pin is missing, I assume the ground is just shared with other ground pins. But I could not solder that one as it needed 2x narrower header pins which I did not have.