Abstract
This paper describes a laboratory control theory experiment supported by the use of a DC Motor Educational Kit. The impact, as a teaching aid, of the proposed laboratory control experiment is evaluated, having in mind the student’s feedback. The DC motor that is used in the developed educational Kit is the EMG30, being a low cost 12 V motor equipped with encoders and a 30:1 reduction gearbox. The experiment is based on real hardware and on simulation, using the SimTwo realistic simulation software. In order to implement the realistic simulation the EMG30 model was obtained. Students’ feedback was acquired using a questionnaire and the results confirmed the importance given to these practical experiments.
Similar content being viewed by others
Keywords
1 Introduction
This paper describes a laboratory control theory experiment supported by the use of a DC Motor Educational Kit. The DC motor that is used in the developed educational Kit is the EMG30, being a low cost 12 V motor equipped with encoders and a 30:1 reduction gearbox. DC motors have been used in research and education intensively over the past years [1–3], being also available many commercial educational DC motor Kits [4, 5].
The experiment is based on real hardware and simulation (using the SimTwo realistic simulation software). SimTwo is a realistic simulation software that can support several types of robots. Its main purpose is the simulation of mobile robots that can have wheels or legs, although industrial robots, conveyor belts and lighter-than-air vehicles can also be defined. Basically any type of terrestrial robot definable with revolute joints and/or wheels can be simulated in this software [6].
The motivation to use the EMG30 is the fact that it is an actuator worldwide popular, being a low cost 12 V motor equipped with encoders and a 30:1 reduction gearbox [7]. In order to implement the simulation, the EMG30 accurate model was obtained.
The paper is organized as follows: After a brief introduction it is described the developed setup applied to obtain the experimental data and the actuator parameters estimation. Then the laboratory control theory experiment is presented. Then the impact, as a teaching aid, of the proposed laboratory control experiment is evaluated, having in mind the student’s feedback. Finally to round up the paper some conclusions are presented.
2 Modeling of the EMG30 Geared Motor
The EMG30 is an actuator worldwide popular, being a low cost 12 V motor equipped with encoders and a 30:1 reduction gearbox. The fact that it is equipped with encoders is an important feature because it provides important data to obtain the closed-loop velocity control.
The EMG30 model can be defined by the following equations, where \(U_a\) is the converter output, \(i_a\) is the DC Motor current, \(R_a\) is the equivalent resistor, \(L_a\) is the equivalent inductance and e is the back EMF (electromotive force) voltage as expressed by Eq. (1).
The motor can provide a torque \(T_L\) that will be applied to the load, being the developed torque (\(T_d\)) subtracted by the friction torque, which is the sum of the static friction (\(T_c\)) and viscous friction (\(B \omega \)), as shown in Eq. 2.
Current \(i_a\) can be correlated with the developed torque \(T_d\) through Eq. 3, the back EMF voltage can be correlated with angular velocity through Eq. 4 and the load torque \(T_L\) can be correlated with the moment of inertia J and the angular acceleration through Eq. 5 [8].
In order to obtain experimental data, a setup, shown in Fig. 1, was implemented. The experimental setup is based on the Arduino micro-controller, the L6207 Drive, a DC Power source, an EMG30 actuator and the motor Load. The obtained data is the load angular velocity as a function of the input voltage. Two tests were performed, the first was to obtain the step response for a 12 V input (transitory response data) and the second test was the steady-state response for several input voltages (steady-state data).
It was obtained an electro-mechanical dynamical model that describes the motor, its gear box and the encoder. The estimated and the real transitory and steady-state responses are shown in Fig. 2. Details of the parameters estimation procedure and the EMG30 simulation in SimTwo can be found in [9].
The load has a known moment of inertia, given by the sum of three moments of inertia. A moment of inertia of a vinyl record \(J_d =\frac{1}{2} m_d r_d ^2\) (where \(m_d\) is the record mass and \(r_d\) is its radius) summed with the moments of inertia of two planar rectangles, each one given by the equation \(J_r = m\frac{a^2 +b^2}{12}\) (where a and b are the planar rectangles sides dimensions and m is the planar rectangles mass). Having in mind that the Parallel axis theorem has to be used in order to calculate the moment of inertia of the planar rectangles, \(m r_p ^2\) has to be summed to the previous calculated moment of inertia (where m is the rectangular plane mass and \(r_p\) is the perpendicular distance between the axis of rotation and the axis that would pass through the centre of mass of each rectangular plane) [10]. In order to estimate the motor moment of inertia it is subtracted to the estimated value J the calculated moment of inertia, being \(J_L\) the load moment of inertia and \(J_m\) the moment of inertia for the DC motor. The estimated parameters, previously presented in [9], were reviewed, being shown, in SI units, in Table 1. The presented equivalent inductance was directly measured.
3 Laboratory Control Experiment
The proposed laboratory control experiment has as goal the study, by the students, of PID controllers design [11]. For that purpose it was conducted a DC motor closed-loop velocity control experiment, applying PID controllers. Initially the students worked with a realistic simulation of the DC Motor Educational Kit (Fig. 3a) and finally tested their controllers with real hardware (Fig. 3b). The experiment was simulated in the SimTwo realistic simulator, where the parameters that were described in Sect. 2 were applied, with the difference that for this experiment the load has a different moment of inertia and the used drive is the Pololu Dual MC33926 Motor Driver Shield for Arduino [12].
Students applied tuning control loops based on the Internal Model Control (IMC) tuning method [13]. This method has many advantages, such as its robustness and the ability for the user to specify the closed-loop time constant, being its major drawback the fact that when the process has a very long time constant the error will be integrated for a very long time (Fig. 5).
The IMC tuning method was developed for use on self-regulating processes. A self-regulating process stabilizes at some point of equilibrium, which depends on the process design and the controller output. If the controller output is set to a different value, the process will respond and stabilize at a new point of equilibrium, as shown in Fig. 4a.
The first step that students must do is to apply a step change in the controller output (CO), as shown in the example of Fig. 4a. The observed process output provides the parameters that allow an approximate estimate of the process as a first order system with time delay, as shown in Eq. 6, where C(s) is the process output and R(s) is the process input.
where: \(t_d\) is the dead time, \(\tau \) is the time constant and K is the process gain, given by the total change in PV (Process Variable) (in %) divided by change in CO (in %). From the EMG30 DC motor step response (Fig. 4b), changing the controller output from 2 to 10 V, the process gain and time constant are estimated, being the dead time considered null. The process parameters are shown in Table 2.
Then students calculate the PID controller, based on the IMC tuning method, where the derivative time is null, the integral time is given by \(\tau \) and the controller gain is given by Eq. 7, where \(\tau _{cl}\) parameter allows to choose the desired closed-loop response time. Students applied \(\tau _{cl} = \tau \), in order to the closed-loop system dynamics remains similar as its open loop response.
The chosen sample time was 50 ms which is high, when compared with the system time constant 150 ms, but low having in mind the low number of encoder transitions, especially for low velocities, as show in Fig. 5, so a compromise between these two aspects was made.
The problem with this controller is that the controller input, shown in green, can saturate, being the error integrated for a long time, which can generate an undesirable overshoot in the closed-loop response (Wind-Up), as it can be observed in Fig. 6a. That problem can be solved by stop integrating the error whenever the controller output saturates, giving the result seen in Fig. 6b.
Finally students test their controllers with real hardware, being shown an example of a DC motor closed-loop response in Fig. 7.
4 Laboratory Control Experiment Evaluation
In order to understand the best way to provide the information to students using the DC Motor Educational Kit, a sample of 67 individuals participate in an empirical study. The sample is composed by students of the fifth grade of Master in Electrical and Computer Engineering and these students have a mean age of 22 years old, where 15 % are females. Students’ feedback was collected using a questionnaire with 7 questions related with the themes lectured in classes. Therefore it was asked the importance given to:
-
1: Axis control in the course;
-
2: Laboratory work for learning the axis control concepts;
-
3: Representativity of the laboratory work in the course content about axes motion control;
-
4: Representativity of the laboratory work regarding to potential skills acquired by students;
-
5: Testing hardware algorithms developed for the study of axes motion control;
-
6: Realistic simulation before testing the hardware;
-
7: The choice of the case study about movement control and if the DC motor study was suitable.
Opinions were measured with a 5 Likert scale [15] from 1—Nothing Important to 5—Very Important. Figure 8 shows the results distribution and Table 3 presents the statistical measures median, mean, mode, minimum and maximum of the responses by question.
All questions have a median of responses classified as at least Important, except the question regarding the representativity of the laboratory work regarding to potential skills acquired by students in which the classification was Indifferent.
These results confirm the importance given by students of using these laboratory control experiments. Moreover it is possible to conclude the great importance of using realistic simulation before testing the hardware.
5 Conclusions
This paper described a laboratory control theory experiment supported by the use of a DC Motor Educational Kit. The DC motor that is used in the developed educational Kit is the EMG30, being a low cost 12 V motor equipped with encoders and a 30:1 reduction gearbox. The experiment is based on real hardware and simulation (using the SimTwo realistic simulation software). In order to implement the simulation, the EMG30 accurate model was obtained.
The proposed laboratory control experiment has as goal the study, by the students, of PID controllers design. For that purpose it was conducted a DC motor closed-loop velocity control experiment, applying PID controllers. Initially the students worked with a realistic simulation of the DC Motor Educational Kit and finally tested their controllers with real hardware. Students applied tuning control loops based on the Internal Model Control (IMC) tuning method. This method has many advantages such as its robustness and the ability for the user to specify the closed-loop time constant, being its major drawback the fact that when the process has a very long time constant the error will be integrated for a very long time.
Students’ feedback confirm the importance of testing hardware algorithms developed for the axes motion control study, the importance of using realistic simulation before testing the hardware and also the overall theme of axis control in the course of their Master in Electrical and Computer Engineering.
References
Srisertpol, J., Khajorntraidet, C.: Estimation of DC motor variable torque using adaptive compensation. In: Control and Decision Conference, 2009. CCDC ’09 (2009)
Kanojiya, R.G., Meshram, P.M.: Optimal tuning of PI controller for speed control of DC motor drive using particle swarm optimization. In: 2012 International Conference on Advances in Power Conversion and Energy Technologies (APCET) (2012)
Agung, I.G.A.P.R., Huda, S., Wijaya: Speed control for DC motor with pulse width modulation (PWM) method using infrared remote control based on ATmega16 microcontroller In: 2014 International Conference on I.W.A. Smart Green Technology in Electrical and Information Systems (ICSGTEIS) (2014)
DC Motor kit (2016). http://www.hometrainingtools.com/dc-motor-kit
Scientifics Educational Kits: Motor—ScientificsOnline.com (2016). https://www.scientificsonline.com/product/scientifics-educational-kits-motor
Costa, P., Gonçalves, J., Lima, J., Malheiros, P.: Simtwo realistic simulator: a tool for the development and validation of robot software. Int. J. Theory Appl. Math. Comput. Sci. (2011)
Gear motor with encoder (2016). http://www.robotshop.com/en/devantech-12v-30-1-gear-motor-encoder.html
Bishop, R.: The Mechatronics Handbook. CRC Press, New York (2002)
Gonçalves, J., Lima, J., Costa, P., Moreira, A.: Modeling and simulation of the EMG30 geared motor with encoder resorting to simtwo: the official robot@factory simulator. In: Flexible Automation Intelligent Manufacturing 2013, Porto (2013)
Ramsey, A.: Dynamics. Cambridge Library Collection—Mathematics (2009)
Åström, K.J., Hägglund, T.: Advanced PID control, ISA—The Instrumentation, Systems, and Automation Society; Research Triangle Park, NC 27709 (2006)
Pololu dual MC33926 motor driver shield for Arduino (2016). https://www.pololu.com/product/2503
Rivera, D., Morari, M., Skogestad, S.: Internal model control: PID controller design. Ind. Eng. Chem. Process Des. Dev. (1986)
Dataforth Corporation. Tuning control loops with the IMC tuning method, Application note AN124 (2016). http://www.dataforth.com
Likert, R.: A technique for the measurement of attitudes. Arch. Psychol. 140, 1–55 (1932)
Acknowledgments
This work is financed by the “Project TEC4Growth—Pervasive Intelligence, Enhancers and Proofs of Concept with Industrial Impact/NORTE-01-0145-FEDER-000020”, which is financed by the North Portugal Regional Operational Programme (NORTE 2020), under the PORTUGAL 2020 Partnership Agreement, and through the European Regional Development Fund (ERDF).
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2017 Springer International Publishing Switzerland
About this paper
Cite this paper
Moreira, A.P., Costa, P., Gonçalves, J., Faria, B.M. (2017). DC Motor Educational Kit: A Teaching Aid in Control Theory. In: Garrido, P., Soares, F., Moreira, A. (eds) CONTROLO 2016. Lecture Notes in Electrical Engineering, vol 402. Springer, Cham. https://doi.org/10.1007/978-3-319-43671-5_74
Download citation
DOI: https://doi.org/10.1007/978-3-319-43671-5_74
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-43670-8
Online ISBN: 978-3-319-43671-5
eBook Packages: EngineeringEngineering (R0)