This Ethernet Shield allows an Arduino board to connect to the internet. It is based on the
Wiznet W5100 ethernet chip. The W5100 Ethernet Shield uses the Ethernet library.
The shield adds a micro-SD card slot, which can be used to store files for serving over the
network. It is compatible with the Arduino Uno and Mega.
Arduino communicates with both the W5100 and SD card using the SPI bus (through the ICSP header).
This is on digital pins 11, 12, and 13 on the Arduino UNO and pins 50, 51, and 52 on the Arduino Mega.
Pin 10 is used to select the W5100 and pin 4 for the SD card. These pins cannot be used for general
I/O. On the Mega, the hardware SS pin, 53, is not used to select either the W5100 or the SD card,
but it must be kept as an output or the SPI interface won’t work.
Note that because the W5100 and SD card share the SPI bus, only one can be active at a time.
If you are using both peripherals in your program, this should be taken care of by the