Go Down

Topic: Ethernet Mega Shield + 3.2" Touch LCD shield (Read 2276 times) previous topic - next topic

Franklin Dattein

I have a similar question as posted ages ago here (without answers): http://arduino.cc/forum/index.php/topic,20138.0.html

I am trying to use the Mega Ethernet Shield and a 3.2" TFT LCD with touch screen and SD card reader. According to the documentation, the SD Card PINS that comes with the LCD are conflicting with some pins on the Ethernet shield. In addition, I am using ITDB02_Touch  and UTFT libraries from http://www.henningkarlsen.com/electronics.

Also, everything works well separately. I mean, I can browse the ethernet pages and touch the screen. However, after I first touch in the screen the ethernet becomes unresponsive.

I don't really need the SD card and as far as I can see in the code the SD isn't being activated, unless I implicit activate it.


Any thoughts on how to use both Ethernet and touch screen together?

Thanks,
Franklin Dattein

P18F4550

Hi,
How are you powering this?
from experience USB alone won't be enought to power Mega + Ethernet + ITDB02 + 3.2" Touch

Franklin Dattein

I am powering only with USB, which could explain why some functions with little or nor code are causing the controller to restart.

In regards to the LCD + ethercard working together, I found a workaround by disabling the PIN 4, after reading the touch event, like below:
Code: [Select]

void loop() {

if (myTouch.dataAvailable()) {
           myTouch.read();
   touchX = myTouch.getX();
   touchY = 240 - myTouch.getY();
}
disableSD();
}

void disableSD() {
pinMode(4, OUTPUT);
digitalWrite(4, HIGH);
}

Laurenthu

Hello Franklin!

Thanks a lot for this post, i am trying to do exactly the same as you... Could you also be so kind as to describe how you cabled the screen shield, including physically?

Thanks in advance...

vAx

#4
Oct 09, 2013, 12:51 pm Last Edit: Oct 15, 2013, 12:55 pm by vAx Reason: 1
Hi,

I was also wondering if it was possible to plug booth LCD touch screen and ethernet shields on my mega board.
After looking at pinouts, soldering some wires on the shield, I can confirm that it is possible.

It works perfectly (screen and network). Didn't try the SD slots yet.
SD card works using the reader on the ethernet shield, not the one on the LCD shield.
I just plug the pin 4 on the ethernet shield to the pin 9 on the megaboard and change the code to use pin 9 as chip select.

Code: [Select]
const int chipSelect = 9;   


If you are still interested, I can post schematic and pics.

/vAx

TiDjY35

hello there,
I would be interested in the wiring diagram and some photos.
I would do the same.

Thank you in advance

Go Up