please dont rip this site

Proportional Integral Differential (PID) Motor Control

PID is a control 'filter' , which helps you get to a goal setpoint as fast as possible without overshoot or oscillation. The technique is siple realy:

  1. Find the 'error' ie the difference between where the system is, and where it needs to be. Multipl this error by a gain value known as Kp. This is the proportional component of the output.
  2. Find the difference between the last error and the current error and multiply by another gain known as Kd. This is the differential component of the output. It is responsible for accelerating the motor if the error is large.
  3. Find the running average of errors, and multiply by another gain value known as Ki. This term is responsible for damping the system to prevent overshoot and oscillation.
  4. Add the proportional, differential and integral terms together and scale the result down to 255 max, and use this value as a PWM value.

The algorithim gives more power to the motor when it's further from the target, and less power when it's close to the target.

By choosing the Kp, Kd and Ki terms properly you can 'tune' the filter to respond smoothly and rapidly to any position demand without overshooting.

Thanks to: Mark Hull  Engineering/Technical EMS (Africa) (Pty) Ltd For that introduction

NEW! MassMind.org BOB PID Servo Motor Control

Tuning a PID Motor Controller

See also:

Archive:

An AC spindle motor will not benefit from PID mode in a driving VFD unless the motor is rated for full torque at zero speed. Otherwise, the best you can do is mechanically gear the motor down so it can run at high speed while the spindle is running slowly. Then the PID will have some effect. +


file: /Techref/io/pid.htm, 5KB, , updated: 2021/2/14 20:48, local time: 2024/11/22 09:17, owner: JMN-EFP-786,
TOP NEW HELP FIND: 
18.118.144.199:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://ecomorder.com/Techref/io/pid.htm"> Proportional Integral Differential PID Motor Control</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to ecomorder.com!

 

Welcome to ecomorder.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .