Go Down

Topic: analogWrite not sending values (Read 462 times) previous topic - next topic

tb0508

Apr 11, 2012, 11:34 am Last Edit: Aug 24, 2012, 08:06 pm by tb0508 Reason: 1
Probably a small error on my part but for some reason the analogWrite is not cooperating. I have it marked in my code (*******HERE) and have debugged it and you can see my output seems to go through it with the output "Entered motorForward" and "Leaving motorForward" but does not seem that it writes it to the motorcontroller. I have checked my connections for PWMH and DIR and they are in the correct pins.

PaulS

If you replace the motor controller with some LEDs, do the LEDs change brightness correctly?

dxw00d

The numbers you are using seem quite low. Is there a reason you are limiting the top end of the range to 78? Some motors won't even start moving until a certain PWM value is applied.

Go Up