Skip to main content
DKASA
Associate II
February 4, 2019
Question

Help controlling to stable IQ,ID setpoints, logging values

  • February 4, 2019
  • 2 replies
  • 1122 views

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!

This topic has been closed for replies.

2 replies

DKASA
DKASAAuthor
Associate II
May 16, 2019

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...
Senior III
June 22, 2021

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