Design of Vector Control System for Brushless DC motor ...

7
Design of Vector Control System for Brushless DC motor Based on Hall Sensor Lihui Sun 1, a , Jun Yu 2, b 1 School of Information and Control Engineering, Jilin Institute of Chemical Technology, Jilin 132022, China 2 Dean`s Office, Jilin Institute of Chemical Technology, Jilin 132022, China a [email protected], b [email protected] Abstract. Most of audio players on the market use the hardware filter Abstract. As one kind of special motor, Brushless DC motor has characteristics of high efficiency, simple control, wide application range and others. The traditional brushless DC motor adopts square wave control, which cannot meet the noise requirements in some application fields. In this paper, a vector control system of brushless motor based on Hall sensor is introduced, and the system structure is introduced from the hardware and software of the system. The experimental results show that the vector control system introduced in this paper can greatly improve the efficiency and reduce the operation noise. Keywords: Hall Sensor, motor, Vector Control. 1. Introduction As one kind of special motor, Brushless DC motor has characteristics of high efficiency, simple control, wide application range and others. Under the requirements of energy saving and emission reduction today, brushless DC motor is gradually replacing the original low efficiency AC asynchronous motor, which is widely used in the fields of fan, water pump, household electrical appliance and automobile air conditioning etc. The traditional brushless DC motor is controlled by square wave, which has large torque ripple and large phase change noise and cannot meet the requirement of noise in some application fields. The use of vector control technology can greatly improve the efficiency and reduce the operation noise. 2. The Overall Design Scheme of the System Brushless DC motor vector control system is composed of power supply, controller, motor, speed regulator, PC and other components. The power supply provides the necessary power for the controller, and the controller, motor and speed regulator jointly fulfill the application requirements of the control system. After the system is powered on, self-check is made to ensure that the controller can work normally. The controller processes according to the signal issued by the speed regulator, for example, after the starting signal is obtained, the motor starts to run. During the operation of the motor, the motor state information, such as the speed can be sent to the PC by the serial port. 3. The Hardware Design of the System The hardware system of the brushless DC motor vector control system is composed of motor, drive circuit, control circuit, detection circuit, power circuit and so on. The hardware system structure is shown in Figure1 the driving circuit adopts three-phase bridge type two-level voltage inverter structure three-phase Inverter Bridge, which has 6 power switch devices, and the switch devices select High-performance Power MOSFET. The system control circuit uses the ST Company STM32F103 as the control chip. On the one hand, the control circuit will collect voltage, current and position signal to complete the vector control algorithm. On the other hand, the motor start stop control is completed according to the potentiometer signal. The detection circuit mainly includes phase current, bus current and Holzer position sensor signal detection, and the current and position information obtained are used to complete the vector control algorithm. The power circuit converts the external International Symposium on Communication Engineering & Computer Science (CECS 2018) Copyright © 2018, the Authors. Published by Atlantis Press. This is an open access article under the CC BY-NC license (http://creativecommons.org/licenses/by-nc/4.0/). Advances in Computer Science Research, volume 86 406

Transcript of Design of Vector Control System for Brushless DC motor ...

Page 1: Design of Vector Control System for Brushless DC motor ...

Design of Vector Control System for Brushless DC motor Based on Hall Sensor

Lihui Sun1, a, Jun Yu2, b 1School of Information and Control Engineering, Jilin Institute of Chemical Technology, Jilin

132022, China 2Dean`s Office, Jilin Institute of Chemical Technology, Jilin 132022, China

[email protected], [email protected]

Abstract. Most of audio players on the market use the hardware filter Abstract. As one kind of special motor, Brushless DC motor has characteristics of high efficiency, simple control, wide application range and others. The traditional brushless DC motor adopts square wave control, which cannot meet the noise requirements in some application fields. In this paper, a vector control system of brushless motor based on Hall sensor is introduced, and the system structure is introduced from the hardware and software of the system. The experimental results show that the vector control system introduced in this paper can greatly improve the efficiency and reduce the operation noise.

Keywords: Hall Sensor, motor, Vector Control.

1. Introduction

As one kind of special motor, Brushless DC motor has characteristics of high efficiency, simple control, wide application range and others. Under the requirements of energy saving and emission reduction today, brushless DC motor is gradually replacing the original low efficiency AC asynchronous motor, which is widely used in the fields of fan, water pump, household electrical appliance and automobile air conditioning etc. The traditional brushless DC motor is controlled by square wave, which has large torque ripple and large phase change noise and cannot meet the requirement of noise in some application fields. The use of vector control technology can greatly improve the efficiency and reduce the operation noise.

2. The Overall Design Scheme of the System

Brushless DC motor vector control system is composed of power supply, controller, motor, speed regulator, PC and other components. The power supply provides the necessary power for the controller, and the controller, motor and speed regulator jointly fulfill the application requirements of the control system. After the system is powered on, self-check is made to ensure that the controller can work normally. The controller processes according to the signal issued by the speed regulator, for example, after the starting signal is obtained, the motor starts to run. During the operation of the motor, the motor state information, such as the speed can be sent to the PC by the serial port.

3. The Hardware Design of the System

The hardware system of the brushless DC motor vector control system is composed of motor, drive circuit, control circuit, detection circuit, power circuit and so on. The hardware system structure is shown in Figure1 the driving circuit adopts three-phase bridge type two-level voltage inverter structure three-phase Inverter Bridge, which has 6 power switch devices, and the switch devices select High-performance Power MOSFET. The system control circuit uses the ST Company STM32F103 as the control chip. On the one hand, the control circuit will collect voltage, current and position signal to complete the vector control algorithm. On the other hand, the motor start stop control is completed according to the potentiometer signal. The detection circuit mainly includes phase current, bus current and Holzer position sensor signal detection, and the current and position information obtained are used to complete the vector control algorithm. The power circuit converts the external

International Symposium on Communication Engineering & Computer Science (CECS 2018)

Copyright © 2018, the Authors. Published by Atlantis Press. This is an open access article under the CC BY-NC license (http://creativecommons.org/licenses/by-nc/4.0/).

Advances in Computer Science Research, volume 86

406

Page 2: Design of Vector Control System for Brushless DC motor ...

output DC power into three independent power sources +14V, +5V and +3.3V, and provides stable power supply to the circuit board.

Figure 1. Hardware design of the system

3.1 Power Supply Circuit Design

The power supply circuit is composed of a +14V voltage conversion circuit, a +5V voltage conversion circuit and a +3.3V voltage conversion circuit. The input voltage is input to the LM317 converter chip by the current limiting resistor RP1, and the +14V voltage is obtained to provide power for the driver chip IR2136. +14V the +14V power supply is then passed through the 7805-conversion chip to get +5V, which provides power for the peripheral circuit of the system. The +5V power supply is then passed through the AS117 converter chip to get the +3.3V power supply for the microcontroller, and the schematic diagram of the power supply circuit is shown in Figure 2.

Figure 2. Power supply circuit design

100uF/25V

E2

100uF/16V

E4

Vin3

AD

J1

-Vout2

WT1 LM317H

3 1

2

V V

GNDIN OUT

WT2 78L05

14V

5V

D1

M7

D2 1N4148

RP1 220/3W

RP21K

RP310K

C1

104/25V100uF/63V

E1

C2

104/16V

1

Vp1

C3

0.1u/25V

GN

D1

OUT2

IN3

WT3

AS1117100u/16V

E5

100u/16V

E6

5V +3V3

100uF/16V

E3

14V

(a)

(b) (c)

GND

A

B

C

Advances in Computer Science Research, volume 86

407

Page 3: Design of Vector Control System for Brushless DC motor ...

3.2 Design of Motor Driving Circuit

The driving circuit is as shown in Figure 3. In the motor control power drive circuit, the three-phase inverter bridge circuit has 6 power switching devices. If each power switch device is driven by an independent circuit, then it requires 6 driving circuits, which increases the complexity of the circuit and reduces the reliability. The chip IR2136 is a special gate drive circuit of the switch tube, which can drive a power switch device with a bus voltage up to 600V. It has 3 independent high voltage and low voltage output channels. The internal of it uses bootstrap technology, which requires only one DC power supply to output the driving pulse of the 6-circuit power switch device, which simplifies the design of the driving circuit. The chip IR2136 has a built-in dead zone circuit, as well as over current protection and undervoltage protection circuits. The control logic input of the IR2136 is compatible with the CMOS and TTL electric levels, and the noise filter is input at the same time which has a good noise suppression capability.

Figure 3. Driving circuit design

3.3 Design of Current Detection Circuit

Design of phase current detection circuit Figure 4 is the schematic diagram of the AB phase current detection circuit. The front part of the

circuit is the Hall current sensor detection circuit, and the latter part is the first order active low pass filter circuit. R11 and C13 constitute first order filter circuit, TS924 is voltage follower, which keeps input and output resistance matching.

ATBTCTABBBCB

/FAULT

D3

FE107

D4

FR107D5

FR107

47u/50VE7

47u/50VE8

47u/50VE9

HO1

HO2

HO3

VS1

VS2

VS3

LO1LO2LO3

GNDCOM

R3 10K

R120K

C5104/100V

ITRIP

R2 1K

GND

VCC1

HIN12

HIN23

HIN34

LIN15

LIN26

LIN37

FAULT8

ITRIP9

EN10

RCIN11

VSS12

COM13

LO314 LO2 15LO1 1617VS3 18HO3 19VB32021VS2 22HO2 23VB2 2425VS1 26HO127VB1 28

U4

IR2136

C4

104/100V

C6104/100V

R510K

R4

1KC7

102/16V

GND

GND

EN

+5V

+14V

Advances in Computer Science Research, volume 86

408

Page 4: Design of Vector Control System for Brushless DC motor ...

Figure 4. AB phase current detection circuit design

Bus current detection circuit The bus current collection circuit is shown in Figure 5. When the motor starts or stops, the bus

current will increase. In order to ensure the safe and reliable operation of the motor, the bus current collection circuit is added to monitor the current value of the motor in any time. The bus current acquisition circuit converts the current signal to the voltage signal by using the detection resistor in series on the DC bus, and then it is sent to the ADC input channel of the microcontroller after being processed by the amplifier. The current in the inverter circuit is grounded through the sampling resistor RS1 and produces a voltage drop on the RS1. The voltage drop is sampled for the A/D of the MCU after being amplified by an operational amplifier, therefore indirectly obtaining the corresponding current value.

Figure 5. Design of bus current detection circuit

As the detection resistor RS1 is in series in the power circuit, in order to avoid the detection resistor producing a large extra loss, detection resistance need to be very small, where the selection of resistance for 50mΩ as a detection resistor. Calculate the amplification times as Av=1+R7/R8 =9.33, the bus current after being filtered through R6, C11, we get the average bus current.

According to the virtual short virtual break principle:

(1)

(2)

(3)

1

PHA

IP+1

IP+2

IP-3

IP-4

GND5

FILTER6

Vout7

Vcc 8U5

ACS712 ELCTR-20A-T

UA5V

C12A

102/16V

L_IAR11A1K

VS1_OUT

C13A

102/16V

5

67

U7AB

TS924

IA

5V

0.1uFC14A

GND

GND

1

PHB

IP+1

IP+2

IP-3

IP-4 GND 5

FILTER6

Vout7

Vcc8

U5B

ACS712 ELCTR-20A-T

UB5V

C12B102/16V

L_IBR11B1K

VS2_OUT

C13B102/16V

5

67

U7BB

TS924

IB

5V

0.1uFC14B

GND

GND

5VR6 4.7K

R8 1.2K / 1%

R9 22K / 1%

R10 1K / 1%

C11

104

R_ID

R_IDA

COM5

67

U2B

LM358

RS1

50mΩ

GND

GND

GND

R7 10K / 1%

cc 5 5 com

9 10

V V V V

R R

cc 9 com5

9 10

V R V

VR R

75

8

(1 ) out

RV V

R

Advances in Computer Science Research, volume 86

409

Page 5: Design of Vector Control System for Brushless DC motor ...

We can get from formula (1), (2) and (3):

(4)

The bias output voltage can be obtained from it

(5)

When there is no current, the bias voltage Vref=5.0/23K (1+10/1.2) =2.02V

(6)

Using resistance of 50mΩ, when the bus current is 1A, Vout≈0.5V.

3.4 Power Supply Voltage Detection Circuit

Fig.6 is the schematic diagram of the voltage detection circuit. The bus voltage is directly divided by voltage divider RP5 and RP6, and after voltage division and being filtered by C13, it is directly sent to the AD conversion module of the microcontroller.

Figure 6. Voltage detection circuit

RP5 and RP6 are resistors with a precision of 1%, and resistance value of 30k and 1k are chosen respectively. When the supply voltage is 42V~56V, the input voltage to the AD module of the microcontroller is limited to 0 ~ 3.3V.

From this we can get the AD sample under voltage threshold value:

AD sample overvoltage threshold value:

According to the above calculation, when the sampling value of the supply voltage is less than

1.35V, it is judged to be under voltage. When the sampling value of the supply voltage is greater than 1.81V, it is judged to be overvoltage.

3.5 Design of Position Detection Circuit

The internal of common used brushless DC Motor Internal adopts the switch type Hall sensor as a position detection element, the principle is: when the magnetic sensitive surface has a magnetic field, the output is low electric level, no magnetic field when output to high level. The output circuit of the switch type Hall sensor is the collector open circuit, so the pull resistor must be connected. The circuit principle is shown in Figure 7. U1, V1 and W1 are the output signals of Hall sensor, and U, V and W signals are supplied to the control chip.

7 9

8 9 10

(1 )( )

cc comout

R V R VV

R R R

75

8

(1 ) ref

RV V

R

7 9

8 9 10

(1 )( )

comout

R R VV

R R R

C13104

RP61k-1%

V_bus

RP530k-1%

Vp1

642 1.35V

5 6LOW

RPV

RP RP

656 1.81V

5 6HIG

RPV

RP RP

Advances in Computer Science Research, volume 86

410

Page 6: Design of Vector Control System for Brushless DC motor ...

Figure 7. Position detection circuit design

Vector control system is a multithread control system which integrates analog data collection, control volume adjustment and fault protection. It adopts modular design method of real-time control program, fault handling, System state machine, etc. as the foreground program, all levels of interrupt processing as the background program. The software design consists of three parts, the main program, the Interrupt program (ADC interruption, Timer4 interruption and Timer2 interruption), and the control program of the host computer. The main programming design implements the application and the fault control related function, including the control module initialization, the fault processing as well as the program circular execution state mechanism. The interrupt program design realizes the related functions of motor control, including position signal, phase current signal sampling and processing, and execution current and speed closed-loop control etc. The PC control program completes the data interaction between controller and PC, and realizes the tasks of on-line parameter adjustment, data storage and so on.

4. Software Design of the System

The software design of the vector control system consists of three parts: the main program, interrupt program and PC control program that start to run after the system is powered on. The main program design implements functions related to application and fault control, including the control of modules initialization, fault handling as we as state mechanism of program cyclic execution. The interrupt program is designed to realize the related functions of motor control, including position signal, phase current signal sampling and processing, and execution current and speed closed-loop control etc. The PC control program completes the data interaction between controller and PC, and realizes the tasks of on-line parameter adjustment, data storage and so on.

The main program design mainly includes system initialization configuration and working state transformation. After the system is powered on, the initial configuration of the variables and the controller external devices is initialized. The system completes the initialization configuration and enters the state machine processing cycle. In the state machine cycle, the system is first carried out to self-check and check the quality of the switch tube. If the switch tube is good, the program continues to execute, otherwise the switch tube fault is prompted by the indicator lamp and waiting for trouble clearance. Then, the software timing task is executed, and the state transformation is queried periodically. The system can display the state at that time through the indicator light.

5. Conclusion

In this paper, a DC brushless motor vector control system based on Hall sensor is designed from aspects of hardware and software. The hardware design mainly includes power driving circuit, inverter circuit, voltage and current sampling circuit, power supply circuit, motor phase signal output port and position signal input port, etc. The software design mainly includes main program module

R18 4.7K

R16 4.7K

R14 4.7K

R19 3K3

R17 3K3

R15 3K3

W1

V1

U1

C16

472

C15

472

C14

472

V

U

W

12345

J4

Header 5

U1V1W1

+5V

+5V

GND

GND

Advances in Computer Science Research, volume 86

411

Page 7: Design of Vector Control System for Brushless DC motor ...

and interrupt program module. The main program module includes the system initialization module and the motor control state machine module, the Interrupt program module includes Hall detection module, rotor position and speed calculation module, SVPWM space voltage vector modulation module, current control module, PI speed /current regulator module, etc.

Acknowledgments

This work was financially supported by General project of Jilin Institute of Chemical Engineering 2018066.

References

[1]. Chen Jifeng, Zhang Xiaofeng, Wu Xiaokang et al, A new strategy of commutation torque ripple suppression for brushless DC motor based on unified method [J]. Journal of Electro technical Technology, 2011, 26 (4): 51 – 56.

[2]. Yang Tao, Li Quanfeng et al, Control method of variable load operation of sensorless brushless DC motor [J]. Journal of Zhejiang University, 2012, 46 (5): 879 - 884.

[3]. Wang Yingfa, Study on commutation torque ripple suppression and position sensorless control of brushless DC motor [D]. Tianjin: Tianjin University, 2012.6.

Advances in Computer Science Research, volume 86

412