Hello,
I am using an Arduino Uno R3 with an Ethernet Shield 2. I have used the Arduino recently on its own with no problem (uploading simple sketches, etc.). I have a power supply and the USB plugged into the Arduino and the Shield's Ethernet plug's lights display. Everything looks fine.
While trying to set up a simple web server (the one in Programming Arduino Getting Started With Sketches) I noticed that I received no response. Nil. Nada. Nothing.
I began troubleshooting and found some threads on this forum for troubleshooting. From one of the threads, I uploaded the following test sketch to my Arduino:
#include <SPI.h>
#include <Ethernet.h>
byte mac[] = {0x90,0xA2,0xDA,0x10,0x03,0x22};
IPAddress ip(192,168,2,2);
void setup()
{
Serial.begin(9600);
pinMode(4,OUTPUT);
digitalWrite(4,HIGH);
Ethernet.begin(mac,ip);
Serial.println(Ethernet.localIP());
}
void loop() {
// put your main code here, to run repeatedly:
}
This gave me the unfortunate result of 0.216.216.216. The universal test sketch "DHCPAddressPrinter" returns NOTHING on the serial monitor. I waited for 5 minutes and nothing whatsoever displayed.
It seems like almost anything involving Ethernet.begin() results in no response. Poke poke. Is it dead? Since it at least responds, i.e., when it printed the bizarre IP above, I'm guessing that I set up the mac address correctly. Everything else on the Arduino seems to function fine. In case this makes any difference, I'm running the Arduino IDE v1.6.5 on Win7.
Is my Ethernet shield a goner? Do I need to get a new one? Or is there anything else I can try?
Thank you!