Hello everyone,
I created a project using Motor Control Workbench, configured for FOC with Hall sensors and 3-shunt current sensing, PWM at 20 kHz. The initial setup used:
- NUCLEO F303RE board
- STDRIVE101 evaluation board
- A BLDC motor with a nominal current of 4 A
During testing, everything worked perfectly: the current reading matched the expected load (4 A at constant effort).
Based on this setup, I developed a custom electronic board using an STM32F303VC. The schematic is identical to the EVALSTDRIVE101 board (same components).
I reconfigured the project in MC Workbench using exactly the same parameters as in the evaluation setup. However, when testing the custom board under the same load conditions, I read a current of 8 A.
I’ve double-checked the hardware: shunt resistor values, op-amps, connections — everything is identical. I suspect a configuration issue or a subtle difference I may have overlooked.
Questions:
- Are there any specific parameters in MC Workbench or Motor Pilot that depend on the exact microcontroller model (RE vs VC)?
- Could differences in ADC behavior or internal amplifier gain explain the doubled current reading?
- Has anyone experienced similar issues when switching from ST evaluation boards to custom designs?
Thanks in advance for your help!
Christophe