scheda mega 2560 pro e ethernet shield w5100

salve chi puo' aiutarmi?
il mio progetto basato sulla sheda mega2560 pro ha bisogno di una scheda ethernet.
ho provato con la scheda w5100

ho provato per giorni a far funzionare queste due schede con la libreria Ethernet.h
le schede sono collegate tra di loro tramite connettore ICSP

in piu ho collegato il pin 4 sul 4 (per la sd che a me non serve)
e il 53(SS) sul 10 della scheda ethernet.

poi ho aggiunto all'esempio DhcpAndressPrinter le righe

pinMode(53, OUTPUT);
digitalWrite(53, HIGH);

ma non funziona.
la scheda montata su arduino one funziona perfettamente
Dove sbaglio???

Ti segnalo che, nella sezione in lingua Inglese, si può scrivere SOLO in Inglese ... quindi, per favore, la prossima volta presta più attenzione in quale sezione metti i tuoi post; questa volta è stato spostato nella sezione di lingua Italiana ... la prossima volta potrebbe venire direttamente eliminato ::slight_smile:

Guglielmo

grazie mi scuso.... :blush:

Credo si aun problema di pin di SS o cose simili ...
... ti rammento che:

Arduino communicates with both the W5100 and SD card using the SPI bus (through the ICSP header). This is on digital pins 10, 11, 12, and 13 on the Uno and pins 50, 51, and 52 on the Mega. On both boards, 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 corresponding libraries. If you're not using one of the peripherals in your program, however, you'll need to explicitly deselect it. To do this with the SD card, set pin 4 as an output and write a high to it. For the W5100, set digital pin 10 as a high output.

Quindi, NON devi fare alcun collegamento manuale, tutti i collegamenti avvengono tramite i giusti pin sulle pin-headers, piuttosto devi fare quanto è chiaramente specificato riguardo alle impostazioni dei vari pin ed al loro uso.

Guglielmo