Da3 Report Final
Da3 Report Final
DIGITAL ASSIGNMENT 3
SLOT : C1 + TC1
Control Objective:
The goal is to keep the pendulum balanced upright.
This is a complex control problem because any
movement of the cart affects the pendulum and vice
versa.
A simplified model diagram
It represents the inverted pendulum system with a cart of mass
mc and a pendulum of mass mp
The pendulum is attached to the cart via a massless arm
of length L.
The key variables:
o q1: The cart’s displacement (horizontal movement).
o q2: The pendulum’s angle (rotation from the vertical
axis).
Control input u is a force applied to the cart to maintain
balance and move the system.
The goal is to control the cart’s motion to keep the
pendulum balanced upright using feedback from q 1 and
q2.
Applications of using inverted pendulum system
Reference Trajectory:
The reference trajectory subsystem defines the desired
movement of the cart in a cart-pendulum system. This
trajectory serves as the input for the controller, guiding the
cart to follow a pre-defined motion.
This provides input between one and half to minus one and
half.
1. A Constant Block (-1.5)
o This provides a constant bias to the reference
trajectory.
o It shifts the trajectory downward by 1.5 units.
2. A Signal Generator Block
o This generates a periodic waveform, possibly a
square or sine wave.
o The waveform defines how the cart moves over
time (e.g., oscillating back and forth).
3. A Summation Block
o The sum of the constant value (-1.5) and the
generated waveform gives the final reference
trajectory.
o This determines the cart's desired motion.
4. Output Signal (pos_ref)
o This serves as the desired cart position.
o The controller will attempt to minimize the error
between the actual cart position and this reference.
Implementation and Result:
Model: