Buongiorno a tutti
possiedo una scheda arduino uno con lo shield ethernet, non originale.
come ide uso la versione 1.6.5
queste sono le versioni che uso di arduino
http://www.ebay.it/itm/171838495393?_trksid=p2060353.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT
il problema è che quando eseguo un qualsiasi pezzo di codice per assegnarli un indirizzo ip dinamico o statico non mi viene assegnato
quello che viene stampato a seriale quando mostro l'indirizzo ip è il seguente
la risposta del seriale è
server is at 0.255.0.0
oppure qualcosa di simile
il problema potrebbe essere quel striscio che si vede sulla foto in allegato?
il pezzo di codice che eseguo è il seguente, oppure uno simile
#include <SPI.h>
#include <Ethernet.h>
// Enter a MAC address for your controller below.
// Newer Ethernet shields have a MAC address printed on a sticker on the shield
byte mac[] = {
0x00, 0xAA, 0xBB, 0xCC, 0xDE, 0x02 };
// Initialize the Ethernet client library
// with the IP address and port of the server
// that you want to connect to (port 80 is default for HTTP):
EthernetClient client;
void setup() {
// start the serial library:
Serial.begin(9600);
// start the Ethernet connection:
if (Ethernet.begin(mac) == 0) {
Serial.println("Failed to configure Ethernet using DHCP");
// no point in carrying on, so do nothing forevermore:
for(;;)
;
}
// print your local IP address:
Serial.print("Indirizzo ip: ");
Serial.println(Ethernet.localIP());
}
void loop() {
}

