All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
OBJECTIVES: Design and simulate the Tesla Model 3 Standard Range RWD that uses a PMSM motor I've previously designed a Tesla Model 3 using a PMDC motor (here), even though in actuality the Tesla Model 3 uses an Interior Permanent Magnet Synchronous Motor (IPMSM). The fact that a PMDC motor and its control works…
Parth Maheshwari
updated on 05 Jan 2022
OBJECTIVES:
I've previously designed a Tesla Model 3 using a PMDC motor (here), even though in actuality the Tesla Model 3 uses an Interior Permanent Magnet Synchronous Motor (IPMSM). The fact that a PMDC motor and its control works completely differently to that of an IPMSM always urged me to explore a different combination. I wanted the model and simulation to resemble the Tesla Model 3 as closely as possible, and hence I learned how to model a PMSM motor.
Note: PMSM motors are classified into IPMSM and SPMSM, however I am still learning how to model a PMSM motor with that level of specificity. This project therefore models the Tesla Model 3 with a general PMSM motor.
Above is a block diagram demonstrating how an EV with a PMSM motor is typically modelled. PMSM motors can be run by both sinusoidal voltages and trapezoidal voltages. Trapezoidal voltages are easier to produce because they consist of square waveforms, and transistors only need to be turned on and off to generate that kind of output. Sinusoidal voltages on the other hand need an extra encoder along with the hall effect sensor for accuracy, or field oriented control (FOC) needs to be implemented. This is a more complicated and computationally heavy method, but it comes with the advantage that torque output is smooth and constant. With trapezoidal commutations there is always a torque ripple at the start of each commutation, but the control is simpler. For automotive applications, PMSMs should be run by sinusoidal voltages because smooth and constant torque is desired in an EV, however, for the purpose of a simpler simulation, trapezoidal voltage is used to power the motor. When a PMSM motor has a trapezoidal back-emf, it is also known as a BLDC motor.
PMSM motors are powered by 3-phase AC; that's where the inverter comes into the picture. The battery pack generates a DC voltage which needs to be converted into a 3-phase square-like (trapezoidal) waveform. Generally, MOSFET switches in an inverter can handle a peak voltage of 100-150V, however, the battery pack produces a voltage of 360V. The buck converter takes into account the duty cycle from the PID controller and steps down the voltage accordingly for the inverter.
EXPANDED MODEL:
CONDENSED MODEL:
TRACTIVE FORCES:
Governing equations:
MOTOR:
MOTOR CONTROL:
OPERATION AND WORKING PRINCIPLE OF PMSM MOTOR (TRAPEZOIDAL COMMUTATION):
Switches | S1 (AH) | S2 (AL) | S3 (BH) | S4 (BL) | S5 (CH) | S6 (CL) |
Commutations | 1 | 0 | 0 | 0 | 0 | 1 |
0 | 0 | 1 | 0 | 0 | 1 | |
0 | 1 | 1 | 0 | 0 | 0 | |
0 | 1 | 0 | 0 | 1 | 0 | |
0 | 0 | 0 | 1 | 1 | 0 | |
1 | 0 | 0 | 1 | 0 | 0 |
Note: H = high side = North pole, L = low side = South pole; AH turned on would mean A is acting as the North pole.
The motor consists of a permanent magnet (the red and blue poles rotating in the figure) as part of the rotor, and coil windings (3 sets of windings) as part of the stator, which can be referred to as A, B, and C, as depicted in the figure above.
A DC supply is given to a set of coil combinations (S1 and S6 for instance), energizing them and making them an electromagnet in a magnetic arena. The operation is a simple interaction between the permanent magnet and the electromagnet A/B/C, which exerts a force on the rotor, thereby rotating it to produce a torque. There are 6 sets of combinations as presented in the table above which energize different sets of coils to keep the rotor rotating.
Limitations of PMSM motor with trapezoidal commutation instead of sinusoidal commutation:
The back-emf (Ea, Eb, Ec) shape depends on how the coil windings are wounded and designed to be in the stator. For best performance and highest efficiency, it is recommended that the drive current match the back-emf waveform. To do this, square-like waveforms need to be produced through DC current and turning transistors on and off, as is seen in Ia, Ib, and Ic above.
In practice, when commutations change and there is a shift in phase current (from AH,CL to BH, CL for instance), the current cannot be established in the coil instantaneously. The magnetic fields in the previous phases collapse and are built in the newly energized phases. This is why there is a torque ripple at the start of every commutation (since torque is proportional to current), as for a short time period there is that dip in torque while the coils are transitioning.
Increasing the inductance in the motor will oppose this tiny stoppage in current and reduce the ripple, but for a more concrete solution, sinusoidal drive currents with encoders or FOC will need to be used. That will give a smooth, constant torque, which is certainly desired for automotive applications. However, as mentioned previously, their control is complex and expensive, thus using a trapezoidal input is the trade off between performance requirements and control complexity & cost.
How does the inverter know which combination of switches to turn on and off?
Referring to the block diagram at the beginning of the report, the motor and the inverter are connected in a feedback loop. Hall effect sensors determine the magnetic field around each phase to determine which sector the rotors are currently in by sending a high or low signal to indicate which rotor pole (N or S) is passing over them, and accordingly select which two phases out of A, B, and C need to be energized. For example, in the rotor sector figure above, lets assume the blue arrow is the N rotor magnet. This one is in sector 2, hence its counterpart, the S rotor magnet, is in sector 5. Assuming a counterclockwise rotation, the N rotor magnet needs to move towards coil B, while S rotor magnet will move towards coil C. Coil B therefore needs to be a South pole (BL) while Coil C needs to be a North pole (CH). Referring to the table above, that would be commutation #5, where BL and CH are energized while the others are open. Through 3 hall effect sensors, 6 commutations performed every 60 degrees complete an electrical cycle of 360 degrees and keep the rotor rotating.
For simulation purposes, one way to model the hall sensor is shown on the figures in the second row above. Angular position through a rotational motion sensor connected to the motor will provide information on the position of the N and S pole of the permanent magnets. For example, if the N pole is anywhere between its starting point and 60 degrees, the sensor will determine that it is in sector 1 and then accordingly commutation logic #1 will be applied to excite the pair of coil windings AH and CL.
SENSORS:
RESULTS:
Source voltage (battery) vs Modulated voltage:
Motor RPM:
Performance parameters (1):
Performance parameters (2):
How can this project be improved further?
Leave a comment
Thanks for choosing to leave a comment. Please keep in mind that all the comments are moderated as per our comment policy, and your email will not be published for privacy reasons. Please leave a personal & meaningful conversation.
Other comments...
Thermal Modeling of 10S1P Battery Pack
For a 10 cell series lithium ion battery model, simulate the thermal effects and compare life cycle performance at various temperatures, charge & discharge rates using MATLAB/SIMULINK All types of electric vehicles, whether BEVs, HEVs, or PHEVs, contain a battery pack that powers the vehicle. Lithium-ion batteries…
30 Mar 2022 02:25 PM IST
Parsing NASA's thermodynamic data file using MATLAB
Aim: To parse and create value out of NASA's thermodynamic data Objectives: Extract the 14 coefficients and calculate specific heat (Cp), enthalpy (H), and entropy (S) for all the species in the given data Calculate the molecular weight of each species and display it in the command window Plot the Cp, H, and S with respect…
02 Feb 2022 06:21 PM IST
Design of an Electric Vehicle - Tesla Model 3 (PMDC motor)
OBJECTIVES: Design and simulate the Tesla Model 3 Standard Range RWD that uses a PMDC motor Introduction Earth is heading for a disaster. Humanity is having a material and irreversible impact on Earth - we've destroyed half of the world's forests and will soon wipe out most of the rest. The human and economic consequences…
05 Jan 2022 09:30 PM IST
Design of an Electric Vehicle - Tesla Model 3 (PMSM motor)
OBJECTIVES: Design and simulate the Tesla Model 3 Standard Range RWD that uses a PMSM motor I've previously designed a Tesla Model 3 using a PMDC motor (here), even though in actuality the Tesla Model 3 uses an Interior Permanent Magnet Synchronous Motor (IPMSM). The fact that a PMDC motor and its control works…
05 Jan 2022 09:30 PM IST
Related Courses
Skill-Lync offers industry relevant advanced engineering courses for engineering students by partnering with industry experts.
© 2024 Skill-Lync Inc. All Rights Reserved.