Mega 2560 + Nuelectronics Ethernet Sheild problems

Hi all

Have been stuck for a couple of nights on this, have tried some suggestions from here but none work. Can anyone help? :cry:

What I have got working so far:
The Arduino alone (no Ethernet Sheild) doing some basic analogue readings (temp, light) and flashing LEDs - all works fine.

What I am trying to achieve:
Eventually: the Arduino working as a web client, sending analogue readings and digital input readings to a remote web server. But for now my goal is to get any sort of contact over ethernet with the Arduino. I have been trying to get it to run as a simple web server serving up a few HTML tags.

What I have:
Arduino Mega 2560
Nuelectronics Ethernet Sheild
Both linked using the 4-wire version of this hack:
http://mcukits.com/2009/04/06/arduino-ethernet-shield-mega-hack/
Arduino alpha 0021 IDE on Windows XP PC connected to Arduino by USB
9V mains PSU
CAT5 Ethernet connection from Arduino and PC - known good

Both the PC and Ethernet Sheild are connected to my router. PC has IP address 192.168.2.4. My router has a DHCP Client List suggesting there is nothing on the network above .7. So I have set the IP address of the Arduino as {192, 168, 2, 8} in the various bits of software.

The mac addresses I am using are all unique, as far as I can tell.... :-/

On the Arduino Ethernet Sheild the green led stays steady and the orange one flashes occassionally, especially when trying to ping it (but there is no response to a ping).

The library for this board is uploaded to
C:\Documents and Settings\USER\My Documents\Arduino\libraries
library is from http://www.nuelectronics.com/estore/?p=14

The software I have tried:
Simplified ethernet library from here:

  • The hello world web server example on this page uploads to Arduino without errors and appears to run but I cannot get a response from it when I visit http://192.168.2.8/ in my browser (get DNS error after a few seconds).

I have also tried the etherSheild_webserver at
http://www.nuelectronics.com/estore/?p=14
This again uploads without error but I cannot contact the Arduino

I then replaced the etherSheild library with this version:
http://blog.thiseldo.co.uk/?p=329
When I upload this sketch, I get an error on this line:
dat_p=es.ES_packetloop_icmp_tcp(buf,es.ES_enc28j60PacketReceive(BUFFER_SIZE, buf));

The error is:

etherShield_webserver.cpp: In function 'void loop()':
etherShield_webserver:57: error: 'class EtherShield' has no member named 'ES_packetloop_icmp_tcp'
etherShield_webserver:82: error: 'class EtherShield' has no member named 'ES_www_server_reply'

...which doesn't mean much to me.

I suspect I am doing something fundamentally wrong here.....any help getting my Mega + Nuelectronics Ethernet Sheild talking to the outside world will be appreciated!

Thanks :slight_smile:

So I have set the IP address of the Arduino as {192, 168, 2, 8} in the various bits of software.

Have you logged into your router and verified that a 192.168.2.8 device is connected to the router with the various codes you tried? You may have to get the router to refresh its connected device listing to see something new connected. Even though the nuelectronics shield is cheaper, I got the w5100 shield as the nuelectronics appear difficult to understand and get running.

Have you logged into your router and verified that a 192.168.2.8 device is connected to the router with the various codes you tried?

Thanks for the reply. Yes I have checked my router when running the code and refreshed the display - it never shows the Arduino in its list. :frowning:

as the nuelectronics appear difficult to understand and get running

Would certainly agree with you there. :wink: