Wiznet W5100 network module connection to Arduino Mega

Hi I just want to make sure if i did the right thing.. kindly check if my connections are right because im not really sure if i did the right thing..

Here's a link for the module
http://arduino-info.wikispaces.com/Ethernet

then i plan on using this http://www.newegg.com/Product/Product.aspx?Item=N82E16833127048 so i can it's like having POE.. is this ok?

Thanks,
endl3ss

EDIT:
change the expired link.. sorry about that..

then i plan on using this Computer Parts, PC Components, Laptop Computers, LED LCD TV, Digital Cameras and more - Newegg.com so i can it's like having POE.. is this ok?

Really hard to say, given this:

We apologize for the inconvenience, but the item you are looking for has been deactivated.

kindly check if my connections are right because im not really sure if i did the right thing..

Given the link, we know what you were supposed to do. No clue what you actually did. Unless it was just a picture that was blocked. In which case, I'm still clueless but others might not be.

The connection diagram on the linked page is for an UNO. The SPI pins of the Mega are not on pin 10-13. You should use pin 10 for SS but SCK, MISO and MOSI are available on the ICSP connector (the 6 pin connector in the middle of the Mega board) or alternatively on pin 50 (MISO), 51 (MOSI) and 52 (SCK).

Really hard to say, given this:

We apologize for the inconvenience, but the item you are looking for has been deactivated.

Sorry About that.. Just changed the link..

pylon:
The connection diagram on the linked page is for an UNO. The SPI pins of the Mega are not on pin 10-13. You should use pin 10 for SS but SCK, MISO and MOSI are available on the ICSP connector (the 6 pin connector in the middle of the Mega board) or alternatively on pin 50 (MISO), 51 (MOSI) and 52 (SCK).

So i still need pin 10 for ss? pin 50 (MISO), 51 (MOSI) and 52 (SCK)... If i can't use pin 10 what's the alternative pin i can use for SS?

Thanks,
endl3ss

If i can't use pin 10 what's the alternative pin i can use for SS?

You can use any digital IO pin but you have to change the Ethernet library because pin 10 is hardcoded there.

Sorry About that.. Just changed the link..

I still get the same error...

You can use any digital IO pin but you have to change the Ethernet library because pin 10 is hardcoded there.

Thanks a lot.. :).. Is it in ethernet.h?

and btw pin 53 will be open? i won't plug anything there?.. NSS goes to pin 10 or the digital pin i chose?

I still get the same error...

Awww.. here's a new link http://unihedron.com/projects/sqm-le/PDFspecs/PoE/DWL-P200_fab.pdf

Is it in ethernet.h?

As far as I remember it's in w5100.h and I think it's port based so you have to dig into the datasheet of your controller.

and btw pin 53 will be open? i won't plug anything there?

Yes.

NSS goes to pin 10 or the digital pin i chose?

Yes.

As far as I remember it's in w5100.h and I think it's port based so you have to dig into the datasheet of your controller.

Thanks a lot i found it.. yes i'ts in w5100.h

  static const uint8_t RST   = 0x80;
  static const uint8_t PB    = 0x10;              //Is this the one to change?
  static const uint8_t PPPOE = 0x08;
  static const uint8_t LB    = 0x04;
  static const uint8_t AI    = 0x02;
  static const uint8_t IND   = 0x01;

Thank you so much you've been a great help :slight_smile:

Is this the one to change?

No.

It must be in something like setSS, clearSS or the like.