Adafruit Motor Shield with XBee Shield

This is a question about the closed topic:

I want to do a similar thing, but am new to this and want to make sure I'm doing it right.

According to the Adafruit motor shield FAQ (Motor Shield - Arduino motor/stepper/servo control) Pin 3 is only used if a DC motor is attached to Motor #2.

I couldn't find the info on Sparkfun's webpage, but I found that the Xbee shield only uses Pins 0 through 3 on this page:
http://shieldlist.org/sparkfun/xbee

So... If I'm only using 3 DC motors, I can stack the motor shield on the xbee shield if I attach my motors to #1, #3, and #4 right?

What if I want to run 4 DC motors?

Hi

i need to do a PWM for motor DC control. help please

this are my programs:

//ENVIA VALOR DEL POTENCIOMETRO PARA PWM

const int pot = A0; // entrada del potenciometro

int potV = 0; // valor del pote
int outputV = 0; // valor de salida (PWM)

void setup() {

Serial.begin(9600);
}

void loop() {
// lee el valor del potenciometro
potV = analogRead(pot);
// map el rango de la salida analogica
//outputV = map(potV, 0, 1023, 0, 255);
Serial.println(potV);

delay(10);
}

//RECIBE VALOR DEL POTENCIMETRO Y GENERA PWM

const int Salida = 9; // salida analogica por el pin 9
int potV = 0; // valor del potenciometro
int outputV = 0; // valor de salida (PWM)

void setup() {

Serial.begin(9600);
}

void loop() {

while (Serial.available() > 0) {
delay (10);
//lee el valor del potenciometro del SerialMonitor
potV = Serial.read();
// map el rango de la salida analogica
outputV = map(potV, 0, 1023, 0, 255);

analogWrite(Salida, outputV);
Serial.println(outputV);
delay(10);
}}

espero i me puedan ayudar Gracias