design of disturbance rejection controllers for a magnetic...

28
FPGA Implementation of Multiple Controllers for a Magnetic Suspension System Chris Olivera Advisors: Drs. Yufeng Lu and Winfred Anakwa Bradley University May 1, 2014 1

Upload: others

Post on 09-Jun-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Design of Disturbance Rejection Controllers for a Magnetic ...ee.bradley.edu/projects/proj2014/olimag/FinalPresentation.pdf · Control of a Magnetic Suspension System using Simulink

FPGA Implementation of Multiple Controllers for a Magnetic

Suspension System

Chris Olivera

Advisors: Drs. Yufeng Lu and Winfred Anakwa

Bradley UniversityMay 1, 2014

1

Page 2: Design of Disturbance Rejection Controllers for a Magnetic ...ee.bradley.edu/projects/proj2014/olimag/FinalPresentation.pdf · Control of a Magnetic Suspension System using Simulink

Outline

Motivation

Project Goals

System Modeling and Dynamics

System Block Diagram

Design and Simulation

2

Testing and Conditioning Circuitry

VHDL Simulation Results

System Setup

Hardware Implementation Results

Conclusion

Page 3: Design of Disturbance Rejection Controllers for a Magnetic ...ee.bradley.edu/projects/proj2014/olimag/FinalPresentation.pdf · Control of a Magnetic Suspension System using Simulink

Motivation

System modeling and dynamics nonlinear

Previous controllers xPC target box and Motorola ColdFire microcontroller

3

Magnetic suspension system

Page 4: Design of Disturbance Rejection Controllers for a Magnetic ...ee.bradley.edu/projects/proj2014/olimag/FinalPresentation.pdf · Control of a Magnetic Suspension System using Simulink

Field Programmable Gate Array (FPGA) Advantages

In this project, FPGA is used to implement controllers for the magnetic suspension system

4

Spartan3E FPGA board

Page 5: Design of Disturbance Rejection Controllers for a Magnetic ...ee.bradley.edu/projects/proj2014/olimag/FinalPresentation.pdf · Control of a Magnetic Suspension System using Simulink

Project Goals

Design and implement a stand-alone system

which includes FPGA,

ADC, DAC, and

Conditioning Circuitry

Utilize Xilinx System Generator simulation to determine computation precision of FPGA implementation

Design the system using VHDL

Compare FPGA implementation results with those from other platforms such as xPC target and microcontrollers

5

Page 6: Design of Disturbance Rejection Controllers for a Magnetic ...ee.bradley.edu/projects/proj2014/olimag/FinalPresentation.pdf · Control of a Magnetic Suspension System using Simulink

System Modeling and Dynamics

Diagram of magnetic suspension system [1]

6

Page 7: Design of Disturbance Rejection Controllers for a Magnetic ...ee.bradley.edu/projects/proj2014/olimag/FinalPresentation.pdf · Control of a Magnetic Suspension System using Simulink

Plant Model [1]

7

xx 21

x

ufx

m

kg

1

)(2

2

X1 : Displacement of the steel ballX2 : Velocity of the steel ballk : Force constantu : Control voltagem : The mass of the steel ball

Page 8: Design of Disturbance Rejection Controllers for a Magnetic ...ee.bradley.edu/projects/proj2014/olimag/FinalPresentation.pdf · Control of a Magnetic Suspension System using Simulink

Transfer functions of plant model [2]

8

1961

67.7)(

2

s

sH

1 + z 2.001- z

6.6343e z 6.6343e)(

2

-4-4 zH

Ts = 0.001 s

Page 9: Design of Disturbance Rejection Controllers for a Magnetic ...ee.bradley.edu/projects/proj2014/olimag/FinalPresentation.pdf · Control of a Magnetic Suspension System using Simulink

Dunlap’s Controller [2]

9

Page 10: Design of Disturbance Rejection Controllers for a Magnetic ...ee.bradley.edu/projects/proj2014/olimag/FinalPresentation.pdf · Control of a Magnetic Suspension System using Simulink

System Block Diagrams

High-Level Functional Diagram

10

Page 11: Design of Disturbance Rejection Controllers for a Magnetic ...ee.bradley.edu/projects/proj2014/olimag/FinalPresentation.pdf · Control of a Magnetic Suspension System using Simulink

11

Overall System Block Diagram

Page 12: Design of Disturbance Rejection Controllers for a Magnetic ...ee.bradley.edu/projects/proj2014/olimag/FinalPresentation.pdf · Control of a Magnetic Suspension System using Simulink

12

Magnetic Suspension System

Page 13: Design of Disturbance Rejection Controllers for a Magnetic ...ee.bradley.edu/projects/proj2014/olimag/FinalPresentation.pdf · Control of a Magnetic Suspension System using Simulink

13

Control Block Diagram

Page 14: Design of Disturbance Rejection Controllers for a Magnetic ...ee.bradley.edu/projects/proj2014/olimag/FinalPresentation.pdf · Control of a Magnetic Suspension System using Simulink

Design and Simulation

Simulink and Xilinx System Generator

14

Page 15: Design of Disturbance Rejection Controllers for a Magnetic ...ee.bradley.edu/projects/proj2014/olimag/FinalPresentation.pdf · Control of a Magnetic Suspension System using Simulink

15

Simulink, Full-length FPGA, Reduced-length FPGA Modules

15

Page 16: Design of Disturbance Rejection Controllers for a Magnetic ...ee.bradley.edu/projects/proj2014/olimag/FinalPresentation.pdf · Control of a Magnetic Suspension System using Simulink

16

Details of reduced-length FPGA design module

16

Page 17: Design of Disturbance Rejection Controllers for a Magnetic ...ee.bradley.edu/projects/proj2014/olimag/FinalPresentation.pdf · Control of a Magnetic Suspension System using Simulink

17

Simulation Results

Reduced-length FPGA design module

Full-length FPGA design module

Simulink module

Page 18: Design of Disturbance Rejection Controllers for a Magnetic ...ee.bradley.edu/projects/proj2014/olimag/FinalPresentation.pdf · Control of a Magnetic Suspension System using Simulink

Tested Voltage Ranges of Multiple Controllers

Dunlap’s Controller [ -3V to +3V ]

Boline’s #1 Controller [ -2V to +2V ]

Boline’s #2 Controller [ -3V to +3V ]

Desired Worst Case Range [ -3V to +3V ]

18

Testing and Conditioning Circuitry

Page 19: Design of Disturbance Rejection Controllers for a Magnetic ...ee.bradley.edu/projects/proj2014/olimag/FinalPresentation.pdf · Control of a Magnetic Suspension System using Simulink

19

+

-

10k

10k

FPGA+3.3 V

MSS Input

+5V

-5V

FPGAADC

Circuit #1 Bipolar to Unipolar

Page 20: Design of Disturbance Rejection Controllers for a Magnetic ...ee.bradley.edu/projects/proj2014/olimag/FinalPresentation.pdf · Control of a Magnetic Suspension System using Simulink

Conditioning Circuitry

20

Circuit #2 Unipolar to Bipolar

-

+

10k

FPGA+3.3 V

FPGADAC

+5V

-5V

10k

10pF

OUTPUT

Page 21: Design of Disturbance Rejection Controllers for a Magnetic ...ee.bradley.edu/projects/proj2014/olimag/FinalPresentation.pdf · Control of a Magnetic Suspension System using Simulink

VHDL Simulation Results

21

Page 22: Design of Disturbance Rejection Controllers for a Magnetic ...ee.bradley.edu/projects/proj2014/olimag/FinalPresentation.pdf · Control of a Magnetic Suspension System using Simulink

22

0 100 200 300 400 500-1,000

0

1,000

2,000

# of Samples

Am

plit

ud

e

Control signal (Simulink Simulation)

Control signal (FPGA Simulation)

Page 23: Design of Disturbance Rejection Controllers for a Magnetic ...ee.bradley.edu/projects/proj2014/olimag/FinalPresentation.pdf · Control of a Magnetic Suspension System using Simulink

System Setup

23

Page 24: Design of Disturbance Rejection Controllers for a Magnetic ...ee.bradley.edu/projects/proj2014/olimag/FinalPresentation.pdf · Control of a Magnetic Suspension System using Simulink

Hardware Implementation Results

24

Page 25: Design of Disturbance Rejection Controllers for a Magnetic ...ee.bradley.edu/projects/proj2014/olimag/FinalPresentation.pdf · Control of a Magnetic Suspension System using Simulink

Comparative Results

Using square wave input 0.5Hz and 0.25V Amplitude

25

Overshoot Settling Time Steady State Error

xPC Target Box 24% 0.41 sec Zero

FPGA TBD TBD TBD

Page 26: Design of Disturbance Rejection Controllers for a Magnetic ...ee.bradley.edu/projects/proj2014/olimag/FinalPresentation.pdf · Control of a Magnetic Suspension System using Simulink

Conclusion

FPGA-based controller for magnetic suspension system has been designed

Xilinx system generator proven to be efficient design tool of adjusting finite word-length for FPGA implementation

VHDL design for the controller is completed

For the comparative study, more measurements, testing and analysis are needed

This project proved FPGA is viable solution for control application

26

Page 27: Design of Disturbance Rejection Controllers for a Magnetic ...ee.bradley.edu/projects/proj2014/olimag/FinalPresentation.pdf · Control of a Magnetic Suspension System using Simulink

References

[1] Jose A. Lopez and Winfred K.N. Anakwa, “Identification and

Control of a Magnetic Suspension System using Simulink and dSPACE

Tools”, Proceedings of the ASEE Illinois/Indiana 2003 Sectional

Conference, March 27, 2004, Peoria, Illinois, U.S.A.

[2] Jon Dunlap, “Design of Disturbance Rejection Controllers for a

Magnetic Suspension System”, Bradley University Department of

Electrical and Computer Engineering, May 8, 2006, Peoria, Illinois,

U.S.A

[3] Gary Boline and Andrew Michalets, “Magnetic Suspension System

Control Using Position and Current Feedback”, Bradley University

Department of Electrical and Computer Engineering, May 17, 2007,

Peoria, Illinois, U.S.A

[4] B.A. Francis and W.M. Wonham, “The Internal Model Principle of

Control Theory,” Automatica. Vol. 12, pp 457-465, 1976.

27

Page 28: Design of Disturbance Rejection Controllers for a Magnetic ...ee.bradley.edu/projects/proj2014/olimag/FinalPresentation.pdf · Control of a Magnetic Suspension System using Simulink

Questions?

28

Thank you