Go Down

Topic: Mega 2560 with WiFi and LCD Display (Read 353 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

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.

shortcuts: alt+s submit/post or alt+p preview