Changing desired torque at run time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-27 9:58 AM
Dear all,
I have a NUCLEO-F302R8 and the X-NUCLEO-IHM07M1 motor driver expansion board. I have a three phase BLDC motor with an encoder attached to it. I want to implement a torque controller. I am able to use the workbench software to implement the torque controller and set the desired torque. This works fine. However, I want to be able to adjust the desired torque in the while loop of the main function. Unfortunately, I am not able to achieve this. Do you have any ideas on how to achieve it?
- Labels:
-
FOC
-
MC Workbench
-
STM32 Motor Control
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-27 11:14 PM
Hello nonameX,
In the mc_api.c file, you should be able to find the MC_ProgramTorqueRampMotor1(int16_t hFinalTorque, uint16_t hDurationms) function that will allow you to program a Torque ramp for your motor.
Hope this will help,
Gaël A.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-01 1:30 AM
If I use the function MC_ProgramTorqueRampMotor1 the ramp is done but then the motor stops spinning. Is there a possibility to set a constant reference torque that the motor tries to keep until a new command comes in? I am not able to find something
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-01 2:38 AM
Hello nonameX,
If the motor stops spinning at the end of the Torque Ramp, then I believe it is because a fault has occurred. Have you tried connecting the MotorPilot to see which error is returned ?
Hope this will help,
Gaël A.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-11-19 3:06 PM
What are the units of that Final torque in that function, any idea?
