PWM

Moderators: TomKerekes, dynomotion

Post Reply
GS76
Posts: 20
Joined: Sun Mar 04, 2018 2:50 pm

PWM

Post by GS76 » Sat Mar 17, 2018 12:59 pm

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.

User avatar
TomKerekes
Posts: 2527
Joined: Mon Dec 04, 2017 1:49 am

Re: PWM

Post by TomKerekes » Sat Mar 17, 2018 10:22 pm

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.
Regards,

Tom Kerekes
Dynomotion, Inc.

Post Reply