Inverted pendulum on a cart using a PID controller

In summary, to decrease the overshoot in your PID controller, you can try increasing Kp, decreasing Ki, increasing the damping factor, or designing a more advanced controller like a Smith Predictor.
  • #1
saeede-
9
0
hi everyone. in my project , I'm facing with a problem. in PID controller , desire poles are -1+j3 & -1-j3
after design , the overshoot is very high and the settling time more than PD controller
i change the K and zi (pi) several times . but not better.
the pd controller : (s+23)
pid controller : 0.7856*(s+0.3)*(s+23)/s

the code :
Code:
M = 1 %%kg
m = 0.5 %%kg
l = 0.4 %%m
g = 9.81 %%m/s^2
s = tf('s')
G1 = 1/((M*l*(s)^2)-((m+M)*g))

c1 = 0.7856*(s+23)*(s+0.3)/(s)
G2 = feedback(c1*G1,1)
figure(1)
rlocus(c1*G1)
figure(2)
impulse(G2)
can you help me to decrease the overshoot ?
 
Last edited by a moderator:
Physics news on Phys.org
  • #2
There are a couple of things you can try to reduce the overshoot in your PID controller design. First, you can try increasing the proportional gain (Kp) or decreasing the integral gain (Ki). Increasing Kp will increase the speed of response, which can reduce the overshoot, while decreasing Ki will reduce the steady-state error associated with the system. You can also try to increase the damping factor (zeta) of the system, which can reduce the overshoot for a given set of gains. This is done by adding additional zeros to the transfer function of the controller. Finally, you can try designing a more sophisticated controller such as a Smith Predictor, which can provide better control performance compared to a basic PID controller.
 

FAQ: Inverted pendulum on a cart using a PID controller

What is an inverted pendulum on a cart?

An inverted pendulum on a cart is a common example used in control systems to demonstrate the principles of stabilization and control. It consists of a pendulum attached to a cart that is free to move along a track. The goal of the system is to keep the pendulum balanced in an upright position.

What is a PID controller?

A PID (Proportional-Integral-Derivative) controller is a type of control system that uses feedback to continuously adjust the output based on the error between the desired setpoint and the actual output. It uses three different control parameters - proportional, integral, and derivative - to calculate the control output and keep the system stable.

How does a PID controller work on an inverted pendulum on a cart?

In an inverted pendulum on a cart system, the PID controller receives feedback from sensors that measure the angle of the pendulum and the position of the cart. It then calculates the control output using the three control parameters to keep the pendulum balanced in an upright position. The controller continuously adjusts the output based on the error between the desired setpoint and the actual output.

What are some applications of inverted pendulum on a cart with a PID controller?

The inverted pendulum on a cart system with a PID controller has many real-world applications, such as self-balancing robots, segways, and stabilizing systems in industrial processes. It is also used in research and education to understand the principles of control systems.

What are the advantages of using a PID controller in an inverted pendulum on a cart system?

PID controllers are widely used in inverted pendulum on a cart systems due to their simplicity, effectiveness, and robustness. They can handle nonlinear and time-varying systems and can be easily tuned to achieve desired performance. Additionally, they require minimal computational resources, making them suitable for real-time control applications.

Back
Top