[solved] W5100 Funfuino - Mega 2560 PRO || NOT WORKING

Hi

I have Mega 2560 PRO and Fundino (red) w5100. Im having problems with ISP comunnication (i think). If someone can help me i will be very happy :slight_smile:

That is my wiering:

W5100 // Mega 2560 PRO

GND -----> GND
5V -----> 5V
SS -----> D10
MO -----> MISO (SPI)
MI -----> MOSI (SPI)
CK ------> SCK (SPI)

Test program:

#include <SPI.h>
#include <Ethernet.h>

byte mac[] = {  0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xEC };
IPAddress ip(192,168,1,2);

void setup() {
  Serial.begin(9600);

 

  Serial.println("Starting w5100");
  Ethernet.begin(mac,ip);

  Serial.println(Ethernet.localIP());
}

void loop() {
}

Result:

Starting w5100
255.255.255.255

Thanks

it is SPI not ISP
try the examples of the latest version of the Ethernet library. there is a better diagnostic.
what is Mega Pro? some link to the product? it is the small Robotdyn board with 2560?
and the funduino is a module?

the SPI should be MOSI to MO, MISO to MI, because M is Master, S is Slave, I is In and O is Out

Thanks. It was MOSI-MISO.

Solution:
SPI should be MOSI to MO, MISO to MI