Page 1 of 1

PWM generator task for 8 motors

Posted: Mon Dec 15, 2014 4:09 pm
by Mik333
Version: 1
Status: Public release
License: BSD
Download: /files/project_builds/Motors Driver Code.zip

I am working on the development of a robot arm controller and I built this code to control 8 different PWM bidirectional channels in a single logical core, in order to drive 8 DC-brushed motors.
Code is optimized to have high performance and the results show that is possible to have a frequency of 5 KHz for all the PWM signals with a duty cycle resolution of 0,2%
Each PWM signal can run with a different duty cycle, configured using a simple interface.
Tested on xCORE-USB U16 sliceKIT.
(This is my first project posted on Xcore, so I would really appreciate your suggestions to help me sharing it on GitHub or to make it easier to use for other people)
Images:

Re: PWM generator task for 8 motors

Posted: Mon Dec 15, 2014 4:12 pm
by Mik333
After your suggestions I will be able to publish also a code to read 14 optical incremental encoders with a single logical core, computing position and speed on each encoder

Re: PWM generator task for 8 motors

Posted: Wed Dec 17, 2014 11:39 am
by infiniteimprobability
nice work..