PWM generator task for 8 motors

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

PWM generator task for 8 motors

Postby Mik333 » Mon Dec 15, 2014 4:09 pm

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

Postby Mik333 » Mon Dec 15, 2014 4:12 pm

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: 1124
Joined: Thu May 27, 2010 10:08 am

Postby infiniteimprobability » Wed Dec 17, 2014 11:39 am

nice work..

Who is online

Users browsing this forum: No registered users and 0 guests