Ethernet Shield without pin 4 and 10

Hy,

I'm using a Mega and I need all the I/Os (without 50 to 53[SPI]),
I want to use an Ethernet shield to communicate (no SD).

Is there any possibility to keep my pins 4 and 10 for my I/Os

Thanks,

Vincnet68

Sure, you can use any pin for the chip-select of the SPI.
If that Ethernet Shield comes with a SD socket, you have to disable the chip-select for the SD.
Can you use pin 53 ?
I don't know how to change the Ethernet library for pin 53, I can look into that if you can't find it.

Hi,

How can I disable the SD socket ?
I think it should me done by hardware ?

Thanks,

Vincnet

Is it an actual 'shield' ? That has ethernet and SD fixed to pin 4 and 10.
You could bend the pins outside the socket, and redirect pin 10 (Ethernet) to 53.
Connect pin 4 of the SD to 5V (or 3.3V for some modules) with a safety resistor of 1k to 10k.
The newer (version R3) shields use the ICSP header, you can't bend those pins, you have to change the circuit board.

This is how this bending is done: http://mcukits.com/2009/04/06/arduino-ethernet-shield-mega-hack/

After that, you still have to change the Ethernet library for the used pin.

Quick question, what is the Ethernet shield you are using for the MEGA? Long story short is I have an UNO with an Ethernet shield which I had to move the SS pin (10) from the shield to pin 4. All you have to do is bend pin 10 away from your board and wire pin 4 to pin 10 via a jumper. You also have to re write the code a bit. If we are using the same shield, then I can help walk you through that. My shield is http://arduino.cc/en/Main/ArduinoEthernetShield.

Matt