Hey
I have a duemilanove with an ethernet shield which I use (well until recently at least) to control my lights from an android tablet, by running a small webserver on the Arduino.
To test some new stuff I loaded other code on the Arduino, however when I switched back to my other code it did not work anymore.
The Arduino itself seems to do fine, but I don't get the network shield to work anymore. I've tried every library and example I could find, but I can't get something to work on the network shield.
For example, when i try the code from
http://arduino.cc/en/Tutorial/TwitterClient, which contains:
// initialize serial:
Serial.begin(9600);
// attempt a DHCP connection:
Serial.println("Attempting to get an IP address using DHCP:");
if (!Ethernet.begin(mac)) {
// if DHCP fails, start with a hard-coded address:
Serial.println("failed to get an IP address using DHCP, trying manually");
Ethernet.begin(mac, ip);
}
Serial.print("My address:");
Serial.println(Ethernet.localIP());
// connect to Twitter:
connectToServer();
My serial monitor shows "Attempting to get an IP address using DHCP:", and then nothing. So I even don't get to the error.
Also examples with fixed IP's don't work, even if I add mac and IP to the router (which seemed to be necessary when it worked earlier).
At least the lights on the network connector work...
Does anybody have an idea what is going on or what I should try?
Thanks