1. Introduction
Finite-time control theory is a well-established method used to develop robust controllers applied to dynamical systems [
1,
2]. An important feature of the finite-time control approach is its ability to guarantee the existence of a finite time within which the trajectories of the closed-loop system reach an equilibrium point [
3]. This control approach was originally conceived in the continuous-time domain [
1,
2,
3], although there are some contributions to the topic in the discrete-time domain [
4,
5]. However, if we want to design a mixed combination of digital and analog controllers, we can use the continuous-time domain framework for control design and then translate it to the discrete-time frame. For instance, the forward Euler method links both domains, the discrete and the continuous. We follow this idea to develop a mixed analog–discrete and finite-time controller for the chaotic logistic equation. In experimentation, the chaotic logistic system is implemented into a PIC microcontroller, the PIC16F84A. This microcontroller has been used for a long time. It may sometimes be considered obsolete, but it is still useful. We invoke the chaotic logistic equation because it is a good reference for control design of chaotic systems and their applications [
6,
7]. Furthermore, the control of chaotic systems is an important research topic due to its possible applications, such as the synchronization of chaotic systems and the control of nonlinear systems in chaotic behavior, etc. [
8,
9,
10]. This is because chaotic systems are nonlinear deterministic systems that exhibit complex and unpredictable behavior. Therefore, our main objective and contribution is the design of a new finite-time controller for the chaotic logistic equation using analog and discrete-time algorithms, including experimentation by utilizing a low-cost microcontroller unit and analog electronics. This we carried out to validate our main contribution. To the best of the authors’ knowledge, this type of electronic control and instrumentation design is novel. Lyapunov’s theory is employed to confirm our closed-loop stability in finite time. Pulse-width modulation (PWM) is employed as a digital-to-analog conversion element.
The rest of this document is structured as follows.
Section 2 describes our main results of the finite-time stability of continuous systems. Our main contribution to control design is also given.
Section 3 is briefly describes the chaotic logistic equation.
Section 4 and
Section 5 show the designed experimental platform and realization of control, and the experimental results are shown. Finally,
Section 6 gives our closing remarks.
2. Finite-Time Stability
Hereafter, we will concentrate our discussion on scalar non-linear and time-invariant systems. Global finite-time stability consists of any solution to the systems for
and given by ( the dot notation means
.):
where
is a continuous function, and it is assumed that
is the unique equilibrium point of the system, reaching its equilibrium point in finite-time [
1]. Therefore, a settling-time function depends on the system’s initial condition [
11]. We then obtain the next result [
11]:
Theorem 1. Let the system’s origin (1) be its unique equilibrium point. The origin is globally finite-time stable if for all , we have where is its Lyapunov function, and the corresponding settling-time function, , is given by .
The above Theorem is also true if
, and
[
11]. Using the above Theorem, we have our main contribution as a corollary to this theorem:
Corollary 1. Let the system’s origin (1) be its unique equilibrium point. The origin is globally finite-time stable if for all , we have where is its Lyapunov function, and the corresponding settling-time function, , is given by .
Proof of Corollary 1. First, we can observe that , which assures that the equilibrium point is globally asymptotically stable. Then , implying that , with being the settling-time, yielding . □
4. Control Design and Experimentation
This section is dedicated to obtaining a continuous-time dynamic model of the logistic map based on the forward Euler method. As an initial step, let us add the control input
as follows:
The above expression can be re-written as (
):
Then, and according to the Euler’s forward method, we obtain
where the parameter
h is the step integration. We conclude that a feasible model for the control design of the logistic map may be
Linearization of the above system around the origin equilibrium point of the non-actuated system yields
Given the Lyapunov function
, and using
We obtain that
. This concludes that the closed-loop linearized systems (
7) and (
8) are globally finite-time stable. Here,
for
,
for
, and
for
.
Figure 2 shows a picture of the obtained control algorithm.
On the other hand, if we select
, we have
if the control law is
From the above Corollary 1, we conclude that the closed-loop linearized system (
7)–(
9) is globally finite-time stable too. We observe that both controllers (
8) and (
9) are too similar.
For chaotic logistic experimental realization, we will use PWM (pulse-width modulation). This is a technique for obtaining analog results with digital means. This is a well-known technique in electronics. However, a general description of a pulse-width modulation signal, a type of digital signal, can be summarized as follows. In a typical PWM signal, the base period (T) is fixed, while the pulse width (D) is manipulable by the user (see
Figure 3). Hence, for example, a 50% duty cycle (D = 0.5) means that the PWM output is high for half the period and zero for the remaining part. Hence, D belongs to the open interval from zero to 1. If we want to implement the chaotic logistic map into a PIC microcontroller of 8 bits, e.g., the PIC16F84A microcontroller, the PWM duty cycle should be from “0” to “255” digital count. Hence, we are required to scale the logistic equation using the following scale transformation
, yielding
Therefore, in our case, we have
. After that, we have to add the control input:
Hence, our PWM duty cycle will be
, and the PWM period will be the count of a value bigger than 255. In programming, we use 258. Additionally,
. As mentioned above, the duty cycle of PWM lies between the open range of zero to one. Because we are using an 8-bit microcontroller, this duty cycle is mapped to the open interval between zero and 256, see Chapter 6 in [
12]. This PMW signal is then sent out of the microcontroller unit followed by an
low-pass filter (see
Figure 4). The comparator used in the given circuit through an operational amplifier is an analog-to-digital conversion stage before feedback to the microcontroller. The reference of
V given by the trimmer
is due to the logical threshold level between the 0 and 1 logical values corresponding to 0 V and 5 V, respectively. In this way, the average value at the output of this comparator corresponds to the analog value of
(the notations: and = mean
defined as) seen by the microcontroller. A photo of the experimental platform is shown in
Figure 5.
To conclude this section, and due to the used PMW format and the fact the initial and the solution to the chaotic map equation presents positive solutions, from the control law given (
8) (or (
9)), we can observe that this control action has a negative derivative for the system’s output signal. Therefore, using digital programming in the microcontroller unit,
( the programming line means that the content of register
u is increased by one) or
( the programming line means that the content of register
u is decreased by one) means positive or negative control variation for the digital control signal to the logistic system, respectively, as shown in
Figure 6. In this way, if the time activation of
is less than the time activation of
, this indicates negative feedback and the asymptotic stability of the closed-loop system. Related to the programming setting
or
, in mathematical format, these are equivalent to
and
, respectively.
5. Experimental Results and Discussion
This section is dedicated to experimental results and discussions on the main contribution of this paper. Using the program displayed in
Figure 6,
Figure 7 shows the expected result. On the other hand, if the locations of
and
are exchanged, we expect the closed-loop system to be unstable. This is the case shown in
Figure 8. On the other hand, the most obvious question is why
is not the case. This is the experimental result shown in
Figure 9. Once again, if we exchange the control location as before, we expect that the closed-loop system will be unstable. This is shown in
Figure 10.
For the stable closed−loop system, it is observed that the finite-time convergence is about 2.5 s. Before the control action, we can see that the system response is bounded, as expected, as shown in
Figure 7 and
Figure 9. On the other hand, realizing a chaotic system or enhancing it is a form of control design named “anti-control” or “chaotification” of dynamical systems [
13]. It is an important topic in secure communication based on chaotic signals [
13]. If we observe the unstable closed-loop system, as shown in
Figure 8 and
Figure 10, it seems that the unstable control design of our system improves the chaoticity of the system. Therefore, our future work consists of improvement of the logistic map and achieving a secure communication system based on chaotic signals via the synchronization method.
Additionally, in comparison to the chaotic circuit using a microcontroller presented in [
14], our design is simpler because we use a few microcontroller pins to produce an analogical chaotic signal. Finite-time convergence of controlled dynamical systems has been studied for several years. Recently, some new contributions have been made. For instance, by using the super-twisting algorithm [
15] in combination with a proportional–integral controller along with an exponent gain observer, a new sliding-mode control design for neutral-point-clamped power converters was proposed in [
16]. In [
17], the authors designed a bilateral continuous finite-time adaptive terminal sliding-mode controller for a teleoperation system. In [
18], a new finite-time sliding-mode control algorithm was reported. One way or another, in all the cited references, the signum function is presented in mathematical development to ensure finite-time convergence and the robustness of closed-loop systems. We have also used it.