Is there a function call in the InstaSPIN lab7 that would get total (DC) motor current drawn from a power source ? If not, How can I calculate it?
Alex
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Is there a function call in the InstaSPIN lab7 that would get total (DC) motor current drawn from a power source ? If not, How can I calculate it?
Alex
No, you have to add a current sensor to sample the dc bus current.
Then, How does the function below computes motor power without knowing motor current?
//! \brief Computes the power in Watts (W)
//! \param[in] handle The estimator (EST) handle
//! \return The power value, W
extern float32_t EST_computePower_W(EST_Handle handle);
Can I just divide power by bus voltage to get current?
Alex
Will this do the job?
motorVars.Is_A = sqrt((Idq_in_A.value[0] * Idq_in_A.value[0]) +
(Idq_in_A.value[1] * Idq_in_A.value[1]));
Alex
float32_t EST_computePower_W(EST_Handle handle) probably calculates mechanical power from torque & speed estimates.
And
motorVars.Is_A = sqrt((Idq_in_A.value[0] * Idq_in_A.value[0]) + (Idq_in_A.value[1] * Idq_in_A.value[1]));
won't calculate input DC current. You need to take output modulation + "3-phase" into account. For example I_motor=10A at 10% PWM (10% DC Voltage Bus utilization) will result in 1-1.2A DC Current, i don't know the exact formula.
The motorVars.Is_A is the vector current from the motor that doesn't equal the dc bus current. The dc bus current depends on the input voltage, the efficiency of the inverter. It can't be calculated very exactly according to this current. You can calculate the dc bu current roughly based on the dc bus voltage and the output power of the motor.