EMBEDDED SYSTEMS • MOTOR CONTROL

Motor Control Firmware: BLDC, PMSM and Stepper Drives

Efficient, quiet, protected motor drives, from the power stage to the control loop.

Motor control in brief

  • Field-oriented control (FOC) gives smooth torque, low noise and high efficiency for BLDC and PMSM motors, at the cost of a more demanding implementation than six-step commutation.
  • Sensorless control removes the Hall or encoder cost but needs careful start-up and low-speed handling.
  • Hardware matters as much as code: gate-driver selection, current sensing, dead time and layout decide whether the loop is stable.
  • Protection is not optional: overcurrent, overvoltage, over-temperature and stall detection should be in hardware and firmware.

Control strategies compared

MethodStrengthLimitation
Six-step (trapezoidal)Simple, cheap, robustTorque ripple and audible noise
Sensored FOCSmooth torque from standstillNeeds encoder or Hall sensors
Sensorless FOCNo position sensor, high efficiencyHarder start-up and very low speed
Stepper microsteppingOpen-loop positioningCan lose steps without feedback

What we design

Tuning and validation

Loop tuning is done on the real motor and load, not only in simulation. We record current, speed and bus waveforms with an oscilloscope, test at stall, at maximum load and at supply extremes, and measure temperature rise. Layout and EMC are handled with our PCB design team, because switching edges and current loops dominate noise.

Typical applications

Sources and further reading

Last reviewed: October 2026. Regulations and product availability change; confirm current rules with the issuing authority before you commit to a design.

Common Questions

Frequently Asked Questions

Can you design a motor controller for my existing motor?

Yes. We characterise the motor (resistance, inductance, back-EMF constant), then size the power stage, choose a controller and tune the loops for your load profile.

What MCU is used for FOC?

STM32G4 and STM32F4 are common choices because of their fast ADCs, advanced timers and motor-control libraries. Other vendors offer suitable parts too.

Is sensorless control reliable?

At normal operating speeds, yes. Start-up under heavy load and very low speed are the difficult regions, so we assess your load before recommending it.

Do you handle certification for drives?

We design for relevant EMC and safety requirements, and advise on testing. The applicable standard depends on product type and market.

Need a motor drive that is quiet and efficient?

Send motor datasheet, supply voltage and load. We will propose a power stage and control approach.

REQUEST AN ENGINEERING CONSULTATION

Related Solutions

← All engineering solutions