Electric motors in robots, camera gimbals and electric vehicles produce unwanted torque pulsations. Some of this is cogging torque, a position-periodic tug between the rotor magnets and the stator teeth that exists even when the motor is unpowered. The rest is harmonic ripple from imperfect voltages and currents. Good active cancellers already exist. They estimate the 5th, 7th, 11th and 13th current harmonics and inject opposing voltages, and on a test rig they cut ripple severalfold. These papers report ripple and distortion. They do not report how long the estimator takes to run inside the motor's control interrupt. That time is a delay, and delay is what limits how fast any feedback loop can adapt before it starts to ring. Our claim is that during fast speed changes, the practical limit of ripple cancellation is set by an observer effect: the estimator's own compute time slows the loop. Gain tuning is not the binding limit there. Our design responds to this in two ways. It shrinks the estimator to a handful of slowly varying, explicitly coupled harmonic amplitudes, and it moves that estimator off the time-critical interrupt onto a companion core.
The coupled-amplitude model comes from nonlinear wave physics. In coupled nonlinear Schrödinger systems, several wave envelopes evolve slowly and exchange energy through cross-coupling terms. Here we treat the harmonic disturbance components the same way: as a few slow complex amplitudes coupled through the motor's torque map. This coupling is exactly what makes some harmonic combinations cancel and others reinforce. The result should be an estimator that is cheaper than an extended Kalman filter, less blind than per-harmonic decoupled cancellers, and able to adapt fast enough to follow aggressive acceleration.
Core Claim
Consider any adaptive canceller whose estimate is updated with an effective adaptation rate $k$ (per second), applied after a total loop delay $\tau(c)$. Here $\tau(c)$ is the sample-and-hold delay plus the execution time of an estimator of complexity $c$. For integral-type adaptation, keeping a usable phase margin requires roughly
$$k\,\tau(c) \lesssim \tfrac{\pi}{4}.$$
This comes from the standard delayed-integrator margin: the phase lag $k\tau$ at crossover must stay below about 45 degrees. During a speed ramp, the electrical frequency of the $n$-th harmonic drifts at rate $n\dot\omega$, where $\omega$ is the electrical angular speed. The canceller stays phase-locked only if $k$ is large compared with the phase drift this induces per adaptation time constant. Together these give an acceleration ceiling that falls as estimator compute time grows.
We predict two consequences. First, existing heavy estimators sit on the wrong side of this ceiling at high ramp rates. Second, a lighter estimator that preserves cross-harmonic coupling can beat them during transients even if it is no better at steady state. The proposal is falsified if the ripple-versus-acceleration curves of heavy and light estimators coincide once compute delay is equalized artificially.
Where the Pieces Come From
Prior work on active cancellation motivates the gap. Harmonic Injection Control of PMSM Based on Fading Memory Kalman Filtering tracks 5th and 7th current harmonics with an extended Kalman filter. A fading-memory factor in that filter discounts old measurements so it can follow speed changes. Our research file notes that matrix inversion at PWM rates is a known burden for this method, yet the paper reports no execution time. ITHESO for open-winding VFRMs folds torque harmonics into an extended state observer, a disturbance estimator, and decouples the current axes. Its authors note that observer gains must be restricted for stability, and the design leaves higher harmonics unaddressed. NECOD+ILC learns a position-indexed cogging table offline with iterative learning control, which refines a correction over repeated cycles, and adds a model-free disturbance loop on top. The table is fixed for the regime in which it was learned.
All three fight the speed-stability trade-off through gains and filter design. None treats the estimator's runtime as part of the loop. We change that.
Influence of harmonic voltage coupling on torque ripple constrains and supplies the model. On a 20 kW, 36-slot, 4-pole PMSM it shows that single 5th or 7th harmonic injections raise ripple by 4.4% and 5.7%. Combined 5th+7th+11th+13th injections leave ripple near the 6% baseline. This "negative synergy" is open-loop, and it directly contradicts the strict-decoupling philosophy of ITHESO. If harmonics interact through the torque map, a canceller that treats each harmonic as an independent channel can fight itself. Our estimator encodes this coupling explicitly.
The coupled nonlinear Schrödinger literature supplies the reduction technique, not the physics. In Localized nonlinear waves in a two-mode nonlinear fiber, two envelopes interact through self-modulation (each field shifts its own phase) and cross-modulation (each shifts the other's). We reuse this slowly-varying-envelope construction. In the rotor frame, each current harmonic pair $(5,7)$ and $(11,13)$ becomes a complex amplitude $a_n(t)$ that varies slowly relative to PWM. The torque ripple at orders 6 and 12 is a bilinear function of these amplitudes and the fundamental, and that bilinear function is where Geng's synergy lives. Magnetic saturation makes the coupling coefficients depend on amplitude, which plays the role of the cross-modulation terms.
We also note the tempting deeper analogy. Ablowitz and colleagues' Peierls–Nabarro barrier study shows that a lattice's discreteness creates a periodic pinning potential for solitons, much as stator slotting pins a rotor. We use this only as motivation for one low-speed diagnostic, described below. We do not claim topological pinning immunity transfers to motors; nothing in the file supports that.
The systems literature supplies the architecture. MemPol shows that interrupt-driven regulation at a 32 µs period slows applications by up to 2.4x. Moving monitoring onto a companion core that polls hardware counters removes host overhead. We borrow the split: the PWM interrupt does only a cheap feedforward lookup, and the envelope estimator runs out-of-band at a lower rate.
Research Program
We will build three things. The first is the reduced model. Starting from finite-element flux maps of a 36-slot, 4-pole interior PMSM matching Geng's geometry, we fit coupling coefficients that map current-harmonic envelopes to 6th and 12th torque ripple across load and temperature. We will check that the fitted map reproduces Geng's reported pattern: single harmonics worsen ripple and full combinations return it to baseline.
The second is the estimator, a small recursive estimator over about eight real states, with fixed-gain or scalar-gain updates and no matrix inversion. Its injection law minimizes predicted coupled ripple rather than zeroing each harmonic separately. A cogging term is carried as a position-indexed table whose amplitude and phase are corrected by the slow envelope states.
The third is a two-rate implementation on a ZCU102 board, the MemPol platform. One Cortex-R5 runs the 20 kHz current loop. A second R5 runs the estimator at 1–5 kHz and writes injection coefficients through shared memory.
The theory component is deliberately modest. Bianchi and Dörfler prove exponential stability for arbitrary feedback-optimization gains without timescale separation, using a composite max-type Lyapunov function (one that tracks the larger of the plant and controller energies). They raise gains from a classical bound of $\alpha < 10.1$ to $\alpha = 100$, but only in continuous time. We will attempt the discrete-time, delayed analogue for our two-rate loop, and we will report whether it yields a bound tighter than the phase-margin heuristic above. A negative answer is acceptable. The experiments do not depend on it.
Baselines
The naive reference is field-oriented PI current control with no harmonic injection, run on the same motor, load points and speed profiles. The FMKF-HI paper reports experimental ripple of 11 N·m for PI against 3 N·m for its method, and 5 N·m for conventional harmonic injection. Simulated current distortion falls from 7.95% to 2.83%. Those figures come from a different rig, so we re-measure PI on ours rather than borrow them.
The strongest existing method on this question is the fading-memory Kalman injection scheme of FMKF-HI. It is the only file method built explicitly to adapt during speed changes, and its 3 N·m experimental ripple is the best reported active result in the file. We do not compare against its absolute figure across rigs. We reimplement it on the same R5 at the same 20 kHz rate and tune its fading factor and noise covariances with the same budget of tuning trials as our method. We run it both in-band and, separately, offloaded to the companion core. We found no execution time reported for it on Lacuna, so we measure it ourselves.
We also run an ITHESO-style extended state observer. It reports a reduction in torque ripple from 0.08 to 0.02 N·m on its VFRM rig. We include a speed-scheduled position-domain iterative learning table in the spirit of NECOD+ILC.
Beating FMKF-HI means three things. Steady-state ripple must be no worse than its value on our rig. Peak ripple during ramps of 2000 r/min per 100 ms or faster must be at least 30% lower. ISR execution time must be strictly lower.
Two ablations isolate the key ingredients. Removing the cross-coupling coefficients, giving independent per-harmonic envelopes, tests whether Geng's synergy matters in closed loop. Running our estimator in-band in the interrupt, instead of out-of-band, tests whether compute placement matters.
Why not just…?
Why not just run FMKF-HI on a faster microcontroller? This is the most serious threat. If compute delay is a small fraction of total loop delay, a faster chip makes our argument moot. We settle it directly. We inject controlled extra delay, in steps of a fraction of the PWM period, into every method, and plot peak ramp ripple against total delay. If all methods collapse onto one curve, the advantage is purely computational, and the honest conclusion is "buy a faster chip." If the coupled estimator stays ahead at equal delay, coupling contributes independently.
Why not just use a position-indexed lookup table, since cogging is periodic in position? For pure cogging this is close to optimal, and the ILC results support it: ±0.5°/s speed error after three iterations in NECOD+ILC. For that reason our design keeps a position table for cogging rather than replacing it. The table cannot track load- and temperature-dependent electrical harmonics; response-surface cogging work notes thermal drift defeats fixed designs. We test this with load steps and a hot-versus-cold sweep. If the table matches us there, we will narrow the claim to electrical ripple only.
Why not just use independent resonant cancellers for each harmonic? They are cheap and standard. Geng's open-loop data suggest, however, that independent channels misjudge which injections reduce net ripple. The no-coupling ablation is exactly this alternative. If it matches the coupled version in closed loop, the nonlinear-envelope ingredient is unnecessary and we will say so.
Proposed Experiments
We will run all methods on one interior PMSM rig with a torque transducer, and on the dual-R5 ZCU102 controller. Speed profiles will include steady points from 300 to 2000 r/min, and linear ramps from 0 to 2000 r/min with durations from 1 s down to 50 ms. Load steps will go from 0 to rated, at winding temperatures of 25 °C and 90 °C.
Metrics are ripple as a percentage and in N·m at steady state, and the worst ripple over each ramp. We report the worst case rather than an average, because Kornowski et al. show that fast schedules can hide large intermediate errors. We also measure current distortion, ISR execution time and its jitter from cycle counters, and the largest stable adaptation rate at each injected delay.
The first decisive check is the delay sweep. Measured stability boundaries should follow $k\tau \approx$ constant across all methods. If they do not, the core claim is wrong. The second is whether the ramp-rate at which each method's worst-case ripple doubles orders the methods by compute delay. The third is the coupling ablation under combined 5th–13th injection. A small low-speed diagnostic, motivated by the Peierls–Nabarro picture, measures stick-slip speed oscillation below 50 r/min. It checks whether residual cogging pinning, not harmonic ripple, dominates there; this is a regime that envelope methods are not expected to help.
References
- Harmonic Injection Control of Permanent Magnet Synchronous Motor Based on Fading Memory Kalman Filtering
- Dynamic Decoupled Current Control for Smooth Torque of the Open-Winding Variable Flux Reluctance Motor Using Integrated Torque Harmonic Extended State Observer
- Iterative Learning-Based Negative Effect Compensation Control of Disturbance to Improve the Disturbance Isolation of System
- Influence of harmonic voltage coupling on torque ripple of permanent magnet synchronous motor
- Localized nonlinear waves in a two-mode nonlinear fiber
- Peierls-Nabarro barrier effect in nonlinear Floquet topological insulators
- MemPol: polling-based microsecond-scale per-core memory bandwidth regulation
- A stability condition for online feedback optimization without timescale separation
- Cogging Torque Reduction in PMSM in Wide Temperature Range by Response Surface Methodology
- Open Problem: Anytime Convergence Rate of Gradient Descent