PID Control of Magnetic Levitation Maglev System
PID Control of Magnetic Levitation Maglev System
1, No 1, 2023
ISSN: 2986-6537, DOI: 10.59247/jfsc.v1i1.28 25
Abstract— Magnetic levitation is a process of drifting or electromagnetic suspension and electrodynamic suspension
shifting an object with a certain reference, by creating a are used in the train rate process as well as in the train braking
repulsive force from the gravity of an object caused by an process [6].
electromagnetic field without noise. In modern times like today, The use of magnetic levitation is as a reduction in the
with the density of community activities, especially those living
in urban areas, it is necessary to be able to carry out activities
friction force of components that are mechanically operating
efficiently as well as quickly. Therefore, the reason for many which causes noise to become noisy [7][8]. So that it can
people to be able to find an innovative solution to make it easier further optimize the work of the system itself because the
for humans to carry out their activities. One of the innovations friction force generated has been reduced. Some examples
that can be a solution to the limited space and time is in the are, the presence of magnetic bearings on the turbine shaft of
development of magnetic levitation technology. The system that a power plant, and magnetic suspension.
will be used in controlling this maglev is to use a PID controller. This research discusses a magnetic levitation system,
Using this PID control will be tested with several 𝑲𝒑, 𝑲𝒊, and which will require many experiments. Maglev control will be
𝑲𝒅 values with a setpoint of 950. At the initial tunning with the decisive in conducting research related to this system [9][10].
values 𝑲𝒑 =2, 𝑲𝒊 =0.01, and 𝑲𝒅 =2. Then in the second test using
In this system, a position control system of an elevated object
the values 𝑲𝒑 =3, 𝑲𝒊 =0.1, and 𝑲𝒅 =0.3. Software testing is also
carried out using matlab. The exact PID value for controlling an will be designed at a certain height under an electromagnetic
elevated object can be found by changing the value of the 𝑲𝒑, field generated from a voltage-fed coil [11]. The problem in
𝑲𝒊, and 𝑲𝒅 values that can be searched through a matlab the maglev system is controlling the object so that it can float
software in the PID tunner feature, which can then be seen the in a certain position without hitting a clumber or falling. This
PID tunning results by analyzing the graph that will be problem can be solved by using the PID controller.
displayed by the PID tunner.
II. METHOD
Keywords— Sensor; Controller; Actuators; Robot.
A. Magnetic Levitation System Modeling
I. INTRODUCTION The model of the magnetic levitation system in the form
In this modern era, in the midst of dense community of a mobile function can be written as [12]
activities, especially in urban areas, it requires people to
move and do activities quickly and effectively. The demands 𝑥̇ = 𝐀𝑥 + 𝐁𝑢 (1)
of work, family responsibilities, and other human activities
make people seem to be hunted by time. Time and space seem B. PID Controller
to be a barrier in carrying out the density of activities in this
This study designed a system used to control the handling
super-fast era. This is the reason for many people to find new
of an object controlled by a system called magnetic levitation.
technological innovations that aim to make it easier for
This system uses infrared sensors and photodiode sensors
humans to carry out their activities. Tools in the industrial
which have a function as a detector for an object [13][14]. If
field and also transformation have also used magnetic
an object is detected by a sensor at a certain height, the sensor
levitation as a solution to make it easier for a system to
will send analog data to be processed whether at that height
operate. The definition of magnetic levitation itself is the
it meets the set setpoint and the process can be shown on Fig.
process of lifting or shifting an object at a certain reference,
1.
without any noise, by creating a gravitational repulsive force
of the object by using a magnetic field as an antidote i r an
[1][2][3].
Magnetic levitation systems are modern technologies that n r ii n
This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/
Journal of Fuzzy Systems and Control, Vol. 1, No 1, 2023 26
The PID controller equation can be written as [15] TABLE I. FULL TEST RESULTS
PID value System Response
𝑡
𝑑 No KP KI KD Rise Settling Over
Steady
𝑢(𝑡) = 𝐾𝑝 𝑒(𝑡) + 𝐾𝑖 ∫ 𝑒(𝑡). 𝑑𝑡 + 𝐾𝑑 𝑒(𝑡) (2) Value Value Value Time Time shoot
State
0 𝑑𝑡 Error
0.158 2.761 8.8017e-
1 30 50 1 0.5631
2 2 06
Where: 0.122 1.658 1.3443e-
2 40 50 1 0.1850
𝑢(𝑡) : Control signal 4 6 05
𝐾𝑃 : Proporsional constant 0.159 11.39 1.5518e-
3 25 75 1 0.9325
0 75 10
𝐾𝑖 : Integral constant 0.144 17.11 3.8392e-
4 25 100 1 0.7997
𝐾𝑑 : Derivatif constant 3 53 13
0.182 4.868 2.3223e-
𝑒(𝑡) : Error signal 5 25 50 1
2
0.9450
5 06
B. Hardware Testing
C. System Block Diagram
In the implementation of this study, a tool of the magnetic
The system block diagram of this design is arranged from levitation system has been designed which can be seen in Fig
several parts. This part consists of input, processing, and also 4.
output parts. In this input section, it uses a position sensor in
the form of an infrared sensor and also a photodiode sensor
[16]. In the process section, arduino uno and also motor
drivers are used in charge of processing voltage and also the
control program created [17]. In the output section used is an
inductor/coil that functions as an electromagnetic field
generator to float a kite object used [18]. The block diagram
of this system can be seen on Fig. 2.
i
Ar in n n r ri r n r
n r
III. RESULTS AND DISCUSSION In testing this sensor, several test values of 5 photodiode
A. Matlab Simulation Testing sensors and an IR sensor will be carried out. The photodiode
sensor will be divided into sensor 1, sensor 2, sensor 3, sensor
In the software testing process of this maglev system, one 4 and sensor 5. Sensor Test results are shown in Table II.
formula will be used as a model of the transfer function [19].
Here is the model formula of the transfer function PID of the TABLE II. SENSOR TEST RESULTS
maglev system:
Name Value Information
Sensor 1 660 Detect
Sensor 2 683 Detect
9.359 Sensor 3 772 Detect
(3)
𝑠 2 + 21.36𝑠 + 39.21 Sensor 4 773 Detect
Sensor 5 736 Detect
All sensor 1022 Detect
Equation (3) model is used as a transfer function model to All sensor 632 Detect
look up values from KP, KI, and KD [20]. From the results
that appear will produce a graph. The resulting graph will be In this design the sensor is placed on both sides. The right
analyzed to see the value of rise time, settling time, over side is an infrared sensor that has a total of 1 piece. Then on
shoot, and also steady state error that appears. Matlab the opposite side there are 5 photodiode sensors facing each
simulation test results are shown on Fig. 3. The full test other with infrared sensors.
results are shown in Table 1. In this inductor, a wire winding with a magnitude of 0.7
mm is carried out which is twisted on a cylindrical bobbin
Reference Time
with a length of 7.5 cm and has a diameter of 6 cm. The
manufacture of this inductor is carried out by winding the
Position
wire up to 2510 coil.