Motor world: see the field that turns the wheel
Open a hub motor in 3D. Watch the three phase currents turn six coils into moving magnets, compare six-step drive with FOC, and see why torque is strongest when the coil field leads the rotor by 90 degrees.
How this lab works
Watch the coils and the magnets
The picture is slowed down so you can follow it. A coil face glows red when it is a north pole and blue when it is a south pole. The ring of magnets around the coils is the rotor. Each blue magnet is pulled toward a red coil face.
Switch between six-step and FOC
In six-step drive the amber field arrow jumps 60 degrees at a time. In FOC it glides. Look at the current waveforms and the torque line in the chart below.
Move the field angle
Slide the field lead away from 90 degrees. The current stays the same but the torque drops. The motor now makes heat with less turning force. Holding that angle at 90 degrees is the whole job of FOC.
Motor world: see the field that turns the wheel
Voltesta, voltesta.com
Run the motor
The 3D picture needs WebGL, which is switched off in this browser. The controls, numbers and charts on this page still work.
Drag to turn the motor. Use + and − to zoom.
Phase currents and torque over one electrical turn
Phase APhase BPhase CTorqueRotor is here
Reading the picture
- Red coil face: north pole. Blue coil face: south pole. The brighter the face, the more current in that coil.
- Amber arrows: the field made by the coils. Dark arrows: the rotor's own field. The rotor always chases the amber arrows.
- This motor has two pole pairs, so 90 electrical degrees looks like 45 degrees in the picture.
- Slow motion changes only the picture. The speed, torque and current figures are the real ones.
Things to try
PMSM motor: switch from FOC to six-step
Torque ripple goes from 0% to about 14%, and the average torque is a little lower for the same heat. This ripple is the roughness you feel at low speed.
BLDC motor with six-step drive
A motor wound for a flat-topped back-EMF suits six-step drive, and the ideal ripple is zero. A real motor still has some, because current cannot switch in an instant.
Slide the field lead from 90° down to 30°
Torque falls to half while the heat in the copper stays the same. At 0° the field only pulls the magnets outward and the torque is zero.
Full throttle with the load at 0, then watch the speed settle
As speed rises the back-EMF climbs toward the voltage the controller can give, so less current can flow. The motor stops speeding up near 550 rpm in FOC and near 470 rpm in six-step.
Set the load to 40 Nm and raise the throttle slowly from zero
The wheel stays still until the torque passes the load, and then it moves at once. The motor gives full torque while standing still, with no clutch and no gears.
Switch on the wheel
In a hub motor the coils stay fixed on the axle and the magnets turn with the wheel rim. There is no chain, belt or gearbox between them.
How the simulation works
The three phases are wound 120 electrical degrees apart. The model adds their three currents as arrows to get one stator field with a strength and a direction. The rotor's magnets make their own field. Torque is the product of the two, times the sine of the angle between them, so it is greatest at 90 degrees and zero when they line up.
FOC reads the rotor position and keeps the stator field exactly at the angle you set. Six-step drive has only six field directions, 60 degrees apart, so the angle swings between 30 degrees behind and 30 degrees ahead of the target. Both drives are given the same field strength, so they make the same heat in the copper and the comparison is fair.
The throttle asks for current, up to 60 A. A turning motor also makes its own voltage, the back-EMF, which rises with speed. The current that can flow is the controller's voltage minus the back-EMF, divided by the winding resistance. That is why torque is full at standstill and fades as the motor nears its top speed.
The model leaves out winding inductance, magnetic saturation and the switching of the transistors. A real six-step drive has extra ripple each time the current changes coils. The figures are for a small hub motor on a 60 V battery and are meant to show the pattern.
Every value here comes from a teaching model running in your browser, with typical figures. They are not measurements from real hardware.