ArticlePDF Available

Self-balancing robot: modeling and comparative analysis between PID and linear quadratic regulator

Authors:

Abstract and Figures

p>A two-wheeled self-balancing robot (TWSBR) is an underactuated system that is inherently nonlinear and unstable. While many control methods have been introduced to enhance the performance, there is no unique solution when it comes to hardware implementation as the robot’s stability is highly dependent on accuracy of sensors and robustness of the electronic control systems. In this study, a TWSBR that is controlled by an embedded NI myRIO-1900 board with LabVIEW-based control scheme is developed. We compare the performance between proportional-integral-derivative (PID) and linear quadratic regulator (LQR) schemes which are designed based on the TWSBR’s model that is constructed from Newtonian principles. A hybrid PID-LQR scheme is then proposed to compensate for the individual components’ limitations. Experimental results demonstrate the PID is more effective at regulating the tilt angle of the robot in the presence of external disturbances, but it necessitates a higher velocity to sustain its equilibrium. The LQR on the other hand outperforms PID in terms of maximum initial tilt angle. By combining both schemes, significant improvements can be observed, such as an increase in maximum initial tilt angle and a reduction in settling time.</p
Content may be subject to copyright.
International Journal of Reconfigurable and Embedded Systems (IJRES)
Vol. 12, No. 3, November 2023, pp. 351359
ISSN: 2089-4864, DOI: 10.11591/ijres.v12.i3.pp351-359 351
Self-balancing robot: modeling and comparative analysis
between PID and linear quadratic regulator
Lu Bin Lau, Nur Syazreen Ahmad, Patrick Goh
School of Electrical and Electronic Engineering, Universiti Sains Malaysia, Nibong Tebal, Malaysia
Article Info
Article history:
Received Oct 20, 2022
Revised Mar 19, 2023
Accepted Apr 4, 2023
Keywords:
Linear quadratic regulator
Modeling
Proportional-integral-derivative
Robot
Self-balancing
ABSTRACT
A two-wheeled self-balancing robot (TWSBR) is an underactuated system that
is inherently nonlinear and unstable. While many control methods have been
introduced to enhance the performance, there is no unique solution when it
comes to hardware implementation as the robot’s stability is highly dependent
on accuracy of sensors and robustness of the electronic control systems. In
this study, a TWSBR that is controlled by an embedded NI myRIO-1900 board
with LabVIEW-based control scheme is developed. We compare the perfor-
mance between proportional-integral-derivative (PID) and linear quadratic reg-
ulator (LQR) schemes which are designed based on the TWSBR’s model that
is constructed from Newtonian principles. A hybrid PID-LQR scheme is then
proposed to compensate for the individual components’ limitations. Experimen-
tal results demonstrate the PID is more effective at regulating the tilt angle of
the robot in the presence of external disturbances, but it necessitates a higher
velocity to sustain its equilibrium. The LQR on the other hand outperforms PID
in terms of maximum initial tilt angle. By combining both schemes, significant
improvements can be observed, such as an increase in maximum initial tilt angle
and a reduction in settling time.
This is an open access article under the CC BY-SA license.
Corresponding Author:
Nur Syazreen Ahmad
School of Electrical and Electronic Engineering, Universiti Sains Malaysia
14300 Nibong Tebal, Penang, Malaysia
Email: syazreen@usm.my
1. INTRODUCTION
The past few decades have seen a growing interest in autonomous mobile robots (AMRs) in both
industries and academia due to rapid technological advancements and the extensive use of robotics particularly
for reducing costs and enhancing productivity [1]-[4]. A two-wheeled self-balancing robot (TWSBR) is one
type of AMRs that is underactuated and inherently unstable but has notable advantages of being able to move
on a zero-radius curve, high tolerance to impulsive force, and small footprints to move in dangerous places. The
Segway Personal Transporter and Ninebot scooters are examples of commercialized technologies that apply the
same concept of a TWSBR. Apart from being an alternative mode of transportation that can take the place of
an automobile for short commutes, they have also been demonstrated useful for populations with a range of
functional disabilities [5]. Although the user safety cannot be totally guaranteed [6]-[8], these technologies are
often equipped with multiple control systems to enhance their reliability in the event of failure in any one of
them, which in turn results in a higher cost.
In academia, the TWSBR is often used as a research platform to verify advanced control algorithms
as its behaviour is comparable to that of the classical inverted pendulum system. Its wheels are usually driven
Journal homepage: http://ijres.iaescore.com
352 ISSN: 2089-4864
by an electrico-mechanical system which can be either direct current (DC) motors or stepper motors [9]. The
main control objective is to stabilize the robot by driving all the state variables, which are the robot’s position,
velocity, tilt angle and angular velocity, to approach their desired stable values in the shortest time possible. In
the TWSBR development, speed encoders, an accelerometer and a gyroscope are typically required to measure
these state variables [10]. Many techniques have been proposed to solve the problem in the literature, which can
be categorized into linear and nonlinear control approaches [11]-[14]. Examples of the latter include sliding
mode controls [15], fuzzy logic control [16], [17], artificial neural network [18], and deep learning [19]. Aside
from that, the Gaussian process (GP) has also been employed to its capability to create flexible nonlinear
nonparametric models [20]. Chen et al. [21] explained for instance, a control design based on a learned GP
regression model is proposed to alleviate the effects from modeling errors.
While the aforementioned nonlinear control methods have been demonstrated to provide robustness
against uncertainties, the resulting complexity will typically limit their applicability to low-cost embedded
controllers. The linear control approaches on the other hand are relatively simpler in terms of their imple-
mentations on hardware. The most popular methods are proportional-integral-derivative (PID) [22]-[24] and
linear quadratic regulator (LQR) schemes [25]. Nevertheless, a notable downside of the PID control algorithm
for controlling the TWSBR is the difficulty of parameter tuning [26], [27]. Although there are many software
tools available to aid the optimization of the PID parameters, the resulting control law may not be desirable
for the TWSBR which can be easily driven to the instability region. In contrast, controlling the TWSBR via
the LQR scheme is relatively more straightforward as its optimal parameters can be obtained by minimizing
the cost function that can also preserve the closed-loop stability at the same time. However, utilization of this
controller requires prior knowledge and skills in analysing the trade off between the control performance and
power consumption.
Most of the aforementioned work focused on developing new control strategies that can be validated
via simulations. In practice, the system is not only inherently nonlinear and unstable, but is prone to random
noise and disturbances [28]. Plus, there is no unique solution when it comes to hardware implementation as
the robot’s stability is highly dependent on the robustness of the electronic control systems. In this study, a
TWSBR that is controlled by an embedded NI myRIO-1900 board with LabVIEW-based control scheme is
developed. We compare the performance between PID and LQR schemes which are designed based on the
robot’s model that is constructed from Newtonian principles. A hybrid PID-LQR scheme is then proposed
to compensate for the individual components’ limitations. Experimental results demonstrate the PID is more
effective at regulating the tilt angle of the robot in the presence of external disturbances, but it necessitates a
higher velocity to sustain its equilibrium. The LQR on the other hand outperforms PID in terms of maximum
initial tilt angle. By combining both schemes, significant improvements can be observed, such as an increase
in maximum initial tilt angle and a reduction in settling time.
2. METHOD
2.1. TWSBR design and modeling
The TWSBR built in this study is shown in Figure 1 which consists of an NI myRIO-1900 board, two
brushed DC motors with encoders, an external gyroscope (i.e. PmodGyro) to improve the tilt angle estimation
(explained further in section 2.3), a 12 V Li-Ion power supply, a printed circuit board (PCB) containing the
motor driver and voltage regulators, the wheels and the chassis. Figure 1(a) illustrates the built TWSBR while,
Figure 1(b) visualizes the connection between each unit. The control scheme is constructed via model-based
design approach in LabVIEW which is also used as a user interface to display and log the data wirelessly during
the experiment.
The robot can be modeled from first principles by taking into account the dynamics of the motors,
robot chassis, and the forces on the wheels. The inputs to the TWSBR are the torques applied to the left and
right wheels, which are assumed to be similar. Figure 2 illustrates the free body diagram of the TWSBR. The
diagram for the robot’s wheel is depicted in Figure 2(a) where Twdenotes the torque applied to it, θis the
angular position, Fwis the force applied to the wheel by the chassis, and Ffis the friction force by the surface
contact. With regard to the robot chassis which includes the NI-myRIO board, batteries, gyroscope and the
printed circuit board, it acts similar to an inverted pendulum as illustrated in Figure 2(b) whose base is attached
to the wheels.
Int J Reconfigurable Embedded Syst, Vol. 12, No. 3, November 2023: 351–359
Int J Reconfigurable Embedded Syst ISSN: 2089-4864 353
(a) (b)
Figure 1. The TWSBR’s prototype built in (a) this study and (b) its connection diagram
(a) (b)
Figure 2. Free body diagrams of (a) the wheel and (b) the TWSBR’s chassis
Let Jwbe the moment of inertia of the wheel, rbe its radius, mwbe mass of the wheel, and xbe the
horizontal position of the center of the wheel relative to a defined origin. Using Newton’s law of motion, the
sum of forces in the horizontal x-direction can be written as (1):
mw¨x=FfFw(1)
for each wheel. Assuming there are no tire deformation and rolling resistance, the sum of torques is given by
(2):
Jw¨
θ=TwFfr(2)
for each wheel. From the DC motor dynamics, the torque relates to the input voltage as Tw= (km/R)Vin
(kmke/R)˙
θ, where Ris the electrical resistance of the motor, and Vin is the applied voltage, and kmand ke
are torque and back EMF constants respectively. Substituting this expression into (2), we will get (3).
Ff= (km/Rr)Vin (kmke/Rr2) ˙x(Jw/r2)¨x. (3)
Replacing Ffin (1) with this expression gives (4).
Fw= (km/Rr)Vin (kmke/Rr2) ˙xmw+ (Jr/r2)¨x(4)
The sum of forces in the x-direction can be written as (5):
Nx=mc¨x+mc¨
βcos βmc˙
β2sin β(5)
where Nxis the combination of forces from both wheels, mcis the mass, is the distance to the center of the
mass, θis the angle between vertical line and the pendulum, and ¨xis the robot’s acceleration in the x-direction.
The sum of forces perpendicular to the pendulum is simply:
Nysin β+Nxcos βmcgsin βmc¨
β=mc¨xcos β(6)
Self-balancing robot: modeling and comparative analysis between PID and linear quadratic ... (Lu Bin Lau)
354 ISSN: 2089-4864
where Nyrefers to the force in the ydirection, and grefers to the gravity constant. The sum of torques acting
at the center of the pendulum is:
Nysin βNxcos β2Tw=Jc¨
β(7)
where Jcis the pendulum’s moment of inertia. Assuming αis sufficiently small, we have sin β= sin(π+α)
α; cos β= cos(π+α) 1; β2=α20, which lead to the following approximations.
Nx=mc¨xmc¨α(8)
NyαNx+mc mc¨α=mc¨x(9)
Nyℓα +Nx2Tw=Jc¨α(10)
By substituting the expression of Twinto (10), we will obtain.
Nyℓα +Nx2km
RVin +2kmke
Rr ˙x=Jc¨α(11)
Let x1=x,x2= ˙x,x3=α,x4= ˙α,u=Vin, and q= [x1x2x3x4]T, the state space representation
of the TWSBR can be constructed as ˙q=Aq +Bu;y=Cq with:
A=
0 1 0 0
02kmke(Jc+mc2mcℓr)
Rr2
m2
c2g
0
0 0 0 1
02kmkermc)
Rr2
mcgℓΛ
0
;B=
0
2km(Jc+mc2mcrℓ)
Rr
0
2km(mcΛr)
Rr
(12)
C=0010(13)
2.2. Control schemes for TWSBR
Figure 3 illustrates the difference between the PID control (Figure 3(a)), LQR control (Figure 3(b))
and the PID-LQR scheme (Figure 3(c)) which is proposed to overcome the limitation of each component. For
the LQR control scheme, the control parameter KL=k1k2k3k4is optimized by minimizing the
following cost function J=R
0qTQ+KT
LRKLq dt where Q0and R > 0. The optimal value of
KLcan be obtained by using the formula KL=R1BTPwhere Pis the solution to the Ricatti equation
ATP+P A P B R1BTP+Q= 0. With regard to the PID control scheme, the parameters for Kp,Kiand
Kdwere tuned based on the Ziegler-Nichols approach as presented in [29].
(a) (b) (c)
Figure 3. Illustrations on (a) the LQR and PID, (b) the proposed hybrid PID-LQR, and (c) control schemes for
the TWSBR
2.3. Software implementation
In this work, the control schemes were designed in the LabVIEW software and deployed to the em-
bedded NI myRIO-1900 board. The board consists of a built-in accelerometer which provides the angular
acceleration from x,y, and z axes. The tilt angle from the accelerometer can be obtained as (14):
αacc = (arctan val(y)/val(z))×180 (14)
Int J Reconfigurable Embedded Syst, Vol. 12, No. 3, November 2023: 351–359
Int J Reconfigurable Embedded Syst ISSN: 2089-4864 355
where val(y)is the accelerometer value from the y-axis, val(z)is the accelerometer value from the z-axis,
and Tsis the sampling time. However, any shock or vibration will produce sudden spikes on the tilt angle
which can lead to instability of the robot. Therefore, the pitch angle of the robot was obtained through sensor
fusion by combining readings from the accelerometer and a gyroscrope, αgyro, which was externally connected
to the board. A low pass filter was applied to the accelerometer to attenuate the high frequency vibration
noise produced by the motors of the TWSBR. The drift from the PmodGyro’s readings was minimized by
applying a high pass filter. The filtered readings were then combined to obtain a more stable reading for the
TWSBR. The output of the sensor fusion block is considered as the actual tilt angle of the robot, i.e. α. The
corresponding angular velocity, ˙α, of the robot can be obtained by a simple mathematical calculation, i.e.
˙α= (α(k)α(k1))/Ts.
To measure the robot’s position and speed, i.e. xand ˙x, the angular speeds of the DC motors were
firstly measured using hall-effect magnetic encoders. Since each of the hall sensors gives a resolution of 390
lines per revolution, quadruple outputs from the two hall sensors give an effective resolution of 1,560 lines per
revolution. Therefore, the angular speed (in rad/s) of each motor can be calculated as follows:
ωi= (C(k)C(k1))/Ts×(2π/1560), i =R, L (15)
where C(k)is the encoder count at iteration k, and ωR(ωL)is the angular speed of the right (left) wheel. The
robot’s speed and position can then be written as follows: ˙x= (ωR+ωL)r/2and x= ˙xTs+x0respectively
where x0is the previous position. As the controller’s output will send a command that is linearly proportional
to the speed, a closed-loop speed control technique from [17] is employed to ensure the actual speed of the
robot follows the reference value.
3. RESULTS AND DISCUSSION
Based on the TWSBR model parameters in Table 1, the resulting transfer function Gαis:
Gα=39.77s
s3+ 66.1s20.514s26.88,
and the Aand Bmatrices are:
A=
0 1 0 0
01.1237 6.9748 0
0 0 0 1
0255.26 128.9962 0
;B=
0
10.30
0
39.77
.(16)
Table 1. Model parameters of the robot
Notation Definition Value/unit
gGravitational acceleration 9.81 ms2
mcMass of the chassis 0.7604 kg
mwMass of each wheel 0.048 kg
JcMoment of inertia of the chassis 0.0032 kgm2
JwMoment of inertia of the wheel 0.000074 kgm2
RElectrical resistance of the motor 1.6
rRadius of the wheel 0.034 m
kmMotor torque constant 0.2182 Nm/A
keBack EMF constant 0.2182 V/(rad/s)
Half length of the chassis 0.0 m
To accurately model the built robot, its linear speed is constrained within ±100 cm/s. Using the LQR
control design techniques in section 2.2, the values of Qand Rwere set to Q=diag(10,10,0,0) and R= 1
respectively to give the following state feedback gain KL=3.1623 6.9428 3.9015 0.4482. For
the PID, the optimal values obtained were Kp= 300; Ki= 5500; Kd= 1.5. A filter coefficient of
10,000 was included in the PID control scheme to make the transfer function realizable. In the proposed hybrid
method, some parameter tunings need to be performed to maintain the stability and improve the performance of
Self-balancing robot: modeling and comparative analysis between PID and linear quadratic ... (Lu Bin Lau)
356 ISSN: 2089-4864
the closed-loop system. The optimal values obatined were ˆ
KL= [207.84 245.64 220.47 18.25],
ˆ
Kp= 0.1,ˆ
Ki= 0.3and ˆ
Kd= 0.7.
In order to evaluate the performance of the three control schemes on the TWSBR, they were tested
experimentally when the robot was placed on two types of surface, i.e. rough and smooth. For each scheme,
the initial tilt angle was slowly increased after each trial until the controller was no longer able to maintain the
stability of the TWSBR. To provide a fair comparison, only the maximum initial tilt angle that the robot was
able to self-balance and its corresponding settling time were used to evaluate the performance since the noise
and disturbances entering the system were random and unmeasurable. The settling time in this case is defined
as the time it takes for the tilt angle to reach within ±1region.
Table 2 records the numerical results while Figure 4 to Figure 6 illustrate the performance of the
TWSBR with PID, LQR, and hybrid PID-LQR control schemes on both surfaces. Durations of oscillations
and settling time are seen longer on smooth surface for all control schemes due to a higher probability of the
robot to have wheel slips. Comparing Figure 4(a)-Figure 4(d) against Figure 5(a)-Figure 5(d), the PID is seen
to be more effective at regulating the tilt angle of the robot, but it necessitates a higher linear velocity (i.e. back
and forth) to sustain its equilibrium as can be observed from the trajectories of x2in Figure 4(a), Figure 4(c),
Figure 5(a), and Figure 5(c). The LQR on the other hand outperforms the PID in terms of both maximum tilt
angle and settling time. Nonetheless, a significant improvement is achieved when both schemes are hybridized
as can be observed from Figure 6 and the last column in Table 2 where the settling time is reduced and the
maximum initial tilt angle is increased (Figure 6(a) and Figure 6(c)). Figure 6(b) and Figure 6(d) also show a
considerable reduction in the amplitudes of x3and x4.
Table 2. Performance evaluations between PID, LQR, and hybrid LQR-PID schemes by experiments
Control scheme
Type of surface Performance metric PID LQR Hybrid
Rough Maximum initial tilt angle (deg) 2.01 7.42 9.22
Settling time (s) 2.78 2.12 2.04
Smooth Maximum initial tilt angle (deg) 1.04 3.21 10.11
Settling time (s) 3.02 2.13 2.12
0 0.5 1 1.5 2 2.5 3 3.5
Time (s)
-30
-20
-10
0
10
20
30
x1 (cm), x2 (cm/s)
Performance with PID on Rough Surface
x1
x2
(a)
0 0.5 1 1.5 2 2.5 3 3.5
Time (s)
-10
-8
-6
-4
-2
0
2
4
6
8
10
x3 (deg), x4 (deg/s)
Performance with PID on Rough Surface
x3
x4
(b)
0 0.5 1 1.5 2 2.5 3 3.5
Time (s)
-30
-20
-10
0
10
20
30
x1 (cm), x2 (cm/s)
Performance with PID on Smooth Surface
x1
x2
(c)
0 0.5 1 1.5 2 2.5 3 3.5
Time (s)
-10
-8
-6
-4
-2
0
2
4
6
8
10
x3 (deg), x4 (deg/s)
Performance with PID on Smooth Surface
x3
x4
(d)
Figure 4. Performance of the TWSBR with PID control in terms of trajectories of (a) x1, x2on a rough
surface, (b) x3, x4on a rough surface, (c) x1, x2on a smooth surface, and (d) x3, x4on a smooth surface
Int J Reconfigurable Embedded Syst, Vol. 12, No. 3, November 2023: 351–359
Int J Reconfigurable Embedded Syst ISSN: 2089-4864 357
0 0.5 1 1.5 2 2.5 3 3.5
Time (s)
-30
-20
-10
0
10
20
30
x1 (cm), x2 (cm/s)
Performance with LQR on Rough Surface
x1
x2
(a)
0 0.5 1 1.5 2 2.5 3 3.5
Time (s)
-10
-8
-6
-4
-2
0
2
4
6
8
10
x3 (deg), x4 (deg/s)
Performance with LQR on Rough Surface
x3
x4
(b)
0 0.5 1 1.5 2 2.5 3 3.5
Time (s)
-30
-20
-10
0
10
20
30
x1 (cm), x2 (cm/s)
Performance with LQR on Smooth Surface
x1
x2
(c)
0 0.5 1 1.5 2 2.5 3 3.5
Time (s)
-10
-8
-6
-4
-2
0
2
4
6
8
10
x3 (deg), x4 (deg/s)
Performance with LQR on Smooth Surface
x3
x4
(d)
Figure 5. Performance of the TWSBR with LQR control in terms of trajectories of (a) x1, x2on a rough
surface, (b) x3, x4on a rough surface, (c) x1, x2on a smooth surface, and (d) x3, x4on a smooth surface
0 0.5 1 1.5 2 2.5 3 3.5
Time (s)
-30
-20
-10
0
10
20
30
x1 (cm), x2 (cm/s)
Performance with Hybrid PID-LQR on Rough Surface
x1
x2
(a)
0 0.5 1 1.5 2 2.5 3 3.5
Time (s)
-10
-8
-6
-4
-2
0
2
4
6
8
10
x3 (deg), x4 (deg/s)
Performance with Hybrid PID-LQR on Rough Surface
x3
x4
(b)
0 0.5 1 1.5 2 2.5 3 3.5
Time (s)
-30
-20
-10
0
10
20
30
x1 (cm), x2 (cm/s)
Performance with Hybrid PID-LQR on Smooth Surface
x1
x2
(c)
0 0.5 1 1.5 2 2.5 3 3.5
Time (s)
-10
-8
-6
-4
-2
0
2
4
6
8
10
x3 (deg), x4 (deg/s)
Performance with Hybrid PID-LQR on Smooth Surface
x3
x4
(d)
Figure 6. Performance of the TWSBR with a hybrid PID-LQR in terms of trajectories of (a) x1, x2on a rough
surface, (b) x3, x4on a rough surface, (c) x1, x2on a smooth surface, and (d) x3, x4on a smooth surface
Self-balancing robot: modeling and comparative analysis between PID and linear quadratic ... (Lu Bin Lau)
358 ISSN: 2089-4864
4. CONCLUSION
In this study, we developed a TWSBR controlled by an embedded NI myRIO-1900 board with a
model-based control scheme. Our experimental results showed that PID is more effective in regulating the
robot’s tilt angle in the presence of external disturbances, but it requires a higher velocity to maintain equilib-
rium. On the other hand, LQR outperforms PID in terms of the maximum initial tilt angle. By combining both
schemes, we observed significant improvements, such as an increase in the maximum initial tilt angle and a re-
duction in settling time. While the experimental results presented in this study provide valuable insights into the
performance of the TWSBR, future research could focus on evaluating its performance in real-world scenarios,
such as navigating through complex environments or performing specific tasks. Machine learning techniques,
such as reinforcement learning, could also be used to train the TWSBR to adapt to changing environmental
conditions or to optimize its performance based on specific performance criteria.
ACKNOWLEDGEMENT
The authors would like to thank Ministry of Higher Education Malaysia for the financial support under
Fundamental Research Grant Scheme with Project Code: FRGS/1/2021/TK0/USM/02/18.
REFERENCES
[1] G. Fragapane, R. de Koster, F. Sgarbossa, and J. O. Strandhagen, “Planning and control of autonomous mobile robots for intralo-
gistics: literature review and research agenda,” European Journal of Operational Research, vol. 294, no. 2, pp. 405–426, Oct. 2021,
doi: 10.1016/j.ejor.2021.01.019.
[2] A. Loganathan and N. S. Ahmad, “A systematic review on recent advances in autonomous mobile robot navigation,” Engineering
Science and Technology, an International Journal, vol. 40, p. 101343, Apr. 2023, doi: 10.1016/j.jestch.2023.101343.
[3] J. H. Teo, A. Loganathan, P. Goh, and N. S. Ahmad, “Autonomous mobile robot navigation via RFID signal strength sens-
ing,” International Journal of Mechanical Engineering and Robotics Research, vol. 9, no. 8, pp. 1140–1144, 2020, doi:
10.18178/ijmerr.9.8.1140-1144.
[4] I. Arrouch, N. S. Ahmad, P. Goh, and J. Mohamad-Saleh, “Close proximity time-to-collision prediction for autonomous robot
navigation: an exponential GPR approach,” Alexandria Engineering Journal, vol. 61, no. 12, pp. 11171–11183, Dec. 2022, doi:
10.1016/j.aej.2022.04.041.
[5] B. Sawatzky, I. Denison, S. Langrish, S. Richardson, K. Hiller, and B. Slobogean, “The segway personal transporter as an alternative
mobility device for people with disabilities: a pilot study,” Archives of Physical Medicine and Rehabilitation, vol. 88, no. 11, pp.
1423–1428, Nov. 2007, doi: 10.1016/j.apmr.2007.08.005.
[6] J. Ashurst and B. Wagner, “Injuries following segway personal transporter accidents: case report and review of the literature,
Western Journal of Emergency Medicine, vol. 16, no. 5, pp. 693–695, Sep. 2015, doi: 10.5811/westjem.2015.7.26549.
[7] A. Pourmand, J. Liao, J. M. Pines, and M. Mazer-Amirshahi, “Segway® personal transporter-related injuries: a systematic literature
review and implications for acute and emergency care, The Journal of Emergency Medicine, vol. 54, no. 5, pp. 630–635, May 2018,
doi: 10.1016/j.jemermed.2017.12.019.
[8] K. Hoffeld et al., “Is the use of segways or e-scooters in urban areas a potential health risk? a comparison of trauma consequences,”
Medicina, vol. 58, no. 8, p. 1033, Aug. 2022, doi: 10.3390/medicina58081033.
[9] J. A. Borja, I. Alvarado, and D. M. Pe˜
na, “Low cost two-wheels self-balancing robot for control education powered by stepper
motors,” IFAC-PapersOnLine, vol. 53, no. 2, pp. 17518–17523, 2020, doi: 10.1016/j.ifacol.2020.12.2660.
[10] J.-H. Park and B.-K. Cho, “Development of a self-balancing robot with a control moment gyroscope, International Journal of
Advanced Robotic Systems, vol. 15, no. 2, p. 172988141877086, Mar. 2018, doi: 10.1177/1729881418770865.
[11] J. Iqbal, M. Ullah, S. G. Khan, B. Khelifa, and S. ´
Cukovi´
c, “Nonlinear control systems - a brief overview of historical and recent
advances, Nonlinear Engineering, vol. 6, no. 4, Dec. 2017, doi: 10.1515/nleng-2016-0077.
[12] N. S. Ahmad, J. Carrasco, and W. P. Heath, “LMI searches for discrete-time Zames-Falb multipliers, in 52nd IEEE Conference on
Decision and Control, Dec. 2013, pp. 5258–5263, doi: 10.1109/CDC.2013.6760716.
[13] N. Bekiaris-Liberis and M. Krstic, Nonlinear control under nonconstant delays. Philadelphia, PA: Society for Industrial and Applied
Mathematics, 2013.
[14] L. R. Silva, R. C. C. Flesch, and J. E. Normey-Rico, Analysis of anti-windup techniques in PID control of processes with measure-
ment noise,” IFAC-PapersOnLine, vol. 51, no. 4, pp. 948–953, 2018, doi: 10.1016/j.ifacol.2018.06.100.
[15] I. Jmel, H. Dimassi, S. Hadj-Said, and F. M’Sahli, Adaptive observer-based sliding mode control for a two-wheeled self-balancing
robot under terrain inclination and disturbances,” Mathematical Problems in Engineering, vol. 2021, pp. 1–15, Jan. 2021, doi:
10.1155/2021/8853441.
[16] ´
A. Odry, R. Full´
er, I. J. Rudas, and P. Odry, “Fuzzy control of self-balancing robots: A control laboratory project,” Computer
Applications in Engineering Education, vol. 28, no. 3, pp. 512–535, May 2020, doi: 10.1002/cae.22219.
[17] N. S. Ahmad, “Robust H-fuzzy logic control for enhanced tracking performance of a wheeled mobile robot in the presence of
uncertain nonlinear perturbations,” Sensors, vol. 20, no. 13, p. 3673, Jun. 2020, doi: 10.3390/s20133673.
[18] A. Unluturk and O. Aydogdu, Adaptive control of two-wheeled mobile balance robot capable to adapt different surfaces using a
novel artificial neural network–based real-time switching dynamic controller, International Journal of Advanced Robotic Systems,
vol. 14, no. 2, p. 172988141770089, Mar. 2017, doi: 10.1177/1729881417700893.
[19] M. M. Rahman, S. M. H. Rashid, and M. M. Hossain, “Implementation of Q learning and deep Q network for controlling a self
balancing robot model,” Robotics and Biomimetics, vol. 5, no. 1, p. 8, Dec. 2018, doi: 10.1186/s40638-018-0091-9.
Int J Reconfigurable Embedded Syst, Vol. 12, No. 3, November 2023: 351–359
Int J Reconfigurable Embedded Syst ISSN: 2089-4864 359
[20] N. S. Ahmad, J. H. Teo, and P. Goh, “Gaussian process for a single-channel EEG decoder with inconspicuous stimuli and eyeblinks,”
Computers, Materials & Continua, vol. 73, no. 1, pp. 611–628, 2022, doi: 10.32604/cmc.2022.025823.
[21] K. Chen, J. Yi, and D. Song, “Gaussian processes model-based control of underactuated balance robots,” in 2019 International
Conference on Robotics and Automation (ICRA), May 2019, pp. 4458–4464, doi: 10.1109/ICRA.2019.8794097.
[22] J. Velagic, I. Kovac, A. Panjevic, and A. Osmanovic, “Design and control of two-wheeled and self-balancing mobile robot, in 2021
International Symposium ELMAR, Sep. 2021, pp. 77–82, doi: 10.1109/ELMAR52657.2021.9550938.
[23] C. V. Samak And T. V. Samak, “Design of a two-wheel self-balancing robot with the implementation of a novel state feedback for
PID controller using on-board state estimation algorithm,” International Journal of Robotics Research and Development, vol. 8, no.
2, pp. 1–10, 2018, doi: 10.24247/ijrrddec20181.
[24] F. F. Rabbany, A. Qurthobi, and A. Suhendi, “Design of self-balancing virtual reality robot using pid control method and comple-
mentary filter, in 2021 IEEE International Conference on Industry 4.0, Artificial Intelligence, and Communications Technology
(IAICT), Jul. 2021, pp. 15–19, doi: 10.1109/IAICT52856.2021.9532576.
[25] M. O. Asali, F. Hadary, and B. W. Sanjaya, “Modeling, simulation, and optimal control for two-wheeled self-balancing
robot,” International Journal of Electrical and Computer Engineering (IJECE), vol. 7, no. 4, pp. 2008–2017, Aug. 2017, doi:
10.11591/ijece.v7i4.pp2008-2017.
[26] K. M. Goher and S. O. Fadlallah, “Bacterial foraging-optimized PID control of a two-wheeled machine with a two-directional
handling mechanism,” Robotics and Biomimetics, vol. 4, no. 1, p. 1, Dec. 2017, doi: 10.1186/s40638-017-0057-3.
[27] J. Lin, R. Zheng, Y. Zhang, J. Feng, W. Li, and K. Luo, “CFHBA-PID algorithm: dual-loop PID balancing robot attitude con-
trol algorithm based on complementary factor and honey badger algorithm, Sensors, vol. 22, no. 12, p. 4492, Jun. 2022, doi:
10.3390/s22124492.
[28] B. Kim and B. Park, “Robust control for the segway with unknown control coefficient and model uncertainties,” Sensors, vol. 16,
no. 7, p. 1000, Jun. 2016, doi: 10.3390/s16071000.
[29] J. G. Ziegler and N. B. Nichols, “Optimum settings for automatic controllers,” Journal of Dynamic Systems, Measurement, and
Control, vol. 115, no. 2B, pp. 220–222, Jun. 1993, doi: 10.1115/1.2899060.
BIOGRAPHIES OF AUTHORS
Lu Bin Lau was born in Penang in 1998. He received the B.Eng. degree in electronic
engineering from School of Electrical and Electronic Engineering, Universiti Sains Malaysia (USM)
in 2022. His research interest centers around control systems and robotics. During his undergraduate
studies at USM, he was actively involved in various national and international robotics competitions.
He joined National Instruments as an intern in 2021, and is currently working as an electrical engineer.
He can be contacted at email: laulubin@student.usm.my.
Nur Syazreen Ahmad received the B.Eng. degree in electrical and electronic engineer-
ing from the University of Manchester, United Kingdom and Ph.D. degree in control systems from
the same university. She is currently an associate professor at the School of Electrical and Elec-
tronic Engineering, University Sains Malaysia (USM), specializing in embedded control systems,
sensor networks and mobile robotics. Her main research interest revolves around autonomous mo-
bile robots, with a particular focus on sensing, identification, intelligent control and indoor naviga-
tion. She is a member of the IEEE Young Professional and Control System societies, and has gained
a recognition as a certified LabVIEW Associate Developer by NI. She can be contacted at email:
syazreen@usm.my.
Patrick Goh received the B.S., M.S., and Ph.D. degrees in electrical engineering from the
University of Illinois at Urbana-Champaign, Urbana, IL, USA in 2007, 2009, and 2012 respectively.
Since 2012, he has been with the School of Electrical and Electronic Engineering, Universiti Sains
Malaysia, where he currently specializes in the study of signal integrity for high-speed digital designs.
His research interest includes the development of circuit simulation algorithms for computer-aided
design tools. He was a recipient of the Raj Mittra Award in 2012 and the Harold L. Olesen Award
in 2010, and has served on the technical program committee and international program committee
in various IEEE and non-IEEE conferences around the world. He can be contacted at email: eep-
atrick@usm.my.
Self-balancing robot: modeling and comparative analysis between PID and linear quadratic ... (Lu Bin Lau)
... Beberapa penelitian membandingkan performa kendali PID dengan LQR seperti yang ditunjukkan pada [14] dan [15]. Pada penelitian oleh [14] menunjukkan bahwa LQR lebih unggul yang mana sudut kemiringan awal maksimum yang lebih besar dan nilai settling time yang lebih kecil. ...
... Beberapa penelitian membandingkan performa kendali PID dengan LQR seperti yang ditunjukkan pada [14] dan [15]. Pada penelitian oleh [14] menunjukkan bahwa LQR lebih unggul yang mana sudut kemiringan awal maksimum yang lebih besar dan nilai settling time yang lebih kecil. Begitu juga dengan penelitian oleh [15] yang menunjukkan keunggulan dari LQR dibandingkan PID. ...
Article
Robot self-balancing roda dua memiliki dinamika yang kompleks, sehingga menimbulkan tantangan signifikan dalam perancangan sistem kendalinya. Artikel ini mengusulkan penggunaan kendali logika fuzzy untuk mengendalikan robot tersebut. Model robot diformulasikan berdasarkan dinamika gerakannya dan direpresentasikan dalam bentuk persamaan state-space. Struktur kendali logika fuzzy terdiri dua masukan, yaitu error dan perubahan error, serta satu luaran berupa sinyal kendali yang menyesuaikan nilai torsi robot. Kinerja kendali logika fuzzy dievaluasi dan dibandingkan dengan Linear Quadratic Regulator (LQR) melalui simulasi yang dilakukan di MATLAB. Hasil pengujian kinerja kendali menunjukkan steady-state error antara sudut kemiringan aktual dan sudut referensi adalah nol untuk kendali logika fuzzy, sedangkan LQR memiliki error sebesar 0,05%. Selain itu, kendali logika fuzzy memiliki settling time sebesar 2,3 detik, dibandingkan dengan 2,5 detik untuk LQR. Hal ini menunjukkan bahwa kendali logika fuzzy dapat menyeimbangkan robot lebih cepat dibandingkan dengan LQR. Di bawah kendali logika fuzzy, robot bergerak sejauh 0,3 meter secara horizontal dari posisi awal sebelum kembali ke titik awalnya. Sebaliknya, dengan LQR, robot bergerak sejauh 0,35 meter sebelum kembali ke posisi awalnya. Hasil ini menunjukkan bahwa kendali logika fuzzy lebih unggul dibandingkan LQR dalam hal presisi dan stabilitas dalam menjaga posisi horizontal robot.
... Such motor models are tailored to meet the varying degrees of sophistication and accuracy required by their application domains, empowering researchers and engineers to simulate, predict, and fine-tune system performance with high precision [1]. These models are informed by data sourced from an array of sensors and other inputs, translating into precise mathematical representations of the motors' dynamics [2]. Through this modeling, intricate insights into the functioning of motorized systems under diverse conditions are unearthed [3]. ...
Article
Full-text available
This paper reviews recent advancements in system identification methods for perturbed motorized systems, focusing on brushed DC motors, brushless DC motors, and permanent magnet synchronous motors. It examines data acquisition setups and evaluates conventional and metaheuristic optimization algorithms, highlighting their advantages, limitations, and applications. The paper explores emerging trends in model structures and parameter optimization techniques that address specific perturbations such as varying loads, noise, and friction. A comparative performance analysis is also included to assess several widely used optimization methods, including least squares (LS), particle swarm optimization (PSO), grey wolf optimizer (GWO), bat algorithm (BA), genetic algorithm (GA) and neural network for system identification of a specific case of a perturbed DC motor in both open-loop (OL) and closed-loop (CL) settings. Results show that GWO achieves the lowest error overall, excelling in OL scenarios, while PSO performs best in CL due to its synergy with feedback control. LS proves efficient in CL settings, whereas GA and BA rely heavily on feedback for improved performance. The paper also outlines potential research directions aimed at advancing motor modeling techniques, including integration of advanced machine learning methods, hybrid learning-based methods, and adaptive modeling techniques. These insights offer a foundation for advancing motor modeling techniques in real-world applications.
... By integrating the acceleration data over time, an INS can calculate velocity and subsequently position, starting from a known location. Similarly, angular velocity measurements from gyroscopes enable the determination of orientation changes [63]. The strength of INS lies in its ability to operate in environments where GPS or other external signals are unavailable or unreliable. ...
Article
Full-text available
Indoor localization (IL) systems are crucial for enhancing operational efficiency, safety, and user experience by allowing precise tracking of objects, robots, or individuals within various environments such as healthcare, retail, and industrial sectors. Despite their increasing importance, there remains a notable deficiency in the literature, particularly concerning systematic reviews that consolidate findings from experimental research. This work fills this crucial gap by rigorously assessing the advancements and challenges faced by Wireless Sensor Network (WSN)-based IL systems, with a focused examination of experimental studies conducted over the past five years. It delves into both radio frequency (RF) and non-RF technologies, critically evaluating a spectrum of localization methods including fingerprinting, geometric mapping, proximity, and dead-reckoning. It systematically evaluates the advantages, limitations, and current solutions of each method, based on their citation metrics and prevalence in scholarly literature. Furthermore, the paper explores innovative performance enhancement techniques, including the integration of machine learning and the hybridization of multiple technologies, to demonstrate significant improvements in IL functionalities. It also identifies and analyzes key trends, such as the choice of technologies for specific methods, typical network density configurations, and accuracy enhancements achieved through different approaches. Research gaps are highlighted, including the need for advancements in machine learning for offline and edge computing, standardization of sensor components, and improvements in interoperability and energy efficiency. The paper concludes by proposing strategic future research directions, outlining a roadmap for advancing IL research and development in this rapidly evolving field.
... Designing controls for such systems presents substantial challenges due to their unpredictable and dynamic characteristics [2], [3]. Practical applications of the BnB system include robotic load balancing [4]- [7], attitude control in space vehicles [8], [9], nonlinear control of actuators [10], and gyroscopic stabilization systems [11]. This versatility allows researchers to leverage the BnB system for designing, implementing, and testing control algorithms capable of navigating through nonlinear dynamics and stabilizing the system despite its underactuated nature. ...
Article
Full-text available
The ball and beam (BnB) system serves as a benchmark in control engineering as it provides a foundational concept applicable to addressing stabilization challenges of various underactuated nonlinear systems. This includes tasks like maintaining the balance of goods carried by mobile robots and controlling the attitude of unmanned aerial vehicles. In this study, the focus is on enhancing control optimization strategies for BnB systems that take into account inherent nonlinearities arising from actuator constraints and state measurements. The work introduces a novel intelligent control approach, termed hybrid PSO-WOA, which combines Particle Swarm Optimization (PSO) and Whale Optimization Algorithm (WOA) to automate optimal parameter search for proportional-integral-derivative (PID) and state feedback (SF) controllers. The collaborative technique between PSO and WOA is formulated to strike a balance between exploration and exploitation phases, and to mitigate premature convergence risks due to the system’s complexities. Additionally, three control schemes, namely cascade PID-PID, cascade PID-SF, and cascade PID-observer are introduced, each with tailored cost functions for optimization through the hybrid PSO-WOA algorithm, accommodating both measurable and unmeasurable state scenarios. Simulation results consistently demonstrate the superior performance of the hybrid approach compared to individual PSO and WOA methods, as well as conventional PID and linear quadratic regulator approaches. Notable, the hybrid approach exhibits a significant improvement in error metrics, reducing integral-time absolute error by 18.99%, integral squared error by 35.37%, and steady-state error by 92.86%. This substantial enhancement suggests promising directions for future research in automated control parameter tuning for underactuated nonlinear systems.
Chapter
DC motors are widely used in various industrial applications, and accurately predicting their performance under different payload conditions is crucial for optimal control and efficient system design. In recent years, data-driven modeling techniques have gained significant attention as effective tools for capturing the complex dynamics of DC motors. This study conducts a comparative assessment of diverse data-driven models applied to DC motors operating under different load conditions. A number of model structures have been tested which include continuous-time transfer function, discrete-time transfer function, and Auto-Regressive with eXogenous input (ARX). Results reveal that the ARX and second-order continuous time transfer function models outperform the rest with accuracies of at least 94%.
Article
Full-text available
Background and objectives: Electromobility has become increasingly popular. In 2001, Segway personal transporters (Segway) were established for tourists, and e-scooters have been in use since their approval in 2019. The aim of this study was to analyze and compare the types of injuries directly related to the use of Segways and e-scooters, respectively, in a German city and to phrase potential safety advice. Materials and Methods: All patients presenting to our emergency department after Segway incidents were retrospectively analyzed and compared with the prospectively collected cohort of patients following e-scooter incidents. Presented injuries were analyzed by body region and injury severity score (ISS). Epidemiological data were collected. Results: Overall, 171 patients were enrolled. The Segway group included 56 patients (mean age 48 years), and the e-scooter group consisted of 115 patients (mean age 33.9 years). Head injuries (HI) occurred in 34% in the Segway group compared to 52% in the e-scooter group. The ISS was approximately equal for both groups (mean ISS Segway group: 6.9/e-scooter group: 5.6). Conclusions: Since the e-scooter group presented a high number of HI along with a higher likelihood and greater severity of HI, mandatory use of helmets is suggested.
Article
Full-text available
The PID control algorithm for balancing robot attitude control suffers from the problem of difficult parameter tuning. Previous studies have proposed using metaheuristic algorithms to tune the PID parameters. However, traditional metaheuristic algorithms are subject to the criticism of premature convergence and the possibility of falling into local optimum solutions. Therefore, the present paper proposes a CFHBA-PID algorithm for balancing robot Dual-loop PID attitude control based on Honey Badger Algorithm (HBA) and CF-ITAE. On the one hand, HBA maintains a sufficiently large population diversity throughout the search process and employs a dynamic search strategy for balanced exploration and exploitation, effectively avoiding the problems of classical intelligent optimization algorithms and serving as a global search. On the other hand, a novel complementary factor (CF) is proposed to complement integrated time absolute error (ITAE) with the overshoot amount, resulting in a new rectification indicator CF-ITAE, which balances the overshoot amount and the response time during parameter tuning. Using balancing robot as the experimental object, HBA-PID is compared with AOA-PID, WOA-PID, and PSO-PID, and the results demonstrate that HBA-PID outperforms the other three algorithms in terms of overshoot amount, stabilization time, ITAE, and convergence speed, proving that the algorithm combining HBA with PID is better than the existing mainstream algorithms. The comparative experiments using CF prove that CFHBA-PID is able to effectively control the overshoot amount in attitude control. In conclusion, the CFHBA-PID algorithm has great control and significant results when applied to the balancing robot.
Article
Full-text available
A single-channel electroencephalography (EEG) device, despite being widely accepted due to convenience, ease of deployment and suitability for use in complex environments, typically poses a great challenge for reactive brain-computer interface (BCI) applications particularly when a continuous command from users is desired to run a motorized actuator with different speed profiles. In this study, a combination of an inconspicuous visual stimulus and voluntary eyeblinks along with a machine learning-based decoder is considered as a new reactive BCI paradigm to increase the degree of freedom and minimize mismatches between the intended dynamic command and transmitted control signal. The proposed decoder is constructed based on Gaussian Process model (GPM) which is a nonparametric Bayesian approach that has the advantages of being able to operate on small datasets and providing measurements of uncertainty on predictions. To evaluate the effectiveness of the proposed method, the GPM is compared against other competitive techniques which include k-Nearest Neighbors, linear discriminant analysis, support vector machine, ensemble learning and neural network. Results demonstrate that a significant improvement can be achieved via the GPM approach with average accuracy reaching over 96% and mean absolute error of no greater than 0.8 cm/s. In addition, the analysis reveals that while the performances of other existing methods deteriorate with a certain type of stimulus due to signal drifts resulting from the voluntary eyeblinks, the proposed GPM exhibits consistent performance across all stimuli considered, thereby manifesting its generalization capability and making it a more suitable option for dynamic commands with a single-channel EEG-controlled actuator.
Article
Full-text available
Autonomous mobile robots (AMR) are currently being introduced in many intralogistics operations, like manufacturing, warehousing, cross-docks, terminals, and hospitals. Their advanced hardware and control software allow autonomous operations in dynamic environments. Compared to an automated guided vehicle (AGV) system in which a central unit takes control of scheduling, routing, and dispatching decisions for all AGVs, AMRs can communicate and negotiate independently with other resources like machines and systems and thus decentralize the decision-making process. Decentralized decision-making allows the system to react dynamically to changes in the system state and environment. These developments have influenced the traditional methods and decision-making processes for planning and control. This study identifies and classifies research related to the planning and control of AMRs in intralogistics. We provide an extended literature review that highlights how AMR technological advances affect planning and control decisions. We contribute to the literature by introducing an AMR planning and control framework to guide managers in the decision-making process, thereby supporting them to achieve optimal performance. Finally, we propose an agenda for future research within this field.
Article
Full-text available
This paper investigates an output feedback sliding mode control scheme for a two-wheeled self-balancing robot under terrain inclination and disturbances. First of all, an adaptive high-gain observer is designed for the robot to estimate, simultaneously, the unmeasured states and the unknown terrain inclination angle which appears nonlinearly in the dynamics of the wheeled robot, using the only measured linear and angular positions. Then, the estimated states and the reconstructed unknown inclination angle are used by an appropriate continuously implemented sliding mode controller whose the design is based on the boundary layer approximation approach to reduce the chattering phenomenon. The objective of the proposed robust controller is to ensure the tracking control of the two-wheeled robot despite the unknown terrain inclination and the presence of friction disturbances. The stability of the adaptive observer-based output feedback system is established through a Lyapunov analysis, and it is inspired from sliding modes theory. Numerical simulations results highlight the effectiveness of the proposed tracking control scheme applied on two-wheeled self-balancing robot subject to terrain inclination even in the presence of unavailable disturbances.
Article
Recent years have seen a dramatic rise in the popularity of autonomous mobile robots (AMRs) due to their practicality and potential uses in the modern world. Path planning is among the most important tasks in AMR navigation since it demands the robot to identify the best route based on desired performance criteria such as safety margin, shortest time, and energy consumption. The complexity of the problem can however become intractable when challenging scenarios are considered, which include navigation in a dynamic environment and solving multi-objective optimizations. Various classical and heuristic techniques have been proposed by researchers to mitigate such issues. The purpose of this paper is to provide a comprehensive and up-to-date literature review of the path planning strategies that have received a considerable attention over the past decade. A systematic analysis of the strengths, shortcomings, and scope of each method is presented. The trends as well as challenges in practical implementation of the strategies are also discussed at the end of this paper. The outcome of this survey provides useful guidance for future research into creating new strategies that can enhance the autonomy level of AMRs while preserving their robustness against unforeseen circumstances in practice.
Article
Fusion of X-band Doppler radar and infrared sensors can offer a great advantage for close proximity time-to-collision (TTC) prediction in the field of autonomous robot navigation due to precise obstacle speed detection and direction sensing. Nevertheless, poor ranging performance from the infrared sensors may result owing to fluctuating reflectivity of the moving obstacle. The TTC prediction accuracy may also be further degraded when the obstacle’s trajectory is non-parallel to the robot’s heading direction due to uncertainty in the radar’s radiation pattern which typically increases at the side lobes of the antenna. Thus, to enhance the performance, we propose an exponential Gaussian Process Regression (E-GPR)-based prediction model which is able to approximate an unknown function in a probabilistic manner. The proposed method is validated via a series of experiments with an obstacle approaching the robot from different viewing angles with a speed ranging between 30 and 63 cm/s. Results demonstrate that the average TTC error based on the sensor fusion is 0.31s; but with the E-GPR method, the error is successfully reduced to 0.0937s, which is the largest error reduction when compared against other competing machine-learning models such as multilayer perceptron neural network, support vector machine and boosted tree.
Article
This paper presents a low cost, two-wheels self-balancing robot for control education powered by stepper motors developed at the University of Seville. This design improves a previous model based on DC motors that has been used for the last five years in different courses in which students learn electronics, computer programming, modeling, control and signal processing by means of the construction and control of this robot. The new design improves the performance and reduces the total price of the device.