2024-11-18 12:02 PM
Hi,
I am developing on EVSPIN32G4, MC Workbench 6.1.2.
The only option for Over Voltage Protection is to turn on Low Side Switches. This unfortunately doesn't work as I still constantly get Over Voltage faults in position control mode, when the motor is trying to stop on position. It generates enough back current to spike it above the threshold of 32V on a 24V PSU.
I have an older custom design with a large Braking Resistor switched by a MOSFET. The output for this option was available in earlier versions but I can no longer find it anywhere.
Are there any working solutions out of the box for over voltage protection?
Solved! Go to Solution.
2024-11-19 12:11 AM
Hello @Frakk2136,
You have to create a custom board .json file based on EVSPIN32G4.json available in "MC_SDK_6.1.0\Utilities\PC_Software\STMCWB\assets\hardware\board\inverter" directory.
Brake feature is described in Motor Brake (example available in power/STEVAL-IHM023V3.json file).
You can also take the advantage of the ST Motor Control Board Designer tool available in MCSDK6.3.2 for example. Based on EVSPIN32G4 board, create a cloned custom board and add Brake feature.
2024-11-19 12:11 AM
Hello @Frakk2136,
You have to create a custom board .json file based on EVSPIN32G4.json available in "MC_SDK_6.1.0\Utilities\PC_Software\STMCWB\assets\hardware\board\inverter" directory.
Brake feature is described in Motor Brake (example available in power/STEVAL-IHM023V3.json file).
You can also take the advantage of the ST Motor Control Board Designer tool available in MCSDK6.3.2 for example. Based on EVSPIN32G4 board, create a cloned custom board and add Brake feature.
2024-11-19 08:30 AM
Hello,
Thank you for the reply.
I updated my tools to the latest versions and went through the steps.
1. Cloned EVSPIN32G4 board in STMC Board Designer, and added Motor Brake Feature
2. Generated IOC project from MCSDK and opened in CubeMX
Unfortunately the Brake feature is not present anywhere past the Board Designer and .json (I checked and the section is created), no pins are initialized.
Am I doing something wrong? Is it not supposed to show up in CubeMX? At least show which pin it is mapped to?
Thanks,
Adam
2024-11-19 08:49 AM
Hello @Frakk2136,
Did you select "Switch on dissipative brake" on Workbench>Bus Voltage Sensing?
2024-11-19 10:11 AM
Thank you, I missed that part hidden in there. I was looking for something more obvious but it checks out in CubeMX as well.
In the process I discovered another issue with MC Workbench, made a separate thread not to get off topic here:
https://community.st.com/t5/stm32-mcus-motor-control/mc-workbench-6-3-2-quot-fail-to-copy-extra-folders-quot/td-p/744941