I picked up an AdaFruit Motor Shield V2.3 . The example on the site shows how to code the DC Motor connection
// Create the motor shield object with the default I2C address Adafruit_MotorShield AFMS = Adafruit_MotorShield(); // Or, create it with a different I2C address (say for stacking) // Adafruit_MotorShield AFMS = Adafruit_MotorShield(0x61); // Select which 'port' M1, M2, M3 or M4. In this case, M1 Adafruit_DCMotor *myMotor = AFMS.getMotor(1); // You can also make another motor on port M2 //Adafruit_DCMotor *myOtherMotor = AFMS.getMotor(2)
What I'm unclear about is how to connect the shield to the mega board. Which pin on the shield should connect to which pin on the board in order for
Motor 1 to run at that speed?