<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>control a DC Motor using MOTOR CONTROL PWM in LPC1768</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/40334/control-a-dc-motor-using-motor-control-pwm-in-lpc1768</link><description> 
Hi every one 
I suppose to control speed of DC Motor using LPC1768(MOTOR CONTROL
PWM). 
is it feasible to implement a digital PID controller using 1768? or i
must use a more advanced micro controller. 
if YES, can you help me with writhing the codes</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: control a DC Motor using MOTOR CONTROL PWM in LPC1768</title><link>https://community.arm.com/thread/128321?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2013 06:43:34 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6e05767f-e838-4253-90e7-d6409bdf31e0</guid><dc:creator>&amp;#178;erik malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
Dhaval,&lt;/p&gt;

&lt;p&gt;
while your statements may very well be correct, let&amp;#39;s forget the
&amp;#39;blame game&amp;#39;, but is it reasonable to &amp;#39;help&amp;#39; these individuals get a
diploma reading &amp;#39;engineering&amp;#39; when it relly should read
&amp;#39;copying&amp;#39;.&lt;/p&gt;

&lt;p&gt;
the result of such &amp;#39;helping&amp;#39; is that such a &amp;#39;school&amp;#39; can adverise
an 82% graduation rate when only 5% of the graduates are able to make
&amp;#39;blinky&amp;#39; run.&lt;/p&gt;

&lt;p&gt;
Erik&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: control a DC Motor using MOTOR CONTROL PWM in LPC1768</title><link>https://community.arm.com/thread/128320?ContentTypeID=1</link><pubDate>Thu, 03 Oct 2013 04:36:28 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:295ae8b2-a403-45d5-b480-0860b990b614</guid><dc:creator>Amir Hejazi</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thanks Dear Dhaval&lt;br /&gt;
I have worked with QEI peripheral before. and i am more comfortable
with registers than CMSIS library.&lt;br /&gt;
i had a brief review of MCPWM part in LPC1768 datasheet. but i think
that part of datasheet isn&amp;#39;t as good as i thought!!&lt;/p&gt;

&lt;p&gt;
i decided to learn it using sample codes but unfortunately most of
the codes have been written using CMSIS library.&lt;/p&gt;

&lt;p&gt;
as i learnt, MCPWM consists of PWM + QEI, but it is not easy to
calculate position without using interrupt&lt;i&gt;(or i don&amp;#39;t know how to
do it!!)&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
i want to implement a digital pid controller that drives the motor
at constant velocity.&lt;br /&gt;
i know that my controller should fetch the qei velocity every time
period and generate appropriate voltage(in pwm form).&lt;br /&gt;
and i think it is easier to use PWM+QEI instead of MCPWM.&lt;/p&gt;

&lt;p&gt;
but i don&amp;#39;t know what&amp;#39;s the effect of PID calculation&amp;#39;s &lt;b&gt;time
waste&lt;/b&gt; during interrupt, on pid accuracy?(i want to refresh pid
calculation every 50us and clock frequency of 1768 is 100 MHz)&lt;br /&gt;
is it feasible to earn 50us refresh time?&lt;br /&gt;
how much clock pulses were spent in a simple &lt;i&gt;(without extra
codes)&lt;/i&gt; interrupt?&lt;/p&gt;

&lt;p&gt;
thanks&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: control a DC Motor using MOTOR CONTROL PWM in LPC1768</title><link>https://community.arm.com/thread/92366?ContentTypeID=1</link><pubDate>Wed, 02 Oct 2013 09:44:29 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1cf6b71f-76c9-4929-bd0e-709d0e90be10</guid><dc:creator>Amir Hejazi</dc:creator><description>&lt;p&gt;&lt;p&gt;
another question:&lt;br /&gt;
I can&amp;#39;t find QEIPOS &amp;amp; QEIVEL registers in MCPWM register list.
Does QEIPOS or QEITIME registers works in MCPWM section as it works
in QEI sections?&lt;br /&gt;
if not, how can i capture position? is it practical to setup QEI
&amp;amp; PWM together in order to use QEIPOS, QEITIME or QEIVEL
registers?&lt;br /&gt;
thanks&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: control a DC Motor using MOTOR CONTROL PWM in LPC1768</title><link>https://community.arm.com/thread/107291?ContentTypeID=1</link><pubDate>Sat, 21 Sep 2013 19:30:42 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:65590b31-ce51-461c-aacc-d501bccc3466</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
They sleep half the time during their school sessions. Then they
finally notices that they are expected to do different assignments to
pass the course. Then they get really exited about the existence of
Internet, hoping for a quick fix for their fix.&lt;/p&gt;

&lt;p&gt;
Hopefully, most schools don&amp;#39;t just hand out this kind of
assignments, but also have written tests on-site, with zero Internet
access.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: control a DC Motor using MOTOR CONTROL PWM in LPC1768</title><link>https://community.arm.com/thread/92370?ContentTypeID=1</link><pubDate>Sat, 21 Sep 2013 18:21:20 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6a1bcb36-4cdd-48ef-96cd-2c402e1417b7</guid><dc:creator>Westonsupermare Pier</dc:creator><description>&lt;p&gt;&lt;p&gt;
How do you kids get assigned these projects without the first clue
about how to do it, or do your own basic research?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: control a DC Motor using MOTOR CONTROL PWM in LPC1768</title><link>https://community.arm.com/thread/68372?ContentTypeID=1</link><pubDate>Sat, 21 Sep 2013 12:29:20 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:91276bbd-78ab-4cf4-bbdb-caaf14d2c554</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
The 1768 is more than enough capable to get people to writhe when
writing their code.&lt;/p&gt;

&lt;p&gt;
Have you spent any time reading up on the capabilities of the
processor? Or how a PID algorithm works? Remember that you can also
simulate PID code on a PC - the algorithm doesn&amp;#39;t care about actual
hardware for controlling the output.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>