Article for Consideration by CircuitÎllar


INTRODUCTION

As the world is currently in the process of advancing alternative sources of energy, the concept of the electric vehicle (EV) conversion is becoming more and more popular. However, anyone interested in this concept will discover that the process of converting a gas powered vehicle to electric power is fairly cost prohibitive. The open-source concept of an EV design has many benefits. On the forefront of these benefits are accessibility, cost and advancement. A user should be able to easily obtain all components of the inverter (if not purchasing an assembled system), and once constructed it will be able to power a wide range of AC induction motors. Obtaining a typical 3-phase high power inverter for driving an AC induction motor can cost anywhere from $8000 to $25,000. The EV Drive Team presents a cost effective method of applying an alternative source of energy, any technically minded person should be able to complete this project for around $2500.

Our inverter was constructed using a control board and software based upon Microchip's MC-1 development board and 3 dual IGBT modules with gate driver boards from Powerex. The EV Drive Team is striving to develop a basic 100kW 3-phase inverter in an open-source process, which can be continually improved upon.

All components of the inverter design are “off the shelf” units readily available at many electronics distributors (Digikey, Mouser, etc). These parts can also be subject to change with the open-source design being modified to suit a user's needs or improved by advancing technology. This aspect of the inverter's design provides for a non restrictive application of the system. This means that the user can select a motor that was not originally designed for a vehicle. For our project we used a motor that was from an elevator.

POWER INVERTER

The Powerex CM400DU-12F Insulated Gate Bi-polar Transistors (IGBT) [1] modules and their companion BG2B gate driver circuits provide a relatively low cost method for generating 3-phase AC power from DC power. The DC power from the EV battery pack is converted to 3-phase AC for driving an AC induction motor. We configured each phase of the IGBT module design with RCD snubber protection (Figure 1)[2]. The gate driver circuit can be seen in the BG2B application note from Powerex, using 2 VLA106-15242 DC/DC converters and 2 VLA503-01 gate drivers [3]. These gate driver boards are recommended by Powerex for use with the dual IGBT modules and provide 2500VAC of control signal isolation via high-speed optocouplers and de-saturation detection to prevent short-circuit conditions on the IGBTs. The CM400DU-12F modules are rated with a collector-emitter voltage of 600V and continuous emitter current of 400A with a peak rating of 800A. These modules are also able to provide switching speeds up to 30kHz; we used 20kHz. The frequency range promotes efficient operation of the spatial vector modulation (SVM) algorithms used to drive the IGBTs as well as bringing the switching noise out of audible range.

The high switching speed and high power operation of the IGBT modules makes transient voltage and current protection very important. An RCD snubber circuit was chosen for its ability to limit peak voltage and to reduce total circuit losses, including both switching and snubber losses. Low-ESR and low self inductance rated components are the heart of the protective design, eliminating the parasitic and residual inductances that can occur across the switches of the IGBTs and also across the DC bus.

Because the inverter has the capability to generate approximately 100kW, it requires an effective cooling system. The initial cooling system chosen was based upon a liquid coldplate from D6 Industries costing $180(US). The cooling system can be configured as standalone with its own pump and radiator or as part of the vehicle's heating and cooling system. The packaging of the IGBT modules enables all three to be mounted directly on a single coldplate for simple and effective thermal management. The gate driver circuits for the inverter are supported by an aluminum bar (Figure 2). This cooling configuration is mounted to the inverter enclosure for a greater heat dissipation area.

GATE DRIVERS

For control of the IGBTs, gate driver circuits are required. The aim of these circuits is to provide appropriate firing and off-time voltages to the gate-emitter connection and provide optical isolation of control signals from the high voltages that we are trying to control. We chose gate driver assemblies purchased from Powerex.

To produce the firing voltages, the circuit employs the use of a DC/DC converter. Using the DC/DC converter allows the driver board to be run off of a single DC supply which takes +15 volts and converts it to an isolated +24 volts DC. This voltage is then placed across a resistor and Zener diode network that provides isolated +15.8 volts at Vcc and -8.2 volts at Vee with respect to Vo (Figure 6). The +15.8 volt signal ensures the IGBT will be saturated in the on state and the -8.2 volt signal ensures the IGBT will not be switched on by noise or Miller capacitance between the collector and gate. The transformer in the DC/DC converter also provides 2500VAC protection to the gate driver assembly.

The DC/DC converter provides output to a gate driver assembly. The gate driver assembly takes the logic switching signal for the IGBT and biases the gate-emitter connection appropriately for turning the IGBT on or off. The output stage of this assembly provides high current to the gate so that proper control of load currents can be obtained. As the current passing through the IGBT increases the amount of gate current must also increase. The gate driver assemblies we used for our inverter project are capable of driving 400 amps. The gate current required to control this amount of current is approximately 5 amps DC. The gate driver assembly also provides optical isolation of control signals via high speed open-collector optocouplers which protect up to 2500VAC. This insures that the control signals and high voltage signals are well insulated from one another, thus protecting the microcontroller that is producing the inverter drive logic.

CONTROL BOARD

The control board of the inverter is primarily a stripped down variant of the Microchip MC-1 development board [4]. This was done for code compatibility and to reduce actual development time. Several simple changes were made to the PCB design. The bias resistors on the gate drivers were moved to the output of the logic buffer and given the capacity to function as either pull-up, pull-down, or float, depending on the placement of a jumper. Regulators were added to the board, providing stable +5 and +15 volt sources. Additional decoupling capacitors were placed in the circuit to reduce the inevitable noise (motor noise, switching noise) that are inherent to the system.

Four revisions were made to the control board. The first board was very tight, with limited room for additional prototyped circuitry. This would be excellent for a production model but a nuisance for development. Further revisions increased the board size and spaced out the components a little more. There is now more room for a larger prototype area, allowing for circuit changes if required. The final board includes all the changes that were made; the schematic is available for download from www.elex.camosun.bc.ca.

The most significant difficulty in the board design was attempting to anticipate the needs of people who will be developing our system. The board was given more CAN bus connectors than the standard MC1 board: two D9 connectors instead of one, as well as four custom sockets for additional CAN bus modules.

There was a daughter board created to assist in debugging as well as providing an interface to the LabVIEW application used for motor tuning. The daughter board acts as a bridge between CAN bus and USB with robust error checking between the two protocols. The daughter board MCU and the CAN bus controller were left with separate clocks due to the timing sensitivity of the CAN bus. With some minor modifications, the module could also control an optional LCD display. The module connects to the main board with a 4-pin connector which also provides power to the module. Four of these sockets are provided on the main board.

SPACE VECTOR MODULATION

AC induction motor (ACIM) control can be accomplished using many techniques. For our project we chose a Pulse Width Modulation technique known as Space Vector Modulation (SVM). To help illustrate the advantages of SVM, a quick background of some of the other techniques for motor control are outlined below.

The simplest method of motor control is the square wave, or six step, inverter. This method is not processor intensive, uses simple circuitry but does not simulate a sine wave effectively. This wave form generates significant total harmonic distortion (THD) that makes the system very power inefficient; energy is lost as heat, vibration and noise. A multi-step inverter can be created that can generate more than six voltage steps in the waveform. This method simulates a sine wave more closely, but requires much more complicated circuitry, additional switches and transformers. The resulting control is better than the six step inverter, but still generates an enough harmonic distortion to make it inefficient. Next there are Pulse Width Modulation (PWM) techniques. These techniques improve the simulation of sine waves and therefore reduce the THD. There are many PWM classifications, the two discussed here will be Sinusoidal PWM, specifically the Volts-Hertz (V/Hz) method, and Space Vector Modulation (SVM).

ACIM speed level and torque level can be controlled with varying voltage and frequency supplied to the motor. The V/Hz method uses a constant, K, to relate the desired drive voltage to the choice of input frequency with the calculation:

0x01 graphic

Because the ACIM is inductive, if the input frequency is decreased, the stator currents will increase. The input voltage will have to decrease by a proportional amount in order to counteract the current increase. This results in a relatively constant stator field. The calculation is shown below.

0x01 graphic

This is a simplistic representation of the V/Hz profile. In reality, the relationship between voltage and frequency does not have to be linear, and may be adjusted to provide optimal motor performance in some frequency ranges.

The V/Hz method also incorporates feedback from the motor to more efficiently generate drive demand using PID control. The actual frequency of the motor is measured using a tachometer, then an error signal is calculated which is used by the V/Hz profile to generate the appropriate voltage and frequency values. Finally a PWM code will vary the duty cycle with respect to time to generate a simulated sinusoidal drive signal.

The drawback of the V/Hz control is that it does not handle fast dynamic changes in speed or load well. The reason for this is that control of the torque and rotor currents cannot be separated, and change in drive voltage affects both these motor parameters. To be able to control the torque independently, control of the phase of the input voltage is required. This is realized with Space Vector Modulation (SVM).

SVM uses mathematical coordinate system transforms to simplify motor control by making the stator phase currents appear as DC values under steady state conditions. The two transforms used are the Clarke and Park Transforms. Firstly, two of the phase currents are measured to be used as inputs to the mathematical model. The third phase does not need to be known because the sum of the three phase currents should be zero. These currents can be represented as time varying vectors in a 3-axis, 120° separated coordinate system. To simplify this, the Clarke Transform represents the three phases as two time varying vector components thus reducing the coordinate system to a 2-axis system. The Park Transform simplifies further by changing the stationary coordinate system with time varying vectors, to a rotating coordinate system with stationary vectors, thus representing the AC currents as DC value with respect to the axes. The rotating reference plane is required to spin at the speed of the stator current, which is synchronous with the rotating magnetic field of the stator. These quantities are spinning faster than the rotor; this is known as slip and is required to induce a magnetic field in the rotor. With the motor's time constant, usually given by the manufacturer, the slip frequency can be calculated. Then, when compared to the motor velocity will give an angle that is used to align the rotating plane with the stator current value. The last part of the transform process is to invert the calculated transform parameters back to values that the switching circuitry can use. This generates the PWM code.

This leads to the first advantage of SVM. The most critical part of these transformations is that the components that make up the transformed current vector determine the torque and rotor field. Now the torque can be independently manipulated to provide smoother, faster dynamic control of the motor.

Another advantage of SVM is the ability to reduce THD and switching losses by using an algorithm with the following switching rules:

This is known as conventional SVM and the algorithm maintains symmetry in the switching waveforms which is responsible for better performance due to reduced harmonics.

Lastly, SVM can provide a high modulation index, 0.907 whereas sine wave PWM can have maximum modulation index of 0.79, both in the linear range. This results in the maximum line-to-line voltage that is almost equal to VDC. This result is possibly the greatest advantage of SVM because the torque that is generated by the motor is higher than any other PWM which provides supreme dynamic response of the motor.

PID TUNING

There are abundant sources of material available on the internet and in libraries all around the world that discuss, in great detail, the methods for tuning proportional, integral and derivative (PID) control loops. Therefore, it is not necessary to discuss such things here, but it may be helpful to present some details that are specific to this project.

Electric motors of all sizes and descriptions are built for specific applications. For our electric vehicle project, we decided to use a squirrel-cage AC induction motor. To uses this motor for such an application, it is obvious that some tuning of the motor controller is required. To tune the motor, we developed a LabVIEW application that allows the user to tune the PID variables then after starting the motor the user can watch the motor response in real-time.

The response of a motor is critical to the overall operation of the EV system. When a new motor is connected to the motor controller circuit board, the PID parameters must be properly aligned. If the motor does not seem to respond very well to an input like stepping on the accelerator, there needs to be alterations to the PID control loops.

The proportional gain of the controller determines the maximum output level of the control loop. If the proportional gain is too low, then the output of the control loop will never reach the set value of the input. If the proportional gain is too high, then the output will begin to oscillate and may become unstable. An ideal output from the proportional stage will closely follow the desired value without any oscillations or ringing when it reaches steady state.

The integral stage is meant to reduce the steady state error, but integral gain can introduce ringing and overshoot. The derivative stage is meant to reduce the ringing and overshoot, but derivative gain can introduce steady state error. An ideal balance between integral and derivative gain can be achieved through trial and tuning to give optimal response.

The spatial vector modulation software that we downloaded from Microchip contains three PID loops [5]. One loop controls the flux field of the stator, the second loop controls the torque current in the stator and the third loop, which contains the two previously mentioned loops, controls the angular velocity of the rotor. When the user inputs a velocity demand (acceleration/deceleration), the torque and flux loops are passed a set value from the velocity loop and they execute the appropriate controls.

For our purpose, we elected to not use the velocity control loop for acceleration of the motor. We determined the gas pedal of an internal combustion car sets acceleration but does not set the speed. Since the acceleration of a motor is directly proportional to the torque, we decided to pass the input demand value from the gas pedal directly to the torque control loop. Luckily for us, the software supplied with Application Note 908 from Microchip had already built in support for this option [5].

ALTERING MOTOR CONTROL PARAMETERS

It is important that the user be familiar with dsPIC assembly language in order to make changes to the motor control software, but expertise is not necessary. The SVM portion of the software is basically handled as a “black box”. This means that the user does not really need to know exactly how it works. For users who do wish to alter the “black box”, there is further documentation available from Microchip [5]. The main motor control scheme is executed at a higher level in `PIC C' language in a file called ACIM.c. From ACIM.c the user can manipulate almost every aspect of the motor behavior (Figure 3). ACIM.c contains a function called DoControl() (Figure 4) which is executed on a time-based interrupt vector. This function is where the user would make alterations to the code in order to make the motor perform differently. For our project we needed to get the motor to respond to input the same way that a car would. Some of our colleagues needed to introduce regenerative braking into their software. This was all done within the DoControl() function. However, you cannot allow too many instructions to occur within this function; otherwise, the SVM period may become altered and impede proper operation.

CAN BUS / LABVIEW INTERFACE

HMI

The Human Machine Interface (HMI) for this project is a LabVIEW 7.1 application built to communicate to the CAN bus module with “serial over USB” protocol by FTDI. We used the DLP-USB232M-G integrated module featuring FTDI's FT232BL 2nd generation USB UART [6]. This module was an appropriate choice for development because it can be plugged into a standard 24-pin 0.6in wide DIP socket that is mounted on our daughter board and it could be moved easily to another board if required. FTDI also developed its USB functions as LabVIEW Virtual Instruments (VIs) that are called from our HMI, which also made them a good choice for our application [7]. For message processing on the daughter board, we used a PIC18F4620 [8] with an external CAN bus controller MCP2515 [9] and transceiver MCP2551 [10]. These CAN bus control ICs and the MCU are manufactured by Microchip.

PROTOCOL

Communication with the motor controller is interfaced using the Controller Area Network (CAN) bus protocol. The CAN bus is a broadcast, differential serial bus. CAN was developed to be a robust communication protocol for particularly noisy environments, the reason it is already in common use in the automotive industry. Because CAN is a broadcast bus, there is no way to send a message to just one specific node; all nodes will invariably pick up all traffic. However, the CAN bus hardware provides local filtering so that each node may react only to the relevant messages [11]. Since our development did not require a great deal of message traffic and uses only 2 nodes, we chose not to use the CAN bus filters and identifiers, but developed our own protocol using headers and identifiers contained within the data portion of the CAN bus packet. This would be a disadvantage in more complex systems because of the fact that all bus traffic is picked up by all nodes. To reduce microprocessor overhead in these designs, we recommend using the filters to receive only those messages required for processing by the specified node.

The CAN bus protocol also has error detection accomplished by the following methods

Given that the CAN bus protocol handles most of the error checking and timing issues, we did not need to introduce elaborate error handling algorithms. We simply added headers and checksums to the data that is sent in a function called sliders() (Figure 5)

This function assembles and sends the PID tuning parameters and waits for a acknowledgment package, ACK or NAK, from the motor control MCU when the parameters are received before taking any further action.

SOFTWARE

The daughter board firmware is responsible for assembling CAN bus packets and sending and receiving messages. Currently, the only messages sent by the daughter board are the PID tuning parameters. The HMI sends all of the PID parameters in one array, appending each individual parameter with 0xFFFF. This allows the firmware to parse the array and assemble each parameter into a CAN bus message. When receiving messages, the firmware extracts the data portion of the CAN bus message, puts it into a temporary buffer and then puts the data onto the UART to be received by the HMI. Since we aimed to minimize the delay of data handling time and make the GUI as “real time” as possible, we processed all of our daughter board's incoming messages in the LabVIEW application.

CONCLUSION

As the Electric Vehicle becomes a more viable alternative for transportation, this project will be referenced as one way to accomplish part of the conversion of a gasoline engine to an electric motor. Currently the main factors in conversion are safety and battery technology. As these concerns are addressed, an open source project will be a welcome alternative for those who wish to take on an electric motor modification themselves.

Images and Code

0x01 graphic

Figure 1. Powerex CM400DU-12F module with RCD snubber circuit

0x01 graphic

Figure 2. 3-Phase Power Inverter

ReadSignedADC0( &ReadADCParm );

// Set reference speed

if(uGF.bit.ChangeSpeed)

CtrlParm.qVelRef = ReadADCParm.qADValue/8;

else

CtrlParm.qVelRef = ReadADCParm.qADValue/16;

if( uGF.bit.OpenLoop )

{

// OPENLOOP: force rotating angle,Vd,Vq

if( uGF.bit.ChangeMode )

{

// just changed to openloop

uGF.bit.ChangeMode = 0;

// synchronize angles

OpenLoopParm.qAngFlux = CurModelParm.qAngFlux;

// VqRef & VdRef not used

CtrlParm.qVqRef = 0;

CtrlParm.qVdRef = 0;

}

OpenLoopParm.qVelMech = CtrlParm.qVelRef;

// calc rotational angle of rotor flux in 1.15 format

// just for reference & sign needed by CorrectPhase

CurModelParm.qVelMech = EncoderParm.qVelMech;

CurModel();

Figure 3 - Code Exerpt From ACIM.c (doControl() function exerpt)

//************** Motor Parameters **************

#define diPoles 1 // Number of pole pairs

#define diCntsPerRev 2000 // Encoder counts per revolution

#define diNomRPM 3600 // Name Plate Motor RPM

#define dfRotorTmConst 0.078 // Rotor time constant in sec, from manufacturer

//************** Open Loop **************

#define dqOL_VelMech 2150 // 900 RPM for test

//************** Measurement **************

#define diIrpPerCalc 40 // PWM loops per velocity calculation

Figure 4 - Code Exerpt From USERPARMS.h

for(slider_count = 0; slider_count <= 8;)

{

if((temp[count] == 0xFF) && (temp[count - 1] == 0xFF)) //get each slider value

{

temp1[1] = temp[count-2];

temp1[2] = temp[count-3];

check_sum = temp1[1] + temp1[2];

//add id number

temp1[0] = slider_count + 0x0B;//first one is 0x0B

temp1[3] = check_sum + temp1[0];//new check sum

//one shot mode for sending PID parameters

CAN2510BitModify(0x0F,0x08,0x08); //one shot mode

// send data

sent = CAN2510WriteStd(0x00, CAN2510_PRI_HIGHEST, 4, temp1);//returns 0,1,2 to //indicate which buffer//-1 if no success

Delay10KTCYx(5);//10ms

CAN2510BitModify(0x2c, 0x1f, 0x00);//reset all tx and rx flags in canintf

check_sum = 0;

slider_count++;

}//close if(temp[count]

count++;

}//close slider loop

count = 0;//reset count

Figure 5. Code Excerpt from MCP2515.c

0x01 graphic

Figure 6. Gate driver board circuit

Reference:

[1] Powerex CM400DU-12F Dual-IGBT Module

http://www.pwrx.com/pwrx/docs/cm400du-12f.pdf

[2] Powerex BG2B Gate Driver Board

http://www.pwrx.com/pwrx/app/bg2b_application_note.pdf

[3] Design of Snubbers for Power Circuits

http://www.cde.com/tech/design.pdf

[4]Microchip Technology Inc, dsPICDEM™ MC1 Motor Control Development Board User's Guide, 2003

http://ww1.microchip.com/downloads/en/DeviceDoc/70098A.pdf

[5] Microchip Technology Inc, Application Note 908, 2005.

http://ww1.microchip.com/downloads/en/AppNotes/ACIM%20Vector%20Control%2000908a.pdf

[6] DLP Design, DLP-USB245M-G USB to FIFO Parallel Interface Module, 2002.

http://www.ftdichip.com/Documents/DataSheets/DLP/dlp-usb245m13.pdf, June 19, 2007.

[7]Future Technology Devices International Ltd, D2XX Programmer's Guide, 2006.

Microchip Technology Inc, PIC18F2525/2620/4525/4620, Data Sheet 28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology, 2007.

http://ww1.microchip.com/downloads/en/DeviceDoc/39626C.pdf

[8] Microchip Technology Inc, MCP2515 Stand-Alone CAN Controller with SPITM Interface, 2005.

http://ww1.microchip.com/downloads/en/DeviceDoc/21801d.pdf

[9] Microchip Technology Inc, MCP2551 High-Speed CAN Transceiver, 2007.

http://ww1.microchip.com/downloads/en/DeviceDoc/21667E.pdf

[10] Bosch CAN Specification V 2.0, Robert Bosch GmbH, Postfach 30 02 40, D-70442 Stuttgart, 1991

http://www.semiconductors.bosch.de/pdf/can2spec.pdf



Wyszukiwarka

Podobne podstrony:
Java for Beginners by Knowledge flow
Instructions For Living by Rabbi Noach Weinberg
Home For Christmas by Nora Roberts
The Treasure of Treasures for Alchemists by Paracelsus
Instructions For Living by Rabbi Noach Weinberg
Art of Forgiveness Plea for Forgiveness by Rodney Jones
Look Within Yourself for Answers by Negreanu
Trading Setups Review Trading Strategies, Guides, and Articles for Active Tech
PROSPECTING FOR OIL BY RESONANT TELLURIC INDUCTION
Rose For Emily by Faulkner rtf
Money for a motorbike by John Milne
Lef bure W ly Louis James Alfred Venite Adoremus for organ by Alfred Whittingham
A Practical Guide for Translators by Geoffry Samuelsson Brown
For Sale By Owner by Ninapolitan COMPLETE
Sales Techniques for Sales by Roger Dawson
Reading the Book of Revelation A Resource for Students by Barr
For Sale By Owner by Ninapolitan COMPLETE
Clicker Training For Dogs By Karen Pryor

więcej podobnych podstron