Modeling FOC motor control with State Space mathematics. #6625
-
I'd like to know what the mathematics would be for modeling a motor with Field Oriented Control (like the one CTRE uses in their Phoenix 6 framework) for torque-current control. I'm wanting to play around with making a sim class that works in a way similar to CTRE's setup from a mathematical standpoint. The way I see it the only thing that would change would be the input parameter would be voltage instead of current, but I'm a little stuck on the math and any assistance would be appreciated. EDIT: Would there be any equivalent kS, kV, kA constants like in the standard way of doing it with voltage control |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
The first-order approximation for a DC motor with angular velocity state and torque input is just A = [0], B = [1/J] where J is the moment of inertia.
The input limits will be device and mode-specific. Brushless motors with a flat torque vs angular velocity response will have a constant limit. Brushed motors and brushless motors mimicking the response of a brushed motor will have an input limit that decreases linearly with angular velocity. You can also do current input with torque = Kₜ * current -> angular acceleration = 0 * angular velocity + Kₜ/J * current. |
Beta Was this translation helpful? Give feedback.
The first-order approximation for a DC motor with angular velocity state and torque input is just A = [0], B = [1/J] where J is the moment of inertia.
The input limits will be device and mode-specific. Brushless motors with a flat torque vs angular velocity response will have a constant limit. Brushed motors and brushless motors mimicking the response of a brushed motor will have an input limit that decreases linearly with angular velocity.
You can also do current input with torque = Kₜ * current -> angular acceleration = 0 * angular velocity + Kₜ/J * current.