Go Down

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


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.


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


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

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!

via Egeo 16
Torino, 10131