Go Down

Topic: can't get newhaven LCD to display anything (Read 887 times) previous topic - next topic


May 21, 2013, 06:55 pm Last Edit: May 21, 2013, 07:24 pm by derickbailey Reason: 1
EDIT: Yeah, I'm an idiot. pin 3 goes to ground, not to 5v. Problem solved w/ a 1K resistor to ground for contrast.


I bought a couple of NewHaven LCDs that are the standard 16-pin setup: http://www.newhavendisplay.com/nhd0216k1zfswfbwl-p-296.html and data-sheet: http://www.newhavendisplay.com/specs/NHD-0216K1Z-FSW-FBW-L.pdf

I've got all the pins connected the same way as the other LCDs I've used, which have the same pin configuration. This is the standard set up for an LCD, according to every arduino LCD tutorial out there.  

Here is my set up:

(full size image at http://cl.ly/image/0s3x0A1d181T)

And here is the uber-basic sample code I'm trying:

Code: [Select]
#include <LiquidCrystal.h>

// Connections:
// rs (LCD pin 4) to Arduino pin 12
// rw (LCD pin 5) to Arduino pin 11
// enable (LCD pin 6) to Arduino pin 10
// LCD pin 15 to Arduino pin 13
// LCD pins d4, d5, d6, d7 to Arduino pins 5, 4, 3, 2
LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2);

void setup()
 lcd.begin(16,2);              // columns, rows.  use 16,2 for a 16x2 LCD, etc.
 lcd.clear();                  // start with a blank screen
 lcd.setCursor(0,0);           // set cursor to column 0, row 0 (the first row)
 lcd.print("test");         // change this text to whatever you like. keep it clean.  

void loop()
/* ------------------------------------------------------------------------------- */

I can't get the LCD to display any text or anything else. The backlight turns on just fine... but no matter what I try for code or pin configuration, no text shows up. I've tried 10K, 1K and 100ohm resistors for the contrast (pin 3) to see if that is the problem, but nothing is working.

Has anyone else run in to problems with NewHaven LCDs? Is there a better driver that I need to get for Arduino to run this LCD?

Go Up