Hookup help for cheap 3.3v 16x2

4 posts
by lrvick » Wed Jun 20, 2012 4:48 pm
So I have one of these:


It is 3.3v logic so in theory I feel like I should be able to hook this directly to the pi GPIO pins but I am unsure what pins to use.

Should just be a standard 44780 pinout on the board itself:


My goal is to have a cheap lcd I can quickly hook up to a Pi and control with the python GPIO library.

Posts: 18
Joined: Wed Jun 20, 2012 4:35 pm
Location: Orlando, FL
by guisacouto » Wed Jun 20, 2012 5:36 pm
I'm also interested in this. However I think I'm going to get a i2c 16x2 lcd, since it uses only two pins making it a bit more simple to setup, and not so nasty:)
Posts: 35
Joined: Mon Feb 20, 2012 12:46 am
by mahjongg » Wed Jun 20, 2012 5:59 pm
[quote][/quote]use nibble mode, and connect only D4 to D7 for data to 4 GPIO's. See datasheet on entering nibble mode.
Then connect register select to another GPIO for control of sending either data or commands.
Then you can select which interfacing mode (motorola or intel) to select with the reset line going either high or low. The picture uses motorola mode, so you tie the R/W pin low for permanent write mode, and strobe data into the LCD with the enable signal using a sixth GPIO.
So you need six GPIO,s but can control these with simple logic. You also need to provide a LED (backlight) current limiting resistor, and a negative contrast voltage. (edit, you only need a negative contrast voltage for graphical LCD's not for text mode ones)
LCD's are also sold with an adapter for (most often) I2C, then you use no GPIO pins, only the two I2C lines.

Disadvantages of going that way:
Extra cost (especially if you need to make a consumer product)
Extra complexity (in the form a a controller board)
The need for an I2C driver.
Not controlling the LCD by your own, so less flexibility.
Not learning anything new (controlling the LCD yourself)
Tying yourself to a smaller solution base.
Incurring karma points for being lazy. :mrgreen:
User avatar
Forum Moderator
Forum Moderator
Posts: 9152
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands
by texy » Mon Jun 25, 2012 6:42 am
please see this thread :

Exactly what the OP is asking for ;)

Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
Forum Moderator
Forum Moderator
Posts: 4955
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England