PWM generator task for 8 motors

XCore Project reviews, ideas, videos and proposals.
Post Reply
Mik333
Junior Member
Posts: 5
Joined: Tue Sep 09, 2014 4:19 pm

PWM generator task for 8 motors

Post 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:


Mik333
Junior Member
Posts: 5
Joined: Tue Sep 09, 2014 4:19 pm

Post 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
User avatar
infiniteimprobability
XCore Legend
Posts: 1126
Joined: Thu May 27, 2010 10:08 am
Contact:

Post by infiniteimprobability »

nice work..
Post Reply