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.
 

1. 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.

2. 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.

3. 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.

4. 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.

5. 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.

Similar threads

  • Mechanical Engineering
Replies
1
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
5
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
6
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
1K
  • Differential Equations
Replies
2
Views
1K
  • Classical Physics
Replies
3
Views
2K
  • Advanced Physics Homework Help
Replies
1
Views
1K
Replies
1
Views
1K
Back
Top