2025-03-24 6:33 AM
Hi there,
I am trying to enable the current measurement feature on my BLDC motor setup, but MC Workbench prevents me from enabling it. I think it is due to mode selection - 6step, instead of FOC, but still, current measurement through shunt resistor + ADC should be allows in 6-step mode as well, right?
My setup is the following:
- Bench 12VDC power supply (5A limited current)
- Nucleo-F401RE MCU board
- X-NUCLEO-IHM16M1 drive board (including 3/1 shunt resistor for current sense)
My version of MC Workbench is 6.3.2
My version of STM32CubeIDE is 1.18.0
Thank you for your help!
2025-03-24 11:18 AM
In 6 - step the current measurement is not required and hence it may have been grayed out.
2025-03-25 12:34 AM
I understand that it is not "required", however I would like to acquire the current for torque estimation (at the application level). If anyone knows how to bring current measurement along with 6-step mode I would appreciate.
2025-03-25 1:14 AM
Then you have to generate FOC code and take the current sensing files and then integrate with the 6 step mode program.
2025-03-27 4:08 AM
Yes theoretically it can be done this way, however there is a lot of differences in the code structure between 6-step and FOC modes, and it is a HUGE effort to understand how code works, spot the differences, adapt from a project to another and test. The beauty of MC Workbench is to avoid doing all of that.....
2025-03-27 4:22 AM
In that case if you know the concept well with FOC code you could do trapezoidal switching with code modifications. As the FOC code already has the phase current sensing.