Questions tagged [pid-controller]

A PID controller is a (closed) control loop feedback mechanism. It is used in industral control for proportional, integral and derivative feedback.

Filter by
Sorted by
Tagged with
3
votes
1answer
1k views

Understanding the flow of a PI Controller?

I am theoretically aware of how a PID Controller works, have never implemented one. I am implementing a control method for driving a valve over PWM. Use Case details: The systems has two ADC ...
17
votes
4answers
11k views

How to use measured step response to tune control system

How does one use a measured step response to tune either a PID or convolution control scheme? Inspired by this answer*, I'm interested a more detailed explanation of how to implement a control system ...
6
votes
3answers
19k views

Design of a PI controller

If I have a process which is approximated by a first order system $$ H(s)\ = \frac{K}{s+a}e^{-sT} $$ How can I design a PI controller with a rising time < 2 and an overshoot that is less than ...
10
votes
2answers
2k views

PID algorithm implementation using computer vision

I am constructing an automatic labyrinth maze solver, and using a webcam to control my maze. Based on suggestions in other forums, I am trying to control maze's ball movement at least in one ...
7
votes
4answers
2k views

Misconceptions about PID Controllers

I'm currently designing an equivalent of the mass-spring-dashpot system, and during the design phase I realized I don't fully understand how PID controllers physically work. Below is an image, the ...
9
votes
3answers
2k views

Please explain in layman's terms how a PID accounts for inertia in temperature control

I'm building my own hobbyist microprocessor-controlled reflow oven. I'm using (mechanical) relays to turn the heaters (i.e. quartz tubes) on or off. I've noticed heating lags a couple of seconds ...
1
vote
2answers
627 views

Implementation integral windup in a digital proportional-integral (PI) controller

I'd like to know how I can get the Imax and Imin values. if (I_error > Imax) { I_error = Imax; } else if (I_error < Imin) { I_error = Imin; } I don'...
0
votes
1answer
60 views

How to go about determing the System Type of my setup?

I have a small project where I am PID tuning two servo motors. Something very similar to this: I am interested in finding the system type of the above setup, which includes the PID loop I have tuned. ...
0
votes
1answer
171 views

Not able to levitate magnet for magnetic levitation project

I am following a hackster project on magnetic levitation here - https://www.hackster.io/jsirgado/magnet-levitation-with-arduino-eeeee4 However, I have followed everything but still, it's not working. ...
25
votes
6answers
11k views

How to learn PID Control?

I want to learn PID (Proportional–Integral–Derivative) control mainly for temperature. I would like to learn preferably through an easy project to do. Could you please recommend something which ...
10
votes
3answers
2k views

How does control theory apply to my real-world processor-controlled boost converter?

I have a limited understanding of control theory. I dealt with poles and zeroes and transfer functions in school. I've implemented several microprocessor-based control schemes for DC/DC converters. ...
7
votes
7answers
20k views

Building a temperature-controlled water bath

I want to build an accurate (±2 °C) water heater (sous vide) that heats water somewhere between 30-100 °C according to user input. Although I have an engineering background I have no ...
3
votes
4answers
1k views

PID controller slowly oscillates out of control

I am trying to tune PID controllers for my drone. There are 3 controllers, one each for Pitch, Yaw and Roll. I have gotten Yaw tuned to a reasonable amount and I am assuming the values for Kp, Ki and ...
6
votes
5answers
603 views

Why are two PID controllers needed for FOC (Field Oriented Control)?

I've been looking at code to do FOC and noticed that two PID controllers are usually used for torque control -- one that keeps Id near zero and another that maximises Iq. I understand why Id should ...
2
votes
1answer
3k views

Peltier heat resistor temperature controller, schematic issue

I've been having a problem with the following schematic: What I need to do: Two temperature controllers in order to create a temperature gradient. The hot side is a a little above room temperature ...
6
votes
7answers
14k views

How do I get proportional 240V AC output from an Arduino-based PID controller to “dim” a rice cooker for a Sous-Vide project?

I'm making a PID controller for Sous-Vide, using an Arduino. I'm trying to decide how to control the output. Using an SSR as an on-off switch on 240V AC will probably give me the result I'm looking ...
5
votes
2answers
3k views

Integral only control (as opposed to PI or PID)

I am familiar with PI and PID control but I've recently been reviewing code that seems to use I (Integral) only control. What are the benefits of I control over PI control, and when should it be used /...
4
votes
3answers
6k views

Can I use a DC SSR that is switched by a PID controller to control the speed of a 12 V DC fan?

This is my first post here. Let me start by saying that I do not have an engineering background. I tinker with electronics in my spare time (Arduino, solid state low-power guitar amps, etc.), but I do ...
4
votes
4answers
3k views

Anti-wind up scheme in the implementation of PID controller

I want to implement designed PID controller. But I am facing the problem of how to limit the saturation limit in both positive and negative direction? I tried using zener diode, but I would like to ...
3
votes
2answers
123 views

Does the concept of damping apply to 1st order systems?

I'm just learning control systems. Today I learnt about 1st order and second order systems. I understood Damping, Critically damped, over-damped and under-damped systems. So a question arises in my ...
3
votes
2answers
4k views

Proportional controller

Sirs, I am not able to understand why Proportional controller introduces offset.Please consider follwing paragraph I found on internet, credit to ** http://blog.opticontrols.com/archives/344 **, ...
3
votes
3answers
909 views

Motor Control with PMW or RPM on heavy robot

I'm going to try to explain my problem as clearly as I can. I have been building a robot that has four wheels, 2 motors and 2 free wheels. Its a differential drive system. ...
1
vote
2answers
317 views

What is the output of a PID controller (or any controller in general)?

I'm new to Simulink and I'm trying to get my hands a little dirty there to get used to using it. I'm working on a speed control of a switched reluctance motor. The input signal is to be fed to a ...
1
vote
1answer
382 views

Conversion of 12 bit ADC/DAC data to floating point for PID operation

I am working with PIDs for temperature control. I have implemented the PID using floating point numbers. I am using 8051 for PID implementation.I have two queries: I have to apply the PID output to a ...
1
vote
0answers
291 views

PID controller simulation in Scilab/Xcos

I have been attempting to resolve following issue related to the simulation in Scilab/Xcos. I have been developing a control software and at the time being I have been developing a library of the ...
1
vote
0answers
101 views

Values got from programmed PID are different from ones simulated in Simulink

Please also read Update I created a PID simulation in Simulink: where the Step block is set with parameters: ...
1
vote
3answers
2k views

Kp, Ki, Kd for software PID control

I am designing a software PID control. Logic is almost final but I wonder how do I decide the value of \$k_p\$, \$k_i\$ and \$k_d\$. Also, I need to determine the max and min value for the Pterm Item ...
1
vote
4answers
861 views

Control loop for finding maximum value [closed]

I'm trying to build a control system which I control variable x with a feedback y, goal is to find the maximum value of ...
0
votes
0answers
144 views

how to simulate a Laplace function of a PID controller in the time domain with LTspice

I tried to simulate a Laplace function of a PID controller with LTspice in the time domain, but an error message appears "The laplacian is singular at DC". cs1 is the controller, so I just ...
0
votes
2answers
529 views

Self-Tuning PID Controller to implement in a PLC without having the plant model?

I need to implement a self-tuning PID controller in a PLC. I know the behavior of the plant (I mean, I know that if the speed is reduced the tension gets higher and vice versa), but I do not have a ...
0
votes
1answer
1k views

Analog PID controller (transferfunction questions)

I have to build an analog PID controller (with op-amps), I've made a schematic: My questions: Can I build my PID controller this way? My PID tranferfunction (in the s-domain) looks like: $$\text{H}(...
0
votes
0answers
68 views

Can't simulate simulink model

I'm trying to simulate the following chopper controlled dc motor in MATLAB Simulink using a PI controller. Now without the freewheeling/flyback diode across the motor terminals I can simulate the ...
0
votes
1answer
67 views

PID Control - Actuator non-linearity

I'm writing code for a PID controller. The system is a "see-saw" with a motor attached to a propeller on one end and nothing on the other - you can call it a 1DOF helicopter. I use an angle sensor ...
0
votes
2answers
60 views

Alternatives to Large Transformer or PSU for Driving DC Heater

I have a 3D printer heated bed, instead of 3d printing I want to use it for reflow soldering. The bed is intended to operate at 70c, using 12v or 24v. It can be wired in series or parallel depending ...
-1
votes
3answers
101 views

Safety of immersion water heater

I would like to build a sous-vide circularor, using a PID-controlled immersion heater. I've read that as the product wears out, there might be some electricity leakages, so I would like to make the ...