Pages: [1]   Go Down
Author Topic: Mega 2560 with WiFi and LCD Display  (Read 338 times)
0 Members and 1 Guest are viewing this topic.
Dallas, TX
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Hardware:
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.
Logged

Pages: [1]   Go Up
Jump to: