16x2 displays gibberish only on 1st run after power up

Talk about Adafruit Raspberry Pi® accessories!

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

16x2 displays gibberish only on 1st run after power up

Postby Zygo » Wed Mar 13, 2013 2:49 pm

I am using the 16x2 LCD Pi plate and have found that when I run any of the test programs as the first thing after powering on the Pi, I get gibberish. However, if I then close the program and rerun it, it works fine. Every subsequent running of any program running the LCD works fine, until the next power off.

The gibberish looks like what was happening before I changed busnum to 1 (it is currently set at 1)
Zygo
 
Posts: 4
Joined: Wed Mar 13, 2013 2:15 pm

Re: 16x2 displays gibberish only on 1st run after power up

Postby adafruit_support_bill » Wed Mar 13, 2013 3:08 pm

Could be a marginal solder joint on one of the data lines. Post photos of the front & back of the plate.
User avatar
adafruit_support_bill
 
Posts: 16055
Joined: Sat Feb 07, 2009 9:11 am

Re: 16x2 displays gibberish only on 1st run after power up

Postby Zygo » Wed Mar 13, 2013 3:14 pm

Ok, I will when I can, but it is very repeatable. Feels like a software related issue. Always a problem on first run, never after.
Zygo
 
Posts: 4
Joined: Wed Mar 13, 2013 2:15 pm

Re: 16x2 displays gibberish only on 1st run after power up

Postby adafruit_support_bill » Wed Mar 13, 2013 3:50 pm

Feels like a software related issue. Always a problem on first run, never after.

Are you using the code from the tutorial? We have a few thousand of these out there and this is the first report of this kind of problem.

I do know that these displays are sensitive to noise and/or bad connections. One glitch during a command sequence and you have to reset the display to recover.
User avatar
adafruit_support_bill
 
Posts: 16055
Joined: Sat Feb 07, 2009 9:11 am

Re: 16x2 displays gibberish only on 1st run after power up

Postby Zygo » Fri Mar 15, 2013 2:50 pm

I found out the problem!

I needed go through all the modules and set busnum=1. I had done so in my code and in Adafruit_CharLCDPlate, but not in the imported modules(Adafruit_MCP230xx and Adafruit_I2C). Also, although I2C is supposed to autodetect the bus number, it didn't work until I replaced the autodetect stuff with "1".
Zygo
 
Posts: 4
Joined: Wed Mar 13, 2013 2:15 pm



Return to Adafruit Raspberry Pi® accessories

Who is online

Users browsing this forum: mibignistinly and 5 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [103]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[61]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]