Abstract
In order to meet the transportation and transmission requirements in daily life, a dual closed-loop PWM DC motor speed regulation system based on STM32 is designed, including hardware circuit and its control program. At the same time, the control system and method are optimized respectively, in order to expand its applicability. Fuzzy control is used to improve its closed-loop control performance. The experimental results show that although PI control has good dynamic and steady-state performance, fuzzy control has the advantages of faster start-up, no overshoot of speed and better anti-interference ability compared with PI, which can automatically adjust the controller coefficient, and has good adaptability.
Access provided by Autonomous University of Puebla. Download conference paper PDF
Similar content being viewed by others
Keywords
1 Introduction
DC motor has good starting and braking performance, which has been widely used in electric drag automatic control systems, such as rolling mills and their auxiliary machinery, mine hoists and other fields. In actual DC speed regulation system of industrial field, the DC speed regulation system is widely used with speed and current dual closed loop control.
Traditional DC motor dual closed-loop speed regulation system mostly adopts a simple structure with PID controller. While, parameter changing and non-linear characteristics of controlled object make it difficult for PID controller to reach optimal state. Fuzzy control dynamically output according to empirical rules with its nonlinear characteristics, it can overcome limitations of PID, so that, speed regulation system has both fast dynamic response and a high stability degree, its robustness is further improved.
In this paper, a DC motor PWM speed regulation system based on STM32 micro-controller is designed. Using closed-loop PWM control, its excellent performance can be further exerted, which can meet high need of load capacity and excellent driving ability.
2 System Framework
The requirement of common application scenarios of the motor is as: power supply voltage is 72 V, motor voltage is 60–72 V, power capacity is 1.5–3 KW, and the maximum speed is 50 km/h.
The structure of PWM DC motor speed regulation system based on STM32 is shown in Fig. 1.
By programming, it collects feedback signal of speed and current through AD converter on-chip, after signal processing, which is converted into control signal of PWM output. Changing duty cycle, feedback control is accomplished, thus, a dual closed-loop system of speed and current is finished.
By measuring the motor parameters, establishing mathematical model and calculating control loop parameters, PWM drive signal is generated. While, with the development of micro-controller and computer control algorithms, a series of improved PID algorithms have been generated, such as integral separation PID, positional PID, Fuzzy-PID, which are more flexible and stable than traditional PID.
Considering motor forward/reverse rotation and braking needs, H-bridge drive circuit is adopted, which is a high-voltage and high-current full-bridge driver, and used to drive DC or stepper motor.
In order to overcome disadvantages of speed loop, and obtain better dynamic performance, by embedding current control loop in the speed loop, and integrate armature current in closed loop as a feedback model, the speed and current dual closed-loop control system is obtained.
3 Modeling and Analyzing of Dual Closed-Loop
Analyzing motor working process and state parameters, the motor mathematical model is built with proper parameters, and the closed-loop parameters are optimized with simulation and experiments.
The motor parameters are shown in Table 1.
3.1 Dual Closed-Loop Control System
The motor is modeled with parameters in Table 1.
In open-loop model, current can reach 62 A during start-up stage, in direct start type. the overcurrent phenomenon is obvious, which can easily damage devices. The reason is that motor armature is in a static state, and armature winding directly connect to the power, which cause to short circuit and a large instantaneous current, so it is necessary to add a starting resistance to reduce current at start-up.
Given 1000 r/min, building model in Fig. 2, and running simulation 0.5 s under rated load and positive rotation, the speed and armature current are obtained as in Fig. 3 and Fig. 4
It can be seen that, starting time is about 0.05 s, starting speed acceleration is significantly reduced after 0.03 s, and then approaching final speed slowly. The motor has poor starting characteristics with open loop, and speed acceleration is constantly decaying throughout starting stage, which cannot reach constant acceleration. Motor current quickly jumps to 62 A, and then falls sharply, the reason is that induced electromotive force is generated under armature winding magnetic field to reduce the current. Such sharp change of torque is demonstrated in large decay, but also caused sharply reducing speed acceleration, so that the motor cannot maintain a constant torque during start-up stage, the start-up characteristics are poor.
So, the feedback is divided into current and speed dual feedback loop control, and the STM32F103 is selected for digital controller. Figure 5 shows steady-state structure diagram of dual closed-loop speed regulation system. If trigger requires output of ACR (UCT) to be positive, the input Ui* of ACR is negative for regulator is reverse input, so voltage Un* of the ASR input is required to be positive.
The current loop is a closed loop composed of current regulator ACR and current negative feedback, which is aim to stabilize current. The speed loop is a closed loop composed of speed regulator ASR and negative speed.
The working process of dual closed-loop speed regulation system can be simply divided into two stages. First, in start-up stage, for given sudden adding step signal \(U_{n}^{*}\) due to mechanical inertia, speed deviation voltage \(U_{n}\) is extremely large, speed regulator ASR is rapidly saturated, and output reaches limit value \(U_{im}^{*}\) and hold. Meanwhile, current negative feedback loop keeps armature current constant and speed rises linearly, as shown in Fig. 6. Then, after speed reaches a given value and overshoot is generated, difference between fixed signal of speed loop and the feedback signal crosses 0-point polarity transition, speed remains constant, that is, n = Un*/.
The speed and current feedback coefficient can be calculated respectively by formula
where, \(U_{nm}^{*}\) and \(U_{im}^{*}\) are given output maximum and limit value of speed loop, respectively.
The transfer functions of dual closed-loop speed regulation system are
3.2 Simulation of Motor PID Dual Closed-Loop Model
The closed-loop motor is constructed with above parameters, and 4 s simulation is carried out for given rated load is 1000 r/min, and the load disturbance of (\(\pm\))5 \({\text{N}} \cdot {\text{m}}\) is added at 1 s and 1.75 s respectively, results shown in Fig. 7 are obtained.
It can be seen that armature current in start-up stage quickly reaches 2 times rated current value and then hold. Thus, the goal of rapid adjustment of motor speed is achieved, which ensure good motor start-up characteristic, realize constant torque start-up.
4 Fuzzy-PID Design and Simulation
DC motor itself is a nonlinear system, in order to simplify calculation and design, so linear approximation is adopted. However, when it comes to more complex nonlinear changes of system, and it cannot be better adjusted real-time. In order to further improve control system performance, fuzzy PID control is introduced to strengthen system control capabilities.
The basic fuzzy control system is shown in Fig. 8. The implementation process of the fuzzy control algorithm is as follows: As an input signal of fuzzy controller, error E between given signal and feedback, can be converted to fuzzy variation by fuzzy language, and then fuzzy subset is judged by control rules to obtain fuzzy control variation u, at last de-fuzzy processing is utilized to obtain precise control amount U.
For difference application, input of fuzzy controller can be expanded into multiple variations, to achieve desired effect.
The fuzzy rule base provides the necessary definitions of fuzzy control, including the discretization, quantization, and normalization of the domain of language control rules, as well as the division of input and output spaces, the definition of membership functions, and so on.
In this fuzzy control system, speed feedback signal change quickly during start -up stage, so input set are expanded to 7 states: {Negative Large, Negative Medium, Negative Small, Nero, Positive Small, Mid, Positive Large}.The basic domain of error E, error change EC and fuzzy controller output are [-xe, xe], [-xec, xec] and [-ye, ye], respectively. Conversing basic domain [a, b] to fuzzy domain [-n, + n] is
The membership function is determined by expert’s empirical method, lastly, triangular membership function is adopted. After analyzing with expert experience, control rules of the dual-input, single-output system are determined. Add the fuzzy controller to closed-loop control, we can to obtain simulate as Fig. 9.
The PID dual closed-loop control and fuzzy PID control model are simulated synchronously. Given 1000 r/min, (\(\pm\)) 5 \({\text{N}} \cdot {\text{m}}\) load disturbance is added at 1 s, and the duration time 1 s.
It can be seen from Fig. 10 and Fig. 11, that linear time of constant torque is longer under fuzzy control, the starting speed is faster without overshoot, which is better than traditional PID control. When sudden load (reduce) disturbance appear, motor response is more rapid under fuzzy control, speed change amplitude and rate are smaller, and dynamic anti-interference performance is strength.
Whether it is the start-up or anti-interference performance, fuzzy control system performance is better than traditional PID control, which has stronger regulation performance, speed variation is smaller, response speed is faster, and dynamic performance is greatly improved.
5 Conclusion
In this paper, a kind of DC motor dual closed-loop PWM full-bridge PID control system based on STM32 is designed. System current overshoot is less than 10%, speed overshoot is less than 20%, and reaches steady-state without static error, constant torque start-up, which has good anti-interference performance, can meet expected household power drag scenario. Further improving system performance, so that control system can meet demand for power dragging application. To improve DC motor performance, fuzzy control method is adopted to dual closed-loop PID control system, experimental results show that fuzzy controller designed makes system performance improved, which has better start-up characteristics without steady state error and overshoot, and digital fuzzy control system improves system anti-interference performance.
References
Meshalkin, V.S, Kuguchev, D.B, Mansurov, A.R.: PWM on the basis of different configurations of reference signals for a multilevel ocnverter on H-Bridge. In: IEEE 19th International Conference of Young Specialists on Micro/Nanotechnologies and Electron Devices (EDM), pp. 6403–6407(2018)
Malinowski, M., Gopakumar, K., Rodriguez, J., et al.: A survey on cascaded multilevel inverters. IEEE Trans. Industr. Electron. 57(7), 2197–2206 (2009)
Sharma, K., Palwalia, D.K.: A modified PID control with adaptive fuzzy controller applied to DC motor[C]. IEEE International Conference on Information, Communication, Instrumentation and Control (ICICIC), p. 405 (2017)
Ji X H. Design of Low-Power DC Servo Motor Speed Control System[D]. Hebei Agricultural University, 2010
Fei, X.H.: Design of PWM controller for DC motor. Dig. Technol. Appli. 11, 155–156 (2012)
Jiang, Y.L., Tao, A.L., Dong, B.L., et al.: Study on a single closed loop DC speed regulating system based on visual technology. Sensor World 20(1), 28–31 (2014)
Liu, S.B.: PWM speed regulation system of DC motor based on STM32. Northeast Pet. Univ. 43, 834 (2018)
Zhang, W., Yang, M.: Comparison of auto-tuning methods of PID controllers based on models and closed-loop data. In: IEEE Proceedings of the 33rd Chinese Control Conference, pp. 3661–3667 (2014)
Zhu, R.T., Wu, H.T.: Design of DC motor speed regulation system based on incremental PID algorithm. Instr. Tech. Sens. 7, 121–126 (2017)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Lu, W. et al. (2022). A Kind of PWM DC Motor Speed Regulation System Based on STM32 with Fuzzy-PID Dual Closed-Loop Control. In: Huang, DS., Jo, KH., Jing, J., Premaratne, P., Bevilacqua, V., Hussain, A. (eds) Intelligent Computing Methodologies. ICIC 2022. Lecture Notes in Computer Science(), vol 13395. Springer, Cham. https://doi.org/10.1007/978-3-031-13832-4_9
Download citation
DOI: https://doi.org/10.1007/978-3-031-13832-4_9
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-13831-7
Online ISBN: 978-3-031-13832-4
eBook Packages: Computer ScienceComputer Science (R0)