Skip to Content
You are currently on the new version of our website. Access the old version .
AutomationAutomation
  • Article
  • Open Access

9 January 2026

26 Pages

Low-Cost Fixed Bi-Rotor Testbed for Experimental Testing of Linear and Nonlinear Controllers

,
,
and
1
Faculty of Engineering, Sciences and Architecture, Juarez University of the State of Durango, Gómez Palacio 35070, Durango, Mexico
2
Departamento de Estudios de Posgrado e Investigacion, Instituto Tecnológico de la Laguna, Torreón 27000, Coahuila, Mexico
*
Author to whom correspondence should be addressed.

Abstract

To build a comprehensive academic or scientific foundation in control theory, developing the theoretical foundation is essential; however, it is equally crucial to validate the theory through practical or experimental verification. Therefore, it is necessary to have platforms that support the learning of automatic control theory. This paper proposes a fixed bi-rotor testbed as an educational tool to help undergraduate and graduate students verify control theories related to electronic engineering and automatic control systems. To evaluate the performance of the fixed bi-rotor testbed, three linear control laws are introduced: Proportional (P), Proportional Derivative (PD), and Proportional Integral Derivative (PID). Additionally, three nonlinear control techniques are examined: Backstepping, Nested Saturations, and First-Order Sliding Modes (SMC). The linear and nonlinear controller gains have been adjusted through several heuristic experiments. In multiple tests, the PD and backstepping control laws performed better than the other control techniques on the fixed bi-rotor testbed.

1. Introduction

The development of control theory is crucial to science. Platforms and testbeds are widely used in research, education, and academic training in control theory. However, it is also essential to have low-cost platforms that support experimental verification of these theories and promote learning and educational training at both undergraduate and graduate levels in universities and research centers.
Thus, the platforms described in this brief state of the art comprise actuated and sub-actuated systems. Below, we present some works on testbeds used to apply automatic control theory.
It should be mentioned that the development of commercial platforms or those created by industry is not included in this brief overview due to their high economic costs. For this work, we focus on prototype control theory platforms designed and built by universities and research centers.
In [1], a prototype bipedal robot is introduced, designed to improve fundamental understanding of controlled legged locomotion. It was developed as the simplest mechanical structure that still appropriately represents human walking. The need for mechanical simplicity naturally limited its motion to the sagittal plane, with lateral stabilization achieved through external means. The motivation for studying walking robots, as shown in [1], stems from various social and commercial interests, including the goal of replacing humans in dangerous jobs, such as inspecting nuclear power plants and conducting military operations and medical therapy. Furthermore, [1] considers the production of bipedal toys that help spark or revive interest in robotics among younger audiences.
On the other hand, in [2], a platform is presented that primarily measures the output torque of an actuator or motor. This actuator is designed for use in a gyroscope for posture control and to verify gyroscopic theory quickly and simply. The goal is to teach the fundamentals of automatic control and the operation of gyroscopes. The method also allows for testing and validation in thermal and vacuum environments.
In [3], a quadrotor testbed was created to allow safe verification of the developed algorithms at a ground station before conducting real-time flights. Subsequently, a flight control strategy and a trajectory generation method, both of which are conceptually and computationally lightweight, were developed and tested in a simulation environment. After the simulations, both a real-time experimental environment and a simulation environment were established and connected to the actual system.
Since all experimental platforms for testing automatic control theories comprise both software and hardware,  [4] presents a low-cost platform that addresses various issues in practical automatic control work. The testbed in [4] is designed to apply linear control laws in the position and velocity of continuous-current motors.
Another affordable platform that yields optimal experimental results is based on the popular Arduino Mega microcontroller, along with a power stage and a Hall-effect detection stage. This testbed is discussed in [5], which also includes a magnetic levitation test bench. This test bench has helped many students demonstrate and understand nonlinear effects in electromagnetic field theory and automatic control theory.
A fundamental part of developing platforms for conducting automatic control experiments is reducing costs and risks when implementing a control law on a larger vehicle, such as an F/A-18A aircraft or a space module, as presented in [6], in which they develop a platform to test control algorithms for launch vehicles and for the landing system of aerial vehicles. The prototype they propose is a four-rotor drone with an inverted flexible pendulum at its top and another simple pendulum at its bottom. The aim is to test external disturbances on the vehicle during takeoff and landing before implementing them on the larger vehicle that will perform the assigned tasks [6].
On the other hand, the self-balancing robot (SBR), also known as a two-wheeled inverted pendulum, is a highly nonlinear mechanical system that is of great interest in automatic control research. Although some SBR systems are commercially available, most lack the features needed for control experiments; consequently, many studies rely on locally developed prototypes.
The typical configuration of an SBR consists of an inverted pendulum mounted on a differential platform with only two wheels on the same axis. Examples of this setup can be found in [7], where an Arduino Mega development board is used to control the system, and in [8], where an STM32F103C8T6 development board is used. In [7,8], the entire control algorithm runs on the microcontroller onboard the robot.
In [9], a self-balancing robot (SBR) is built using an Arduino Mega for basic tasks, including actuator control and sensor data acquisition. It is paired with a Raspberry Pi 4 single-board computer, which manages image capture and analysis, and communicates with a desktop PC running MATLAB to send path commands. In [7,8,9], the wheels are powered by DC motors with encoders controlled through H-bridge drivers, while inertia measurement units measure the pendulum angle.
In [10], a larger prototype is shown, equipped with an embedded industrial PC with an Intel Core i5 CPU and EtherCAT ports, used to communicate with a command PC; another example of a self-balancing robot prototype with hardware comparable to a PC can be found in [11]. Some prototypes include modifications to the basic design. In [12], a control-moment gyroscope is used to improve the robot’s stability. In [13], an inertia flywheel serves the same purpose.
Other testbeds developed with wheels are presented in [14,15], advances in which have centered on control and advanced perception, such as full dynamic-model-based and voltage-control approaches for omnidirectional robots with Mecanum wheels [14,15], as well as robust visual-tracking techniques in nonholonomic robots using onboard cameras and image–space control formulations [16].
On the other hand, other educational institutions have developed experimental prototypes to validate various automatic control methodologies. Notable cases include the two-degree-of-freedom CICESE (Centro de Investigación Científica y de Educación Superior de Ensenada, Baja California) robot [17,18], which has been extensively used to obtain experimental results for a wide range of control strategies.
Similarly, at the Instituto Tecnológico de La Laguna, researchers have designed and built a biped robot and a pendubot system, both intended to support experimental evaluation of novel control schemes [19,20]. Finally, in [21], a wide range of testbeds are presented, including PM brushed DC motors, ball-and-beam systems, magnetic levitation systems, pendubots, and flexible mechanical structures.
Thus, the methodology to follow to design the fixed bi-rotor testbed is as follows:
  • To design the free-body frame diagram of the fixed bi-rotor test bed and identify the constants and variables.
  • To define the mathematical model that represents the system without considering external perturbations.
  • To analyze which linear and nonlinear control laws can be applied to the mathematical model obtained before.
  • To analyze the stability and robustness of the linear and nonlinear controllers designed for the fixed bi-rotor system, and conduct several simulations in MATLAB Simulink.
  • After achieving the control objective in simulation, design the fixed bi-rotor testbed in SolidWorks to obtain a general perspective of the prototype.
  • Select and procure the necessary materials for system construction.
  • After constructing the general prototype metal structure, integrate materials such as electronic boards and sensors.
  • Finally, program the control laws and conduct several tests to achieve the control objective.
In the following sections of this work, each of the preceding methodologies is explained.
The contributions of this work are as follows:
  • A budget-friendly fixed-rotor testbed built with easy-to-find parts to enable replication.
  • A testbed that can be developed by undergraduate or graduate engineering students, such as those in automatic control, electronics, and even computer systems (to learn programming principles in embedded systems).
  • This platform can support teaching and learning of linear and nonlinear control theory.
  • Additionally, we experimentally evaluated three classical controllers and three nonlinear controllers, demonstrating that the testbed exhibited acceptable performance for use in an automatic control course.
The justification for developing the fixed bi-rotor testbed is to enable experiments in undergraduate or postgraduate courses on automatic control or related subjects, thereby strengthening learning rather than relying solely on computer simulations, which are widely used in this field. We proposed this platform because it is easier to construct and has lower-cost components than the prototypes cited at the beginning of the Introduction. Another advantage of this testbed is the dynamic model, which is suitable for developing classical linear controllers and nonlinear techniques typically covered in control theory courses [22,23,24,25].
Thus, this work is organized as follows: Section 4 describes the electronics system and mechanical structure of the fixed bi-rotor testbed, while Section 2 presents the dynamic model that describes the fixed bi-rotor testbed. The linear and nonlinear controller designs are presented in Section 3. Section 5 shows the experimental results of the fixed bi-rotor testbed with the linear and nonlinear controllers. Section 6 and Section 7 present the discussion and conclusions, respectively. In Appendix A and Appendix B, the stability proofs for the linear and nonlinear controllers, respectively, are presented. Finally, Appendix C presents a robust proof for the nonlinear controllers.

2. Fixed Bi-Rotor Dynamical Model

To model the mathematical behavior of the bi-rotor system, it is considered a rigid body in the x − y plane. The external forces acting on the bi-rotor model are the two engines and gravity [26]. Forces are not considered in this model because the bi-rotor system is fixed on a base that does not allow lateral or elevating movement. Therefore, the aerodynamic drag force D, or opposition to lateral movement, and the aerodynamic lift force L, or lift, are ruled out. Figure 1 shows a free-body diagram of the bi-rotor model and the forces acting on the bi-rotor system.
Figure 1. Variables and forces acting on the fixed bi-rotor system.
In this work, the dynamic model describing a vertical take-off unmanned aerial vehicle (VTOL) in the [27,28,29] plane is used. From this model, only the part that defines the dynamics of the angular acceleration at the angle θ will be utilized. The dynamics of a planar vertical take-off and landing (PVTOL) are then given by the following:
x ¨ = − sin ( θ ) T t + ϵ cos ( θ ) u θ
z ¨ = cos ( θ ) T t + ϵ cos ( θ ) u θ − m g
θ ¨ = u θ
where x represents the horizontal displacement, z is the vertical displacement, and θ is the rotation angle. T t is the total thrust generated by the brushless motors. The parameter ϵ is a coefficient that characterizes or defines a coupling between the motion of the angle θ and the lateral acceleration, m defines the mass, and g is the gravitational constant. To design the controllers for the bi-rotor system proposed in this work, Equation (3) will be used, but defined as a pure angular rotation:
θ ˙ = q
q ˙ = u θ I y y
where q , θ ∈ R define the angular velocity and the angle of rotation, respectively. I y y = 0.9946 is the inertia about the y-axis, calculated from a model developed in SolidWorks (see Figure 2). u θ = τ θ represents the control input of the bi-rotor system.
Figure 2. Model developed in SolidWorks.

3. Linear and Non Linear Controllers Design

The selection of linear and nonlinear controllers presented in this work is motivated by the observation that, in linear control, the first control laws to study are proportional, derivative, and integral actions, and that the literature contains extensive information on these linear controllers [30,31]. Also, these linear control laws are usually used in the industry, as they are presented in [32,33].
The nonlinear control theory discussed in this work is well known [22,25,34,35]; however, the scientific literature includes numerous computer simulation results. These theories can be experimentally validated using a fixed bi-rotor testbed to provide practical experience for undergraduate or graduate engineering students.
Control laws are defined or composed of proportional, integral, and derivative action [31,32]; the system error is defined by e θ = θ − θ d , θ d is the desired angle, and θ is the actual angle. Then, the proportional control law (P) is defined as follows:
u θ = k p e θ
where k p is a positive definite gain. The proportional derivative (PD) controller to stabilize the bi-rotor system is given by the following:
u θ = k p e θ + k d e ˙ θ
where k p and k d are positive definite constants. The proportional integral derivative (PID) controller to stabilize the system defined by (4) and (5) is given by the following:
u θ = k p e θ + k i ∫ e θ d t + k d e ˙ θ
with k p , k d , k i > 0 . For the design of the nonlinear controllers, Equations (4) and (5), which define the dynamic model of the fixed bi-rotor, will be considered. So, for the controller based on the nonlinear control technique known as backstepping [22,34,36], we start by defining a Lyapunov candidate function:
V 1 θ = 1 2 e θ
To continue with the derivation of the backstepping controller, we obtain the derivative of (9), which is V 1 θ = e ( q − θ ˙ d ) and define a z θ = q − θ ˙ d + k 1 θ e θ . After algebraic operations, we have the following:
V ˙ 1 θ = − k 1 θ e θ 2 + e θ z θ
Because the derivative (10) is not negative definite, a new candidate Lyapunov function is defined, given by the following:
V 2 θ = V 1 θ + 1 2 z θ 2
Deriving (11), we have the following:
V ˙ 2 θ = − k 1 θ e θ 2 + z θ ( u θ I y y − θ ˙ d + k 1 θ e θ + e θ )
So the backstepping control law is defined as follows:
u θ = ( θ ˙ d − k 1 θ e θ − e θ − k 2 θ z θ ) I y y
Then the final derivative of (12) is given by the following:
V ˙ 2 θ = − k 1 θ e θ 2 − k 2 θ z θ 2 < 0
Thus, with (14) negative definite, it is possible to conclude global asymptotic stability with the backstepping controller defined by Equation (13). For the design of the control law based on nested saturations, a linear transformation z = T z x x of the (4) and (5) [35,37] system will be performed.
z ˙ 1 θ = z 2 θ
z ˙ 2 θ = u θ I y y
So,
z 1 θ z 2 θ = k 2 θ k 1 θ k 2 θ 0 k 1 θ x 1 θ x 2 θ
where k 2 θ , k 1 θ > 0 , x 1 θ = θ and x 2 θ = q . The saturation function is defined by σ a : R → R with limit a:
σ a ( s ) = − a , s < − a s , − a ≤ s ≤ b a , s > a
where a is a positive constant value; then, for the (4) and (5) system defined by a linear transformation as in (17) and the saturation function (18), the nested saturation controller to achieve global asymptotic stability is given by the following:
u θ = − σ 2 ( z 2 θ + σ 1 ( z 1 θ ) ) I y y
Finally, the sliding mode controller (SMC) to stabilize the (4) and (5) system defines a sliding surface s θ = q + k 1 θ ( θ − θ d )  [22,23,24,25], and deriving the sliding surface, we have the following:
s ˙ θ = u θ I y y + k 1 θ ( θ − θ d )
Thus, the sliding mode controller is defined by the following:
u θ = ( − k 1 θ ( θ − θ d ) − β θ sign ( s θ ) ) I y y
with k 1 θ , β θ > 0 as the controller gains, and the sign function is given as follows:
sign ( s θ ) = 1 , s θ > 0 0 , s θ = 0 − 1 , s θ < 0
In Appendix A and Appendix B the stability proof for the linear and nonlinear controllers, respectively, is presented.

4. Fixed Bi-Rotor Testbed

In the fixed bi-rotor testbed, the rotation is produced by adjusting the speeds of the two motors. The motors or actuators are two 1000 KV brushless motors, each paired with a 30 A ESC or driver. The propellers have a 10 × 4.5 pitch. The sensor used to measure the angle and angular rate is an MPU6050.
To program the linear and nonlinear control laws, we used the ESP32 development board [38,39]; the same ESP32 microcontroller is used to read the inertial measurement unit and feed the control laws. The battery powering the entire system is a 2200 mAh Li-Po type battery with discharge cycles of 45–90, and the rotation angle θ is between ± 30 ∘ . The computer connected to the ESP32 loads the linear and nonlinear controller programs, and the same computer is used to adjust the gain values and display the data in real time on the screen.
In Figure 3, the general electronic diagram used in the fixed-rotor testbed is shown, and in Figure 4, a picture of the fixed-rotor testbed is displayed.
Figure 3. Electronic diagram used in the fixed bi-rotor testbed.
Figure 4. Fixed bi-rotor testbed.
Figure 5 and Figure 6 show the measurements of the rotary frame and the structural measurements in millimeters of the fixed bi-rotor testbed, respectively. Table 1 presents the components used in the fixed bi-rotor testbed.
Figure 5. Measurements of the rotary frame in the fixed bi-rotor in millimeters (mm).
Figure 6. Fixed bi-rotor structural measurement in millimeters (mm).
Table 1. Components used in the fixed bi-rotor testbed.
To control the fixed-rotor with a unique control law for two brushless motors, it is necessary to use a differential mode. This involves defining two PWM outputs in the program code: one for brushless motor one and the other for brushless motor two. These program codes include, for one motor, the throttle plus the control law, while the second brushless motor implicitly has in the program code the throttle minus the control law; in this way, it is possible to operate with a single control law for this testbed.
Algorithm 1, the pseudo-code for the PD control law, is presented; the same pseudo-code principles are used to develop the linear and nonlinear controllers.
Algorithm 1: PD Control Law for the fixed bi-rotor tesbed.
Automation 07 00019 i001

5. Experimental Results

The experimental results in this section were collected in an indoor robotic laboratory, free of outdoor wind gusts.
To compare the controllers presented in this work, the L 2 norm is used to quantify the error, and the control effort applied to a fixed bi-rotor system is used to quantify the control effort. Thus, the L 2 - n o r m norm for the error is defined as follows:
L 2 [ e θ ] = 1 T − t 0 ∫ t 0 T ∥ e θ ∥ 2 d t
After, the same norm is applied to calculate the control effort applied by each controller to stabilize the fixed bi-rotor system, and is defined by the following:
L 2 [ u θ ] = 1 T − t 0 ∫ t 0 T ∥ u θ ∥ 2 d t
Table 2 presents the results obtained by applying the L 2 norm for the analysis of the error and the controller effort applied by the controllers presented in this work. Table 3 presents the gains used in the experimental approaches presented in this work.
Table 2. L 2 - n o r m error and control effort in roll angle.
Table 3. Linear and nonlinear controller gains.
We have obtained the gains through several experimental tests in a heuristic form, considering the stability proofs presented in Appendix A and Appendix B, respectively. This is because, as is known, there is no exact dynamical model that describes a plant or process to control and obtain the gains for the first time in a theoretical form [30]. Such calculated gains in the theory cannot be used in practice to obtain the desired performance at the first tests. In real practice or experiments, it is necessary to tune the gains in the control laws to achieve the desired performance, as is demonstrated [26,28,32,40].
To ensure the control objective, we have presented linear and nonlinear controllers with corresponding stability proofs. It should be noted that we first conduct computational simulations before the experiments. Still, the context or objective of this work is to demonstrate that the fixed bi-rotor testbed is viable for conducting real-time tests of linear and nonlinear control laws; therefore, computer simulations are omitted.
Figure 7 presents the results obtained in experiments applying the proportional controller to the fixed bi-rotor testbed to control the angle θ , with a value of θ d = 0 ∘ . The angle θ is limited to ± 30 ∘ . Figure 7 presents the same data, showing the angular rate and the control signal generated by the proportional controller (P). Compared with the proportional–derivative (PD) and proportional–integral–derivative (PID) controllers, the proportional controller produced bigger errors and control actions. Still, the proportional controller presented a larger error in the angle θ and control action bigger than the PD controller.
Figure 7. Proportional (P) controller response in θ angle.
Figure 8 presents the angle response θ , and the angular rate response is obtained by applying the PD control action. The control signal to stabilize the fixed bi-rotor testbed with the PD controller is presented in the same figure (Figure 8). Comparing the PD controller with linear control laws based on proportional and proportional–integral–derivative (PID), the PD controller presented the better responses in terms of error and controller effort compared with the proportional (P) and proportional–integral–derivative (PID) control techniques, as shown in Table 2.
Figure 8. Proportional–derivative (PD) controller response in θ angle.
The results obtained in experiments with the PID controller are presented in Figure 9. The exact figure shows the position and angular rate responses of the PID controller. The control signal used to stabilize the bi-rotor testbed via the PID control law is presented in Figure 9. The PID control law exhibited a larger angular error than the linear and nonlinear controllers. It required greater control effort than the linear control laws and the nonlinear backstepping controller (see Table 2).
Figure 9. Proportional–integral–derivative (PID) controller response in θ angle.
On the other hand, Figure 10 presents the results of the experimental study using the nonlinear backstepping control technique. Figure 10 presents the graphs of angle, angular rate, and controller response. Compared with the linear and nonlinear controllers presented in this work, the backstepping controller presents a smaller control effort to maintain the desired angle θ d near zero degrees. Still, it is second in error compared to the PD controller, which shows a smaller angular error (see Table 2). Compared with the other nonlinear controllers, nested saturation and SMC, backstepping control presents a better response in both the angular error and the control effort. This is affirmed in Table 2.
Figure 10. Backstepping controller response in θ angle.
The nested saturation nonlinear controller requires greater control effort than the linear and nonlinear controllers presented in this work. Additionally, the angular error is smaller than that of the PID controller; the PID controller exhibits the most significant angular error (see Table 2). Figure 11 presents the angle, angular rate, and control response graphs with the controller based on nested saturation.
Figure 11. Nested saturation controller response in θ angle.
The sliding mode controller (SMC) presented a smaller angular error than the PID controllers and the nested saturation control. In terms of control effort, it is smaller than the nested saturation controller. However, compared with the linear controllers (P, PD, and PID) and backstepping control, the SMC required greater effort to regulate the angle near the desired value of zero degrees along the horizontal axis (see Table 2). Figure 12 presents the graphs of the angle, angular rate, and control response obtained with the nonlinear controller based on first-order sliding modes (SMC).
Figure 12. Sliding mode controller response in θ angle.
Based on the experimental results presented above, a final table is provided to compare the advantages and disadvantages of each control and and some recommended applications for these control laws (see Table 4).
Table 4. Final comparison of controllers.

6. Discussion

This paper presents a testbed for learning and teaching linear and nonlinear control theory, as well as for other fields such as electronics and programming. To evaluate the feasibility of using the fixed bi-rotor testbed, we collected the best results from several tests with linear and nonlinear controllers: proportional (P), proportional–derivative (PD), and proportional–integral–derivative (PID), backstepping, nested saturation, and sliding modes. The testbed was built using affordable electronic components and steel. This aims to allow other universities and research centers to replicate it and facilitate learning in automatic control theory and related fields. Other platforms or testbeds for teaching control theory and some other topics in electronics and programming are presented in [5]. The differences of fixed bi-rotor testbeds presented in [5] are used for linear control laws for the P, PD, and PID controllers, and, with the fixed bi-rotor testbed, it is possible to address or cover these topics and others that arise [5].
In [43], a building performance simulator applied model-predictive control theory and OpenAI Gym to simulate different environments. The difference between this and the fixed bi-rotor testbed is that we do not have a real-time simulator; however, before the linear and nonlinear control law testbed, we conducted several simulations to assess the testbed’s performance.
On the other hand, in [6], a low-cost, low-risk testbed for launch vehicles is described, but only the prototype’s dynamic model is presented. The difference between [6] and the fixed bi-rotor testbed is that [6] has identified every constant used in the launch vehicle prototype in numerical form.
We can find works with better experimental results than those presented by the fixed bi-rotor testbed, such as [8,11,13,14,15,18,20,40]. It is possible to obtain better responses with the fixed bi-rotor testbed. Still, this implies a more advanced inertial measurement unit, which could increase the platform’s cost, and this does not lend itself to easy replication by students.
We cannot lose sight of the fact that the fixed bi-rotor testbed is designed to be replicated using low-cost, easily accessible components for teachers, students, universities, and laboratories that lack significant financial backing to develop platforms that support their learning and training as engineers or scientists.
It is clear that the fixed bi-rotor testbed has physical and electronic limitations as it presents only a unique degree of freedom by the angle θ , which is limited to ± 30 ∘ ; furthermore, the brushless motors are limited to work at 80% of velocity as maximum to avoid damage in the motors, and the sensor presents high noise. However, we consider that professors and students can use these limitations to conduct studies in electronics, programming, control theory, and filtering analysis, among others.

7. Conclusions

Comparing the three linear controllers, it was concluded that the PD controller provided the best control response. This is because when the errors of the controllers and the control efforts to achieve the control objective were analyzed using the L 2 norm, the PD controller showed smaller error and smaller control effort in comparison with the linear proportional (P) and proportional–integral–derivative (PID) controllers.
Among nonlinear controllers, the backstepping controller yielded the better response in terms of angular error and control effort. The nested saturation control showed larger angular error and control effort than the nonlinear controllers. The sliding-mode controller achieved the control objective, albeit with well-known chattering in the control signal, and required greater control effort than the backstepping controller and the three linear control laws.
Thus, in a comparison of linear and nonlinear controllers, the nonlinear controller based on the backstepping technique demonstrated better performance.
In the following list, we present the future work perspectives derived from the fixed bi-rotor testbed:
  • Develop a signal-filtering implementation to improve the MPU6050 inertial measurement unit’s response.
  • We will use an additional low-cost development board with greater processing capabilities for computing more advanced control algorithms.
  • To test other linear and nonlinear control laws, such as adaptive control, model reference adaptive control MRAC self-tuning regulator STR, linear quadratic regulator (LQR), and linear quadratic Gaussian (LQG), to carry out more practices in the robotic or control laboratory for the students.
  • Carrying out a deep theory analysis considering the sensor noise, unmodeled parameters, system vibrations, and parameter sensitivity, considering the works of [44,45,46,47,48,49], to obtain better responses with the fixed bi-rotor testbed.
Finally, we have added a link to the tests in video form (https://youtu.be/jFUBUMt5jQ4, accessed on 23 November 2025).

Author Contributions

Conceptualization, A.T.E.F. and J.A.S.E.; methodology, A.T.E.F.; software, I.G.E.; validation, A.T.E.F. and I.G.E.; formal analysis, J.A.O.S.; investigation, A.T.E.F.; resources, I.G.E. and J.A.S.E.; data curation, J.A.S.E.; writing—original draft preparation, A.T.E.F.; writing—review and editing, J.A.S.E. and I.G.E.; visualization, J.A.S.E.; supervision, J.A.O.S.; project administration, J.A.O.S.; funding acquisition, A.T.E.F. and J.A.O.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

Data available on request due to restrictions.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
CICESECentro de Investigación Científica y de Educación Superior de Ensenada, Baja California
VTOLVertical Take-Off and Landing
PVTOLPlanar Vertical Take-Off and Landing
PProportional
PDProportional–Derivative
PIDProportional–Integral–Derivative
SMCSliding Mode Control
NSNested Saturarion
SBRSelf-Balancing Robot
IMUInertial Measurement Unit
ESCElectronic Speed Controller
SDASerial Data
SCLSerial Clock
PWMPulse Width Modulation
Li-PoLithium Polymer
MRAC      Model Reference Adaptive Control
STRSelf-Tuning Regulator
LQRLinear Quadratic Regulator
LQGLinear Quadratic Gaussian

Appendix A

We present a stability analysis of linear controls, P, PD, and PID. Below, Re ( · ) represents the real part of a complex number.
Theorem A1.
The system (4) and (5) in closed loop with control law (6) is stable if
k p < 0 .
Proof. 
The closed-loop dynamics of (4) and (5) in with control law (6) can be written by using the state–space model x ˙ = A x , where
x = e θ q ,
A = 0 1 k p I y y 0 .
The eigenvalues of matrix (A3) are
λ 1 = k p I y y ,
λ 2 = − k p I y y .
If k p < 0 then Re ( λ i ) = 0 , so that (4) and (5) in closed loop with (6) is stable. □
Theorem A2.
The system (4) and (5) in closed loop with control law (7) is stable if
k d < 0 ,
k p < − k d 2 4 I y y .
Proof. 
The closed-loop dynamics of (4) and (5) in with control law (7) can be written by using the state–space model x ˙ = A x , where
x = e θ q ,
A = 0 1 k p I y y k d I y y .
The eigenvalues of matrix (A9) are
λ 1 = k d + k q 2 + 4 I y y k p 2 I y y ,
λ 2 = k d − k q 2 + 4 I y y k p 2 I y y
For which Re ( λ i ) < 0 if k d < 0 and k p < − k d 2 4 I y y , so that (4) and (5) in closed loop with (7) is stable. □
Theorem A3.
The system (4) and (5) in closed loop with control law (8) is stable if
k p < 0 ,
k d < 0 ,
k i < 0 ,
k i > − k d k p I y y
Proof. 
The closed-loop dynamics of (4) and (5) in with control law (8) can be written by using the state–space model x ˙ = A x , where
x = e θ q w ,
A = 0 1 0 k p I y y k d I y y k i I y y 1 0 0 .
where w is defined as
w = ∫ e θ d t .
The characteristic polynomial of matrix A is
z 3 − k d I y y z 2 − k p I y y z − k i I y y .
According to the Routh–Hurwitz criterion for third order polynomials, (A19) is stable if k p , k d , k i < 0 and k i > − k d k p I y y , so that (4) and (5) in closed loop with (8) is stable. □

Appendix B

In this appendix, the stability analysis of the nonlinear control laws, nested saturation, and sliding mode control (SMC) is presented. The stability proof of the backstepping technique is presented in Section 3.
We wish to demonstrate the stability of (4) and (5) in a closed loop with the nested saturation control. The global asymptotic stability of the PVTOL with the controller u θ = − σ 2 ( z 2 θ + σ 1 ( z 1 θ ) ) I y y can be proved with the following.
Definition A1.
Given two positive constants L, M with L ≤ M , a function σ : R → R is said to be a linear saturation for ( L , M ) if it is a continuous, non-decreasing fnuction satisfying the following:
(a) 
s σ ( s ) > 0 for all s ≠ 0 ;
(b) 
σ ( s ) = s when | s | ≤ L ;
(c) 
| σ ( s ) | ≤ M for all s ∈ R .
Consider the linear system consisting of multiple integrators:
x ˙ 1 = x 2 , . . . , x ˙ n = u .
Consider the following result:
Theorem A4.
There exist linear functions h i : R n → R such that, for any set of positive constants { ( L i , M i ) } where L i ≤ M i for i = 1 , . . . , n and M i < 1 2 L i + 1 for i = 1 , . . . , n − 1 , and for any set of functions { σ i } that are linear saturations for { ( L i , M i ) }, the bounded control
u = − σ n ( h n ( x ) + σ n − 1 ( h n − 1 ( x ) + … + σ 1 ( h 1 ( x ) ) ) … )
results in global asymptotic stability for the system (A20).
To prove the stability of (4) and (5) in a closed loop with the sliding mode control methodology, consider the following Lyapunov function candidate:
V = 1 2 s θ 2
whose temporal derivative is given by
V ˙ = s θ s ˙ θ
= s θ u θ I y y + k 1 θ ( θ − θ d )
= − B θ s θ s i g n ( s θ )
= − B θ | s θ |
Thus, considering W = 2 V = | s θ | , we have W ˙ ≤ − B θ . By integration, it is obtained that
| s θ ( t ) | ≤ s θ ( 0 ) − B θ t .
Then, the trajectory reaches the manifold s θ = 0 in finite time, and once this is achieved, the trajectory cannot leave it, according to V ˙ ≤ − B θ | s θ | .

Appendix C

For the robustness analysis of the nonlinear controllers it is considered that the bi-rotor system is subject to some bounded disturbance g ( x θ , t ) , where x θ = [ θ q ] T , such that the perturbed dynamics is
θ ˙ = q ,
q ˙ = u θ I y y .
This dynamic can be rewritten in the form
x ˙ θ = f ( x θ ) + g ( x θ , t )
where
f ( x θ ) = q u θ I y y ,
g ( x θ , t ) = 0 g ( x θ , t ) .
Note that if | g ( x θ , t ) | ≤ δ for some δ > 0 , then, from (A32), ∥ g ( x θ , t ) ∥ ≤ δ .

Appendix C.1. Backstepping

Consider the following result [22]:
Theorem A5.
Let x θ = 0 be a uniformly asymptotically stable equilibrium point of the nominal system x θ = f ( x θ ) . Let V ( t , x θ ) be a Lyapunov function of the nominal system that satisfies the inequalities
α 1 ( ∥ x θ ∥ ) ≤ V ( t , x θ ) ≤ α 2 ( ∥ x θ ∥ ) ,
∂ V ∂ t + ∂ V ∂ x θ f ( x θ ) ≤ − α 3 ( ∥ x θ ∥ ) ,
∂ V ∂ x θ ≤ α 4 ( ∥ x θ ∥ ) ,
in [ 0 , ∞ ) × D , where D = x θ ∈ I R 2 | ∥ x θ ∥ < r and α i ( · ) , i = 1 , 2 , 3 , 4 are class K functions. Suppose the perturbation term g ( x θ , t ) satisfies the uniform bound
∥ g ( x θ , t ) ∥ ≤ δ < k α 3 ( α 2 − 1 ( α 1 ( r ) ) ) α 4 ( r ) ,
for all t ≥ 0 , all x θ ∈ D and some positive constant k < 1 . Then for all ∥ x θ ( t 0 ) ∥ < α 2 − 1 ( α 1 ( r ) ) , the solution of the perturbed system (A30) satisfies
∥ x θ ( t ) ∥ ≤ β ( ∥ x θ ( t 0 ) ∥ , t − t 0 ) , ∀ t 0 ≤ t < t 0 + T ,
and
∥ x θ ( t ) ∥ ≤ ρ ( δ ) , ∀ t ≥ t 0 + T ,
for some class KL function β and some finite T, where ρ is a class K function of d e l t a defined by
ρ ( δ ) = α 1 − 1 α 2 α 3 − 1 δ α 4 ( r ) k
For the bi-rotor in closed loop with the backstepping controller (13)
α 1 ( ∥ x θ ∥ ) = 1 2 ∥ x θ ∥ 2 ,
α 2 ( ∥ x θ ∥ ) = 1 2 ∥ x θ ∥ 2 ,
α 3 ( ∥ x θ ∥ ) = − min ( { k 1 θ , k 2 θ } ) ∥ x θ ∥ 2 ,
α 3 ( ∥ x θ ∥ ) = ∥ x θ ∥ ,
So that for ∥ x θ ∥ < r and if δ satisfies
δ < k min ( { k 1 θ , k 2 θ } ) r
The solutions x θ ( t ) remain bounded and after some time T the solution will be bounded by
ρ ( δ ) = δ r k min ( { k 1 θ , k 2 θ } ) .

Appendix C.2. Nested Saturations

Lets begin finding the closed-loop dynamics of the bi-rotor system subject to disturbances with the control law (19), which is given by
z ˙ 1 θ = z 2 θ ,
z ˙ 2 θ = − σ 2 ( z 2 θ + σ 1 ( z 1 θ ) ) + g ( x θ , t ) .
For values of q such that | z 2 θ | < 1 2 L 2 + δ
z ˙ 2 θ = − ( z 2 θ − σ 1 ( z 1 θ ) ) + g ( x θ , t )
Now, consider the Lyapunov function V 2 = z 1 θ 2 . The time derivative of this function is
V ˙ 2 = − z 2 θ 2 − z 2 θ σ 1 ( z 1 θ ) + g ( x θ , t ) ,
which is negative for values of z 2 θ ∉ Q 2 = { z 2 θ | 1 2 L 2 + δ } . This imposes that δ < 1 2 L 2 , for there to be some values of z 2 θ such that the saturation in σ is not reached and to ensure that the proof in [35] remains valid.

Appendix C.3. Sliding Modes

The time derivative of the Lyapunov function (A22) along the solutions of the disturbed system (A30) in closed loop with (21) is
V ˙ = − β s θ sign ( s θ ) + g ( x θ , t ) s θ .
This derivative is negative definite if δ < β θ , meaning that for disturbances smaller than β t h e t a the trajectories keep reaching the manifold s θ = 0 .

References

  1. Chevallereau, C.; Abba, G.; Aoustin, Y.; Plestan, F.; Westervelt, E.R.; Canudas-De-Wit, C.; Grizzle, J.W. Rabbit: A testbed for advanced control theory. IEEE Control Syst. Mag. 2003, 23, 57–79. [Google Scholar]
  2. Nagabhushan, V.; Fitz-Coy, N. Scalable, hil, unconstrained 3-axis test bed for attitude control systems. In Proceedings of the AIAA/AAS Astrodynamics Specialist Conference, Toronto, ON, Canada, 2–5 August 2010; pp. 1–13. [Google Scholar]
  3. Dong, W.; Gu1, G.; Zhu, X.; Ding, H. Development of a quadrotor test bed-modelling, parameter identification, controller design and trajectory generation. Int. J. Adv. Robot. Syst. 2014, 12, 7. [Google Scholar] [CrossRef] [Scilit]
  4. Valera, A.; Soriano, A.; Vallés, M. Plataformas de bajo coste para la realización de trabajos prácticos de mecatrónica y robótica. Rev. Iberoam. Autom. Inform. Ind. 2014, 11, 363–376. [Google Scholar] [CrossRef] [Scilit]
  5. Ramírez, E.; Bono, A.; Montijano, E. Una década de experiencias ense ñando electrónica y control con un levitador magnético. Rev. Iberoam. Autom. Inform. Ind. 2024, 21, 318–327. [Google Scholar] [CrossRef] [Scilit]
  6. Elke, W.J.; Pei, J.; Caverly, R.J.; Gebre-Egziabher, D. A low-cost and low-risk testbed for control design of launch vehicles and landing systems. In Proceedings of the 2021 IEEE Aerospace Conference, Big Sky, MT, USA, 6–13 March 2021; pp. 1–12. [Google Scholar] [CrossRef] [Scilit]
  7. Hau-Shiue, J.; Kai-Yew, L. Design and control of a two-wheel self-balancing robot using the arduino microcontroller board. In Proceedings of the 2013 10th IEEE International Conference on Control and Automation (ICCA), Hangzhou, China, 12–14 June 2013; pp. 634–639. [Google Scholar] [CrossRef] [Scilit]
  8. Unluturk, A.; Aydogdu, O. Machine Learning Based Self-Balancing and Motion Control of the Underactuated Mobile Inverted Pendulum With Variable Load. IEEE Access 2022, 10, 104706–104718. [Google Scholar] [CrossRef] [Scilit]
  9. Muñoz-Hernandez, G.A.; Díaz-Téllez, J.; Estevez-Carreon, J.; García-Ramírez, R.S. ADRC Attitude Controller Based on ROS for a Two-Wheeled Self-Balancing Mobile Robot. IEEE Access 2023, 11, 94636–94646. [Google Scholar] [CrossRef] [Scilit]
  10. Munyu, K.; Jongwoo, P.; Dong-Il, P.; Chanhun, P.; Joono, C. Dynamic Inversion-Based Real-Time Trajectory Planning Method for Wheeled Inverted Pendulum Using Asymptotic Expansion Technique. IEEE Access 2023, 11, 94805–94821. [Google Scholar] [CrossRef] [Scilit]
  11. Yongkuk, K.; Sangjoo, K. Balancing-Prioritized Anti-Slip Control of a Two-Wheeled Inverted Pendulum Robot Vehicle on Low-Frictional Surfaces with an Acceleration Slip Indicator. Machines 2023, 11, 553. [Google Scholar] [CrossRef] [Scilit]
  12. Ji-Hyun, P.; Baek-Kyu, C. Development of a self-balancing robot with a control moment gyroscope. Int. J. Adv. Robot. Syst. 2018, 2018, 1–11. [Google Scholar] [CrossRef] [Scilit]
  13. Chen, J.; He, N.; Xu, Z.; Dou, M.; He, L. Design and Implementation of a Novel Two-Wheeled Composite Self-Balancing Robot for Stationary Operations in Unknown Terrain. IEEE Access 2025, 13, 86032–86045. [Google Scholar] [CrossRef] [Scilit]
  14. Saenz, A.; Santibañe, V.; Bugarin, E.; Dzul, A.; Rios, H.; Villalobos-Chin, J. Velocity Control of an Omnidirectional Wheeled Mobile Robot Using Computed Voltage Control with Visual Feedback: Experimental Results. Int. J. Control Autom. Syst. 2021, 19, 1089–1102. [Google Scholar] [CrossRef] [Scilit]
  15. López, S.; Llama, M.A. Two-Layer Neuro-Adaptive Compensation Control Applied to a 4-Wheeled Omnidirectional Mobile Robo. IEEE Lat. Am. Trans. 2025, 23, 1318–1324. [Google Scholar] [CrossRef] [Scilit]
  16. Chi-Yi, T.; Kai-Tai, S. Visual Tracking Control of a Wheeled Mobile Robot With System Model and Velocity Quantization Robustness. IEEE Trans. Control Syst. Technol. 2021, 17, 520–527. [Google Scholar] [CrossRef] [Scilit]
  17. Meza, J.; Santibáñez, V.; Campa, R. An estimate of the domain of attraction for the PID regulator of manipulators. Int. J. Robot. Autom. 2007, 22, 187–195. [Google Scholar] [CrossRef] [Scilit]
  18. Sifuentes-Mijares, J.; Santibáñez, V.; Meza-Medina, J.L. Nonlinear PID global regulators with selftuned PD gains for robot manipulators: Theory and experimentation. J. Braz. Soc. Mech. Sci. Eng. 2021, 443, 223. [Google Scholar] [CrossRef] [Scilit]
  19. De León, V.; Pámanes, A.; Santibáñez, V. Evaluación experimental del caminado en tiempo real de un robot bípedo de 5 gdl con marcha basada en movimientos cicloidales. Univ. Politècnica València 2015, 12, 408–418. [Google Scholar] [CrossRef] [Scilit]
  20. Soto, I.; Campa, R.; Sánchez-Mazuca, S. Modelado y control con compensación de fricción de un sistema pendubot. Rev. Iberoam. Autom. Inform. Ind. 2020, 18, 39–47. [Google Scholar] [CrossRef] [Scilit]
  21. Hernández-Guzmán, V.; Silva-Ortigoza, R.; Orrante-Sakanassi, J. Automatic Control with Experiments; Springer: London, UK, 2024. [Google Scholar] [CrossRef] [Scilit]
  22. Khalil, H. Nonlinear Systems; Pearson Education: New York, NY, USA, 2001. [Google Scholar]
  23. Slotine, J.; Li, W. Applied Nonlinear Control; Pearson: London, UK, 1991. [Google Scholar]
  24. Shtessel, Y.; Edwards, C.; Fridman, L.; Levant, A. Sliding Mode Control and Observation; Birkhäuser: New York, NY, USA, 2014. [Google Scholar] [CrossRef] [Scilit]
  25. Utkin, V.; Poznyak, A.; Orlov, Y.; Polyakov, A. Road Map for Sliding Mode Control Design; Springer: Cham, Switzerland, 2020. [Google Scholar] [CrossRef] [Scilit]
  26. Lozano, R.; Castillo, P.; Dzul, A. Global stabilization of the pvtol realtime application to a mini-aircraft. In Proceedings of the IFAC System, Structure and Control, Oaxaca, Mexico, 8–10 December 2004; pp. 235–240. [Google Scholar]
  27. Hauser, J.; Sastry, S.; Meyer, G. Nonlinear control design for slightly non-minimum phase systems: Application to V/STOL aircraft. Automatica 1992, 28, 665–679. [Google Scholar] [CrossRef] [Scilit]
  28. Castillo, P.; Lozano, R.; Dzul, A. Modelling and Control of Mini-Flying Machines; Springer: London, UK, 2005. [Google Scholar]
  29. Escobar, J.; Lozano, R.; Bonilla, M. Pvtol exact linearization control. Int. J. Control 2019, 94, 1794–1803. [Google Scholar] [CrossRef] [Scilit]
  30. Ogata, K. Modern Control Engineering; Prentice Hall: Hoboken, NJ, USA, 2009. [Google Scholar]
  31. Dorf, R.; Bishop, R. Modern Control Systems; Pearson: London, UK, 2016. [Google Scholar]
  32. Kelly, R.; Santibañez, V.; Loría, L. Control of Robot Manipulators in Joint Space; Springer: New York, NY, USA, 2005. [Google Scholar]
  33. Rojas, J.; Arrieta, O.; Villanova, R. Industrial PID Controller Tuning: With a Multiobjective Framework Using MATLAB; Springer: London, UK, 2021. [Google Scholar]
  34. Krstić, M.; Kanellakopoulos, I.; Kokotovic, P. Nonlinear and Adaptive Control Design; Jhon Wiley: New York, NY, USA, 1995. [Google Scholar]
  35. Teel, A. Global stabilization and restricted tracking for multiple integrators with bounded controls. Syst. Control Lett. 1992, 18, 165–171. [Google Scholar] [CrossRef] [Scilit]
  36. Vaidyanathan, S.; Taher, A. Backstepping Control of Nonlinear Dynamical Systems (Advances in Nonlinear Dynamical Systems and Robotics; Academic Press: London, UK, 2020. [Google Scholar]
  37. Lozano, R.; Salazar, S.; Flores, D.; Gonzalez, I. PVTOL global stabilisation using a nested saturation control. Int. J. Control 2022, 95, 2656–2666. [Google Scholar] [CrossRef] [Scilit]
  38. Punguil, A.; Rojas, J.; Guillen, M.; Herrerra, E. Introduction Manual for the Use and Applications of the ESP32 Card. Rev. Cient. Generando 2024, 5, 15–46. [Google Scholar] [CrossRef] [Scilit]
  39. Monk, S. Programming ESP32; Makes Press: London, UK, 2024. [Google Scholar]
  40. Espinoza-Fraire, A.T.; Dzul, A.; Parada, R.; Saenz, A. Design of Control Laws and State Observers for Fixed-Wing UAVs Simulation and Experimental Approaches; Elsevier: London, UK, 2022. [Google Scholar] [CrossRef] [Scilit]
  41. Huijsing, J. Operational Amplifiers, 2nd ed.; Springer: London, UK, 2011. [Google Scholar]
  42. Falcón, R.; Ríos, H.; Dzul, A. Sliding–Mode–based Fault Diagnosis and Fault–Tolerant Control for Quad–Rotors. In Sliding–Mode Control and Variable–Structure Systems; Springer: Cham, Switzerland, 2023; pp. 503–539. [Google Scholar] [CrossRef] [Scilit]
  43. Marzullo, T.; Dey, S.; Long, N.; Leiva Vilaplana, J.; Henze, G. A high-fidelity building performance simulation test bed for the development and evaluation of advanced controls. J. Build. Perform. Simul. 2022, 15, 379–397. [Google Scholar] [CrossRef] [Scilit]
  44. Bucolo, M.; Buscarino, A.; Fortuna, L.; Gagliano, S. Can noise in the feedback improve the performance of a control system? J. Phys. Soc. Jpn. 2021, 90, 075002. [Google Scholar] [CrossRef] [Scilit]
  45. Bucolo, M.; Buscarino, A.; Famoso, C.; Fortuna, L.; Gagliano, S. Imperfections in integrated devices allow the emergence of unexpected strange attractors in electronic circuits. IEEE Access 2021, 9, 29573–29583. [Google Scholar] [CrossRef] [Scilit]
  46. Wentao, Z.; Kuan, L.; Heng, W.; Donglin, L.; Runhan, L.; Haopeng, Z.; Chao, F. Multi-Unit hybrid modeling method and nonlinear dynamics analysis of the whole aero-engine system. Aerosp. Sci. Technol. 2026, 168, 111275. [Google Scholar] [CrossRef] [Scilit]
  47. Zhang, K.; Guo, D.; Lu, K.; Fu, C.; Wang, H.; Dong, C. Reduce the longitudinal and radial vibrations of the autonomous underwater vehicle using the anti-resonance method. J. Vib. Control 2025, 10775463251378262. [Google Scholar] [CrossRef] [Scilit]
  48. Kangyu, Z.; Kuan, L.; Shaonan, C.; Hui, C.; Chao, F.; Dong, G. Dynamic modeling and parameter sensitivity analysis of AUV by using the POD method and the HB-AFT method. Ocean. Eng. 2024, 293, 116693. [Google Scholar] [CrossRef] [Scilit]
  49. Chen, J.; Lu, K.; Zhang, H.; Zhang, W.; Gu, X.; Fu, C.; Tuo, S. A new analytical model of bolted flange structures in the rotor system and its verification. Appl. Math. Mech. 2025, 46, 2115–2134. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.