Enikov 2012
Enikov 2012
4, NOVEMBER 2012
Abstract—This paper presents a low-cost hands-on experiment and equipment time. Hands-on experience, on the other hand, is
for a classical undergraduate controls course for non-electrical invaluable for active and sensory learning styles, which are the
engineering majors. The setup consists of a small dc electrical predominant types of learning styles exhibited by undergrad-
motor attached to one of the ends of a light rod. The motor drives
a 2-in propeller and allows the rod to swing. Angular position uate students [9]–[12]. This paper describes the development
is measured by a potentiometer attached to the pivot point. A and testing of a new low-cost portable laboratory module,
custom-designed circuit board produces the controlled voltage designed to supplement the experience of students taking their
input to the motor. The target board is powered and communi- first course in controls system design.
cates with the PC through its USB port using a virtual RS-232 While there are many turn-key desktop systems designed
port. A simple MATLAB/Simulink module has been created to
read the pendulum angle and send a command signal to the motor. to illustrate controls systems courses, portable kits (such as
The module is based on Real-time Windows Target software, Arduino) are primarily designed for mechatronics and em-
which allows a sampling rate of up to 200 Hz. Students are able bedded computing courses [13], [14]. As such, they require
to design and test classical PID and phase lead-lag controllers, as programming environments, installation of additional software,
well as modern controllers, including state-space controller design and additional plug-in modules for operating dc motors and
combined with feedback linearization. A semester-long series of
assignments is described that can be carried out without the need other actuators. Furthermore, unless advanced circuit boards
for a specialized laboratory or teaching assistants. The project and processors are used, implementing a PID or other dy-
was tested in a classical control systems design class of senior-level namic compensators is cumbersome and requires training in
mechanical engineering students. Student feedback and survey digital control and programming. With the emergence of the
data on the effectiveness of the modules are also presented. MATLAB Simulink graphical programming environment,
Index Terms—Feedback linearization, linear feedback control, modeling and simulation of various plants and controllers can
real-time control, real-time windows target, Simulink. be accomplished quite easily by students who might not have
extensive training in digital control and numerical methods.
However, practical implementation of such controllers remains
I. INTRODUCTION
illusive for most undergraduate students outside of electrical
and mechatronics engineering programs. Therefore, the objec-
H ANDS-ON laboratories have always been an integral tive of this project was to develop a simple physical plant that
part of the engineering curriculum. Their importance has can be used seamlessly with the Simulink Real-Time Windows
been recognized by the Accreditation Board of Engineering Target environment to allow students who are not in Electrical
Technology (ABET) and its predecessors by creating criteria Engineering programs to implement and test real-time con-
requiring adequate laboratory practice for students [1]–[4]. trollers using drag-and-drop-style graphical programming.
During the last three decades, engineering laboratories have In the Department of Aerospace and Mechanical Engineering
become more complex, including simulation tools and com- of The University of Arizona, Tucson, it is not unusual for the
puter-controlled test and measurement equipment [5], [6]. Control System Design course to have enrollments of over 100
This increased sophistication has also led to more expensive students. This makes offering a laboratory section within the
equipment [7], [8]. The inclusion of such laboratory courses in course nearly impossible. The experiment described here was
the undergraduate curriculum is challenging, due to the large developed primarily as a way to provide some practical experi-
numbers of students and the increased demands for instruction ence for students, using an inexpensive and portable setup that
can be taken home. The experiment was developed following
the principles of the variational theory of learning developed by
Manuscript received September 29, 2011; revised January 27, 2012; accepted
March 30, 2012. Date of publication May 01, 2012; date of current version Oc- Marton and coworkers [15], [16] and the approach of guided
tober 26, 2012. This work was supported by the NSF under Grants 0856761 and discovery/interactive-engagement labs characteristic of several
0927661
well-known labs, such as the Modeling Workshop Project [17],
E. T. Enikov is with the Department of Aerospace and Mechanical Engi-
neering, College of Engineering, University of Arizona, Tucson, AZ 85721 Socratic Dialogue Inducing Labs [18], Real Time Physics [19],
USA (e-mail: [email protected]). and Tools for Scientific Thinking [20]. The portability and low
G. Campa is with Mathworks, Inc., El Segundo, CA 90245 USA.
cost of the setup allowed the students to conduct experiments
Color versions of one or more of the figures in this paper are available online
at http://ieeexplore.ieee.org. during the entire semester and use the device to complete a term
Digital Object Identifier 10.1109/TE.2012.2195496 project. In addition to significantly reducing the cost of offering
block is used to send a request for data to the microcontroller. Fig. 5. Open-loop response.
Once the data are ready, the microcontroller sends the data to
the Packet-In block. A step function with a period of 10 ms
and a duty cycle of 50% is used to generate a query to the
microprocessor every 10 ms.
A. Modeling
The hardware described here has been tested by senior-year
mechanical and aerospace engineering students taking their first
course in controls system design. Prior to this experiment, this
course had been a lecture-only class, so the experiment had to be
conducted as part of the regular homework assignments. Conse-
quently, the students had to be given a detailed manual on how
to install the kit.1 The project assignment asks the students to
develop a nonlinear mathematical model of the pendulum and
identify its physical parameters. The students focus on the dy-
Fig. 6. Input signal (PWM) versus sine of steady-state angle.
namics of the pendulum. (The dynamics of the electronic com-
ponents and the dc motor are assumed fast and negligible for the
sake of this experiment.) Typically, the students arrive at value of the parameter K/mg by noting that the steady-state
angle and the steady-state input are related through
(1)
(4)
where is the weight of the motor, is the length of the
pendulum, is the viscous friction coefficient, and is the thrust
force from the propeller. The students then model the resulting
thrust force as a linear function of the applied voltage, , using B. Feedback Linearization
a thrust coefficent
In their second assignment, students are asked to carry out ex-
periments and verify (4) experimentally. A typical experimental
(2)
plot is shown in Fig. 5. Using multiple input values, students
obtain pairs of steady-state angles and input voltages, as shown
resulting in a modified model
in Fig. 6. This plot presents an opportunity to observe a non-
ideal behavior associated with real systems. The motor exhibits
a dead-band, i.e., for voltages below approximately 1 V (20%
(3)
of 5 V), the propeller does not turn due to friction. The modified
model for the thrust force is therefore
Students are next asked to examine the steady-state behavior of
the plant (3). Quick analysis leads to a method for extracting the if
1http://nano.arizona.edu/pages/education/micro-mechatronics-and-con- if (5)
trols-experiment1.php if
ENIKOV AND CAMPA: MECHATRONIC AEROPENDULUM 541
Fig. 10. Step response of closed-loop system. Fig. 11. Unstable response for .
presented in the course lectures to relate the plant parameters to where is the resistance of the motor coils, is the back emf
system response parameters such as overshoot and rise-time constant, and is the inductance of the motor coil. Similarly,
the rotor dynamics is governed by
(14)
(12)
where is the motor torque constant, is the aerodynamic
In a more recent implementation, the length of the rod of the torque (drag) coefficient, is the air density, and is the di-
pendulum can be adjusted. When working with shorter lengths, ameter of the propeller [22]. Solving (14) for and substituting
the inertia is reduced, and the friction in the potentiometer be- in (13), it is easy to see that that and ! are related through
comes more dominant. The unit-feedback response of such pen- a second-order nonlinear differential equation for . Conse-
dulums has no overshoot. In such cases, students can use higher quently, the input signal and the thrust force of the propeller
values of the feedback gain, e.g., , leading to an under- are also subject to the dynamics of the associated poles. With
damped response, and follow the same identification method. this explanation, students are able to examine the effect of these
Alternatively, MATLAB’s System Identification Toolbox pem two additional poles by assuming that they are approximately
command can be used to automatically estimate the parameters equal (critically damped pole pair) and reexamine the root locus
of the system. An example of its use is available online [21]. of a fourth-order system
With the parameters fully identified, it is now possible to ex- A quick estimate of the effect of these poles can be made by
amine the validity of the model. To this end, the students are assuming that they are close to each other and by examining a
asked to apply the root locus design method and determine the system with a critically damped pole-pair
behavior of the system (9)–(10) under different values of the
feedback gain . Using the root locus method, students pre- (16)
dict that the system is stable under all values of . However,
when asked to run experiments for they re- where the actual parameters of the transfer function (9) have
alize that the response is stable for low values of the gain, and been used.
that the system loses its stability and the pendulum undergoes The students are then asked to vary the value of the time con-
unstable oscillations, beyond a certain critical gain, as shown stant until the critical gain predicted from the root-locus
in Fig. 11. This experience leads to the fourth task, where the agrees with the value obtained from experimentation .
students are asked to examine their model and propose possible The corresponding plot is shown in Fig. 12. The resulting time
reasons for the observed discrepancy. Interestingly, the majority constant is ms, which matches tachometer measure-
of the students (over 66%) provide inaccurate or superficial an- ments of the propeller [22]. This experience was well received,
swers (discussed in Section IV). Upon submission of their re- in particular by students who had struggled to come up with
sponses, students are provided with a guided solution directing an explanation for the shortcomings of the second-order model.
them to refine the model of the motor/propeller model by incor- It also illustrates the use of the variational theory of learning
porating the dynamics of the motor current and propeller rota- in the design of the experiment. According to this theory, we
tion. This results in the addition of a voltage-current equation learn through the experience of difference, rather than recog-
nizing similarities. As Marton and coworkers state [16]: “What
(13) we believe is that variation enables learners to experience the
ENIKOV AND CAMPA: MECHATRONIC AEROPENDULUM 543
V. CONCLUSION
An inexpensive portable experimental setup has been de-
scribed for use as a hands-on experience for undergraduate
students taking senior-level classical control system design
courses. The project requires minimal or no supervision
without the need for a specialized laboratory space. In 10 out of
11 topics, students self-reported above average learning gains.
Highest gains were achieved through a problem that challenges
the student’s trust and belief in the theory when confronted
with an apparent contradiction with experimental observations.
Evolution of the project has shown that presenting it as a series
of short assignments allows the instructor to provide guidance
to the students without sacrificing the ability to encourage
individual experimentation. The project is particularly aimed
at helping students whose major is not electrical engineering
become familiar with the modern developments in implemen-
tation of real-time control systems. While simple, the hardware
allows demonstration of advanced concepts such as feedback
linearization. Evaluation data show that the project is well re-
ceived by students, and it can be completed independently over
an average of 8 h. Parameter variation through modification
teaching assistant. However, the results from surveying the au- of the configuration of the pendulum allows the instructor to
thors’ sections agree to within 5%–8% in most categories of the individualize each kit.
data shown here. As part of the evaluation, students were asked
questions about the technical content, as well as the implemen- REFERENCES
tation and impact of the portable experiment. Table I shows the [1] Commission on Engineering Education, “New directions in laboratory
evaluation of technical content. As expected, the majority of the instruction for engineering students,” J. Eng. Educ., vol. 58, no. 3, pp.
students found the system quite useful in illustrating the princi- 191–195, 1967.
[2] American Society of Engineering Education, Washington, DC, “The
ples of control system design. The highest benefits are derived undergraduate engineering laboratory: Final report of the Quality of
from better understanding of the relationships between stability Engineering Education Project (QEEP),” 1986.
ENIKOV AND CAMPA: MECHATRONIC AEROPENDULUM 545
[3] E. W. Ernst, “The undergraduate engineering laboratory: 1983 En- [21] E. T. Enikov, “Aeropendulum project,” 2011 [Online]. Available:
gineering Foundation Conferences, New England College, Henniker, http://aeropendulum.arizona.edu/
New Hampshire, July 24–29, 1983 Engineering Foundation, 1983. [22] V. Glowacka, “Modeling of nonlinearities in a propeller-driven pen-
[4] ABET, Baltimore, MD, “Engineering criteria 2000,” 2002. dulum,” Master’s thesis, University of Arizona, Tucson, AZ, 2009.
[5] M. Aburdene and M. El-Sharkawy, “Integrated engineering worksta-
tions in electrical engineering laboratories,” IEEE Trans. Educ., vol.
32, no. 3, pp. 404–408, Aug. 1989.
[6] J. Kadlowec, P. Lockette, E. Constans, B. Sukumaran, and G. Cleary,
“Visual beams: Tools for statics and solid mechanics,” in Proc. 32nd Eniko T. Enikov (M’10) received the M.S. degree from the Technical Univer-
ASEE/IEEE Frontiers Educ. Conf., Boston, MA, Nov. 2002, pp. sity of Budapest, Budapest, Hungary, in 1993, and the Ph.D. degree from the
T4D-7–T4D-10. University of Illinois at Chicago in 1998, both in mechanical engineering.
[7] P. Horàcek, “Laboratory experiments for control theory courses: A As a Postdoctoral Associate with the University of Minnesota, Minneapolis,
survey,” Annu. Rev. Control, vol. 24, pp. 151–162, 2000. he has worked on several projects in the area of microassembly, capacitive force
[8] R. V. de Molengraft, R. Steinbuch, and B. Kraker, “Integrating experi- sensing. Currently, he is an Associate Professor with the Aerospace and Me-
mentation into control courses,” IEEE Control Syst., vol. 25, no. 1, pp. chanical Engineering Department, University of Arizona, Tucson, where he
40–44, Feb. 2005. established the Advanced Micro- and Nanosystems Laboratory. His research
[9] R. M. Felder, “Reaching the second tier-learning and teaching styles is focused on the design and fabrication of microelectromechanical systems
in college science education,” J. Coll. Sci. Teaching, vol. 23, no. 5, pp. (MEMS) as well as developing theoretical models of multifunctional materials
286–290, 1993. used in MEMS. His group at the University of Arizona has an ongoing re-
[10] R. Dunn, “Learning styles and its relation to exceptionality at both ends search program on tactile displays, electrostatic micro-grippers for assembly of
of the spectrum,” Exceptional Children, vol. 49, pp. 496–506, 1983. MEMS, and nanoassembly of macromolecules using electrostatic fields, as well
[11] S. Papert, Mindstorms: Children, Computers, and Powerful Ideas. as development of MEMS-compatible wireless sensing platforms with biomed-
New York: Basic Books, 1980. ical applications.
[12] I. Harel and S. Papert, Constructionism. Norwood, NJ: Ablex, 1991. Dr. Enikov is a member of the professional societies of ASME and ASEE.
[13] J. Sarik and I. Kymissis, “Lab kits using the Arduino prototyping plat-
form,” in Proc. IEEE FIE, Oct. 2010, pp. T3C-1–T3C-5.
[14] P. J. Gawthrop and E. McGookin, “A Lego-based control experiment,”
IEEE Control Syst., vol. 24, no. 5, pp. 43–56, Oct. 2004. Giampiero Campa (M’00) received the Laurea degree in electrical engineering
[15] F. Marton and A. S. Booth, Learning and Awareness. Mahwah, NJ: and Ph.D. degree in robotics and automation from the University of Pisa, Pisa,
Erlbaum, 1997. Italy, in 1996 and 2000, respectively.
[16] F. Marton and A. Tsui, Classroom Discourse and the Space of He has also worked with the Industrial Control Centre, Strathclyde Uni-
Learning. Mahwah, NJ: Erlbaum, 2004. versity, Glasgow, U.K., in 1995, and with the Department of Aerospace
[17] I. Halloun and D. Hestenes, “Modeling instruction in mechanics,” Engineering, Georgia Institute of Technology, Atlanta, in 1999. From 2000
Amer. J. Phys., vol. 55, pp. 455–462, 1987. to 2008, he has served as faculty with the Flight Control Group, Department
[18] R. Hake, “Promoting student crossover to the newtonian world,” Amer. of Aerospace Engineering, West Virginia University (WVU), Morgantown.
J. Phys., vol. 55, pp. 878–884, 1987. His research at WVU involved system identification, adaptive and nonlinear
[19] D. Sokoloff, R. K. Thornton, and P. Laws, Real Time Physics Module control, fault-tolerant systems, machine vision, and sensor fusion, especially
1: Mechanics. New York: Wiley, 1998. applied to unmanned aerial vehicles (UAVs). Since January 2009, he has
[20] R. Thornton, “Tools for scientific thinking: Microcomputer-based labo- worked with MathWorks, Inc., as the Technical Evangelist for the US West
ratories for teaching physics,” Phys. Educ., vol. 22, pp. 230–238, 1987. Coast area.