I am currently building a remote controlled submarine. The system will be comprised of a command/control station on shore, a relay buoy tethered via ethernet to the sub, and the sub itself. On board, I have a camera for a live HD video feed, as well as various measurement sensors. I thought an Ardupilot might be a good option for controlling the sub, as it includes certain features I would want to have aboard (e.g. gyros and accelerator). I have been able to obtain an APM for free, but I need to be able to use an ethernet shield so that I can get all the components linked to a switch and ran over the one tether line, and then sent over the radio wirelessly to the C/C station. Is there an ethernet shield that is recommended for the APM and would installation and configuration be similar to the Arduino Mega hack that I've seen posted? Thank you for any help you might be able to provide.
@johnwasser: I see what you mean now. However, the ethernet shield has nothing connected to D11 to D13. The old "Mega hack" no longer works. You must jumper the ICSP pins on the ethernet shield to D50 to D52.
@SurferTim and @johnwasser : thank you so much for the help! So to verify, I re-assign pins D11-D13 to D50-D52 on the APM and then jumper them to the appropriate places on the shield? As you can tell, I am completely new to this. Thanks again guys!
Forget D11 to D13. There is nothing you need on those pins on the APM or the ethernet shield.
You must jumper the MISO, MOSI and SCK lines from the ICSP socket on the ethernet shield to D50, D51 and D52 respectively, and connect D10 on the ethernet shield to D10 on the APM.
Oops. I thought the ArduPilotMega ran on an Arduino Mega. To use it with an Ethernet Shield you will need to figure out how to reach the SPI bus. There is an ICSP header for uploading firmware so that should help. five of the six pins would connect from there to the ICSP socket on the bottom of the Ethernet Shield. The 6th needed connection is from Pin 10 of the shield to Pin 10 of the APM. You'll need to find pin definitions of the APM to find out where Pin 10 is used. If Pin 10 is used for something vital you can change the Ethernet library to use a different pin.
Again guys, very big help. I don't have that the red APM that you linked to, but I have the one in this link (below). From what I'm gathering though, they are the same thing just in different packages (correct?). You guys make it seem so easy! I guess it just takes better minds than mine haha.
Take a look at this pic with no pins soldered on it.
Lower left, next to the USB connector are what appear to be the SPI pins. They are labelled "AT2560 SPI". The square pad should be pin 1. With the pins soldered to the board, they would be the last 6 pins in that row.
edit: It only seems easy. I've been hacking electronics for almost 30 years.
The SPI pins are even labelled on the side of the case.