Master PMSM Vector Control Completely — Theory, Matlab, and STM32 Hands-On Practice!

Not sure where to start with PMSM control? From theory to Matlab-Simulink simulations and STM32 hands-on practice, you can master PMSM vector control and sensorless techniques in 3 steps.

(4.9) 14 reviews

136 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

  • Ability to understand the principles of sensorless control techniques and apply them in practice

  • Ability to design and validate motor control simulations using MATLAB Simulink

  • Ability to directly implement a PMSM FOC vector control algorithm on an STM32

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

20% Special Discount Coupon!

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

The subtle difference that sets your skills apart,
Advanced PMSM Motor Control Technology


Are you dealing with any of these concerns? 🤔


When you want to go beyond BLDC and deepen your understanding of motor control

When you want to take on the electric vehicle/robotics fields but are worried about lacking the core technology

When you’ve studied PMSM theory but feel overwhelmed when trying to implement it on your own

If you learn PMSM, the ultimate control technology

You can grow into an engineer who stands out.



✔️

Why you should take this course



POINT 1.

Theory - Simulation - Implementation
Master PMSM in 3 Steps

The control algorithms for DC motors and PMSMs are covered systematically, from theory (modeling) through Matlab simulation to actual STM32 implementation. Through this three-step learning process, you will understand how the 'equations' and 'code' that once felt like a black box are transformed into 'the rotation of an actual motor'.

PMSM Theory → Matlab Simulink → STM32 Hands-on Practice

POINT 2.

Sensorless control technology that completes your competitive edge in the workplace

In today’s industry, where cost efficiency and durability are demanded alongside performance, sensorless control is the key technology for achieving all these benefits without hardware sensors. Understanding and implementing this technology will make you an engineer with a competitive edge in the field.

.

POINT 3.

The final 1% of detail for perfect motor control
Practical tuning

Even when built according to theory and simulations, a real motor sometimes doesn’t move as expected.

  • "Why does it fluctuate instead of maintaining the target speed?"

  • "Why does it lose power and struggle whenever a load is applied?"

  • "Why does the motor suddenly start twitching just because I changed the Kp and Ki values a little?"

These issues are not caused by a lack of knowledge. That’s because they belong to the realm of “tuning,” which can only be learned through hands-on experience—something textbooks never teach you.

We will also conduct hands-on practice in PMSM operation, including PI controller tuning.


✔️

Why You Should Learn PMSM


CHECK 1.

PMSM That Goes Beyond the Limitations of BLDC

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

BLDC

PMSM

  • Trapezoidal (6-Step) control → noise & vibration occur

  • Efficiency drops in certain ranges → shorter battery life and lower power efficiency

  • Torque ripple (force fluctuations) occurs → unfavorable for precision work

  • Sinusoidal control → Low noise & smooth rotation

  • High efficiency across the entire range → Maximizes battery operating time

  • Uniform and consistent torque → essential for precise position/speed control

CHECK 2.

The standard technology across various industries, including electric vehicles, robots, drones, home appliances, and defense
PMSM

Looking at technology job postings from major companies, expertise in 'PMSM' and 'vector control' has become a 'required qualification' across fields including electric vehicles, robotics, and defense.

Why is that? Thanks to its superior efficiency and precise control performance, PMSM is no longer a technology limited to specific fields; it has become the “standard component” that determines the performance of future industries.

electric vehicles

It extends driving range through high efficiency and delivers dynamic acceleration performance and a premium ride through precise control.

Home appliances

With precise control, it minimizes noise and vibration, while its high efficiency achieves the essential requirements for attaining the top energy consumption efficiency rating.

Drones/Defense Industry

High power and high density ensure mobility, while precision control guarantees stable flight and target accuracy.

Robotics/Automation

Maximize task success rates through precision control and enhance robot productivity with high power and compact design.

📚

From theory to hands-on practice, learning content by section


Section 1

Setting Up a Hands-On Environment Based on an STM32 MCU and Building the Fundamentals

In this section, you will understand the architecture and key peripherals (GPIO, timers, ADC, UART, etc.) of the STM32F767 MCU and learn about its bus structure and clock configuration. You will grasp the MCU’s operating principles using the datasheet and reference manual, and acquire the foundational knowledge needed to set up the development environment.


Section 2

Basic Principles and Control Theory of DC Motors

Covers the basic theory of DC motor structure, rotational principles, and modeling. Learns the concepts of control, Laplace transforms, and frequency response characteristics, while analyzing PI controller design and phase/gain margins. Also explains the roles of single-phase half-bridge and full-bridge inverters and PWM control methods.



Section 3

Establishing the Theory of PMSM Vector Control

Analyze the principles of permanent magnet synchronous motors (PMSM), stator and rotor magnetic fields, and magnetic circuits, and learn dq-axis transformations and modeling. Understand permanent magnet torque and reluctance torque, and study IPMSM and SPMSM modeling and vector control techniques in depth. Gain a thorough theoretical understanding of field-weakening control and space vector modulation (SVM).



Section 4

PMSM Matlab-Simulink Simulation and Control Implementation

Using Matlab-Simulink, simulate the PMSM’s back EMF, dq-axis transformation, PI current controller, SVPWM, and more. Practice simulating the speed controller, VF control, and IF control, while analyzing feedforward compensation and dead-time effects. Validate the control algorithms through simulations of the need for sensorless control and the extended back EMF method.



Section 5

Hands-on Implementation of Actual PMSM Control Based on STM32

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


We can help solve the concerns of people like these!


📌

Electrification System Development Engineer

Engineers who want to develop an in-depth understanding of PMSM motor control, which is at the core of future mobility fields such as electric vehicles, robots, and drones, and build the ability to implement it using an actual STM32
Those who want to bridge the gap between theory and practice and confidently handle complex control algorithms but feel overwhelmed about where to start



📌

Embedded firmware developers

Developers with experience in firmware development but who struggle to directly implement advanced motor control techniques such as PMSM FOC vector control on STM32
Those who want to verify control logic through Matlab-Simulink simulations and improve their problem-solving skills for issues that arise when applying it to actual hardware



📌

Beginners in motor control

Engineers who are hesitant to learn because of the complex equations and theory behind PMSM control, or who want to transition their careers to the motor control field
Those who want to learn the fundamentals of PMSM control, including sensorless control techniques, easily and clearly through a systematic process covering everything from theory to MATLAB simulations and STM32 hands-on practice



Notes Before Taking the Course


Practice Environment

  • PC operating system: Windows

  • Hands-on practice conducted using MATLAB/Simulink version 2024b

  • Simulation is possible in the same way up to version 2025b.

  • Starting with the 2026 version, support for the libraries used in the course has been discontinued, and the course is currently being prepared for an update.


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

Prerequisite Knowledge and Important Notes

  • Basic knowledge of C programming


  • Basic knowledge of circuit theory and electronic circuits

Learning materials

  • Lecture slide PDF provided

  • Matlab-Simulink example model

  • STM32 Practice Code


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

Recommended for
these people

Who is this course right for?

  • A hardware/firmware engineer looking to expand their career into electric vehicles, robotics, drones, home appliances, and defense industries

  • An embedded engineer who wants to master the ultimate motor control technology

  • Embedded engineers who are new to PMSM control or feel overwhelmed by the challenging equations

  • A developer who understands motor control theory but lacks practical STM32 implementation experience

Need to know before starting?

  • You should know the basic syntax of the C language.

  • Knowledge of circuit theory and electronic circuits

Hello
This is insid2embedded

Inflearn Verified

Career Verified

777

Learners

100

Reviews

179

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

  • 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!

  • 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! :)

  • 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 :)

  • 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 :)

  • 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:)