2023-07-06 07:13 AM - last edited on 2023-07-07 06:56 AM by Amel NASRI
Hello,
when referencing a position control with a new custom hardware, there is a short circuit of the power supply at the beginning of the referencing. The STM32 G4 with the MCSDK 5.4.8 is used. The setup already ran on a first own board so that the parameters worked so far. Only a new gate driver with integrated current amplifier was used. The assumption is a faulty current amplification. The TI DRV8304H is used and the circuit is designed regarding to the reference design. Is the internal amplifier circuit compatible with the MCSDK at all?
If there is any experience, I would be very pleased about. Thanks
Solved! Go to Solution.
2023-09-13 02:40 AM
Hello julian3,
There should be no incompatibility between MCSDK and TI DRV8304H internal amplifier circuit but the amplification gain should be set accordingly in the ST MC Workbench project (current sensing panel).
you can check your current sensing by setting your firmware in open loop voltage mode. To do so, please:
- Edit your STM32CubeMx file with your favorite editor. Look for MotorControl.OPEN_LOOP_FOC and set it to true. Save your file.
- Open STM32CubeMx, load your STM32CubeMx file and generate the code.
- Flash your code and monitor "OpenLoop_ParamsM1" with your debugger.
- Start your motor and modify OpenLoop_ParamsM1.hVoltage (voltage reference in S16V) if needed. Default speed will be 100RPM, you can change it with the GUI.
Then check the current "read" by the ADC (via DAC for example) if it is what expected.
Be careful in this mode with the voltage reference as there is no current control. Please monitor also the temperature
Best regards
2023-09-13 02:40 AM
Hello julian3,
There should be no incompatibility between MCSDK and TI DRV8304H internal amplifier circuit but the amplification gain should be set accordingly in the ST MC Workbench project (current sensing panel).
you can check your current sensing by setting your firmware in open loop voltage mode. To do so, please:
- Edit your STM32CubeMx file with your favorite editor. Look for MotorControl.OPEN_LOOP_FOC and set it to true. Save your file.
- Open STM32CubeMx, load your STM32CubeMx file and generate the code.
- Flash your code and monitor "OpenLoop_ParamsM1" with your debugger.
- Start your motor and modify OpenLoop_ParamsM1.hVoltage (voltage reference in S16V) if needed. Default speed will be 100RPM, you can change it with the GUI.
Then check the current "read" by the ADC (via DAC for example) if it is what expected.
Be careful in this mode with the voltage reference as there is no current control. Please monitor also the temperature
Best regards