problema con enc28j60

niente da fare non va

non appare nulla?

no niente di niente

ma nell'esempio prima (che funzionava) cosa ti appariva?
prova a far partire questo con il cavo di rete staccato... almeno le scritte iniziali devono apparire, altrimenti non mi spiego proprio cosa non vada...

ethercard demo

questo appare

e basta? allora non va proprio il modulo ethernet... hai un link del modulo che stai usando?

http://www.ebay.it/itm/360418038797?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649

e questa la mia shield

ciao

è identica alla mia... mi dispiace ma se non passa neppure la begin() temo sia rotta.
bye

ma io con queste schede ethernet sono troppo sfortunato

cmq ho provato questo esempio che cera nella tua libreria e questo mi da dei numeri sul serial monitor

// Arduino demo sketch for testing the DHCP client code
//
// Original author: Andrew Lindsay
// Major rewrite and API overhaul by jcw, 2011-06-07
//
// Copyright: GPL V2
// See The GNU General Public License v3.0 - GNU Project - Free Software Foundation

#include <EtherCard.h>

static byte mymac[] = { 0x74,0x69,0x69,0x2D,0x30,0x31 };

byte Ethernet::buffer[700];

void setup () {
Serial.begin(57600);
Serial.println("\n[testDHCP]");

Serial.print("MAC: ");
for (byte i = 0; i < 6; ++i) {
Serial.print(mymac*, HEX);*

  • if (i < 5)*

  • Serial.print(':');*

  • }*

  • Serial.println();*

  • if (ether.begin(sizeof Ethernet::buffer, mymac) == 0)*

  • Serial.println( "Failed to access Ethernet controller");*

  • Serial.println("Setting up DHCP");*

  • if (!ether.dhcpSetup())*

  • Serial.println( "DHCP failed");*

  • ether.printIp("My IP: ", ether.myip);*

  • ether.printIp("Netmask: ", ether.mymask);*

  • ether.printIp("GW IP: ", ether.gwip);*

  • ether.printIp("DNS IP: ", ether.dnsip);*
    }
    void loop () {}

o pure mi funziona solo che escono dei caratteri strani

// Ping a remote server, also uses DHCP and DNS.
// 2011-06-12 jc@wippler.nl The MIT License – Open Source Initiative

#include <EtherCard.h>

// ethernet interface mac address, must be unique on the LAN
static byte mymac[] = { 0x74,0x69,0x69,0x2D,0x30,0x31 };

byte Ethernet::buffer[700];
static uint32_t timer;

// called when a ping comes in (replies to it are automatic)
static void gotPinged (byte* ptr) {
ether.printIp(">>> ping from: ", ptr);
}

void setup () {
Serial.begin(57600);
Serial.println("\n[pings]");

if (ether.begin(sizeof Ethernet::buffer, mymac) == 0)
Serial.println( "Failed to access Ethernet controller");
if (!ether.dhcpSetup())
Serial.println("DHCP failed");

ether.printIp("IP: ", ether.myip);
ether.printIp("GW: ", ether.gwip);

#if 1
// use DNS to locate the IP address we want to ping
if (!ether.dnsLookup(PSTR("www.google.com")))
Serial.println("DNS failed");
#else
ether.parseIp(ether.hisip, "74.125.77.99");
#endif
ether.printIp("SRV: ", ether.hisip);

// call this to report others pinging us
ether.registerPingCallback(gotPinged);

timer = -9999999; // start timing out right away
Serial.println();
}

void loop () {
word len = ether.packetReceive(); // go receive new packets
word pos = ether.packetLoop(len); // respond to incoming pings

// report whenever a reply to our outgoing ping comes back
if (len > 0 && ether.packetLoopIcmpCheckReply(ether.hisip)) {
Serial.print(" ");
Serial.print((micros() - timer) * 0.001, 3);
Serial.println(" ms");
}

// ping a remote server once every few seconds
if (micros() - timer >= 5000000) {
ether.printIp("Pinging: ", ether.hisip);
timer = micros();
ether.clientIcmpRequest(ether.hisip);
}
}

che mi dite di questo mistero

ma hai impostato a 57600 il monitor seriale?
che cosa esattamente ti appare su tale monitor quando esegui lo sketch?
Prova ad aprire il monitor, impostare la velocità a 57600, cliccare il pulsante RESET sullo shield e aspettare... poi posta quello che vedi

:roll_eyes: questo succede quando si vuole guidare una formula1 senza avere la patente....

luca e' un ottimo acquisto, la pazienza e' dalla sua parte :slight_smile:

finché dura :wink:

il secondo esempio da tutte cifre consecutive tipo
a1:50:0:4:0:0:0:17

e cosi via dicendo mentre il primo esempio invece

questo e quello che mi compare sul serial monitor

questa e l'immagine del secondo sketch