
The Internet of Things (IoT) has an ever more significant function in many areas of our modern world. It improves the overall quality of life, where almost everything, including objects and devices, can be linked to the cloud and thus be hyper-connected. Within this changing IoT system, this paper focuses on data transfer, emphasizing the critical role of light fidelity (LiFi) technology. LiFi technology is an up-and-coming technology that makes use of light-emitting diodes (LEDs) and photodetectors (PDs) as transmitters and receivers (RX), respectively, for concurrent data communications and lighting. This paper proposes a single-input multiple-output IoT-based LiFi system using an LED array, phototransistor, and ambient light sensor-based RXS for simultaneous data transmission. DHT11 sensor is used to measure the environmental conditions and store collected data via Wi-Fi in the cloud server using HTTP protocol. Through indoor LiFi communication, the cloud streaming data is transferred using pulse position modulation (PPM) at a frequency of 2 KHz. The experimental results illustrate transferring and receiving data successfully at a communication distance of 1 meter. MATLAB software is used to evaluate the performance of the spatial radiance pattern and illuminance intensity of an LED Array used and received power depending on a line-of-sight (LOS) channel.
Citation: Mostafa A.R. Eltokhy, Mohamed Abdel-Hady, Ayman Haggag, Hisham A. Hamad, Tarek Hosny, Ahmed A. F. Youssef, Ali M. El-Rifaie. An indoor IoT-based LiFi system using LEDs for sensor data transfer[J]. AIMS Electronics and Electrical Engineering, 2025, 9(2): 118-138. doi: 10.3934/electreng.2025007
[1] | Rui Ma, Jinjin Han, Li Ding . Finite-time trajectory tracking control of quadrotor UAV via adaptive RBF neural network with lumped uncertainties. Mathematical Biosciences and Engineering, 2023, 20(2): 1841-1855. doi: 10.3934/mbe.2023084 |
[2] | Bin Hang, Beibei Su, Weiwei Deng . Adaptive sliding mode fault-tolerant attitude control for flexible satellites based on T-S fuzzy disturbance modeling. Mathematical Biosciences and Engineering, 2023, 20(7): 12700-12717. doi: 10.3934/mbe.2023566 |
[3] | Jian Meng, Bin Zhang, Tengda Wei, Xinyi He, Xiaodi Li . Robust finite-time stability of nonlinear systems involving hybrid impulses with application to sliding-mode control. Mathematical Biosciences and Engineering, 2023, 20(2): 4198-4218. doi: 10.3934/mbe.2023196 |
[4] | Yun Liu, Yuhong Huo . Predefined-time sliding mode control of chaotic systems based on disturbance observer. Mathematical Biosciences and Engineering, 2024, 21(4): 5032-5046. doi: 10.3934/mbe.2024222 |
[5] | Yuhang Yao, Jiaxin Yuan, Tao Chen, Xiaole Yang, Hui Yang . Distributed convex optimization of bipartite containment control for high-order nonlinear uncertain multi-agent systems with state constraints. Mathematical Biosciences and Engineering, 2023, 20(9): 17296-17323. doi: 10.3934/mbe.2023770 |
[6] | Xinggui Zhao, Bo Meng, Zhen Wang . Event-triggered integral sliding mode control for uncertain networked linear control systems with quantization. Mathematical Biosciences and Engineering, 2023, 20(9): 16705-16724. doi: 10.3934/mbe.2023744 |
[7] | Dongxiang Gao, Yujun Zhang, Libing Wu, Sihan Liu . Fixed-time command filtered output feedback control for twin-roll inclined casting system with prescribed performance. Mathematical Biosciences and Engineering, 2024, 21(2): 2282-2301. doi: 10.3934/mbe.2024100 |
[8] | Kangsen Huang, Zimin Wang . Research on robust fuzzy logic sliding mode control of Two-DOF intelligent underwater manipulators. Mathematical Biosciences and Engineering, 2023, 20(9): 16279-16303. doi: 10.3934/mbe.2023727 |
[9] | Ying Shi, Keqi Mei . Adaptive nonsingular terminal sliding mode controller for PMSM drive system using modified extended state observer. Mathematical Biosciences and Engineering, 2023, 20(10): 18774-18791. doi: 10.3934/mbe.2023832 |
[10] | Xinyu Shao, Zhen Liu, Baoping Jiang . Sliding-mode controller synthesis of robotic manipulator based on a new modified reaching law. Mathematical Biosciences and Engineering, 2022, 19(6): 6362-6378. doi: 10.3934/mbe.2022298 |
The Internet of Things (IoT) has an ever more significant function in many areas of our modern world. It improves the overall quality of life, where almost everything, including objects and devices, can be linked to the cloud and thus be hyper-connected. Within this changing IoT system, this paper focuses on data transfer, emphasizing the critical role of light fidelity (LiFi) technology. LiFi technology is an up-and-coming technology that makes use of light-emitting diodes (LEDs) and photodetectors (PDs) as transmitters and receivers (RX), respectively, for concurrent data communications and lighting. This paper proposes a single-input multiple-output IoT-based LiFi system using an LED array, phototransistor, and ambient light sensor-based RXS for simultaneous data transmission. DHT11 sensor is used to measure the environmental conditions and store collected data via Wi-Fi in the cloud server using HTTP protocol. Through indoor LiFi communication, the cloud streaming data is transferred using pulse position modulation (PPM) at a frequency of 2 KHz. The experimental results illustrate transferring and receiving data successfully at a communication distance of 1 meter. MATLAB software is used to evaluate the performance of the spatial radiance pattern and illuminance intensity of an LED Array used and received power depending on a line-of-sight (LOS) channel.
Quadrotors have been widely used in military, photography, navigation and other application fields due to their properties of economy, portability and flexibility. Comparing with helicopter or airplane, quadrotors are with simpler structure, so they are more available for engineering [1]. However, quadrotors are under-actuated systems, and how to design appropriate controllers for them have been attracting substantial attention.
Sliding mode control (SMC) is a nonlinear robust control method, which is considered to be one of the effective methods against uncertainties and disturbances [2]. In [3], the principle of sliding mode control was introduced and specific control strategies were designed for a class of underactuated systems. In [4], comparisons were made between SMC and feedback linearization method, the results indicated SMC was more robust for noises and disturbances. In [5], the authors divided a quadrotor into fully actuated and underactuated subsystems, and second order SMC was employed for the design of the underactuated subsystems, whose coefficients were obtained by Hurwitz stability. In [6,7], terminal sliding mode control (TSMC) was designed for quadrotors, with which faster convergence of trajectory tracking was achieved. In [8], sliding mode observers were used to estimate all states of the quadrotor through the measurable attitude and position of the quadrotor, and PID SMC was employed to guarantee the convergence of the trajectory tracking. An integrated sliding mode control (ISMC) was proposed in [9], which divided the quadrotor model into inner and outer loops. The outer loop mainly generated reference signals for the roll and pitch angles, and the inner loop achieved the position and attitude tracking with ISMC. In [10], model-free TSMC was designed, where the model-free method guaranteed that the tracking error of the quadrotor was bounded, while the terminal sliding mode guaranteed the convergence of the error. In [11], adaptive SMC was proposed to realize finite-time stability of a quadrotor through self-tuning. In [12], a super twisting control algorithm was proposed to enforce the sliding mode of the attitude of a quadrotor on the desired manifold, therefore, the robustness of the attitude tracking was guaranteed. In order to realize the tracking of uncertain dynamical systems, an adaptive nonsingular fast terminal sliding-mode control (ANFTSMC) algorithm was proposed in [13]. In [14], the ANFTSMC was applied to a quadrotor which was subject to modeling uncertainties and unknown external disturbances. In [15], disturbance observer based adaptive SMC was applied to a quadrotor subjected to parametric uncertainties and external disturbances, the effectiveness of the control was tested by numerical simulations and experiments. In [16], the authors presented an adaptive dynamic surface SMC for a quadrotor, they used nonlinear observer to estimate the states of the quadrotor, and used minimum learning technology to reduce computational burden, the controller was designed to ensure all signals of the system were uniformly ultimately bounded. In [17], the position loop was controlled by backstepping method, and the attitude loop was controlled by the fast TSMC, both of these methods were combined with adaptive technology to estimate the controller parameters, and upper bounds of the uncertainties and disturbances.
Neural network has been developed rapidly in recent years, and it has been introduced into the control of quadrotors to deal with nonlinearities and uncertainties. The authors of [18] combined neural networks with SMC, by adjusting the parameters of the sliding surface with back propagation algorithm, the overshoot of the system response and the steady state error were effectively reduced. A PID neural network control strategy was proposed in [19], where proportional, integral, and differential neurons were defined to construct a network, by which control inputs were designed to achieve quicker response of a quadrotor. Adaptive radial basis function neural networks (RBFNNs) were employed in [20] for the control of a quadrotor. In [21], RBFNN was used to generate the control signals of a quadrotor, by which the characteristic roots of the quadrotor system located in the left half plane, so the stability of the system was guaranteed. Backstepping design was combined with neural network in [22] to realize the control of a quadrotor with unknown input saturation. In [23] a learning-based scheme with neural networks was used to obtain the optimal control law for a quadrotor with time-varying and coupling uncertainties, the stability of the closed-loop system was proved by theory. The authors of [24] proposed RBFNNs based proportional derivative-sliding mode control (RPD-SMC) for the outer loop for position tracking, and employed the robust integral of the signum of error (RISE) to guarantee attitude convergence.
Optimization algorithms have been gradually employed to improve the performance of neural networks. Particle swarm optimization (PSO) algorithm base RBF network was designed in [25] to get better PID parameters. The authors of [26] used genetic algorithms to optimize RBFNNs for more accuracy modeling. In [27], genetic algorithm was also used for optimizing the hyperparameters of a two hidden layer neural network, by which the training and running time of the neural network was reduced. However, using the optimized neural networks in SMC to realize robust control of quadrotors has been rarely considered so far.
This paper aims to improve robust tracking performance of a quadrotor with unknown disturbances. SMC is employed to design the position and attitude control laws in the inner and outer loops, RBFNNs are introduced to approximate the unknown parts of the control laws. The weights of the RBFNNs are updated by designed adaptive laws. Besides, the center and the width values of the RBFNNs are optimized by PSO. The proposed strategy can guarantee the stability and robustness of the controlled quadrotor.
The rest of this paper is organized as follows: the dynamics model of a quadrotor is built in section 2. In Section 3, the position and attitude controllers are designed for the quadrotor based on RBFNN-SMC. PSO is conducted in section 4 to optimize the center and the width values of the RBFNNs. Simulation results are introduced in Section 5. Finally, Section 6 concludes the paper.
The physical structure of a quadrotor is presented in Figure 1. As the figure shows, there are two coordinate systems to describe the motion of the quadrotor [28], one is the body coordinate system, and the other is the inertial coordinate system. The transformation of the two coordinate systems can be realized by a rotation matrix. It depends on the three attitude angles of the quadrotor, that are the roll angle ϕ, the pitch angle θ, and the yaw angle ψ. All the attitude angles are bounded, the roll angle and the pitch angle belong to(−π/2,π/2), and the yaw angle is constrained by(−π,π).
Based on the attitude angles, the rotation matrix REB which transforms the position of the quadrotor in body coordinate system to inertial coordinate system can be expressed as (2.1).
REB=[CψCθ−CϕSψ+SϕSθCψSϕSψ+CϕSθCψCθSψCϕCψ+SθSϕSψ−SϕCψ+CϕSθSψ−SθSϕCθCϕCθ] | (2.1) |
where C=cos, S=sin.
Let x, y, z be the position variables of the center of gravity of the quadrotor along the three axes of the inertial coordinate system. Define w=[x,y,z]T, then from Newton's Second Law of Motion, one can gets that
m¨w=REB[00u1]T−[00mg]T−f | (2.2) |
where m is the mass of the quadrotor, g is the gravitational acceleration, u1 is the lifting force generated by the rotation of the propellers, and f is the air friction during the flying of the quadrotor.
Owing to external disturbances existed, (2.2) should be rewritten as
m¨w=REB[00u1]T−[00mg]T−f+dp | (2.3) |
where dp is the unknown external disturbance.
Suppose that the quadrotor is a symmetric rigid body, and let p, q, r be the angular velocity of the quadrotor's rotation about the three axes of the body coordinate system. Define ω=[p,q,r]T, then based on the Newton–Euler equation, one can obtain that
Jddt(ω)+ω×Jω=M | (2.4) |
where J=diag(Ix,Iy,Iz), is the diagonal matrix of moment of inertia, Ix,Iy,Iz denote the moment of inertia of the three axes, M is the total rotation torque. By considering the components of M, (2.4) can be rewritten as
Jddt(ω)=−ω×Jω+Mi+Mf+Mp+dr | (2.5) |
where Mi represents the input torque, which is supplied by the rotation of the four propellers. Mf represents the air friction torque, Mp is gyroscopic effect on the quadrotor, and dr denotes the unknown external disturbance.
Suppose the quadrotor is flying in small attitude angles, one has that ˙ϕ=p, ˙θ=q, ˙ψ=r and ¨ϕ=˙p, ¨θ=˙q, ¨ψ=˙r, the state equations of the quadrotor dynamics can be derived from (2.3) and (2.5) as
{¨x=u1ms(cosϕsinθcosψ+sinϕsinψ)−k1ms˙x+dx¨y=u1ms(cosϕsinθsinψ−sinϕcosψ)−k2ms˙y+dy¨z=u1mscosϕcosθ−k3ms˙z−g+dz¨ϕ=qrIy−IzIx+JrIxqωr+lIxu2−k4lIxp+dϕ¨θ=prIz−IxIy−JrIypωr+lIyu3−k5lIyq+dθ¨ψ=pqIx−IyIz+CIzu4−k6lIzr+dψ | (2.6) |
where ki (i = 1, …, 6) are the air resistance coefficients, l represents the distance of each propeller to the center of the quadrotor, u2,u3,u4 represent the input torques of roll, pitch and yaw respectively, C is the moment-force proportional coefficient, dx, dy, dz, dϕ, dθ, dψ denote the unknown disturbances to the corresponding states, Jr denotes the inertia of the propeller, ωr=ω2+ω4−ω1−ω3 is the total residual speed of the propellers, with ωi being the speed of the ith propeller, i = 1, …, 4. The relationships among ωi and ui, i = 1, …, 4, are formulated as (2.7).
[u1u2u3u4]=[bbbbb0−b00−b0b−kk−kk][ω21ω22ω23ω24] | (2.7) |
where b and k are thrust and drag coefficients, respectively.
This section introduces the design of sliding mode control with radial basis function neural networks. The control structure is shown in Figure 2.
At first, rewrite the state equation of the quadrotor's position as follows.
{¨x=uxm−k1m˙x+dx¨y=uym−k2m˙y+dy¨z=uzm−k3m˙z−g+dz | (3.1) |
with
{ux=u1(cosϕsinθcosψ+sinϕsinψ)uy=u1(cosϕsinθsinψ−sinϕcosψ)uz=u1cosϕcosθ |
From the above definition, one can see that all the control inputs ux, uy, uz are corresponding to the lifting force u1 because the quadrotor is an underactuated system. In the design showing below, the control input uz will be employed to derive the needed force u1, and ux, uy are auxiliary inputs to obtain the desired roll and pitch angles.
As SMC is employed for the control design, three sliding surfaces are defined here as (3.2) - (3.4).
s1=c1(x−xd)+(˙x−˙xd)=cex+˙ex | (3.2) |
s2=c2(y−yd)+(˙y−˙yd)=c2ey+˙ey | (3.3) |
s3=c3(z−zd)+(˙z−˙zd)=c3ez+˙ez | (3.4) |
where ci > 0 i = 1, 2, 3, are design coefficients, xd, yd, zd are the desired position coordinates of the quadrotor, ex=x−xd, ey=y−yd, ez=z−zd are the tracking errors between the actual and the desired trajectories.
According to the principle of SMC, if the control inputs are designed as follows,
ux=m(−c1˙x+c1˙xd+¨xd+k1˙xm−τ1s1−ξ1sign(s1)−dx) | (3.5) |
uy=m(−c2˙y+c2˙yd+¨yd+k2˙ym−τ2s2−ξ2sign(s2)−dy) | (3.6) |
uz=m(−c3˙z+c3˙zd+¨zd+g+k3˙zm−τ3s3−ξ3sign(s3)−dz) | (3.7) |
with τi>0 and ξi>0 being the design parameters. By the above control inputs, the derivative of si will satisfy that ˙si=−τisi−ξisign(si), i = 1, 2, 3, which implies the convergence of the tracking errors.
Since there are unknown disturbances in the designed control inputs, we introduce RBFNN to approximate the disturbances. Rewrite the expressions (3.5) - (3.7) as
ux=m(Q1+ε1−τ1s1−ξ1sign(s1)) | (3.8) |
uy=m(Q2+ε2−τ2s2−ξ2sign(s2)) | (3.9) |
uz=m(Q3+ε3−τ3s3−ξ3sign(s3)) | (3.10) |
where Qi is obtained from a RBFNN, and εi represents the approximation error which is bounded, i = 1, 2, 3. The structure of a 3 layers RBFNN is shown in Figure 3.
The three layers of the RBFNN are input layer, hidden layer and output layer [29]. The mappings from the input layer to the hidden layer are nonlinear, while the ones from the hidden layer to the output layer are linear. The inputs of the RBFNN are the desired variable D and its derivatives˙D and ¨D, and the error between actual variable and the desired one e , as well as its derivative ˙e.
Generally, Gaussian functions are selected to form the nonlinear mappings of a RBFNN, then the output of the ith node of the hidden layer can be expressed as
Φi=exp(−∥η−oi∥2σ2i) | (3.11) |
where Φi is the output of the hidden layer, η=[e,˙e,D,˙D,¨D] is the input vector, oi is the center of the ith Gaussian function, and σi is the corresponding width, i = 1, …, 5. Since the output Q is a liner function of Φi, it can be written as
Q=∑5i=1WiΦi | (3.12) |
where Wi is the weight of the RBFNN, i = 1, …, 5.
Because the weights of the RBFNNs are unknown for the approximation task, we should estimate their values online. By denoting ˆWi as the estimation of Wi, i = 1, …, 5, the estimated output of the RBFNN ˆQ can be obtained as
ˆQ=∑5i=1ˆWiΦi | (3.13) |
Employing ˆQi, and considering the robustness of SMC, the position controllers are designed as
ux=m(ˆQ1−τ1s1−ξ1sign(s1)) | (3.14) |
uy=m(ˆQ2−τ2s2−ξ2sign(s2)) | (3.15) |
uz=m(ˆQ3−τ3s3−ξ3sign(s3)) | (3.16) |
The proof of the controllers' stability, and the adaptive laws of the weights ˆWi, i = 1, …, 5, will be presented later. Based on the above controllers, the lifting force u1 and the desired roll and pitch angles are obtained as
u1=uzcosϕcosθ | (3.17) |
θd=arctan(uxcosψd+uysinψduz) | (3.18) |
ϕd=arctan(cosθd(uxsinψd−uycosψd)uz) | (3.19) |
where ϕd, θd, ψd are the desired roll, pitch and yaw angles, with ψd being given by the external order.
The purpose of attitude control is to guarantee the attitude angles converge to the desired ones. The convergence of ϕ and θ guarantees the tracking errors ex, ey move to zero quickly.
Similarly, the sliding surfaces are defined as (3.20) – (3.22)
s4=c4(ϕ−ϕd)+(˙ϕ−˙ϕd)=c4eϕ+˙eϕ | (3.20) |
s5=c5(θ−θd)+(˙θ−˙θd)=c5eθ+˙eθ | (3.21) |
s6=c6(ψ−ψd)+(˙ψ−˙ψd)=c6eψ+˙eψ | (3.22) |
where ci > 0, i = 4, 5, 6, are design coefficients, eϕ=ϕ−ϕd, eθ=θ−θd, eψ=ψ−ψd are the tracking errors between the actual and the desired angles.
The attitude control laws of the quadrotor are designed as
u2=Ixl(−c4eϕ+¨ϕd−Iy−IzIxqr+k4plIx−τ4s4−ξ4sign(s4)−JrIxqωr−dϕ) | (3.23) |
u3=Iyl(−c5eθ+¨θd−Iz−IxIypr+k5qlIy−τ5s5−ξ5sign(s5)+JrIypωr−dθ) | (3.24) |
u4=IzC(−c6eψ+¨ψd−Ix−IyIzpq+k6ψIz−τ6s6−ξ6sign(s6)−dψ) | (3.25) |
with τi>0, ξi>0 being the design parameters, i = 4, 5, 6. Based on the above control laws, the derivative of si satisfies that ˙si=−τisi−ξisign(si), i = 4, 5, 6, which implies the convergence of the tracking errors.
By employing RBFNNs to approximate the unknown disturbances in (3.23) - (3.25), and using their estimated output to construct the control laws, we can obtain the attitude control laws as
uj=m(ˆQi−τisi−ξisign(si)) | (3.26) |
with j = 2, 3, 4, i = 4, 5, 6.
In order to realize the control design, the weights of each RBFNN need to be updated. Therefore, the following adaptive law is designed.
˙ˆW=−siΦ | (3.27) |
with W=[W1W2W3W4W5]T and Φ=[Φ1Φ2Φ3Φ4Φ5]T being the weight and the Gaussian function vectors of the used RBFNN.
Assumption 3.1. The approximation error εi is bounded and satisfies that |εi|⩽ξi, i=1,⋯,6.
Theorem 3.1. With the auxiliary inputs (3.14) – (3.16), and the control laws (3.17), (3.26), and the adaptive law (3.27) for updating the weight vector of the used RBFNN, all states of the quadrotor system in (2.6) are guaranteed to converge to their desired signals, and the trajectory of the quadrotor can track the given reference.
Proof. Let ˜Qi=ˆQi−Qi(i = 1, …, 6) be the estimate error of the RBFNN's output, and ˜W=ˆW−W be the corresponding estimate error of the weight vector. Choose a Lyapunov candidate function [30] as
Vi=12si2+˜WT˜W,(i=1,⋯,6) | (3.28) |
Take the time derivative of Vi, one can get
˙Vi=si˙si+˜WT˙ˆW=si(−Qi+ˆQi−ϵi−τis−ξisign(si))+˜WT˙ˆW=˜WT(Φsi+˙ˆW)−ϵisi−τisi2−ξi|si| | (3.29) |
Taking the adaptive law (3.27) into (3.29), one can get that
˙V=−εisi−τisi2−ξi|si| | (3.30) |
According to Assumption 1, |εi|⩽ξi, so ˙V⩽0 can be guaranteed, which implies that si → 0, i = 1, …, 6. By the definition of the sliding surfaces, and the characteristics of SMC, the convergence of ex, ey, ez, eϕ, eθand eψ can be guaranteed, which means that all states of the quadrotor system converge to their desired signals, and the trajectory of the quadrotor tracks the given reference.
Based on the above control design, the stability of the quadrotor system can be guaranteed. However, the influence of the center oi and the width σi of the Gaussian function Φi, i = 1, …, 5, cannot be ignored. In this section, particle swarm optimization algorithm (PSO) will be used to adjust these parameters offline for better control performance.
PSO originates from the imitating of bird predation and has the advantages of simple implementation and fast convergence. Each bird or particle will carry the training parameters, and move according to the situations of itself and the whole group.
An evaluation function is needed for PSO, which is used to evaluate the position of the current particle. Here we choose the sum of absolute errors as the evaluation function, which is shown in (4.1).
fe=n∑i=1|μ(i)| | (4.1) |
where fe denotes the evaluation function, and μ(i) stands for the error between a sample value and the output of the corresponding RBFNN, i = 1, …, n, n is the number of training samples for PSO. The training samples are the parts of control inputs which are substituted by RBFNNs in (3.5) - (3.7) and (3.23) – (3.25) without disturbances.
Then, define the number of iterations G and the size N of the particle swarm. Each particle in the PSO contains the following information: the current position X, which represents the parameters of RBFNN that are needed to be optimized; the moving velocity V, which represents the updating rate of a particle position; as well as the particle dimension H, which is determined by the total number of the optimized parameters.
We also define the optimal value of the group as gb, and the optimal value of an individual particle as pb. At first, we initialize each pbby the value of the evaluation function at the initial position of the corresponding particle, and assign the smallest pbto gb, then update pb and gbby the following rules: for each particle, if the value of the evaluation function (4.1) is smaller than the value in last iteration, we will assign pbwith the value at the current position, otherwise pbwill be unchanged. And gbselects the smallest pbamong all the particles.
During each iteration, the position value of each particle is brought into the RBFNN to approximate the training samples, then the evaluation function can be calculated, by which pband gbcan be updated according to the rules mentioned above.
The updating values of the velocity and the position of a particle are calculated as
vi(k+1)=vi(k)+C1⋅R1⋅(pbi(k)−Xi(k))+C2⋅R2⋅(gbi(k)−Xi(k)) | (4.2) |
Xi(k+1)=Xi(k)+vi(k+1) | (4.3) |
where i = 1, …, N, C1 , C2 are the learning factors which are generally set to be 2, and R1 , R2 are random numbers belong to [0, 1].
In order to improve the global optimization ability of the PSO, an inertia factor ρ and a scale factor λ are employed for the velocity and position updating of a particle.
vi(k+1)=ρ⋅vi(k)+C1⋅R1⋅(pbi(k)−Xi(k))+C2⋅R2⋅(gbi(k)−Xi(k)) | (4.4) |
Xi(k+1)=Xi(k)+λ⋅vi(k+1) | (4.5) |
Remark: In order to maintain the integrity of the employed RBFNN, the weights of each RBFNN are also placed in X for optimizing, but only the center value o and the width value σ are taken as the optimization result, since the weight W is estimated by the adaptive law (3.27).
The parameters of our PSO are listed in Table 1. And the process of PSO is shown in Figure 4.
Variable | Quantity | Value/Range |
G | The number of iterations | 250 |
N | Population size | 50 |
H | Particle dimension | 15 |
o | Center value of RBF neural network | [-3, 3] |
σ | Width value of RBF neural network | 0.3 |
𝜌 | Inertial factor | 0.3 |
C1, C2 | learning factors | 2 |
λ | Scale factor | 0.7 |
Some simulation experiments are conducted to verify the effectiveness of the proposed control strategy, and the results of the experiments are demonstrated in this section. The parameters of the quadrotor model are given in Table 2. And the parameters of the designed sliding mode controllers are listed in Table 3. The disturbances for the simulation experiments are considered as follows, whose curves are plotted in Figures 5–6.
dx=dy=dz=0.5⋅sin(0.5t) | (5.1) |
dϕ=dθ=dψ=0.25⋅cos(πt) | (5.2) |
Variables | Value | Unit |
m | 2 | kg |
l | 0.21 | m |
Ix | 1.25 | Ns2/rad |
Iy | 1.25 | Ns2/rad |
Iz | 2.5 | Ns2/rad |
k1, k2, k3 | 0.1 | Ns/m |
k4, k5, k6 | 0.12 | Ns/m |
b | 0.5 | Ns2 |
k | 2 | N/ms2 |
C | 1 | |
Jr | 0.2 | Ns2/rad |
Variables | Value |
c1, c2, c3, c4, c5, c6 | 10 |
τ1, τ2 | 15 |
τ3 | 55 |
ξ1, ξ2, ξ3 | 0.1 |
τ4, τ5, τ6 | 10 |
ξ4, ξ5, ξ6 | 0.1 |
In order to exposit the superiority of the designed sliding mode controllers which are based on RBFNNs with PSO(SMC-RBFNN-PSO), some comparisons are made between SMC-RBFNN-PSO and sliding mode controllers based on RBFNNs without optimization (SMC-RBFNN). The center and the width values of SMC-RBFNN are determined by the experience of the designer. The comparison results are shown in Figures 7–10.
The trajectories of the controlled quadrotor with the two methods, together with the desired one are shown in Figure 7. The initial values of the position and attitude of the quadrotor are given in Table 4.
Variable | Quantity (Unit) | Value |
Xd | The desire trajectory of the X axis(m) | 2*sin (0.1*t) |
Yd | The desire trajectory of the Y axis(m) | 2*cos (0.1*t) |
Zd | The desire trajectory of the Z axis(m) | 0.1*t |
[X0, Y0, Z0] | Initial positions(m) | [0,2,0] |
ψd | The desire value of the yaw Angle(rad) | 0 |
[ϕ0, θ0, Ψ0] | Initial angles(rad) | [0,0,0] |
In order to show more details of the flight trajectories, the position and angle variables of the quadrotor are shown in Figures 8–9. It can be seen that both of the control methods can drive the quadrotor to track the desired trajectory, but SMC-RBFNN-PSO can achieve quicker convergence of all the states. This fact indicates that the center and the width values of the neural networks are effectively optimized by the PSO. The desired roll angle and pitch angle are calculated by (3.18)–(3.19), which are related to the auxiliary inputs ux,uy, so the angles ϕ and θ with the two methods are different, which can be seen in Figure 9.
Figure 10 shows the tracking errors of the three position variables with the two methods. By SMC-RBFNN, the maximum absolute errors of x, y and z are 0.5775m, 0.09m and 0.8676m, respectively. And the errors converge to zero at 6.88s, 7.24s and 6.85s, respectively. It can be seen from Figure 10 that there are unexpected fluctuations in the position tracking of the quadrotor with SMC-RBFNN. However, by SMC-RBFNN-PSO, the quadrotor can track the desired trajectory more quickly and smoothly without fluctuation
A RBFNN based SMC strategy with PSO is proposed in this paper for the tracking control of quadrotors. Based on the SMC, the position and the attitude controllers can be designed at first. However, these controllers cannot be exerted directly because of the unknown disturbances. Therefore, the RBFNNs are employed to approximate some items of the control laws. The weights of the RBFNNs are updated by adaptive mechanism. Besides, the center and the width values of the RBFNNs are optimized by PSO, with which better trajectory tracking performance can be achieved for the quadrotor. Simulation results demonstrate the stability of the system and the convergence of the states to their desired signals. Also, the comparison results show obvious superiority of the proposed SMC-RBFNN-PSO to SMC-RBFNN.
This work was supported in part by the National Natural Science Foundation of China under Grant 61603144, in part by the Natural Science Foundation of Fujian Province under Grant 2018J01095, in part by the Promotion Program for Young and Middle-aged Teacher in Science and Technology Research of Huaqiao University under Grant ZQN-PY509, in part by the Science and Technology Major Project Oriented to Colleges in Fujian Province for Industry Study Cooperation (2013H6016).
The authors declare there is no conflict of interest
[1] | Priyadarsini K, Karthik S, Sonia JJ, Anbazhagu UV, Saranya VG (2025) An IoT-based structure for development management using radio frequency identification system. In Responsible AI for Digital Health and Medical Analytics, 327‒350. IGI Global Scientific Publishing. https://doi.org/10.4018/979-8-3693-6294-5.ch013 |
[2] |
Nawaz U, Rehman F, Ullah KA, Raza UA, Sharif H, Junaid M (2025) Analysis of Device-to-Device Communication in IoT System. Securing the Digital Realm: Advances in Hardware and Software Security, Communication, and Forensics, 48. https://doi.org/10.1201/9781003497851-5 doi: 10.1201/9781003497851-5
![]() |
[3] | Ankitha HM, Paul IS, Rao SS (2025) Simulation and Implementation of Li-Fi Communication System. International Journal of Artificial Intelligence of Things (AIoT) in Communication Industry 1: 13‒21. |
[4] |
Morales-Céspedes M, Pérez-Aracil J, García-Armada A, Salcedo-Sanz S (2025) Learning for Visible Light Communications: Potential Scenarios and Applications. IEEE Consum Electr Mag. https://doi.org/10.1109/MCE.2025.3525584 doi: 10.1109/MCE.2025.3525584
![]() |
[5] |
Eltokhy MAR, Abdel-Hady M, Haggag A, El-Bendary MAM, Ali H, Hosny T (2023) Audio SIMO system based on visible light communication using cavity LEDs. Multimed Tools Appl 82: 46371–46385. https://doi.org/10.1007/s11042-023-15680-8 doi: 10.1007/s11042-023-15680-8
![]() |
[6] | Kaur T, Kaur A, Sharma Y (2024) Li-Fi: An Approach to the New Era of Optical Wireless Technology. In Latest Trends in Engineering and Technology, 244‒249. CRC Press. https://doi.org/10.1201/9781032665443-35 |
[7] |
Singh A, Pandey R (2025) Exploring visible light communication for real-time indoor metaverse connectivity. Journal of Optical Communications. https://doi.org/10.1515/joc-2024-0261 doi: 10.1515/joc-2024-0261
![]() |
[8] |
Chen C, Basnayaka DA, Purwita AA, Wu X, Haas H (2020) Wireless infrared-based LiFi uplink transmission with link blockage and random device orientation. IEEE T Commun 69: 1175‒1188. https://doi.org/10.1109/TCOMM.2020.3035405 doi: 10.1109/TCOMM.2020.3035405
![]() |
[9] |
Yilmaz AF, Myderrizi I (2024) Increasing indoor Li-Fi system efficiency using light reflective materials and lenses. Journal of Engineering Research. https://doi.org/10.1016/j.jer.2024.10.014 doi: 10.1016/j.jer.2024.10.014
![]() |
[10] |
Alfattani S (2021) Review of LiFi Technology and Its Future Applications. Journal of Optical Communications 42: 121–132. https://doi.org/10.1515/joc-2018-0025 doi: 10.1515/joc-2018-0025
![]() |
[11] |
Yarbrough P, Welker T, Silva D, Islam R, Patamsetti VV, Abiona O (2022) Analyzing Li-Fi Communication Benefits Compared to Wi-Fi. International Journal of Communications, Network and System Sciences 15: 67–77. https://doi.org/10.4236/ijcns.2022.156006 doi: 10.4236/ijcns.2022.156006
![]() |
[12] |
Petrosino A, Striccoli D, Romanov O, Boggia G, Grieco LA (2023) Light Fidelity for Internet of Things: A survey. Opt Switch Netw 48: 100732. https://doi.org/10.1016/j.osn.2023.100732 doi: 10.1016/j.osn.2023.100732
![]() |
[13] |
Al Hwaitat AK (2020) A Survey on Li-Fi Technology and Internet of Things (IOT). International Journal of Advanced Trends in Computer Science and Engineering 9: 225–232. https://doi.org/10.30534/ijatcse/2020/34912020 doi: 10.30534/ijatcse/2020/34912020
![]() |
[14] |
Qaisar F, Shahab H, Iqbal M, Sargana HM, Aqeel M, Qayyum MA (2023) Recent Trends in Cloud Computing and IoT Platforms for IT Management and Development: A Review. Pakistan Journal of Engineering and Technology 6: 98–105. https://doi.org/10.51846/vol6iss1pp98-105 doi: 10.51846/vol6iss1pp98-105
![]() |
[15] |
Khan KA, Dahiya A, Sharma G (2024) LiFi Luminescence: Illuminating the Future of Wireless. Available at SSRN 5013214. https://doi.org/10.2139/ssrn.5013214 doi: 10.2139/ssrn.5013214
![]() |
[16] |
Lokumarambage MU, Gowrisetty VSS, Rezaei H, Sivalingam T, Rajatheva N, Fernando A (2023) Wireless end-to-end image transmission system using semantic communications. IEEE Access 11: 37149‒37163. https://doi.org/10.1109/ACCESS.2023.3266656 doi: 10.1109/ACCESS.2023.3266656
![]() |
[17] |
Aydin H, Aydın GZG, Aydın MA (2024) The potential of light fidelity in smart home automation. Bulletin of Electrical Engineering and Informatics 13: 3155‒3166. https://doi.org/10.11591/eei.v13i5.7199 doi: 10.11591/eei.v13i5.7199
![]() |
[18] |
Zhang R, Li M, Zhang Y, Xiong J, Lu L (2024) LiRF: Light-based Wireless Communications Supporting Ubiquitous Radio Frequency Signals. IEEE Photonics Journal. https://doi.org/10.1109/JPHOT.2024.3449326 doi: 10.1109/JPHOT.2024.3449326
![]() |
[19] | Balaram A, Jadhav RD, Kumar N, Muthukumaran D, Nalini C, Kumar YD (2024) Empowering LiFi Technology: Experimental Design of Light Assisted Data Communication using Visible Light Communication Model. In 2024 5th International Conference on Image Processing and Capsule Networks (ICIPCN), 941‒947. https://doi.org/10.1109/ICIPCN63822.2024.00161 |
[20] |
Chatterjee S, Roy B (2024) An approach to ensure joint illumination & communication performance of a forward error corrected indoor visible light communication (VLC) system in presence of ambient light interference. Journal of Optical Communications 44: s1767‒s1776. https://doi.org/10.1515/joc-2019-0212 doi: 10.1515/joc-2019-0212
![]() |
[21] | Bober KL, Jungnickel V, Emmelmann M, Riegel M, Tangdiongga E, Koonen AMJ, et al.(2020) A Flexible System Concept for LiFi in the Internet of Things. In Proceedings of the 2020 22nd International Conference on Transparent Optical Networks (ICTON), 1–4. https://doi.org/10.1109/ICTON51198.2020.9203185 |
[22] |
Demirkol I, Camps-Mur D, Paradells J, Combalia M, Popoola W, Haas H (2019) Powering the Internet of Things through Light Communication. IEEE Commun Mag 57: 107–113. https://doi.org/10.1109/MCOM.2019.1800429 doi: 10.1109/MCOM.2019.1800429
![]() |
[23] | Mohammed J, Lung CH, Ocneanu A, Thakral A, Jones C, Adler A (2014) Internet of Things: Remote Patient Monitoring Using Web Services and Cloud Computing. In Proceedings of the 2014 IEEE International Conference on Internet of Things(iThings), and IEEE Green Computing and Communications (GreenCom) and IEEE Cyber, Physical and Social Computing (CPSCom), 256–263. https://doi.org/10.1109/iThings.2014.45 |
[24] |
Hu Y, Leus G (2015) Selp-Estimation of Path-Loss Exponent in Wireless Networks and Applications. IEEE Trans Veh Technol 64: 5091–5102. https://doi.org/10.1109/TVT.2014.2380823 doi: 10.1109/TVT.2014.2380823
![]() |
[25] | Othman RAA, Sagaran DA, Mokayef M, Nasir WIIRBWM (2018) Effective LiFi Communication for IoT Applications. In Proceedings of the 2018 IEEE 4th International Symposium in Robotics and Manufacturing Automation (ROMA), 1–4. https://doi.org/10.1109/ROMA46407.2018.8986698 |
[26] | Dinesh Kumar JR, Priyadharsini K, Srinithi K, Samprtiha RV, Ganesh Babu C (2021) An Experimental Analysis of Lifi and Deployment on Localization Based Services & Smart Building. In Proceedings of the 2021 International Conference on Emerging Smart Computing and Informatics (ESCI), 92–97. https://doi.org/10.1109/ESCI50559.2021.9396889 |
[27] |
Geng Z, Khan FN, Guan X, Dong Y (2022) Advances in Visible Light Communication Technologies and Applications. Photonics 9: 893. https://doi.org/10.3390/photonics9120893 doi: 10.3390/photonics9120893
![]() |
[28] | Farhat ZA, Ahfayd MH, Mather PJ, Sibley MJN (2019) Improved BER for Offset Pulse Position Modulation Using Priority Decoding over VLC System. In Proceedings of the 2019 Wireless Days (WD), 1–4. https://doi.org/10.1109/WD.2019.8734159 |
[29] |
Loureiro PA, Guiomar FP, Monteiro PP (2023) Visible Light Communications: A Survey on Recent High-Capacity Demonstrations and Digital Modulation Techniques. Photonics 10: 993. https://doi.org/10.3390/photonics10090993 doi: 10.3390/photonics10090993
![]() |
[30] |
Afroj M (2023) Li-Fi Concept in Terms of Modulation Techniques. International Journal of Research and Innovation in Applied Science 8: 01–05. https://doi.org/10.51584/IJRIAS.2023.8601 doi: 10.51584/IJRIAS.2023.8601
![]() |
[31] |
Sönmez M (2022) Performance Analysis of FSK-PPM Technique in Visible-Light Communication Systems. Journal of Optical Communications 43: 447–455. https://doi.org/10.1515/joc-2019-0009 doi: 10.1515/joc-2019-0009
![]() |
[32] |
Khanna A, Kaur S (2020) Internet of Things (IoT), Applications and Challenges: A Comprehensive Review. Wireless Pers Commun 114: 1687–1762. https://doi.org/10.1007/s11277-020-07446-4 doi: 10.1007/s11277-020-07446-4
![]() |
[33] |
Gupta BB, Quamara M (2020) An Overview of Internet of Things (IoT): Architectural Aspects, Challenges, and Protocols. Concurrency and Computation 32: e4946. https://doi.org/10.1002/cpe.4946 doi: 10.1002/cpe.4946
![]() |
[34] |
Yahia S, Meraihi Y, Ramdane-Cherif A, Gabis AB, Acheli D, Guan H (2021) A Survey of Channel Modeling Techniques for Visible Light Communications. J Netw Computer Appl 194: 103206. https://doi.org/10.1016/j.jnca.2021.103206 doi: 10.1016/j.jnca.2021.103206
![]() |
[35] | Gismalla MSM, Abdullah MFL, Mabrouk WA, Das B, Niass MI (2019) Data Rate and BER Analysis for Optical Attocells Configuration Model in Visible Light Communication. In Proceedings of the 2019 International Conference on Information Science and Communication Technology (ICISCT), 1–6. https://doi.org/10.1109/CISCT.2019.8777433 |
[36] |
Wu X, Soltani MD, Zhou L, Safari M, Haas H (2021) Hybrid LiFi and WiFi networks: A survey. IEEE Commun Surv Tut 23: 1398‒1420. https://doi.org/10.1109/COMST.2021.3058296 doi: 10.1109/COMST.2021.3058296
![]() |
[37] |
Chatterjee S, Sabui D, Roy B (2024) Mobility aware blockage management of a multi-user multi-cell hybrid Li-Fi Wi-Fi system with freeform diversity receiver. Opt Commun 560: 130487. https://doi.org/10.1016/j.optcom.2024.130487 doi: 10.1016/j.optcom.2024.130487
![]() |
1. | Zhiye Zhao, Xiaozheng Jin, Adaptive neural network-based sliding mode tracking control for agricultural quadrotor with variable payload, 2022, 103, 00457906, 108336, 10.1016/j.compeleceng.2022.108336 | |
2. | Gaowang Zhang, Feng Wang, Jian Chen, Huayi Li, Fixed-time sliding mode attitude control of a flexible spacecraft with rotating appendages connected by magnetic bearing, 2022, 19, 1551-0018, 2286, 10.3934/mbe.2022106 | |
3. | Shurui Huang, Yueneng Yang, Adaptive Neural-Network-Based Nonsingular Fast Terminal Sliding Mode Control for a Quadrotor with Dynamic Uncertainty, 2022, 6, 2504-446X, 206, 10.3390/drones6080206 | |
4. | Yutao Jing, Xianghe Wang, Juan Heredia-Juesas, Charles Fortner, Christopher Giacomo, Rifat Sipahi, Jose Martinez-Lorenzo, PX4 Simulation Results of a Quadcopter with a Disturbance-Observer-Based and PSO-Optimized Sliding Mode Surface Controller, 2022, 6, 2504-446X, 261, 10.3390/drones6090261 | |
5. | Yunxia Wei, Yuanfei Zhang, Bin Hang, Construction and management of smart campus: Anti-disturbance control of flexible manipulator based on PDE modeling, 2023, 20, 1551-0018, 14327, 10.3934/mbe.2023641 | |
6. | Hyeongki Ahn, Mingyuan Hu, Yoonuh Chung, Kwanho You, Sliding-Mode Control for Flight Stability of Quadrotor Drone Using Adaptive Super-Twisting Reaching Law, 2023, 7, 2504-446X, 522, 10.3390/drones7080522 | |
7. | Delima Palwa Sari, Purwadi Agus Darwito, A. Saregar, R. Umam, A. Rahmat, Control System for Quadcopter UAV based SMC-RBFNN with External Disturbance, 2024, 482, 2267-1242, 03004, 10.1051/e3sconf/202448203004 | |
8. | Benshan Liu, Yongsheng Gao, Liang Gao, Junming Zhang, Yanhe Zhu, Jie Zhao, Research on the control of thrust vectoring turbojet aircraft with uncertainties and input saturation based on fixed‐time control, 2024, 34, 1049-8923, 11282, 10.1002/rnc.7571 | |
9. | Abdul Kareem, Ganesh Aithal, 2024, Chapter 15, 978-981-99-4443-9, 205, 10.1007/978-981-99-4444-6_15 | |
10. | Hyunchang Kim, Hyeongki Ahn, Yoonuh Chung, Kwanho You, Quadrotor Position and Attitude Tracking Using Advanced Second-Order Sliding Mode Control for Disturbance, 2023, 11, 2227-7390, 4786, 10.3390/math11234786 | |
11. | Dawit Kefale Wassie, Lebsework Negash Lemma, Abrham Tadesse Kassie, HGAPSO-Based Third Order-SMC, ST-SMC, and SMC Strategy for AAV Control: A Comparative Analysis, 2025, 13, 2169-3536, 52821, 10.1109/ACCESS.2025.3553146 |
Variable | Quantity | Value/Range |
G | The number of iterations | 250 |
N | Population size | 50 |
H | Particle dimension | 15 |
o | Center value of RBF neural network | [-3, 3] |
σ | Width value of RBF neural network | 0.3 |
𝜌 | Inertial factor | 0.3 |
C1, C2 | learning factors | 2 |
λ | Scale factor | 0.7 |
Variables | Value | Unit |
m | 2 | kg |
l | 0.21 | m |
Ix | 1.25 | Ns2/rad |
Iy | 1.25 | Ns2/rad |
Iz | 2.5 | Ns2/rad |
k1, k2, k3 | 0.1 | Ns/m |
k4, k5, k6 | 0.12 | Ns/m |
b | 0.5 | Ns2 |
k | 2 | N/ms2 |
C | 1 | |
Jr | 0.2 | Ns2/rad |
Variables | Value |
c1, c2, c3, c4, c5, c6 | 10 |
τ1, τ2 | 15 |
τ3 | 55 |
ξ1, ξ2, ξ3 | 0.1 |
τ4, τ5, τ6 | 10 |
ξ4, ξ5, ξ6 | 0.1 |
Variable | Quantity (Unit) | Value |
Xd | The desire trajectory of the X axis(m) | 2*sin (0.1*t) |
Yd | The desire trajectory of the Y axis(m) | 2*cos (0.1*t) |
Zd | The desire trajectory of the Z axis(m) | 0.1*t |
[X0, Y0, Z0] | Initial positions(m) | [0,2,0] |
ψd | The desire value of the yaw Angle(rad) | 0 |
[ϕ0, θ0, Ψ0] | Initial angles(rad) | [0,0,0] |
Variable | Quantity | Value/Range |
G | The number of iterations | 250 |
N | Population size | 50 |
H | Particle dimension | 15 |
o | Center value of RBF neural network | [-3, 3] |
σ | Width value of RBF neural network | 0.3 |
𝜌 | Inertial factor | 0.3 |
C1, C2 | learning factors | 2 |
λ | Scale factor | 0.7 |
Variables | Value | Unit |
m | 2 | kg |
l | 0.21 | m |
Ix | 1.25 | Ns2/rad |
Iy | 1.25 | Ns2/rad |
Iz | 2.5 | Ns2/rad |
k1, k2, k3 | 0.1 | Ns/m |
k4, k5, k6 | 0.12 | Ns/m |
b | 0.5 | Ns2 |
k | 2 | N/ms2 |
C | 1 | |
Jr | 0.2 | Ns2/rad |
Variables | Value |
c1, c2, c3, c4, c5, c6 | 10 |
τ1, τ2 | 15 |
τ3 | 55 |
ξ1, ξ2, ξ3 | 0.1 |
τ4, τ5, τ6 | 10 |
ξ4, ξ5, ξ6 | 0.1 |
Variable | Quantity (Unit) | Value |
Xd | The desire trajectory of the X axis(m) | 2*sin (0.1*t) |
Yd | The desire trajectory of the Y axis(m) | 2*cos (0.1*t) |
Zd | The desire trajectory of the Z axis(m) | 0.1*t |
[X0, Y0, Z0] | Initial positions(m) | [0,2,0] |
ψd | The desire value of the yaw Angle(rad) | 0 |
[ϕ0, θ0, Ψ0] | Initial angles(rad) | [0,0,0] |