What is PMSM field-oriented control?
FOC transforms three-phase currents into rotor-aligned d and q components. This makes flux and torque control behave like nearly constant quantities in the rotating frame.
Learn PMSM FOC fundamentals →LoopForge is a free, browser-based learning path for permanent-magnet synchronous motor control. Start with PMSM field-oriented control and dq modelling, tune an IMC PI current loop, study exact discrete-time delay effects, and debug resolver-angle error one PWM period at a time.
Each topic has its own URL, explanation and simulation. The sequence gives beginners a starting point while advanced users can open any tool directly.
Build the physical picture: dq axes, flux, torque, electrical speed, current loops, inverter action and rotor-position feedback.
Tune a first-order PMSM current axis with an IMC-inspired PI and compare the ideal target with sampled implementation and delay.
Design and stress-test the implemented loop with exact ZOH discretization, explicit computational delay, speed sweeps and z-plane poles.
Inject electrical-angle error and step a discrete FOC current controller one PWM period at a time while inspecting currents, voltages and torque.
See where sampling, z⁻¹, physical delay and the average-value inverter enter the model, what is excluded and how the engine is verified.
Each explanation is connected to an interactive example, so the equations, assumptions and implementation effects can be explored rather than memorised.
FOC transforms three-phase currents into rotor-aligned d and q components. This makes flux and torque control behave like nearly constant quantities in the rotating frame.
Learn PMSM FOC fundamentals →An IMC-based baseline relates the desired current-loop time constant to proportional and integral gains, while the simulation exposes sampling and delay limitations.
Open the PI tuning simulation →Sampling, calculation and voltage actuation introduce phase lag. Exact ZOH discretization and z-plane poles show how that delay changes robustness as speed rises.
Analyse discrete-time delay →An electrical-angle offset rotates measured currents and commanded voltages into the wrong dq frame, changing current regulation and electromagnetic torque.
Simulate resolver angle error →The model includes dq cross-coupling, sampled control and an average-value inverter, while clearly separating excluded switching and nonlinear effects.
Review assumptions and verification →For public, non-confidential topics related to the learning material, a short email is welcome. LoopForge does not offer consultancy or project support.