Professional Documents
Culture Documents
LQG/LTR Controller Design For Rotary Inverted Pendulum Quanser Real-Time Experiment
LQG/LTR Controller Design For Rotary Inverted Pendulum Quanser Real-Time Experiment
LQG/LTR Controller Design For Rotary Inverted Pendulum Quanser Real-Time Experiment
net/publication/228706983
CITATIONS READS
2 1,722
1 author:
Cosmin Ionete
University of Craiova
23 PUBLICATIONS 128 CITATIONS
SEE PROFILE
All content following this page was uploaded by Cosmin Ionete on 20 March 2014.
Cosmin Ionete
University of Craiova, Faculty of Automation, Computers and Electronics
Department of Automation, e-mail: cosmin@automation.ucv.ro
Abstract: This experiment consists of a rigid link real-time while WinCon Server is a separate graphical
(pendulum) rotating in a vertical plane. The rigid link is interface, running in user mode.
attached to a pivot arm, which is mounted on the load WinCon supports two possible configurations: the local
shaft of a DC-motor. The pivot arm can be rotated in the configuration (i.e. a single machine) and the remote
horizontal plane by the DC-motor. The DC-motor is configuration (i.e. two or more machines). In the local
instrumented with a potentiometer. In addition, a configuration, WinCon Client, executing the real-time
potentiometer is mounted on the pivot arm to measure code, runs on the same machine and at the same time as
the pendulum angle. The principal objective of this WinCon Server (i.e. the user-mode graphical interface).
experiment is to balance the pendulum in the vertical- In the remote configuration, WinCon Client runs on a
upright position and to position the pivot arm. Since the separate machine from WinCon Server. The two
plant has two degrees of freedom but only one actuator, programs always communicate using the TCP/IP
the system is under-actuated and exhibits significant protocol. Each WinCon Server can communicate with
nonlinear behavior for large pendulum excursion. several WinCon Clients, and reciprocally, each WinCon
Our purpose is to design a robust controller in order to Client can communicate with several WinCon Servers.
realize a real-time control of the pendulum position The local configuration is shown below in Figure 5. The
using a Quanser PC board and power module and the data acquisition card, in this case the MultiQ PCI, is
appropriate WinCon real-time software. For the used to interface the real-time code to the plant to be
controller design is used a well-known robust method, controlled. The user interacts with the real-time code via
called LQG/LTR (Linear Quadratic Gauss Ian/Loop either WinCon Server or the Simulink diagram. Data
Transfer Recovery) which implements an optimal state- from the running controller may be plotted in real-time
feedback. on the WinCon scopes and changing values on the
The real-time experiment is realized in the Automatic Simulink diagram automatically changes the
Control laboratory. corresponding parameters in the real-time code. The
real-time code, i.e. WinCon Client, runs on the same PC.
Key words: MATLAB/Simulink, WinCon software, However, the real-time code takes precedence over
robust control, real-time experiment everything else, so hard real-time performance is still
achieved.
Simulink Real-Time Application Model The State-feedback block contains the four elements of
the state feedback LQG/LTR controller that we design.
In Figure 6 is presented the Simulink model for the real-
time experiment. Using RTW (Real-Time Workshop)
provided with MATLAB/Simulink, the WinCon
software generate from this Simulink model the real-
time code used for the pendulum control.
For real-time control purposes, the above model
generates the reference for the pendulum position using a
Signal Generator and a Rate Limiter. Thus the
commands are ramped than stepped. This is because
large step inputs would be too vigorous for the controller
to stabilize.
Servo Angle Bias Removal and Pendulum Bias Removal
are grouped Simulink blocks.
l J l J R
l J bR
p b p b p
REFERENCES
Figure 19. Perturbation rejection test [2] *** Quanser Consulting Inc., WinCon 3.2, Real-
Time Digital Signal Processing and Control under
Perturbations about +/- 10 degrees can be rejected, fact Windows 95/98 and Windows NT using Simulink and
that proves the robustness of the LQG/LTR design TCP/IP Technology
method.
Another testing set can be done with sinusoidal [3] *** Quanser Consulting Inc., Self Erecting Rotary
references. The following figures illustrate the Inverted Pendulum, 1998
experimental and simulated test to a sinusoidal input of
0.04 Hz with an amplitude of 30 degrees. [3] CALIFORNIA INSTITUTE OF TECHNOLOGY,
Department of Mechanical Engineering, Analysis and
Control of an Inverted Pendulum, 1994