Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
20 views

Designing an Embedded PI Controller for Speed Control

I will appreciate your guidance in this. I have some previous posts on this, but now I'm showing the code. I'm designing an embedded PI controller using a STM32 Nucleo board. In the PWM configuration, ...
0
votes
0answers
11 views

Converting the output of a Proportional Control System to a meaningful drive of a Peltier

Trying to create a PID controller for temperature control using a Peltier element, I decided to take it step by step and create first the Proportional and then the Integral and the Derivative ...
2
votes
2answers
67 views

PID Run Away Motor Control

I have a PID controlling a DC motor. I am attempting to control the speed of the motor very precisely. My controller allows me to change the direction of the motor and give it a pwm for speed. ...
1
vote
0answers
41 views

What is the meaning of the first gain in the block diagram?

I have do design a circuit based on the block diagram below. I know how to design the PID part but I don't understand what the K=2 is. For the PID I have made the following:
0
votes
1answer
53 views

PID Controller Subsituition

I just have a quick question. In my lecture notes, he defined the PID controller as And then he said that this is equal to the following How did he do that? What is k, z1 and z2 equal?
0
votes
3answers
99 views

Logic behind a PID controller?

I'm having trouble understanding the logic behind a PID controller used for temperature control. If I were to implement it with a SSR and an Arduino, for example, my aim is to have the PID value be ...
0
votes
1answer
42 views

Question on PID for speed control of DC motor in treadmill application

In treadmill applications with DC motor, you can't go from 0.5 mph to 1 mph instantly. The speed should be gradually increasing. If I want to design a PID for speed control, my setpoint should be a ...
0
votes
0answers
33 views

Is this system marginally stable when K=0?

From Routh Table, s^3 1 .................... 77 s^2 18 ................... K s^1 (1386-K)/18 .... 0 s^0 K It looks apparent that the system is marginally stable when K=1386. But in case ...
0
votes
0answers
25 views

PID tuning for 2nd order system with zero pole

I have the following 2nd order system: I would like to add PID controller and to tune it. I read about Ziegler-Nichols tuning however I get weird results due to the zero pole since the result is ...
1
vote
0answers
84 views

Implementing PID in PWM feedback to lower the settling time

I have created the following simple PWM feedback: The step response is: I have tried to add PID controller and I ran the following code to test it: ...
0
votes
1answer
79 views

How does integral term in PID lead to reduced stability margin?

Please can someone explain the following statement related to integral term. I read this in a reputed journal paper "From PID to Active Disturbance Rejection Control" by Jingqing Han: The integral ...
0
votes
0answers
22 views

Question on PID Design for DC motor, microcontroller-based

Is there a way that by using a microcontroller I record speed and current of a DC motor, then find its parameters and transfer function to further design and tune a PID controller? Kind of what MATLAB ...
0
votes
2answers
45 views

DC motor parameter identification using microcontroller

I've built a DC motor controller which measures the speed and current (not really sure yet about current values) of a permanent magnet DC motor. I plan to connect different PM DC motors. Is there a ...
1
vote
0answers
39 views

PID neural network temperature inertia

I am using a PID Neural Network (PIDNN) algorithm to control a multi-zoned temperature hardware. The aim of the algorithm is to minimize the error with the Backpropagation rule and weights updating. ...
0
votes
2answers
117 views

Motor speed control with Integral only loop

If you have a motor with a constant load and and travelling at a set speed, could you control the speed using only itegral action, as in theory the output would stabalise when the error is equal to ...
3
votes
2answers
165 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 /...
0
votes
1answer
32 views

Interface PID temperature control module using Arduino

I need to interface a modular type temperature controller using Arduino. This is the datasheet of temperature controller The datasheet mentioned like this, My questions are, How can I interface( ...
1
vote
0answers
73 views

PI Controller Design (Ziegler-Nichols) and Unit Step Response Graphing for 4th order system

I have a system that requires a PI controller designed using the Ziegler-Nichols Methods. I would also like to plot the unit step response in Matlab, but I am getting extremely weird results. This is ...
0
votes
2answers
49 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 ...
0
votes
1answer
102 views

Arduino PID and AC controlling

I'm trying to make my own PID temperature controller using Arduino. Arduino PID library outputs a PWM signal. I need to control 230VAC using this PWM like a triac phase angle controlling. If I use a ...
0
votes
0answers
57 views

Simulink Matlab : model

I am a beginner in MatLab Simulink and would like to create electrical model with Simulink model with PID controller, but I couldn't find some model in my figure for "springs" and "hard limits". ...
0
votes
1answer
64 views

PWM duty cycle RPM regulation via sensing DC motor current

I have a DC motor that needs to be RPM regulated, that is, it needs to turn at constant RPM regardless of the load. I've read this can be done by monitoring current thru the motor windings and ...
0
votes
0answers
52 views

bandwidth and phase-locked loop

I've been told that phase-locked loop (PLL) increases the bandwidth and therefore makes the time constant smaller. (\$ \tau = 2Q/\omega_0 \$ and I understand \$Q \propto 1/ \delta\omega_0 \$) I ...
0
votes
0answers
47 views

Issues to create a current control transfer function for a DCDC Converter

I'm trying to reproduce a work I've seen in an article, but I'm encountering some issues. I used the data provided and the transfer functions placed by the author, but I did not get the same result, ...
0
votes
1answer
95 views

How to model MPPT technique with PID controller

I need to model a MPPT algorithm with a PID controller at Simulink. The model will feed the gates of two mosfets of a push-pull converter. I have to extract max power from PV and have a fixed voltage(...
0
votes
1answer
59 views

PID Tuning Question

I'm sorry, I know there is heaps of information online about tuning PIDs. But I really love EE.SE and was after potentially some more "specific" advice. I have a super-basic heating control system. ...
0
votes
1answer
84 views

Discretizing a PID controller

I am discretizing the PID equation so we have this equation Now if we separate the integral term we get Applying backward euler method Now as we already have a differentiation , by applying ...
0
votes
0answers
81 views

correct PID pseudocode

I was looking for simple pseudocodes for a PID controller and found this code. If I am not wrong this Ki_Prior is wrong and should be e_integrated otherwise we ...
0
votes
1answer
51 views

Motor control signal resolution

I'm working on a project which requires the control of a motor via a +/-10v control signal (which will be fed into an amplifier). In theory any motor can be used, although it should be attached to a ...
3
votes
4answers
172 views

PID Tuning Issue

I'm having issues tuning a PID controller - specifically the I-term. First - here's a little info about my system: I'm heating a coil (R ~= 1.8 Ohms) to 750°F. My power delivery system is working ...
2
votes
1answer
143 views

How to empirically tune DQ current PI controllers in BLDC/PMSM motor for vector control?

I need to experimentally set the \$k_p\$ and \$k_i\$ parameters of PI controllers for the DQ-axes of a vector controlled BLDC motor. I have been looking for papers and application notes proposing ...
3
votes
1answer
86 views

PID tuning without plant model

My aim is to keep temperature constant at a certain place. I don't have a mathematical model of the plant. Currently, PID is used with some fixed Kp, Ki, and Kd, and I want to optimize these ...
1
vote
2answers
65 views

Design voltage-mode boost converter

I am trying to simulate boost converter using voltage-mode controller as the schematic below. However, the circuit doesn't work as expected. Output voltage is supposed to be equal to reference voltage ...
0
votes
1answer
183 views

PID Design & Simulation

I am designing a PID regulator but experience difficulties in simulation. My design is: I have chosen the value of the elements for: Ki = 12ms, Kp = 5, Kd = 1.5ms Here is the result I get: What am ...
0
votes
1answer
98 views

step response data extraction from response data of a model(simulink)?

I want to design a PID controller with the step response method, so I needed to save the step response of my model in simulink in workspace (Vout) with saved format :structure wih time, I exctracted ...
0
votes
1answer
40 views

Defining reference signal for PID controller

I am developing a PID controller to use in a buck converter (13V->5V). The problem is how to physically implement the signal which acts as the reference voltage and generate the error signal. I don't ...
1
vote
1answer
50 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
0answers
17 views

Reason for parametric variation in a power system

Let us take an example of a single area power system consisting of a governor, noon-reheated turbine, load and machine, droop characteristics. It is written in the literature that ...
0
votes
2answers
77 views

Help with identifying a transfer function - with neuroscience application

This is a question for you electrical network engineers. The problem has arisen in a neuroscience study I am working on, but I hope to be able to glean some insight from other domains that deal with ...
0
votes
0answers
141 views

How to tune PID controller for servo steering?

I'm trying to design a PID controller for a self driving car. The controller operates on the steering servo motor and helps the car stay in the center of a well defined path. Since, I do not have a ...
7
votes
4answers
4k views

Why aren't Stepper motors used in closed-loop systems and PID control?

I know stepper motors are usually operated in open-loop systems. I'm curious to why they aren't usually part of closed-loop systems? Also why aren't PID control methods commonly used with stepper ...
1
vote
3answers
229 views

Analog PID and high power

I want to implement this analog PID controller to control the temperature of a boiler for a coffee machine. I have seen many tutorials on how to do this using digital PID temperature controllers ...
0
votes
0answers
179 views

How can I change the PID controller gains (Kp,Ki,Kd) in Arduino with potentiometers?

I am using the PID library in Arduino in order to control the temperature of a laser. The thing is that I would like to be able to change the controller gains Kp, Ki and Kd from external ...
0
votes
3answers
53 views

How can feedforward be used with PID for motion control

In a motion control system where a motor accelerates, coasts, and decelerates (setpoint is position, not velocity!), what would be the benefit of using feedforward with PID, instead of solely PID? ...
0
votes
0answers
135 views

PI Controller with XLSEMI4016 Buck Converter, unstable VFB seen

I have the following circuit set up to control VOUT (labelled SENSE on my Excel test results). Note that the node between REXT, POT, and R_B is called VFB. It goes to the FB pin of the XL4016 chip, ...
1
vote
1answer
68 views

Interpretation of block diagram for proportional feedback system with respect to time

Suppose we have a proportional feedback and that the system is modelled by a block diagram i.e where C is a constant. Do we think about this as a signal "moving" in time around this loop or is the ...
0
votes
1answer
170 views

FOC current control autotuning PI Controller for BLDC Motors

I try to understand, how the guys from odrive tuned the current control PI parameters for Field Oriented Control: https://github.com/madcowswe/ODrive/blob/master/Firmware/MotorControl/low_level.c In ...
2
votes
2answers
198 views

Should the error term of PID be normalized?

By "normalized", I mean +/-1 ~= the maximum error the system can reasonably be expected to experience, or divided by the setpoint. Background: I am working on a PID controller for an SSR heater ...
0
votes
1answer
165 views

Thermocouple noise causing spurious reading with SSR

I have a thermocouple PID SSR heater as shown, based on the MAX31855 ( datasheet ). I get spurious readings when the arduino is plugged into my laptop, my laptop is plugged in to its charger, and the ...
0
votes
2answers
96 views

Benefits of higher order low pass in a negative feedback loop

Let \$G(s) = \frac{Y(s)}{R(s)}\$ be the loop gain of a negative feedback loop system. For example a system like this, where Y(s) and R(s) are the laplace transformed functions y(t) and r(t): ...