megaranger
Posts: 3
Joined: Sat Mar 09, 2013 6:45 pm

LCD outputting gibberish

Sat Mar 09, 2013 6:59 pm

I have wired up my display from adafruit as per http://learn.adafruit.com/drive-a-16x2- ... -pi/wiring . I am using the 16x2 LCD and the included adafruit python library . The code compiles properly although the display only outputs gibberish. Do any of you have any help with this?
Image
Last edited by megaranger on Sun Mar 10, 2013 12:52 am, edited 1 time in total.

texy
Forum Moderator
Forum Moderator
Posts: 5161
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: LCD outputting gibberish

Sat Mar 09, 2013 7:30 pm

Hi and welcome to the forum.
I don't think this will sort out your problem, but for one thing, it doesn't look like the used data bits DB0 to DB3 are tied low, as thy should be.

Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

megaranger
Posts: 3
Joined: Sat Mar 09, 2013 6:45 pm

Re: LCD outputting gibberish

Sat Mar 09, 2013 10:47 pm

texy wrote:Hi and welcome to the forum.
I don't think this will sort out your problem, but for one thing, it doesn't look like the used data bits DB0 to DB3 are tied low, as thy should be.

Texy
Sorry, but what do you mean by having DB0 to DB3 "tied low"? I checked the documentation and it said I shouldn't hook up those ports.

texy
Forum Moderator
Forum Moderator
Posts: 5161
Joined: Sat Mar 03, 2012 10:59 am
Location: Berkshire, England

Re: LCD outputting gibberish

Sun Mar 10, 2013 8:04 am

It varies from LCD to LCD, but those unused data lines need to be connected to GND.
Also adafruits documentation does not take into account the v2 Pi. Do you have a v2 Pi?
If so, the program will need reference to GPIO -21 changing to GPIO-27.
Texy
Various male/female 40- and 26-way GPIO header for sale here ( IDEAL FOR YOUR PiZero ):
https://www.raspberrypi.org/forums/viewtopic.php?f=93&t=147682#p971555

Return to “Interfacing (DSI, CSI, I2C, etc.)”