Go Down

Topic: Mega 2560 with WiFi and LCD Display (Read 589 times) previous topic - next topic


I'm not sure this will help anyone.  But, it took me a while to figure it out.

Arduino Mega 2560
Arduino WiFi Shield
Hactronics 20x4 LCD Display

Issue: The default pin connections for the LCD do no work with the WiFi shield in place.

There might be other solutions to this (probably trivial) issue but my solution was:

LCD Pin           Connected to
1 (VSS)            GND Arduino WiFi Shield Pin GND
2 (VDD)           +5v Arduino WiFi Shield Pin
3 (contrast)      potentiometer
4 RS                Arduino WiFi Shield Pin 8
5 R/W             Arduino WiFi Shield Pin 11
6 Enable           Arduino Mega 2560 Pin 31
7 not used
8 not used
9 not used
10 not used
11 (Data 4)       Arduino WiFi Shield Pin 6
12 (Data 5)       Arduino WiFi Shield Pin 5
13 (Data 6)       Arduino WiFi Shield Pin 3
14 (Data 7)       Arduino WiFi Shield Pin 2
15 (Backlight +)  Resister to Arduino Mega 2560 Pin 15
16 (Backlight GND) GND Arduino WiFi Shield Pin GND

The initialization for the LCD is:
int backLight = 15;
LiquidCrystal lcd(8, 11, 31, 6, 5, 3, 2);
pinMode(backLight, OUTPUT);
digitalWrite(backLight, HIGH);

Hope this helps.

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131