Questions tagged [pid-controller]

A proportional-integral-derivative controller (PID controller) is a control loop feedback mechanism (controller) widely used in industrial control systems.

A proportional-integral-derivative controller (PID controller) is a control loop feedback mechanism (controller) widely used in industrial control systems. A PID controller calculates an "error" value as the difference between a measured process variable and a desired setpoint. The controller attempts to minimize the error by adjusting the process control outputs.

The PID controller algorithm involves three separate constant parameters, and is accordingly sometimes called three-term control: the proportional, the integral and derivative values, denoted P, I, and D. Simply put, these values can be interpreted in terms of time: P depends on the present error, I on the accumulation of past errors, and D is a prediction of future errors, based on current rate of change. The weighted sum of these three actions is used to adjust the process via a control element such as the position of a control valve, a damper, or the power supplied to a heating element.

In the absence of knowledge of the underlying process, a PID controller has historically been considered to be the best controller. By tuning the three parameters in the PID controller algorithm, the controller can provide control action designed for specific process requirements. The response of the controller can be described in terms of the responsiveness of the controller to an error, the degree to which the controller overshoots the setpoint, and the degree of system oscillation. Note that the use of the PID algorithm for control does not guarantee optimal control of the system or system stability.

Some applications may require using only one or two actions to provide the appropriate system control. This is achieved by setting the other parameters to zero. A PID controller will be called a PI, PD, P or I controller in the absence of the respective control actions. PI controllers are fairly common, since derivative action is sensitive to measurement noise, whereas the absence of an integral term may prevent the system from reaching its target value due to the control action.

170 questions
-2
votes
1 answer

What should be the ideal value for I controller in PID for a quadracopter

I am making a quadracopter using Arduino, gyro and accelerometer, 1000kv motor with 30A esc. While writing the program for flight control I am doubtful of the value to be used for 'I' controller in PID algorithm. I tried to set the value between 1.0…
-2
votes
1 answer

PID tuning in differential drive robots. using beagle-bone black, python, Encoder DC motors and H bridge driver

How to implement PID tuning in differential drive robot? I am using Beagle-bone black, 450 rpm 96 PPR encoder motors, H bridge motor driver.
-2
votes
1 answer

PID Implementation

I am looking at code references for simple PID implementation in arduino. these are the few implementations YMFC pid_error_temp = gyro_pitch_input - pid_pitch_setpoint; pid_i_mem_pitch += pid_i_gain_pitch * pid_error_temp; if(pid_i_mem_pitch >…
anilkunchalaece
  • 388
  • 2
  • 10
-2
votes
1 answer

Quadricopter + arduino+mpu6050(gyro+oscillo) +PID

so I'm trying to creat a quadricopter with an arduino and gyroscope mp6050 and this with PID algorithme (using arduino PID,mpu library) so I make everything work separately but when it comes to use PID I don't know how to do it which one will be…
BSmile
  • 56
  • 1
  • 9
-2
votes
1 answer

Implementing pid code with 6 variables

Implementing this pid code that I have, mainly what info I need to pass into the function. There are six variables to pass but I don't really know what to enter. A bit of background, I am automating my home brewery, and although it is all up and…
1 2 3
11
12