Motor Control Fundamentals with MM32SPIN Series
💡 FAE Insights
📋 Customer Cases
Industrial Equipment Manufacturer
Industrial Automation
Challenge
Needed guidance on MCU selection and implementation
Solution
Followed LiTong FAE recommendations and best practices
Results
- Successful product launch
- Met all performance targets
Frequently Asked Questions
1. What types of motors can MM32SPIN control?
MM32SPIN Series supports various motor types: (1) BLDC motors - Both sensored (Hall effect) and sensorless (BEMF) control with trapezoidal or sinusoidal commutation. (2) PMSM motors - Both sensored (encoder/resolver) and sensorless FOC control. MM32SPIN360 hardware cordic accelerates FOC calculations. (3) AC induction motors - V/Hz control or sensorless vector control. (4) Stepper motors - Full-step, half-step, and microstepping control using PWM outputs. (5) Brushed DC motors - Simple PWM speed control. The integrated gate drivers support various power stages from low-voltage MOSFETs to high-voltage IGBTs. Motor voltage range from 12V to 600V depending on external power stage. Current ratings from a few amps to hundreds of amps with appropriate external power devices. This flexibility makes MM32SPIN suitable for appliances, power tools, drones, pumps, fans, and industrial motor applications.
2. How do I implement sensorless BLDC control?
Sensorless BLDC control on MM32SPIN involves: (1) BEMF sensing - Measure voltage on the floating phase during PWM off-time. The ADC is synchronized with PWM to sample at the correct time. (2) Zero-crossing detection - Detect when BEMF crosses the virtual neutral point (or DC bus midpoint). This indicates the commutation point. (3) Phase shift - The actual commutation should occur 30 electrical degrees after zero-crossing. Use a timer delay based on the previous commutation interval. (4) Startup - From standstill, use open-loop startup (forced commutation) with gradually increasing frequency until BEMF is detectable, then switch to closed-loop. (5) PWM considerations - Use unipolar PWM for cleaner BEMF sensing. Bipolar PWM can work but requires more careful filtering. The MM32SPIN ADC-PWM synchronization is critical - sample during the PWM off-time when the low-side diode conducts. MindMotion provides sensorless BLDC library with startup and commutation algorithms.
3. What is Field-Oriented Control (FOC) and when should I use it?
Field-Oriented Control (FOC) is a vector control technique for AC motors: (1) Principle - Transforms three-phase currents into a rotating reference frame (d-q axis) match rotor flux. Enables independent control of torque and flux. (2) Advantages - Higher efficiency, better dynamic response, smoother operation, full torque at zero speed, and better speed control. (3) Complexity - Requires more processing power than simple V/Hz or trapezoidal control. Needs current sensing on at least two phases. (4) Use FOC when - High performance required, energy efficiency critical, wide speed range needed, or precise torque control required. (5) Don't use FOC when - Simple on/off control sufficient, cost is primary concern, or processing power limited. MM32SPIN360 with hardware cordic is recommended for FOC applications. The cordic accelerates Park/Clarke transformations and SVPWM calculations. For simple applications like fans or pumps, trapezoidal BLDC control is usually sufficient and much simpler to implement.
4. How do I design the power stage for motor control?
Power stage design for MM32SPIN motor control: (1) Topology - Three-phase bridge with six MOSFETs/IGBTs for three-phase motors, or H-bridge for DC motors. (2) Voltage rating - Select MOSFETs with VDS rating at least 2x the DC bus voltage to handle transients. (3) Current rating - Select based on motor rated current with 50-100% margin for overload conditions. (4) Gate drivers - MM32SPIN has integrated gate drivers for low-voltage applications. For high voltage, use external gate driver ICs. (5) Current sensing - Use low-side shunt resistors (0.01-0.1Ω) with differential amplification. Place shunts on all three phases for FOC, or DC bus for simple control. (6) Protection - Include TVS diodes for over-voltage, fast fuses for over-current, and snubber circuits for ringing suppression. (7) PCB layout - Keep high-current loops small, use proper grounding, and isolate high-voltage sections. LiTong provides reference designs and can review your power stage design.
5. What protection features are important for motor control?
Essential protection features for motor control: (1) Over-current protection - Fast hardware protection using analog comparators (response <5μs). Set threshold at 150-200% of rated current. (2) Over-voltage protection - Detect DC bus over-voltage and either reduce regeneration or activate brake resistor. (3) Under-voltage protection - Disable PWM when DC bus drops below minimum to prevent erratic operation. (4) Over-temperature protection - Monitor heatsink and motor temperature. Reduce current or shutdown if overheating. (5) Stall protection - Detect motor stall (current high but no rotation) and limit current to prevent burnout. (6) Hardware break - Use MM32SPIN break input to immediately disable all PWM on fault detection. (7) Dead-time protection - Ensure sufficient dead-time to prevent shoot-through. Hardware-enforced if possible. (8) Watchdog timer - Reset system if software hangs. Implement these protections in hardware where possible - software is too slow for over-current protection. Test all protection features thoroughly before deploying.