Go Down

Topic: Problem with ardumoto. (Read 838 times) previous topic - next topic

acintra

Hello guys.

My group is building a treadmill robot using one arduino diecimilanove and one ardumoto driver shield.
But now we are suffering with some problems with ardumoto. I think that we did overpowered our ardumoto and now only one of the DC motors are running correctly in two direction (LOW and HIGH).
The second DC motor (that are connected to port A of ardumoto) only runs in one direction (LOW). I tried to change the DC motors and the second motor worked fine in the B side of ardumoto, so i think the problem is in ardumoto and isn't on DC motors.

We are using the following code to control the motors:

#include <Wire.h>
#include <nunchuck_funcs.h>

int pwm_a = 3; 
int pwm_b = 11; 
int dir_a = 12;
int dir_b = 13;

int accx,accy,x,y,zbut,cbut;

void setup()
{
  pinMode(pwm_a, OUTPUT); 
  pinMode(pwm_b, OUTPUT);
  pinMode(dir_a, OUTPUT);
  pinMode(dir_b, OUTPUT);
  analogWrite(pwm_a, 0);
  analogWrite(pwm_b, 0);
}

void loop ()
{
  analogWrite(pwm_a, 150);     
  analogWrite(pwm_b, 150);
 
  delay (50);
 
  digitalWrite(dir_a, LOW); 
  digitalWrite(dir_b, LOW);
}


I think that code is alright because we just used they early and worked.

Do you guys think what could be the problem?

Thanks to all of you..

Si

Sadly, it sounds very much live you have burnt out one channel of your motor shield. Time to buy a new higher power one? There are other types available, have a look at Ruggedcircuits website.
--
I write books about Arduino and Electronics: http://simonmonk.org

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy