You are on page 1of 4

Proceedings of the 2nd International Conference on Computer Science and Electronics Engineering (ICCSEE 2013)

Design of Intelligent Controller for Active Magnetic Bearing System based on DSP
Gong jing-wen1,2

Hu ye-fa

School of Mechanical &Electrical Engineering


Wuhan University of Technology
Wuhan, China
2
Department of Control Science and Engineering
Huazhong University of Science and Technology
Wuhan, China
jingwen_gong@163.com

School of Mechanical &Electrical Engineering


Wuhan University of Technology
Wuhan, PR China

Zhang zhu

Cheng xin

School of Mechanical &Electrical Engineering


Wuhan University of Technology
Wuhan, China

School of Mechanical &Electrical Engineering


Wuhan University of Technology
Wuhan, China

AbstractBased on TMS320C6713 DSP of TI and


XC95288XL CPLD of Xilinx, the hardware circuit of the
controller is designed for the five-degree-freedom active
magnetic bearing(AMB) flexible rotor system. Under the
CCS3.3 development environment, the design uses C
language to program a position PID control algorithm. The
results of experiment show that magnetic bearing control
system has strong robustness and anti-jamming capability
using this controller.

bearing controller, realized 5 inputs and 10 outputs of


real-time signal acquisition and processing, adopted
anti-windup position PID control algorithm, and did some
experimental studies.

Keywords-active magnetic bearing; TMS320C6713 DSP;


CPLD; position PID

I. INTRODUCTION
Active Magnetic Bearing (AMB) uses controllable
electromagnetic force to levitate the shaft and these
bearings are mainly composed by rotor, electromagnet,
sensor, controller, and a power amplifier[1]. As realizing
no mechanical contact, also realizing electronic control,
active magnetic bearings have the advantages of no
mechanical contact and no lubrication, compared with
plain bearings. The advantages can avoid mechanical
friction and wear between the rotor and the support,
extend equipment life, improve equipment operating
conditions. The AMB controller systems have broad
application prospects in transportation, metallurgy,
machinery manufacturing and aerospace [2].
Performance of the controller is one of the key issues
to achieve a stable suspension of AMB. Against to
improve the performance of AMB, Xiaoyan Xue designed
a AMB controller based on TMS320F2407 and did the
simulation of Single-degree-of-freedom control system[3].
Hong QIU achieved the ball stable suspension based on
TMS320F2812 controller[4]. Alexander Smirnov designed
a magnetic bearing controller based on TMS320F28335,
and did LQG control algorithm simulation[5]. Taking the
requirement of the processing speed for complex control
algorithm into account, this paper used TMS320C6713
DSP to design a five-degree-of- freedom active magnetic

II. WORKING PRINCIPLE OF AMB


The electromagnets of AMB control system install on
the stators. The rotor suspends in the magnetic field
generated by the electromagnets. One or more sensors are
installed on each electromagnet to detect shaft position.
According to the signal of the sensors, the controller
corrects the electromagnet current to control the attraction
of the electromagnet. Then the rotor is suspended in a
target position. So that the AMB control system achieves
a certain accuracy requirements[1]. The diagram of system
is shown in figure 1.

Fig.1. Block diagram of AMB working

III. DESIGN OF HARDWARE CIRCUIT


AMB controller consists of power supply module,
A/D converter module, D/A converter module, etc. A/D
module collects the detection signal of sensors and
converts the analog signal to a digital signal. After
processing of DSP algorithm, the output digital signal is
sent to the D/A module. Then D/A module converts it to
analog signal. The block diagram of the controller is
shown in Figure 2.

Published by Atlantis Press, Paris, France.


the authors
0906

Proceedings of the 2nd International Conference on Computer Science and Electronics Engineering (ICCSEE 2013)

conversion is initiated on the ADS8365 by bringing the


HOLDX pin low for a minimum of 20ns. When the
converting results are sent to the output register, the EOC
pin will outputs half a clock cycle of low level and
prompts DSP to accept the conversion results.

Fig.2. Block diagram of the controller

A. Power of controller
The design of the power circuit should consider not
only the voltage accuracy, stability and peripheral circuit
complexity, but also the issue of power. In addition,
according to the design process, the power up sequence
need to follow a certain order to ensure the normal
working of the chip on the system when DSP power up
and shutdown. Otherwise, the result will degrade device
performance or cause permanent damage. TMS320C6713
DSP core requires 1.2V power supply, I/O requires 3.3V.
The power circuit should guarantee that the kernel is
powered on earlier than the I/O interface or they are
powered on at the same time. This paper makes two
power chips TPS54310 working at the same time by
giving two SS/ENA pins voltage exceeding 1.2V, in order
to ensure the DSP core and I/O interface powered up at
the same time. 3.3V power supply circuit is shown in
Figure 3 below. 1.2V power supply circuit is similar with
3.3V, just need to change some values of resistances.
VDD5.8v

R286
10k
47k

R314
47k

R287
3.3EN
0.1uF
C256
1

3.3EN
+
C257 C132
10uF 0.1uF

R315
51k

21
20
19
18
17
14
15
16
11
12
13

Fig.4. A/D conversion interface diagram

In this design, A/D conversion uses a single-ended


inputting mode to gather an analog signal of 0~5V. -IN
inputs the common mode voltage of 2.5V. +IN swings
around 2.5V. The peak-to-peak amplitude of the
differential voltage are 2.5V + VREF and 2.5V - VREF. ADC
hardware is controlled by CPLD. DSP only needs to seed
a conversion command to CPLD. Then, conversion
begins. The logic control diagram is shown in Figure 4.
C. D/A conversion realize
The digital signal is converted to an analog signal by
D/A conversion. Then the analog signal is sent to power
amplifier. So the value of the coil current can be
controlled. The paper chooses DAC8544 to D/A converter.
DAC8544 is a low-power, quad-channel and 16-bit
voltage output DAC. Due to controlling a
5-degree-of-freedom AMB needs 10 route circles, the
design uses three DAC8544. There are 12 D/A channels
in order to meet the quantity requirements of 10 coils.
D/A conversion circuit diagram is shown in Figure 5.
U26

U31

1
POWERPAD
AGND 2
RT
VSENSE 3
SYNC
COMP 4
SS/ENA
PWRGD 5
VBIAS
BOOT
VIN1
VIN2
VIN3
PGND1
PGND2
PGND3

PH1
PH2
PH3
PH4
PH5

6
7
8
9
10

C260
0.047uF

C258 C259
100pF 3900pF
R288
3.6k

C261
0.1uF

R289
750

R290
0 3.3v

TPS54310PWP
R292
3.6k

R293
10k

L8

1.2uH
2

+ C262
220uF

C263
1000pF

Fig.3. 3.3V power supply circuit

B. Design of A/D conversion


Since the influence of electromagnetic interference at
the measurement field, the sensor signal often contains a
variety of frequency components of the noise signal. So
the paper designs a RC filter in the front of A/D.
In the paper, the A/D converter chooses a
6-channel simultaneous sampling 16-bit analog-to-digital
converter ADS8365 of TI. 6 analog channels are divided
into three groups, A, B and C. Each has a holding signal
(HOLDA, HOLDB and HOLDC) and the holding signal
is used to start the A/D converter. 6 channel offer
synchronous parallel sampling and conversion. A

-DAC_CS0

25

DSP_A14
DSP_A15

24
23

DAC_Reset
-DAC_PD
-DAC_RW
DAC0_LDAC

29
30
26
27

DSP_D0
DSP_D1
DSP_D2
DSP_D3
DSP_D4
DSP_D5
DSP_D6
DSP_D7
DSP_D8
DSP_D9
DSP_D10
DSP_D11
DSP_D12
DSP_D13
DSP_D14
DSP_D15

20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5

3.3v

4
21

A5.0v

1
32

CS*
A0
A1
RST
PD*
R/W*
LDAC
D0
D1
D2
D3
D4
D5
D6
D7
D8
D9
D10
D11
D12
D13
D14
D15
IOVDD1
IOVDD2
VDD1
VDD2

VREFA+
VREFAVREFB+
VREFBVREFC+
VREFCVREFD+
VREFDVOUTA
VFBA
VOUTB
VFBB
VOUTC
VFBC
VOUTD
VFBD
IOGND1
IOGND2
GND1
GND2
GND3

47
48

DA_VRef

43
44

DA_VRef

39
40

DA_VRef

35
36

DA_VRef

45
46

DAC_Out1

41
42

DAC_Out2

37
38

DAC_Out3

33
34

DAC_Out4

3
22
2
28
31

DAC8544-TQFP48

Fig.5. D/A conversion circuit diagram

CPLD finishes address decoding through 3 address


lines of A16~A18 for three DAC8544. The work process
of DAC8544 is as follows: Firstly, DSP writes the value,
which need to be converted, to the channel of the
DAC8544 register. Secondly, DSP starts to send the
conversion commend, which makes LDAC high. Then,
DAC8544 begins to convert. At last, DAC8544 outputs
the voltage after converting. The conversion timing
diagram is shown in Figure 6.

Published by Atlantis Press, Paris, France.


the authors
0907

Proceedings of the 2nd International Conference on Computer Science and Electronics Engineering (ICCSEE 2013)

Fig.8. PID block diagram

V. AMB SUSPENSION TEST

Fig.6. Conversion timing diagram

IV. SOFTWARE DESIGN OF CONTROLLER


A. Software structure of controller
The control system software is written by C language
under CCS3.3 integrated development environment.
Software structure is divided into DSP initialization
module, A/D acquisition module, PID algorithm
processing module and D/A conversion module. The
block diagram is shown in Figure 7.

In magnetic levitation control system, real-time


control of controllers signal is one of an important
performance factors. Real-time control relates to the level
of dynamic response capability and the size of stiffness.
For the rotor of 60000r/min, rotor is controlled 4 times
per revolution, then the control period is 250s. Before
the suspension test, the executed time of A/D, D/A, and
PID algorithm should be tested. The executed time is
29.94s which is much smaller than the requirement of
system 250s.
This test makes magnetic bearing to be suspended
stably by anti-integral saturation position PID based on
TMS320C6713 DSP. The experiment makes rotor
whirling by adjusting the power frequency to 150Hz.
After the rotor whirl, PCI1711 capture card collects the
value of sensor and sends the value to host computer.
Then, the values are displayed by MATLAB. Rotary
effect diagram is shown in Figure 9.

Fig.7. Control system software flowchart

B. PID control algorithm


In control theory, PID control is one of the most
widely used and most mature control technology. PID is
easy to tune parameter and has excellent robustness. The
control effect of PID is more significant in most industrial
control occasions. The parameters of Conventional PID
controller are often poor tuning and the performance is
poor, also. So, in a variety of industrial control, can not
only use the conventional PID control, but also use the
modified form of the various PID based on the
requirements of the system. For example, PID control
with dead zone, integral separation PID control,
incomplete derivative PID control and so on. The control
algorithm is anti-windup position type PID in this paper.
Anti-windup PID block diagram is shown in Figure 8.

Fig.9. Rotary effect diagram

VI. CONCLUSION
This paper designs a magnetic bearing controller
based on TMS320C6713 DSP to realize the stable
suspension of magnetic bearing. The result of maglev
bearing suspension experimental shows that the control
accuracy achieves a certain effect. The controller is able
to meet the real-time requirement of magnetic bearings
stable suspension. The next plane is to improve rotate
speed, optimize the design of the controller and use a
different control algorithm to realize the stable suspension
of the 60000r/min speed requirements.

Published by Atlantis Press, Paris, France.


the authors
0908

Proceedings of the 2nd International Conference on Computer Science and Electronics Engineering (ICCSEE 2013)

ACKNOWLEDGMENT
This research is supported by the Natural Science
Foundation of China (No. 51175390, No. 51205300).
REFERENCES
[1]

[2]

[3]

[4]

[5]

Yefa Hu, Zude Zhou, Zhengfeng Jiang. The basic theory and
application of magnetic bearings[M].Machinery Industry Press,
2006.
Hongwei Jiang, Zhenyu Xie. The maglev system digital controller
based on TMS320F 28335 DSP[J]. Mechanical and electronic,
2010(11):29-32.
Xiaoyan Xue, Zhifeng Gu, Wensheng Liu, Jie Li. Active magnetic
bearing digital controller based on DSP and CPLD[J]. Electrical
switches, 2007(5):27:29.
Hong QIU, Guangzhong CAO, J.F.PAN, Lv-ming LIN. The
Development of Magnetic Levitation Ball Control System Based
on TMS320F2812[J]. IEEE,2009,1:1-4.
Alexander Smirnov, Kimmo Tolsa, Rafal P.Jastrzebski.
Implementation of a bumpless switch in axial magnetic bearings
[J]. IEEE, 2010:63-68.

Published by Atlantis Press, Paris, France.


the authors
0909

You might also like