Pages: [1]   Go Down
Author Topic: Ethernet shield and mega 2560 with arduino 1.0.1  (Read 718 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Unfortunately I have run out of space on my uno and need to move to the mega.

I am having problems getting my Ethernet shield working with the mega.

The code works on the same shield on the uno but when I move the shield to the Mega it compile without  any errors,but just don't respond.

I have a tinker.it Ethernet shield without sd card reader. And a original mega R3.
using Arduino 1.0.1 IDE

I have followed this guide http://mcukits.com/2009/04/06/arduino-ethernet-shield-mega-hack/
and searched various online sources but most information seem out of date.

The files that need modification are not available and the Ethernet and SPI libraries are in different locations.

Has anyone been successful in getting this configuration working with the new 1.0.1 IDE ?

Many Thanks


Logged

Offline Offline
Edison Member
*
Karma: 58
Posts: 2078
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am not sure about the tinker.it Ethernet shield.
Can you provide a link to it? I can't find it. The tinker.it website seems to be down.
If that shield is like the shield in the link, than it seems that it doesn't have the ICSP 6-pin header at the back side. If you have that 6-pin header, you don't need to make modifications.

The older Ethernet shield can be connected with the older Arduino Mega without modification.
The newest Ethernet shield can be connected with the newest Arduino Mega without modification.

I think the code has to be changed some.
Pin 53 on the Mega board is not used, but it must be declared as output to make the SPI work.
I use pin 4 as Chip Select for the SD (both for Uno and Mega).
I use pin 10 as Chip Select for the Ethernet (both for Uno and Mega).

You should start with downloading the newest Arduino 1.0.3.
« Last Edit: February 20, 2013, 12:43:05 pm by Erdin » Logged

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

Thanks for the quick reply

The unit looks exactly tike the one in the link and it don't have the  ICSP socket. (It look like it is part of maker now)

I am aware that the new shield will work without modification on the R3 mega.
Unfortunately the Ethernet shields are fairly expensive here in South Africa for prototyping.And I already have the older shield which I would try and get working.

It is a software fix but all info I found so far are pre arduino 22. The problem is that I cannot find the files that are described in the link and other souses.   

Thanks
Logged

Offline Offline
Edison Member
*
Karma: 58
Posts: 2078
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Take a look at the schematic of the Ethernet Shield, http://arduino.cc/en/Main/ArduinoEthernetShield
Look for the ICSP header.
The signals are MOSI, MISO, SCK, SS. Those signals are missing, and you have to connect the Mega signals to it.
That is what is done in the link you gave.

Can you do that ?
Logged

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

Thanks for your help, I have managed to get it working.

I have tested both methods suggested ie. using all 4 pins and 3 pins.

I have the shield contented the following way Mega Pin 50 from pin 12(MISO), Mega Pin 51 from pin 11(MOSI), Mega Pin 52 from pin 13(SCK) and pin 10 remains on pin 10.

Just had to set the pin 53 to an output and it seems to be working. javascript:void(0);
Logged

Pages: [1]   Go Up
Jump to: