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?
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);