Hi guys
So I bought this pololu high power motor driver (18v15A) Pololu High-Power Motor Driver 18v15
I've soldered it up and connected it to my Arduino and I have it running, however the problem is that I cannot seem to adjust the speed using PWM on the Arduino!
Here are my connections:
Powersupply V+ connected to V+ on pololu driver
Powersupply com connected to ground on pololu driver
motor connected to out A and out B
pololu ground connected to Arduino ground
pololu driver dir connected to Arduino pin 11
pololu driver pwm connected to Arduino pin 12
(interestingly the pwm pin on the board is printed in white text as pwmH not pwm, just a side note)
The code I'm using moves the motor for 10 seconds at 150pwm and then stops it for 2 seconds and loops. I have tried varying values for pwm ranging from 1 through 250 and the speed does not seem to change and I cannot figure out why.
As far as I can see the power supply is supplying correct voltage and can provide more than enough current, and my connections are sound. I've checked the soldered joints and they are fine too.
Here's the code I am using:
int pwm = 9;
int dir = 10;
int val;
void setup()
{
Serial.begin(9600);
pinMode(pwm, OUTPUT);
pinMode(dir, OUTPUT);
digitalWrite(pwm, LOW);
digitalWrite(dir, LOW);
}
void loop()
{
digitalWrite(dir, HIGH);
digitalWrite(pwm, 150);
delay(10000);
digitalWrite(dir, LOW);
digitalWrite(pwm, LOW);
delay(2000);
}
I can't figure it out, has anyone else managed to get this driver pwm to adjust motor speed working?
Thanks