robbiwood
Posts: 9
Joined: Sun Jul 14, 2013 7:39 pm

Programming the Adafruit 16x2 Character LCD + Keypad

Sun Jul 14, 2013 7:45 pm

Hi everyone,

I am having some major trouble with programming this board. I have it soldered right and set up right, but when I try to run my code http://pastebin.com/54w5Wa8T (or any test program), all I get is the backlight turning on and doing what its meant to do, but where text should be I see boxes! The top row is full of boxes, the bottom row is blank. How do I get my code working?

Thanks,

Robbi

User avatar
joan
Posts: 15442
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Programming the Adafruit 16x2 Character LCD + Keypad

Sun Jul 14, 2013 9:02 pm

Perhaps the contrast is too low/high?

robbiwood
Posts: 9
Joined: Sun Jul 14, 2013 7:39 pm

Re: Programming the Adafruit 16x2 Character LCD + Keypad

Sun Jul 14, 2013 9:18 pm

joan wrote:Perhaps the contrast is too low/high?
Well I'm not sure about that. It can turn nearly 360˚ only, is that normal? And when it is as far as it can go to the left, the boxes show up perfectly. But when I turn it all the way to the right, there are no boxes and just the background color.

Pantarhei
Posts: 4
Joined: Mon Sep 17, 2012 8:55 pm
Location: The Netherlands

Re: Programming the Adafruit 16x2 Character LCD + Keypad

Mon Jul 15, 2013 7:48 pm

Yesterday I soldered my Adafruit 16x2 Character LCD + Keypad (Arduino version). I had the same issue, only boxes on the first row. I examined my work, I'm a noob on soldering, and did some resoldering. I reconnected the LCD and a shiny "Hello world" appeared. :P

You can also try this,

From the Adafruit website:

If you have a rev 2 (512MB) Pi, or if you're not getting anything displaying, it might be due to the I2C bus number change in the Pi hardware. Edit Adafruit_CharLCD.py using a command like "nano Adafruit_CharLCD.py" and change the line

lcd = Adafruit_CharLCDPlate(busnum = 0)

to

lcd = Adafruit_CharLCDPlate(busnum = 1)

robbiwood
Posts: 9
Joined: Sun Jul 14, 2013 7:39 pm

Re: Programming the Adafruit 16x2 Character LCD + Keypad

Tue Jul 16, 2013 12:14 am

I just re-soldered the bottom, no result. I really hope there is something wrong with my code because i reaaaaaally don't want to re-solder the top. :P

robbiwood
Posts: 9
Joined: Sun Jul 14, 2013 7:39 pm

Re: Programming the Adafruit 16x2 Character LCD + Keypad

Tue Jul 16, 2013 1:05 am

I re-soldered the top...


IT WORKS!!!!!!!! :D :D :D :D :D

Return to “Python”