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:


file: /Techref/io/pid.htm, 4KB, , updated: 2016/5/9 07:50, local time: 2017/11/19 06:32, owner: JMN-EFP-786,
TOP NEW HELP FIND: 
54.81.195.240:LOG IN

 ©2017 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://techref.massmind.org/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 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 massmind.org!

 

Welcome to techref.massmind.org!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .