Go Down

Topic: [solved] W5100 Funfuino - Mega 2560 PRO || NOT WORKING  (Read 244 times) previous topic - next topic

smartik

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 :)

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:
Code: [Select]
#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

Juraj

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
You can't write an Arduino sketch if you didn't learn programming. Not the language, but the concepts of programming - algorithms and data types.

smartik

Thanks. It was MOSI-MISO.

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


Go Up