
Electrical drives are the most important source of mechanical energy in machines and industrial plant. It starts with the electric motors themselves, the heart of all electrical drives. The permanent-magnet ac machine supplied from a controlled voltage inverter is becoming widely used. This will be our focus machine in this course. Drive controllers are also becoming more powerful and smaller due to fast, low-loss switching power semiconductors, faster microprocessors, as well as modern manufacturing technologies. In this course regarding the implementation procedure of advanced AC machine control systems, we will cover the topics of mathematical machine modeling, control of semiconductor switches, PID control system design, implementation and tuning. PID controllers by using vector control or the so called field oriented control implemented using Pulse-Width-Modulation (PWM) technologies.
If the transfer function model of the plant is a first order model, then a PI controller is used.
The discussion on the desired closed-loop characteristic polynomial with respect to the choice of natural frequency ?n (or bandwidth) and damping coefficient ? will be discussed.
PID control is generally required when controlling the angular position of an AC drive. All industrial AC drives for speed and position control use a PI cascade control structure.
Depending on the application, a wide variety of power electronics devices have been developed, which differ in the type of solid-state switches, construction topology and designs. The common function of these devices is to control the power flow by varying the on/off time of each switch. Among them, the 2-Level Voltage Source Inverter (2L-VSI) is the most common mechanism for controlling three-phase AC machines.
To reduce the effects of the harmonics, carrier based PWM techniques with sequence injection are used. To enhance the output voltage from the PWM inverter using carrier-based scheme, third harmonic injection in the modulating signal is done.
The SVPWM technique is one of the most popular PWM techniques due to a higher DC bus voltage use and easy digital realization.
The concept of the SVPWM relies on the representation of the inverter output as space vectors or space phasors. Space vector representation of the output voltages of the inverter is realized and simulated for the implementation of SVPWM.
However, in a PMSM motor, the torque and flux are not naturally decoupled. The stator windings in a PMSM motor produce both the torque and flux, and the two components are coupled together. To decouple them, a mathematical transformation such as the Park and Clarke transformation is used. This transformation allows the torque and flux components to be separated into two orthogonal axes, with the torque component aligned with the rotor's magnetic field and the flux component aligned with the stator's magnetic field. Once the torque and flux are decoupled, it becomes easier to control them independently and achieve high performance and efficiency in the motor.
The analysis of a three-phase system could be considerably simplified by the use of vector-based approaches.
We introduce here the concept of space vector before proposing a model of a PMSM.
This video presents the two most widely adopted reference frames and their relationships, which are the stationary reference frame and the synchronous reference frame.
Another reference system is the d-q reference system, in which the direct axis (d) is always aligned with the three-phase current generated by the permanent magnets in the rotor, and the q axis is in quadrature. Since in steady state the rotor rotates at the same speed as the grid frequency, it is also called the synchronous frame for PMSM.
The behavior of three-phase machines is normally described by their voltage and current equations. The coefficients of the differential equations that describe their behavior are time-varying (except when the rotor is at rest). The mathematical modeling of such a system is usually very complex, because the combinations of fluxes, induced voltages and currents vary continuously as the electrical circuit is in relative motion. To analyze such a complex electrical machine, mathematical transformations are often used to decouple variables and solve equations with time-varying quantities, relating all variables to a common frame of reference.
Among the various transformation methods available, the most well-known are the following:
- Clarke transformation
- Park transformation
The control of a Permanent Magnet Synchronous Motor (PMSM), when represented by an electrical model in a d-q reference frame, can be compared to the control of DC motors. In other words, the principles of controlling a PMSM using its electrical model in the d-q reference frame are similar to the principles used in controlling DC motors.
In this Simulink simulation, we will compare the physical model of a Permanent Magnet Synchronous Motor against models from the Simscape/Electrical/Specialized Power Systems library. The PMSM's physical parameters are defined and using these parameters, by using Simulink we will solve the differential equations from a previous video to obtain the responses of id, iq currents and velocity omega_e.
In this video, we will explore the Analogies Between DC Motor Control and PMSM FOC. By examining key concepts and control strategies, we will gain a deeper understanding of the similarities and shared approaches between these two types of motor control. In a DC motor, the commutator changes the direction of current flow in the armature windings at the appropriate time to maintain this 90-degree relationship between the current and the rotor flux. Similarly, in PMSM FOC, the MPTA control algorithm adjusts the phase angle of the stator current to keep it at a 90-degree angle to the rotor flux, which maximizes the torque output of the motor. By maintaining this 90-degree relationship between the current and the rotor flux, both systems are able to operate efficiently and effectively.
Remember that vector control was born out of the desire to control AC motors in the same way that we can control brushed DC motors. To control the torque, we need to control the motor current. The current control can be divided into 4 steps:
1, Measure the current already flowing in the motor.
2, Compare the measured current, with the desired current, and generate an error signal.
3, Amplify the error signal to generate a correction voltage.
4, Modulate the correction voltage across the motor terminals.
In the implementation of the control law, the control signals vd and vq are converted into the signals valpha and vbeta using the inverse Park transform, and then into the three-phase voltage signals va, vb, and vc, which are implemented using a voltage source inverter that usually consists of a DC power supply and several semiconductor switches.
PMSM torque control is commonly used in a variety of applications, prominently seen in the electric car industry. In this context, we will delve into the process of designing PI control systems to accomplish the task of torque control.
In the design of the control system, a cascading configuration of feedback and feedforward control is set up for the purpose of speed regulation. Within the drive control mechanisms, two PI controllers are utilized to manage the currents of the d-axis and q-axis. Meanwhile, an additional PI controller is positioned in the outer-loop, tasked with fulfilling the main control goal of speed regulation.
Understand the importance of cascaded PI structures, voltage/current constraints, and anti-windup design for PMSM drives. This video sets the stage for practical implementation.
Learn how to build a reusable embedded MATLAB PI controller function and integrate it into a full PMSM simulation for current and speed control. Follow the step-by-step tutorial in the resources.
This course introduces you to the DSP-based implementation of speed control for Permanent Magnet Synchronous Motors (PMSMs) using Field-Oriented Control (FOC).
You will learn how modern digital signal processors (DSPs) provide the real-time computing power and peripherals needed for high-performance motor control.
In this lecture, you will explore the hardware design aspects of sensorless PMSM FOC.
We cover current sensing topologies (low-side, two-shunt, single-shunt) and the role of precision amplifiers like the INA303. You’ll also study inverter design using IGBT modules, signal conditioning for protection, and how these elements impact torque ripple, efficiency, and dynamic motor performance.
? After completing this lecture, you will be able to:
Compare different current sensing methods and their trade-offs.
Understand the function of INA303 in accurate current measurement and protection.
Analyze IGBT-based inverter hardware for PMSM drives.
Relate hardware choices to torque control, noise reduction, and system safety.
In this lecture, you will dive deeper into the hardware design of sensorless PMSM drives, focusing on gate driver integration and MCU capabilities. You’ll analyze the UCC27714 high-side/low-side driver, bootstrap capacitor sizing for IGBTs, and the role of TI’s Piccolo F2802x MCU in enabling real-time motor control.
After completing this lecture, you will be able to:
Explain the function of the UCC27714 gate driver and its impact on current sensing accuracy.
Apply bootstrap capacitor sizing guidelines for IGBT-based PMSM inverters.
Identify key MCU peripherals (PWM, ADC, comparators) used for real-time FOC control.
Understand how hardware and MCU choices affect efficiency, stability, and protection in PMSM drives.
Important Note for Students
This course on Field Oriented Control (FOC) of Permanent Magnet Synchronous Machines (PMSM) is designed for learners with a foundation in control engineering or electrical drives. It is not for complete beginners.
We still derive the equations, build the models, and design the controllers step by step. However, we do not write out every single algebraic step as in a textbook. Instead, some intermediate steps are intentionally left for you to complete — so you actively learn how to model the machines and design the controllers yourself.
Each key result is then connected directly to Simulink implementations, showing you how control engineers design real drive systems. If you are new to motor control, this may feel challenging. But if you already have background in control systems or power electronics, this course will help you take your skills to the next level.
The Only PMSM FOC Course That Engineers Use in Practice
Most courses explain Simulink blocks without showing how real control systems are designed. This course is different — you will learn how to design the architecture from the ground up, like engineers do in R&D labs.
From Theory to Real-Time Mastery
This course isn’t for passive learners. It’s for future control engineers, EV developers, and robotics specialists who want to model, design, and implement working PMSM FOC systems — not just view diagrams.
You won’t just learn what FOC is — you’ll build it, tune it, and simulate it under real-time constraints.
What You Will Build and Understand
Step by step, you’ll follow the same workflow used in industry and research:
Model PMSM machines in α–β and d–q frames using mathematical foundations
Design PI/PID controllers for torque, speed, and current loops
Implement PWM and SVPWM techniques for inverter-fed drives
Create your own Park & Clarke transformations in Simulink
Add anti-windup logic and embedded PI controllers with MATLAB functions
Simulate and validate full FOC architectures in Simulink
This is not a “drag-and-drop” course. It is a builder’s course — where you design the system, understand the math, and apply it in EVs, robotics, and industrial drive applications.
What Makes This Course Different?
Most courses stop at simulation. This one goes further:
Embed PI logic using MATLAB functions
Handle real-time constraints
Simulate hardware-like system response
All of this is compressed into just few hours of focused learning — saving you from weeks of research and hundreds of pages of textbooks.
This Course Is For You If…
You want to build, not just watch
You already know the basics of control theory and want to apply them in simulations
You are preparing for a career in EV, robotics, or motor control R&D
You are comfortable with mathematics, since real motor control is built on math
What’s Inside?
23 concise, high-impact lectures (~3 hours total with cont. updates)
Full Simulink implementation of PMSM FOC
Embedded MATLAB function tutorial with anti-windup PI logic
Ready-to-use Simulink files
actual and Future updates on hardware-in-the-loop (HIL) and hardware integration
Conclusion
This course goes beyond surface-level explanations. You’ll learn the exact workflow engineers use to design, simulate, and implement PMSM control systems.
Begin mastering PMSM FOC control systems today — from mathematical foundations to real-time embedded implementation.