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
0
votes
1 answer

Erlang-Pid control

I have written a simple chat server in Erlang (without any sockets or ports, just between to message among multiple shells), but when I try to simulate it I have some problems. Almost every client function (like pm, say_to_all) in my implementation…
0
votes
1 answer

Matlab .txt file read error

I'm using Matlab as a PI (proportional integral) controller. I'm trying to control a "virtual robot" agent via .txt files. The simulated agent writes errors in a .txt file. I run it through Matlab and set speed via a second .txt file, which the…
user2481520
  • 1
  • 1
  • 2
0
votes
1 answer

PID filter coefficient output minimum, maximum and parameter attributes

I am trying to find more information on making a custom PID block in MATLAB. I have most of it done but there are a few parameters that I don't really understand and as such I don't know what value to give them. NOTE I am NOT asking for help tuning…
tmwoods
  • 2,353
  • 7
  • 28
  • 55
0
votes
1 answer

Python PID control with txt files

I have 2 txt files with values, one with x coordinates of point1 and one with x coordinates of a point2, point 2 needs to follow point1, and after running the difference between the points through the regulator i need to get speed for point 2 out…
user2481520
  • 1
  • 1
  • 2
0
votes
2 answers

Using Scilab, Get transfer function closed loop

I have a XCOS scheme, where are presents: My system G(Z) A Pid controller Now, I would like to know the closed loop transfer function. How can i obtain it by scilab/Xcos ? Thanks Best *** EDIT: **** Following user1149326's suggestions…
Edge7
  • 681
  • 1
  • 15
  • 35
0
votes
1 answer

How to replace PID controller with fuzzy controller so that it can work exactly the same as PID

I have a model in simulink as shown The model has PID controller with Kp=36 Kd=54 Ki=6. Pid controller is minimizing the error given as its input to zero. Now I want to replace it with fuzzy controller so that it exactly works the same as PID. What…
Shayan Ali
  • 65
  • 2
  • 16
0
votes
1 answer

Arduino - PD - Line Following

#include #define NUM_SENSORS 5 //Number of sensors used #define NUM_SAMPLES_PER_SENSOR 4 //Average 4 analog samples per sensor reading #define EMITTER_PIN 13 //Emitter is controlled by digital pin…
Caleb
  • 1
  • 1
  • 3
-1
votes
1 answer

Unit voltage template method for the control of D-statcom

I have got this model of the D-statcom which I am trying to implement from this paper Analysis of shunt active powerfilter with unit template method I have created a model as show below The controller set up is show below . No matter what i do…
Trickk
  • 73
  • 7
-1
votes
1 answer

How to decrease the set temperature

I've been following this tutorial to create an Arduino PID Temperature Controller. I can increase the set temperature by rotating the rotary encoder clockwise however I can't decrease the set temperature even when I rotate the encoder anticlockwise.…
rgbyello
  • 1
  • 1
-1
votes
1 answer

Proper way to implement (DC motor) PI current controller with RTOS

with my hobby project I started to rewrite the classic interrupt driven software to a new one with RTOS. I am using an STM32 with FreeRTOS but it is not important because my question is generally related to the problem that how to implement a fast…
-1
votes
1 answer

How to control the speed of a stepper motor using PID control and ultrasonic sensor?

Little backstory: I'm currently doing this project that deals with using two cars, called block A and B, which block B has to maintain a distance of 10 cm from block A using PID, PD, PI, or P. I'm using a PID. Block B uses an Arduino whereas Block A…
-1
votes
1 answer

microPython attributeError in __init__

EDIT: Thanks to the age old tradition of unplugging and plugging everything back in I got it to work; I reflashed the WiPy module and reinstalled the Pymakr plugin. I am currently in the process of writing a PID-controller for micropython (we have…
-1
votes
1 answer

How to get errors from PID?

Need to add PID controller. Can you help me how to get error, integration error and derivative error from PID? I need this values to generate PID parameters by genetic alghorithm. J = 0.01; b = 0.1; K = 0.01; R = 1; L = 0.5; A = [-b/J K/J …
Masaj
  • 217
  • 3
  • 14
-1
votes
1 answer

Motor does not move

I have had success in controlling position of my motor using PD controller. However I have some programming related problem. Here is my code: #define encoder0PinA_M1 2 #define encoder0PinB_M1 22 int EnablePin = 8; int PWMPin1 = 3; int PWMPin2 =…
-1
votes
1 answer

MATLAB quadcopter pid simulation

I've found a Simulink file of quadcopter pid simulation. This is the image of simulink block diagram. Simulink Block Diagram of Quadcopter Simulation I have few questions about it. When I press tune button in P or PI control block, it says plant…
1 2 3
11
12