Beruflich Dokumente
Kultur Dokumente
Introduction
This report does not omit any mathematical steps in order to reflect
upon details of the mechanical operation of the process.
1. The Process
The ball and beam model consists of a horizontal beam and a DC
motor mechanically attached at the centre of the beam. The angle of
the beam is controlled by the motor. The angle in turn influences the
position of the ball.
d 2 x ••
Let acceleration of the ball be denoted as =x
dt2
The force due to translational motion is then
••
F tx= m x
The torque developed through ball rotation is determined by the force
at the edge of the ball multiplied by the radius which can be further
expressed as:
dwb d (v b / R ) d 2 ( x / R) J
Tr = Frx R = J =J =J = x' '
dt dt dt 2 R
where
J = moment of inertia (for solid ball defined by J=2/5*mR2)
Wb=angular velocity of the ball
Vb= speed of the ball along x axis
The equation is arranged such that the final result is expressed solely
in terms of position or its derivatives as well as variables associated
with the ball.
We now obtain the rotational force by dividing torque of the ball by its
radius
ans =
4
This indicates that the ball and beam system is completely state
controllable. Next we select Q and R and calculate for controller gains
in MATLAB. We get
>> Q=[10 0 0 0; 0 10 0 0; 0 0 10 0; 0 0 0 10];
>> R=1;
>> [K,S,E]=lqr(A,B,Q,R)
K=
S=
E=
-3.9559
-0.9059
-0.6215 + 0.7044i
-0.6215 - 0.7044i
We can see that the gain values are reasonable and therefore the
actual system may perform well.
The simulation in simulink is done using the following block diagram:
The Scope measures the output while the Scope1 monitors the control
effort. The snapshots are as shown in figures 6 and 7.