Share UNO with an LCD and a Logger shield

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
shlomo
 
Posts: 4
Joined: Tue Mar 20, 2012 12:50 am

Share UNO with an LCD and a Logger shield

Post by shlomo »

looking at the logger schematic at http://www.ladyada.net/make/logshield/design.html I still have the whole JP4 8bit port available to drive a standard LCD which only requires 6 ports to operate.
When I plug the data logger on top of the UNO, connect the LCD 6 pins to the logger UNO 1 to 3 and 5 to 7 digital port extensions, and I load a well working LCD sketch I don't get it to run.
What am I doing wrong?
p.-

User avatar
adafruit_support_bill
 
Posts: 88136
Joined: Sat Feb 07, 2009 10:11 am

Re: Share UNO with an LCD and a Logger shield

Post by adafruit_support_bill »

Did you modify the sketch to reflect the pins you are using?
Does your sketch use serial I/O? Serial uses pins 0 & 1.

shlomo
 
Posts: 4
Joined: Tue Mar 20, 2012 12:50 am

Re: Share UNO with an LCD and a Logger shield

Post by shlomo »

Yes I modified the LCD sketch hopefully in the right way, and it works just fine by itself.
Does the Data logger use any of the first 8 dig out?
Anyway this is the beginning of sketch i am using:

LiquidCrystal Library - Hello World

20x4 LCD display. The LiquidCrystal
library works with all LCD displays that are compatible with the
Hitachi HD44780 driver.
used the Adafruit TC2004A-01


This sketch prints "Hello World!" to the LCD
and shows the time.

The circuit:
* LCD RS pin 4 to digital pin 7
* LCD Enable pin 6 to digital pin 6
* LCD D4 pin 11 to digital pin 5
* LCD D5 pin 12 to digital pin 3
* LCD D6 pin 13 to digital pin 2
* LCD D7 pin 14 to digital pin 1
* LCD R/W pin to ground
* 100 resistor to pin 15
* pot cursor to pin 3
* pin 1 to gnd
* pin 2 to +5
* pin 16 to gnd

ref to LCD tutorial
http://www.arduino.cc/en/Tutorial/LiquidCrystal
*/

// include the library code:
#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(7, 6, 5, 3, 2, 1);

void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(20, 4);
// Print a message to the LCD.
lcd.print("hello, world!");

User avatar
adafruit_support_bill
 
Posts: 88136
Joined: Sat Feb 07, 2009 10:11 am

Re: Share UNO with an LCD and a Logger shield

Post by adafruit_support_bill »

Post photos of the front & back of the board and a photo showing all your connections.

shlomo
 
Posts: 4
Joined: Tue Mar 20, 2012 12:50 am

Re: Share UNO with an LCD and a Logger shield

Post by shlomo »

How did you know? Taking the pictures worked, it now works. Moving contacts in and out for the nth time made the difference, I wish I know which one was.
Thanks for the prompt assistance, s.-
Attachments
P1020293.JPG
P1020293.JPG (432.98 KiB) Viewed 633 times
P1020285.JPG
P1020285.JPG (429.3 KiB) Viewed 633 times

User avatar
adafruit_support_bill
 
Posts: 88136
Joined: Sat Feb 07, 2009 10:11 am

Re: Share UNO with an LCD and a Logger shield

Post by adafruit_support_bill »

It's a well known phenomenon. The bugs run for cover as soon as you bring out the diagnostic tools. :wink:

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”