Page 1 of 1

PWM

Posted: Sat Mar 17, 2018 12:59 pm
by GS76
To whom it may concern:

I use Kflop and KStep and I am trying to get the speed to run correctly with the DC motor driver I purchased.

Please refer to the link below.

http://dynomotion.com/Help/SchematicsKS ... htm#analog

I am using the following DC driver:

https://www.robotics.org.za/motors-dc/LIY-10A32S which uses 0-5V as the speed control.

If I use the C code as described at the bottom of the analog section of the top link, how would I adjust it for the 0-5V input as required by the DC motor controller.

Any assistance will be greatly appreciated.

Thanks.

Re: PWM

Posted: Sat Mar 17, 2018 10:22 pm
by TomKerekes
Hi GS76,

I don't think you will need to change anything. Both the software and hardware work to apply a fraction of the supplied voltage. So if 10V is applied then the range will be 0-10V. If 5V is applied then the range will be 0-5V. I didn't find a complete specification for that driver but I assume it has a 5V output applied to the potentiometer. The KStep PWM-to-Analog converter may be somewhat less linear over the smaller voltage range.