Mastering PMSM Vector Control - From Theory to Matlab and STM32 Practice!

Have you felt overwhelmed about where to start with PMSM control? You can perfectly master PMSM vector control and sensorless techniques through a three-step process, ranging from theory to Matlab-Simulink simulation and STM32 practice.

(4.9) 14 reviews

135 learners

Level Intermediate

Course period Unlimited

stm32
stm32
motordriver
motordriver
stm32
stm32
motordriver
motordriver

Reviews from Early Learners

4.9

5.0

유상무상무상무상수리무상보상상가

38% enrolled

I highly recommend this lecture to anyone who wants to properly learn PMSM vector control. It was incredibly beneficial because I could follow the entire process, from theoretical explanations to Matlab simulations and STM32-based hardware practice. In particular, lectures that cover PMSM all the way through to hands-on practice are rare in Korea, which made this course even more valuable. The explanations were so simple and clear that, personally, I understood them better than my university professors' classes. My satisfaction was even higher because I didn't just learn the theory but could actually implement and verify it. As expected, this lecture was also the best, and thank you for the great course.

5.0

interlace

67% enrolled

This was very helpful in understanding PMSM vector control. Thank you for such a great lecture~~

5.0

채희준

99% enrolled

This lecture is so helpful!

What you will gain after the course

  • Ability to understand the electrical characteristics of PMSM motors and estimate their parameters

  • The ability to understand the principles of sensorless control techniques and apply them in practice.

  • Ability to design and verify motor control simulations using Matlab Simulink

  • Ability to directly implement PMSM FOC vector control algorithms using STM32.

  • Ability to design current/speed control loops and tune PI control

Special 20% Discount Coupon!

Link: https://inf.run/72KGV

The finishing touch that makes the difference in skill,
Advanced Motor Control Technology PMSM


Are you having these concerns? 🤔


When you want to go beyond BLDC and add depth to your motor control skills

When you want to challenge yourself in the electric vehicle or robotics fields but are worried because you lack the core technology

When you have studied PMSM theory but feel lost when trying to implement it on your own

By learning PMSM, the ultimate control technology,

grow into an engineer of a different class.



✔️

Why you should take this course



POINT 1.

Theory - Simulation - Implementation
Mastering PMSM in 3 Steps

It systematically covers the control algorithms of DC motors and PMSM, from theory (modeling) to Matlab simulation and actual STM32 implementation. Through this three-step learning process, you will be able to understand how 'formulas' and 'code' that felt like a black box are transformed into 'actual motor rotation'.

PMSM Theory → Matlab Simulink → STM32 Hands-on Practice

POINT 2.

Sensorless Control Technology
that Completes Professional Competitiveness

In the field where performance, cost, and durability are all required, sensorless control is a core technology that realizes all these values without hardware sensors. Understanding and being able to implement this technology will make you an engineer with a differentiated competitive edge in the industry.

.

POINT 3.

The final 1% detail for perfect motor control,
practical tuning

Even if you build it according to theory and simulation, there are times when the actual motor does not move as expected.

  • "Why can't it maintain the target speed and keep fluctuating?"

  • "Why does it lose all its power and struggle as soon as a load is applied?"

  • "I only changed the Kp and Ki values slightly, so why is the motor suddenly convulsing?"

These problems are not due to a lack of knowledge. This is because they belong to the realm of 'tuning,' which can only be mastered through practical experience and is never taught in theoretical textbooks.

We will proceed with PMSM drive practice, including PI controller tuning.


✔️

Why you should learn PMSM


CHECK 1.

PMSM, going beyond the limits of BLDC

While BLDC is a fundamental technology for operating motors, PMSM is an advanced technology that maximizes motor performance and quality. The core of PMSM is the ability to convert electrical energy into the desired force without waste, noise, or error.

BLDC

PMSM

  • Step-wave (6-Step) control → Noise & vibration generation

  • Efficiency drops in specific sections → loss in battery life and power efficiency

  • Torque ripple (fluctuation of force) occurs → disadvantageous for precise tasks

  • Sinusoidal Control→ Low Noise & Smooth Rotation

  • High efficiency across all ranges→ Maximizing battery life

  • Uniform and constant torque→ Essential for precise position/speed control

CHECK 2.

PMSM, the standard technology for various industries such as
electric vehicles, robots, drones, home appliances, and defense

Looking at the technical job postings of major companies, "PMSM" and "vector control" capabilities are becoming 'essential qualifications' across all fields, including electric vehicles, robotics, and defense.

Why is that? Thanks to its overwhelming efficiency and precise control performance, PMSM is no longer a technology limited to specific fields, but has established itself as a 'standard component' that determines the performance of future industries.

Electric Vehicles

It extends driving range with high efficiency and realizes dynamic acceleration performance and a premium ride quality through precision control.

Home Appliances

It minimizes noise and vibration through precision control and fulfills the essential requirements for achieving a Grade 1 energy efficiency rating through high efficiency.

Drone / Defense

Ensures maneuverability with high power/high density, and guarantees stable flight and target accuracy through precision control.

Robotics/Automation

Maximize task success rates with precision control, and increase robot productivity through high power and miniaturization.

📚

From theory to practice, learning content by section


Section 1

Setting up the STM32 MCU-based practice environment and building the foundation

In this section, you will understand the architecture and key peripherals (GPIO, Timer, ADC, UART, etc.) of the STM32F767 MCU and learn about bus structures and clock settings. You will grasp the operating principles of the MCU using datasheets and reference manuals, and acquire basic knowledge for setting up the development environment.


Section 2

Basic Principles of DC Motors and Control Theory

It covers the basic theories of DC motor structure, rotation principles, and modeling. It involves learning control concepts, Laplace transforms, and frequency response characteristics, as well as designing PI controllers and analyzing phase/gain margins. Additionally, it covers the roles of single-phase half-bridge and full-bridge inverters and their PWM control methods.



Section 3

Establishing PMSM Vector Control Theory

Analyze the principles of Permanent Magnet Synchronous Motors (PMSM), stator/rotor magnetic fields, and magnetic circuits, and learn dq-axis transformation and modeling. Understand permanent magnet torque and reluctance torque, and cover IPMSM and SPMSM modeling and vector control techniques in depth. Gain a complete theoretical understanding of flux-weakening control and Space Vector Modulation (SVM) methods.



Section 4

PMSM Matlab-Simulink Simulation and Control Implementation

Simulate the back EMF, dq-axis transformation, PI current controller, and SVPWM of a PMSM using Matlab-Simulink. Practice speed controller, V/F control, and I/F control simulations, and analyze feed-forward compensation and dead-time effects. Verify control algorithms by understanding the necessity of sensorless control and simulating the extended back EMF technique.



Section 5

Practical Implementation of PMSM Control Based on STM32

Directly implement vector control and sensorless control on an STM32 MCU by configuring clocks, timers, and ADCs. Learn code writing using register settings, interrupt-based control, and SysTick and task management techniques. Gain practical experience by implementing VF control, IF control, and extended EMF sensorless control in real-time on the STM32.


We can solve the concerns of people like this!


📌

Electrification System Development Engineer

Engineers who want to develop a deep understanding of PMSM motor control—a core technology in future mobility fields such as electric vehicles, robots, and drones—and build the ability to implement it using actual STM32
Those who feel stuck and don't know where to start, despite wanting to bridge the gap between theory and practice and confidently handle complex control algorithms



📌

Embedded Firmware Developer

Developers who have experience in existing firmware development but are struggling to directly implement advanced motor control techniques such as PMSM FOC vector control on STM32
Those who want to improve their problem-solving skills in the process of verifying control logic through Matlab-Simulink simulation and applying it to actual hardware



📌

Motor Control Beginners

Engineers who are hesitating to learn PMSM control due to complex formulas and theories, or those who wish to transition their career into the motor control field
Those who want to learn the overall aspects of PMSM control, including sensorless control techniques, easily and clearly through a systematic process starting from theory to Matlab simulation and STM32 practice



Notes before taking the course


Practice Environment

  • PC Operating System: Windows

  • Practice conducted using MATLAB/Simulink 2024b version

  • Simulations can be performed in the same way up to version 2025b.

  • Starting from the 2026 version, support for the libraries used in this course will be discontinued, so an update to the course is currently being prepared.


  • C/C++ Development Environment (IDE, Compiler)

Prerequisites and Important Notes

  • Basic knowledge of C programming


  • Basic knowledge of circuit theory and electronic circuits

Learning Materials

  • Lecture slide PDFs provided

  • Matlab-Simulink Example Models

  • STM32 Practice Code


Smart Store: https://smartstore.naver.com/inside_embedded/products/13037560282

Recommended for
these people

Who is this course right for?

  • Hardware/firmware engineers who want to expand their careers into electric vehicles, robotics, drones, home appliances, and defense industries.

  • Embedded engineers who want to master the ultimate motor control technology

  • Embedded engineers who are new to PMSM control or feel overwhelmed by difficult mathematical formulas.

  • A developer who understands motor control theory but lacks experience in actual STM32 implementation.

Need to know before starting?

  • You must have a basic understanding of C language syntax.

  • Knowledge of circuit theory and electronic circuits

Hello
This is insid2embedded

Inflearn Verified

Career Verified

772

Learners

99

Reviews

178

Answers

4.9

Rating

4

Courses

Hello, I am Control Guy.

I am a working engineer currently developing electrification (motor/inverter) systems at a major corporation.

Based on my experience directly handling everything from circuits, PCBs, and firmware to control algorithms in mass-production projects, I am creating educational content for embedded developers while running the YouTube/Naver blog "Inside Embedded".

I aim to explain the practical aspects actually used in the field that are rarely covered in books or classrooms :)

  • Collaboration with global automotive OEMs

  • 3-Phase Inverter Hardware Development (Circuit / PCB)

  • BLDC · PMSM · WFSM (Wound Field Synchronous Motor) control algorithm development

  • Overall electrification system development / verification process

  • Experience in vehicle and bench-based evaluation


Cafe : https://cafe.naver.com/insideembedded?iframe_url=/MyCafeIntro.nhn%3Fclubid=31273003

Blog : https://blog.naver.com/sw_engineer-

YouTube : https://www.youtube.com/@Inside_Embedded

Open Chat Room: https://open.kakao.com/o/gsUVs3Uh

More

Curriculum

All

115 lectures ∙ (21hr 37min)

Course Materials:

Lecture resources
Published: 
Last updated: 

Reviews

All

14 reviews

4.9

14 reviews

  • interlace3885님의 프로필 이미지
    interlace3885

    Reviews 1

    Average Rating 5.0

    5

    67% enrolled

    This was very helpful in understanding PMSM vector control. Thank you for such a great lecture~~

    • insid2embedded
      Instructor

      I'm so glad it was helpful..! Thank you so much for taking the course and for your valuable review:)

  • cogmlw60555289님의 프로필 이미지
    cogmlw60555289

    Reviews 1

    Average Rating 5.0

    5

    99% enrolled

    This lecture is so helpful!

    • insid2embedded
      Instructor

      Thank you so much for taking the course and for your valuable review :)

  • jh1004zzang996422님의 프로필 이미지
    jh1004zzang996422

    Reviews 2

    Average Rating 5.0

    5

    27% enrolled

    I have finished the electric scooter course and am currently taking the PMSM course. Thank you for creating such great lectures.

    • insid2embedded
      Instructor

      Thank you so much for taking the course and for your valuable review :)

  • mus16013124님의 프로필 이미지
    mus16013124

    Reviews 1

    Average Rating 5.0

    5

    38% enrolled

    I highly recommend this lecture to anyone who wants to properly learn PMSM vector control. It was incredibly beneficial because I could follow the entire process, from theoretical explanations to Matlab simulations and STM32-based hardware practice. In particular, lectures that cover PMSM all the way through to hands-on practice are rare in Korea, which made this course even more valuable. The explanations were so simple and clear that, personally, I understood them better than my university professors' classes. My satisfaction was even higher because I didn't just learn the theory but could actually implement and verify it. As expected, this lecture was also the best, and thank you for the great course.

    • insid2embedded
      Instructor

      Thank you so much for taking the course and for the detailed review! I'm really glad to hear that it was helpful haha. Thank you! :)

  • ooo0oo님의 프로필 이미지
    ooo0oo

    Reviews 2

    Average Rating 5.0

    5

    97% enrolled

    I received a lot of help from this lecture as well. It would be wonderful if you could continue to release more lectures in the future. Go for it, Control Guy! Thank you.

    • insid2embedded
      Instructor

      Thank you so much for taking the course and for your valuable review :) I will continue to share lots of great content in the future!