cancel
Showing results for 
Search instead for 
Did you mean: 

Help controlling to stable IQ,ID setpoints, logging values

DKASA
Associate II

Newb question here. I have the ST FOC and 6step motor control kit (Nucleo F302R8 , X-Nucleo- IMH07M1 and running bull BR2804-1700KV-1. I have been able to successful using the startup guide for motor control workbench to build and download a configuration, and do simple speed based control with the motor control workbench.

I am now attempting torque control and use ID, IQ setpoints. I have a slight load on the motor, but the issue i'm having is that the IQ measured current is very unstable around the setpoint. I have adjusted the IQ gains a bit the instantaneous numeric display is not very stable.

  1. Is this expected behavior with this particular motor and control board?
  2. Is there a way to log or plot IQ and/or ID such that I can graph them? Perhaps the average value is more stable than I realize.

Any advice is greatly appreciated!

2 REPLIES 2
DKASA
Associate II

I solved this by:

Writing an averaging function in mctasks.c based upon measured id iq and doing a printf to the screen.

Laurent Ca...
Lead II

The question has been moved from the section "Motor Control Hardware" to the "STM32 Motor Control" section (the question is about the STM32 MC SDK). 

Best regards