1. Introduction
Rising demands in green energy generation, electric vehicles [
1], transportation, construction, consumer electronics and industrial automation are bolstering the need for high performance, robust and high quality motors. Direct Current (DC) motors, even though they are one of the oldest electric motor designs, are still more than relevant in modern industry. Their market is experiencing steady growth, attributed to a broad range of application areas such as as robotics, military, spacecrafts [
2], medical equipment, agriculture [
3], unmanned monitoring systems [
4]. The global push towards sustainable practices combined with the rising prevalence of electric vehicles are influencing the adoption of DC motors. Their main advantages in comparison with other types of motors are; small noise operation, low cost, better characteristics of speed and torque, good controllability, fast response in dynamic changes, high power-to-weight ratio, no requirement for current excitation and adequate performance for their cost.
Yet open loop method is being used for controlling brushed and brushless DC motors. Despite the simplicity of this approach, open loop systems lack of accuracy especially in dynamic or unpredictable applications. Another major disadvantage is the susceptibility to external factors. This vulnerability to variations and disturbances in load conditions leads to decreased system performance. The lack of feedback limits adaptability, since open loop systems are not adaptable to changing conditions. Meanwhile, wear and tear can not get compensated, hence manual tuning is required. Therefore, the aforementioned reasons in recent years have draw attention to closed loop control [
5]. The presence of feedback loop provides enhanced precision, accuracy and adaptability to varying conditions. Disturbances can get compensated and stable performance is maintained, even in dynamic environments. Additionally, robustness is achieved, which is essential in robotics, automation, electric vehicles, medical equipment, computer numerical control machines. Sensorless DC motor controllers offer simplicity and cost-effectiveness [
6,
7]. These controllers rely on motor’s back electromotive force (EMF) or other internal characteristics to estimate the position of the rotor, i.e. without using external sensors. However, sensorless controllers do not perform well at low speeds. The motor appears “jumpy” or “jittery”, which is also known as “cogging”. Additionally, during rapid load changes, the lack of sensor results in less precise control. In sensored operation, motor operation is smooth, while stuttering and vibrations are significantly reduced. Sensor feedback enhances stability, leading to better response to load variations. Due to these reasons, over the last few years a greater focus has been placed on sensored closed loop controllers [
8,
9]. Reliable performance is ensured, while accurate and precise control may be achieved even at low speeds.
Traditionally, the most common control methods, used in the majority of studies, are the PI and PID controllers [
10,
11,
12]. These conventional controllers are well known as common techniques for non-linear systems control, mainly due to their simple architecture and the easily managed control algorithm. However, PID controllers are sensitive to measurements errors and noise, causing crucial performance deterioration, instabilities and undesired oscillations [
13]. Additionally, derivative filtering is proposed in [
14,
15,
16], significantly enhancing robustness and improving stability. Parallel and coupling PID controllers were proposed in [
17], while in [
18] an approach using backstepping sliding mode control was demonstrated. Observer-based non linear controllers have also been employed in [
19,
20], providing immunity against measurement noise.
In recent years, much research has been performed on artificial intelligence (AI) control methods. Embedded artificial intelligence is impacting the future of every industry and every human being. Autonomous cars, robots, virtual nursing assistants, diagnosis of diseases, virtual tutors in education and customer services are some current and future applications. The main advantage of AI controllers is their robustness [
21], being capable of overcoming the uncertainty of conventional control methods and providing better system response [
22,
23]. Commonly implemented methods use structures based on neural networks, fuzzy logic, genetic algorithms or even hybrid approaches. Fuzzy logic controllers (FLC) for DC motor control has been employed in [
24,
25], towards improved controller’s performance. The problem of disturbances has been addressed in [
26]. FLC’s superiority over conventional PID controllers have been experimentally validated in [
27]. Novel neural network controllers were examined in [
28,
29,
30], while recently [
22,
31] genetic algorithm approaches were demonstrated. The robustness of neuro-adaptive controller was experimentally proved in [
32]. In [
33] a hybrid controller, consisting of a parallel combination of sliding mode and neurofuzzy controllers, was proposed.
Fuzzy logic controllers execute the control process by utilizing linguistic expressions along with the processes of fuzzification, rule base, and defuzzification [
34]. These controllers provide an excellent way of dealing with imprecision and nonlinearity in complex control situations [
35]. Despite the apparent advantages of Type-1 (IT1) FLC’s, it has been proved that they are not capable of fully handling the impact of uncertainties. [
36,
37]. In recent studies interval Type-2 (IT2) FLC’s outperformed IT1-FLC’s [
38,
39,
40] mainly attributed to the crisp values of their membership grades of IT1-FLC’s. While the membership functions of Type-1 FLCs are certain, the membership functions of Type-2 FLCs are fuzzy themselves. Type-2 FLC’s have primary membership functions (PMF’s), which might be any value in the interval [0, 1]. Moreover, in PMF’s there is a secondary membership functions (SMF), defining the probability of PMF’s. The latter leads to an increased computational burden and as a result zero or unity SMF’s are developed. The combination of a conventional PID and a fuzzy system led to the creation of Fuzzy PID (FPID) [
41,
42,
43]. Adaptive fuzzy controllers were presented in [
44,
45], providing robustness and improved control performance. In this paper, a composition of an interval Type-2 FLC and a PID controller is proposed to manage uncertainties in controlling the DC micro-motor under study. PID controller parameters are dynamically set by fuzzy sets, improving performance, robustness and systems response.
In recent literature numerous efforts in closed loop DC motor control development have been conducted, either by means of simulations [
46,
47,
48], or in experimental configurations [
49,
50,
51]. The former approaches, even though valuable to prove the conceptual design, use either low-cost development boards, which have hardware constraints and especially memory limitations, or expensive FPGA development boards which are considered as “overkill” for these type of applications. On the other hand, modern families of microcontrollers (e.g. like STM32 provided by STMicroelectronics), keep pace with emerging trends and remain at the forefront of embedded systems development, providing an ideal balance between cost, performance, scalability and dependability as presented in [
52,
53,
54].
Although, a few control algorithms applied on experimental setup have been suggested, the amount of research analyzing practical difficulties and limitations either in hardware or software level, while proposing a clear methodology and design optimization techniques, is limited. Considering cases, in which readymade solutions are costly or insufficient due to custom application specifications, a low cost, fully flexible, customizable and parametrised prototype should be build. Based on the aforementioned factors, the key contributions of this paper are:
Present refined hardware-in-the-loop approach, integrating real-time PSO directly on STM32 microcontroller, with comprehensive hardware-software co-design analysis highlighting constraints and trade-offs.
Develop novel optimized hybrid FT2-PID controller tailored for embedded platforms.
Validate the proposed FT2-PID controller against PI, PID, and PIDF controllers showing significantly faster settling times and reduced overshoot at higher reference speeds.r
Address critical hardware limitations, including processing time, memory constraints, and real-time execution challenges, being overlooked in theoretical studies.
It should be highlighted that -to the authors’ knowledge extend- in research literature, similar efforts offering valuable technical competence are not found. In this paper, an adaptive IT2-PID controller is especially designed and experimentally implemented for coreless DC micro-motor (though the procedure can be easily applied to other DC motor types). Prioritizing cost and simplicity, hardware limitations and components selection are detaily presented. This proposed controller is being compared with PI, PID and PID with D filtering controllers, all being tuned using embedded real time PSO algorithm [
55]. Discrete reference speed cases are being investigated not only to present the robustness of the controller under investigation but also to compare the microcontroller’s performance and resources needed. Emphasis is being given to microcontroller’s system-level characteristics and to hardware considerations for the prototype design. Parameters such as pulse width modulation (PWM) bit resolution, interrupt time selection for speed measurements, encoder’s resolution, experimental speed data filtering are also examined and pointed out. Finally, the design and the level of goodness of a microcontroller embedded adaptive IT2-PID is discussed.
The structure of this paper is as follows. A brief theory of DC micro-motor is presented in Section II, while the control strategies are discussed in Section III. Prototype design and development is described in Section IV. Section V presents the software development considering hardware limitations. The derived results are reported and commented in Section VI and ultimately Section VII serves to conclude the work.