Modeling and Control of A Magnetic Levitation System: Bradley University
Modeling and Control of A Magnetic Levitation System: Bradley University
Functional Description
Date: October 31, 2002
Overview: The objectives of this project are modeling and control of a laboratory scale magnetic levitation system. The magnetic levitation system facilitates the suspension of a hollow steel sphere with the aid of electromagnetism. Figure 1 displays a picture of such a system.
Set point Reference input Magnetic Levitation System and Controller Actual Ball position
Figure 2: General System Block Diagram Figure 2 shows a high-level block diagram of the system. The user adjusts the set point potentiometer on the maglev to place the ball at the equilibrium point. A reference input signal is applied at maglev input. An position error signal is generated from the maglev corresponding to the difference between the reference, set point and actual ball position. This error signal is fed into a microcontroller that generates a control signal to place the ball at the desired vertical position. Disturbances act on the system such as power supply fluctuation, coil temperature changes that change the set point value. There are six major subsystems in this project. These subsystems are as follows: I. Error Generator Subsystem
Reference Signal
Error Generator
Error signal
Set point
Figure 3: Subsystem I The first subsystem generates an error signal for the microcontroller. This subsystem, shown in figure 3, accepts three inputs: set point, reference input signal and actual ball position to produce the error signal.
II. Amplifier and Protective Circuitry This subsystem amplifies the error signal and provides any protective circuitry needed for the microcontroller. This subsystem includes a level shifter circuitry to correspond to the microcontroller voltage range. Figure 4 shows the block diagram.
Figure 4: Subsystem II III. Microcontroller The position error signal is sent to a microcontroller through a multiplexed A/D converter. A PC is used to develop, debug and compile the control algorithm code. The compiled code will be downloaded to an 8051 microcontroller for execution. The microcontroller computes the control signal and sends it through the D/A, as shown in figure 5.
Microcontroller
D/A
Control signal
IV. Coil driver and electromagnet The control signal, produced by the microcontroller, is amplified and fed to a coil driver to produce a current. This current is fed to an electromagnet, which produces the required force to suspend the ball at the desired position. A subsystem block diagram is shown in figure 6. Coil Driver & Electromagnet Figure 6: Subsystem IV V. Sensor The photo-emitter/detector sensor is used for detecting the vertical position of the ball. It generates an analog signal, corresponding to the actual ball position; which gets fed back for closed-loop control. A block diagram for this subsystem is shown below in figure 7. Actual ball position Ball Position Sensor Analog signal corresponding to ball position
Control signal
Electromagnetic force
Figure 7: Ball position sensor The overall closed-loop system block diagram with subsystems is shown in figure 8:
Disturbances
PC Reference input
Set point
Error Generator
Microcontroller
Ball position