Arduino and LCD - can't see text ...

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Arduino and LCD - can't see text ...

Postby gatorbait3 » Sun Dec 25, 2011 7:50 pm

I just got one of the LCD 16x2 kits for my Arduino .. and am not seeing any data on it!

The contrast pot works fine and shows the "white blocks" on the LCD. However, running tutorial code doesn't produce any text on the LCD.

I've reviewed and rewired the LCD lines to the Arduino several times. I've also checked the header solder points to make sure non are shorting to the neighboring pin, and tried moving the 4 - data lines to other pins on the Arduino (with corresponding changes to the code for the new pins).

I've also added an "LED flash" statement to the code which flashes the on-board LED as the loop iterates, along with serial.println statements for debug .. and this works fine.

I've also measured the RS and EN lines to make sure they are getting voltages, which they are. I've also reviewed the data sheet and even tried hooking up all 8 data lines. Also looked at the LiquidCrystal.h file and tried some of the other functions available too (i.e. home, clear, cursor on, etc.).

But no data out!! Any suggestions on what else to look at? Could the LCD panel be bad?
gatorbait3
 
Posts: 3
Joined: Sun Dec 25, 2011 7:39 pm

Re: Arduino and LCD - can't see text ...

Postby adafruit » Sun Dec 25, 2011 10:33 pm

its somewhat unlikely that you're seeing squares but not text. please wire up the LCD according to the tutorial and tutorial text on ladyada.net nad then post a photo showing your wiring so we can verify it :)
User avatar
adafruit
 
Posts: 10491
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: Arduino and LCD - can't see text ...

Postby gatorbait3 » Mon Dec 26, 2011 3:32 pm

First, I want to thank you for taking a look! I really appreciate it!

Photos of wiring (all are thumbnails to MUCH larger images!): (EDIT-links to large images removed)
ImageImage
ImageImage

While the code is running, I've dialed the contrast pot end to end and don't see any text (just the "white blocks" with full contrast). Output to the console shows the expected results, and the on-board LED flashes with each loop.

Sketch I'm using (the base tutorial LCD one, plus debug stuff - flashing LED and serial prints):
Code: Select all
// include the library code:
#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);

void setup() {
  // send debug statements to console
  Serial.begin(9600);
  // set up LED to blink
  pinMode(13, OUTPUT);
  // set up the LCD's number of columns and rows:
  lcd.begin(16, 2);
  // Print a message to the LCD.
  lcd.print("hello, world!");
}

void loop() {
  Serial.println("Loop begin - turn on LED");
  digitalWrite(13, HIGH);   // set the LED to be on while message is going to LCD
  Serial.print("Set LCD line and print result: ");
  Serial.println(millis()/1000);

  // set the cursor to column 0, line 1
  // (note: line 1 is the second row, since counting begins with 0):
  lcd.setCursor(0, 1);
  // print the number of seconds since reset:
  lcd.print(millis()/1000);
 
  Serial.println("  Loop end - turn off LED");
  digitalWrite(13, LOW);    // set the LED off after message sent and loop is ending
  delay(500);
  Serial.println("==================================");
}
Last edited by gatorbait3 on Tue Dec 27, 2011 11:30 pm, edited 1 time in total.
gatorbait3
 
Posts: 3
Joined: Sun Dec 25, 2011 7:39 pm

Re: Arduino and LCD - can't see text ...

Postby adafruit » Mon Dec 26, 2011 3:54 pm

check the soldering of the header to the LCD, that could be a problem
User avatar
adafruit
 
Posts: 10491
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: Arduino and LCD - can't see text ...

Postby gatorbait3 » Mon Dec 26, 2011 4:37 pm

That was it!!!

I resoldered all the header pins and now it works! Great eye! I was trying to be careful not to have "bleed over" with the solder to the surrounding pins and must have gotten a cold solder joint or one with not enough solder to make a good, consistent connection.

Thank you again for that suggestion .. while I checked continuity with a meter to surrounding pins, I didn't check bottom of pin to pad.

Time to go play now!! And you can mark this one "SOLVED!"
gatorbait3
 
Posts: 3
Joined: Sun Dec 25, 2011 7:39 pm


Return to Glowy things (LCD, LED, TFT, EL) purchased at Adafruit

Who is online

Users browsing this forum: Google [Bot] and 5 guests

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


New Products [108]

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[31]


 
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[34]
LCDs & Displays[48]
Components & Parts[70]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[111]
 
Wireless[14]
Cables[62]
 
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]