Pages: [1]   Go Down
Author Topic: Why does my Ethernet Shield not work?  (Read 1158 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Dear all,

I'm an Arduino newbie, so forgive me if I'm maybe missing the obvious ...

Together with my Arduino Mega 2560 I got the following Ethernet Shield from watterott.de: .

Does anyone know which specific type of Ethernet Shield this is? It looks quite different from the V5 on arduino.cc.

I can access the Micro SD card properly using the sdfatlib20101010. However, I can't get the Ethernet to work.

I tried with a regular cable. I also crimped a cross cable. I connected both to my Notebook and to an Wifi Access Point. Under no circumstances do I get the physical link established (I mean, the LED's on the NIC of the Notebook don't light up, nor does the Access Point LAN LED light up).

Any clue what I'm doing wrong?

Kind regards,
Sebastian
Logged

0
Offline Offline
Tesla Member
***
Karma: 141
Posts: 9470
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You will probably have to do some pin changes on the mega as the mega has different pin locations than the other arduino boards. There have been previous post on the subject that a search might find.
Logged

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well, I don't really understand this pin 53 business. On top of this, see that instead of the standard pins 10, 11, 12, 13 on my shield pins 3, 5, 6, 9, 10 and 11 are marked? I really seem to first need the schematics of this shield, don't you think? Or maybe I should return this shield and rather ask for exactly the V5 as documented at http://arduino.cc/en/Main/ArduinoEthernetShield?
Logged

0
Offline Offline
Tesla Member
***
Karma: 141
Posts: 9470
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Perhaps you should have been a little more knowledgable about what you were buying before making your purchase. Keep the mega as a learning experience and purchase a regular arduino if you need a direct pin plug up.
Logged

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

New River, Arizona
Offline Offline
God Member
*****
Karma: 19
Posts: 928
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I have a V5 ethernet shield attached to a mega 2560 and it works really well.  The 'official' arduino was modified especially to work with the mega boards, and at least in my case, does.  The fact that you don't have a light on the router when you plug it in and power it up probably means the board itself is actually bad.  The ethernet board will interact to a small degree with a router with only power supplied and no program at all on the arduino.  Additionally, there have been reports of seemingly official arduino ethernet boards that were very different from the V5 cards pictured on this site; they even came in the cardboard box.

I recommend you contact the supplier, they'll probably work with you on this. 
Logged

Trying to keep my house under control http://www.desert-home.com/

Sussex UK / CT USA
Offline Offline
Edison Member
*
Karma: 0
Posts: 1028
Forums forever
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
You will probably have to do some pin changes on the mega as the mega has different pin locations

Alternatively, put the mega and the shield side by side, and just interconnect the pins necessary to the functions you are using, using jumper wires. I found that the NuElectronics ethernet shield works fine with just 6 (? or so... working from memory) interconnects. Details of that at...

ArduServer.com

... where you will also find details of the many OTHER issues you will have to deal with, unrelated to which Arduino, which shield you are working with.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Purchase a regular arduino if you need a direct pin plug up.

Zoomkat, all, FYI, my project involves to read out two electrical power meters (solar panels and network in-out), both via serial infrared and (since this is not accurate enough for a short-term display of my own current power consumption) via the blinking LED indicating that another 1/10 Wh have been consumed. I measure the rise time interval of the blinking LED quite accurately (+/- 100 μs) to have an good readout. I can not afford therefore to tackle the two serial ports in software, but rather need sufficient hardware serial ports. That's why I chose the Mega 2560. Also the V5 ethernet shield is announced to be fully compatible with the Mega 2560.

I'm still puzzled which version of the shield I have, and why it doesn't even achieve a physical link. Maybe the USB power of the notebook (which I've been using so far) isn't sufficient? Btw, I have taken contact with the supplier as recommended.

Kind regards,
Sebastian

PS: When running a WebServer sketch, the LED marked L on the board lights up very very faintly. Maybe that helps to find the issue?
« Last Edit: April 23, 2011, 07:04:38 am by wangnick » Logged

New River, Arizona
Offline Offline
God Member
*****
Karma: 19
Posts: 928
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Wow, that LED makes it sound like you do have a power problem.  Get a voltmeter from someone for a couple of hours and take a look at the voltages.  A person can usually find a cheap one at various stores around town and that could tell you what is going on.  Try a different computer's USB port; maybe sneak the boards into a store with a cable and plug it in for a minute to see if it lights up more there.

Also, on two different occasions I've had USB cables that wouldn't supply the current I needed to run an arduino and shield.  It wasn't the ethernet card, but one of those multipurpose cards.  The cables can make a difference, even if they work well with some other devices.  The signals get through and they are wired right, but they just won't supply the current.
Logged

Trying to keep my house under control http://www.desert-home.com/

0
Offline Offline
Newbie
*
Karma: 0
Posts: 12
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have an Ethershield with SD card and I could not get the SD card to work but the ethernet does. I finally found the chip select hardware has to be enabled for either the SD card or the ethernet chip so you should try disabling the SD chipselect and making sure the ethernet '5100' chip is selected by it's CS line. The pin 53 stuff is very confusing and there are defines in the library header files to account for Mega - I did not have to use pin 53 programming.  What version of the compiler are you using?  There were some problems with reset on some versions of Ethershield cards too. It would be helpful to put some visual LED's to help with debugging the chipselect and your 'dim' link light makes me think the chipselect is the issue.
Logged

0
Offline Offline
Tesla Member
***
Karma: 141
Posts: 9470
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
That's why I chose the Mega 2560. Also the V5 ethernet shield is announced to be fully compatible with the Mega 2560.

When you asked the place you purchased it from, what did they say?
Logged

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
When you asked the place you purchased it from, what did they say?

They've told me it's the latest revision of the V5 board. They ask me to try the shield with external power, which I did and which didn't help. Then they proposed that I return the shield to them for inspection and potentially replacement (which I'm doing now).

Thanks for all the help so far. I'll keep you posted.

Kind regards,
Sebastian
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Dear all,

the Ethernet shield is repaired by the supplier and now it works as expected (Link and 100Mbit lights are all up, Web server sketch is working, and I saw my own UDP broadcast frames with Wireshark).

The L LED on this new revision seemingly does not map to pin 13 anymore. Alas, the schematics of this new revision are unfortunately not yet available: arduino.cc is reportedly always late in publishing them smiley-confuse.

I think I also understood the Mega pin 53 business now. It has to stay configured as an output pin so that the Arduino remains acting as SPI master, but does not need to be connected at all. The SPI chip select of the Ethernet still goes via pin 10, the one of the SD card still via pin 4 as usual. Thus, SD card and Ethernet should be both usable one after the other.

Thanks again for your assistance to an Arduino newbie.

Kind regards,
Sebastian
Logged

Pages: [1]   Go Up
Jump to: