Professional Documents
Culture Documents
Abstract—This paper presents amodified ball and beam present the control study based on the mathematical
system, with the intention of realizing a test bed, to study model of the system, so several techniques are
new control techniques in real-time.The ball and beam implemented and simulated. In[3] was used a pole
system consists of a ball over a long beam where the placement control in the ball and beam system, in [4]was
control objective is to stabilizethe position of the ball on implemented a fuzzy approach and [5]presented PID
the beam by changing the angular position of the beam.In (proportional, integral and derivative) and LQR (Linear–
this paper, the ball of the conventional system is replaced quadratic regulator) technics.
by a cart with an embedded microcontroller, enabling the Another important fact about the ball and beam is that due
use of a linear encoder as position sensor and allowing to to the simplicity of the plant, several authors present some
transmit the position via RF (Radio Frequency). The changes in the model, e.g.in [6] the actuation system is
mathematical model of the ball and beam is obtained changed,in [7], [8], [9] different types of sensors are used,
through the equations of Newton-Euler and the equations as well as this work, that presents a change in the plant.
were linearized. The system is controlled using the This paper presents a continuation of the studies seen
hardware-in-the-loop technique with in[10] and [11], which the objective is to control a
MATLAB/Simulink.It is applied a tracking control system modified ball and beam using atracking control with
with entire eigenstructure assignment to control the entire eigenstructure assignment in real time using a DC
position of the cart. The actuator used is a DC motor, and motor as actuator.
a PID(proportional, integral and derivative) control is
used to perform the angular position control of beam.The II. BALL AND BEAM SYSTEM
simulation results and the experimental results are The major change from the modified ball and beam
compared to validate the mathematical model. The results present in this paper to the “traditional” system, is the
obtained were satisfactory with adequate accuracy. replacement of the ball by a cart, the first version of this
Keywords—Ball and Beam, Hardware-in-the-loop, prototype was presented in [10] and [12]. As the project
Real-Time, Tracking System controller. had some problems, those were solved in the plant
presented in [11] that was used in this paper, as shown
I. INTRODUCTION Fig. 1.
The ball and beam system is a classic problem in control The use of a cart allowed embedding a microcontroller
engineering [1]. The system consists of a ball on a beam, (dsPIC30F2010), which has the function of decoding the
which the purpose is to stabilize the position of the ball encoder signal, thus determining the position of the cart,
by changing the angular position of the beam [2]. The and transmitting it through a wireless transmitter/receiver
problem has two degrees of freedom, one is the with communication via RS-232 interface. Fig. 2 shows
translation of the ball and the other is the angular position the cart.
of the beam. The ball and beam is an unstable open loop
system, so feedback control is required [2].
The ball and beam is a mechanism used mainly in
academic’s field as a didactic platform.Several authors
use these teaching platforms in their work. Some papers
www.ijaers.com Page | 99
International Journal of Advanced Engineering Research and Science (IJAERS) [Vol-4, Issue-12, Dec- 2017]
https://dx.doi.org/10.22161/ijaers.4.12.17 ISSN: 2349-6495(P) | 2456-1908(O)
The adoption of a linear encoder embedded in the cart, Fig.4: Wireless Transmitter / Receiver in The Cart.
rather than analog sensors, such as resistive, infrared or
ultrasonic, which are usually used to determine the
position of the ball, in the “tradicional system”, is due to
the greater accuracy in position measurement and
elimination of some commom problems of these sensors,
such as presented in [6], in which it is necessary to use a
filter to reduce the noise of the resistive sensor that
increases the processing time, and [9] presents difficulties
in the positioning of the ultrasonic sensor.
The location of the encoder sensor coupled to the cart can
be seen in Fig. 3, the sensor is pointed by an arrow.The
wireless transmitter/receiver is presented in Fig. 4, it
transmits the data with the position of the cart through the
serial port of the computer.
Fig. 5 shows the DC motor with the drive elements, Fig.5: Ball and Beam System.
pulleys and belt. The ratio of the transmission system is
3:1. Two pulleys of 20 and 60 teeth and a belt 120 mm of III. MODIFIED BALL AND BEAM DYNAMIC
length were used. To perform the feedback on the DC MODEL
motor, the internal encoder of motor was used, with 334 Using the free-body diagram shown in Fig. 6, and
counts per revolution in with two channels. The motor has applying Newton's second law, the equations for the
a reduction of 1/102, so the transmission ratio between traditional ball and beam are obtained, with (1) referring
the value measured in the encoder and the angle of the to the ball and (2) to the beam. Where 𝜏 is the torque of
beam is 1/306. the motor, 𝐽 is the moment of inertia of the beam, 𝐽𝑏 is the
moment of inertia of the ball, 𝑅 is the radius of the ball,
Fig.17: Transient Response of the Ball and Beam System Fig.18:Response of the PID Control for a Step Input.
for a Step Input.
A sinusoidal input was also tested as shown in Fig. 21,
A square wave was used as an input signal in the system, the frequency of the sine used was 0.2 Hz, it is worth
the results are shown in Fig.19. The response presents a noting that the cart does not stop during sine input, which
stationary error due the friction and because of the reduces the influence of friction. The main differences
nonlinearity of the plant it occurs oscillation. Fig.20 between the mathematical model and the real system are
shows the PID response when the system input is a square given at the inflection points of the curve, since the cart
wave. tends to stop and take some time to start moving again.
Fig. 22shows the control action of the system when there
is a sinusoid as input, it is possible to perceive the
proximity between the output of the tracking system and