LCD interface to Nano

Hi,
I am trying to duplicate your LCD interface example http://arduino.cc/en/Reference/LiquidCrystalConstructor using a Nano and a HD44780-style 4-line LCD (Amazon PN B00D7Z2BWU). The code is:

#include <LiquidCrystal.h>
// LiquidCrystal lcd(rs, enable, d4, d5, d6, d7);
LiquidCrystal lcd(15, 14, 8, 7, 6, 5);

void setup()
{
lcd.begin(16,1);
lcd.print(“hello, world!”);
}

void loop() {}

My schematic is included.

What am I doing wrong? I get no response from the LCD. I can blink the LED with the Nano. I bet it’s something really dumb, right?
Thanks,
KevinW

sch.doc (33 KB)

Hi Kevin,
Did you include the pin/input in which the lcd is located?

Sincerely,
Anders

Kevincw: I bet it's something really dumb, right?

The Arduino digital pin numbers on the schematic you provided do not match the Arduino digital pin numbers you filled into the constructor. You appeared to use the physical pin number for the nano module instead. Take a close look at your shematic. See the Dn numbers? Those are the Arduino digital pin numbers and are totally different from the physical pin number of the board/module.

--- bill

hi kevin ... I agree with bperrybap,

LiquidCrystal lcd(15, 14, 8, 7, 6, 5);

you connected digital pin to lcd data pin. http://2.bp.blogspot.com/-_M5HsO7r1dM/UGqw8xi2zUI/AAAAAAAAR5c/O-Q5qzO1mJQ/s1600/arduino+pinout.png

dhans: you connected digital pin to lcd data pin. http://2.bp.blogspot.com/-_M5HsO7r1dM/UGqw8xi2zUI/AAAAAAAAR5c/O-Q5qzO1mJQ/s1600/arduino+pinout.png

Actually, it looks to me like the Nano module pin numbers were used in the constructor rather than the Arduino digital pin numbers. The module pin numbers are the ones in parens. The Arduino pin numbers are ones with Dn or An. The Arduino pin numbers are what are used in the constructor.