-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Analyze FOC timing of AMCBLDC and AMC2C #80
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
➡️ On AMCBLDCIn point 2 I want to remark that the I Apologize for the mistake/confusion! By the way, the Measuring with the scope we got ...And static void adc2_HalfTransferComplete_cb(ADC_HandleTypeDef *hadc)
{
// TODO: start measuring from here
GPIOB->BSRR = (uint32_t)0x0020; // 0x0004
#if defined(MOTORHAL_changes)
rawCph1 = adc2_Buffer[0].cph1;
rawCph2 = adc2_Buffer[0].cph2;
rawCph3 = adc2_Buffer[0].cph3;
pwmSetCurrents_cb(rawCph1, rawCph2, rawCph3);
#if !defined(MOTORHALCONFIG_DONTUSE_RUNTIMECURR_FILTERING)
analogMovingAverageFromISR(&cph1Filter, rawCph1);
analogMovingAverageFromISR(&cph2Filter, rawCph2);
analogMovingAverageFromISR(&cph3Filter, rawCph3);
#endif
#else
rawCph1 = adc2_Buffer[0].cph1;
rawCph2 = adc2_Buffer[0].cph2;
rawCph3 = adc2_Buffer[0].cph3;
pwmSetCurrents_cb(rawCph1, rawCph2, rawCph3);
analogMovingAverageFromISR(&cph1Filter, rawCph1);
analogMovingAverageFromISR(&cph2Filter, rawCph2);
analogMovingAverageFromISR(&cph3Filter, rawCph3);
#endif
GPIOB->BRR = (uint32_t)0x0020; // 0x0004
}
In summary (when in CURRENT control mode):
|
➡️ AMC2C (66.6 KHz)When the control mode is set to The the whole The whole With the In summary (when in CURRENT control mode):
|
Great analysis @sgiraz ! To summarize we have
A ~ 2x factor seems a lot, maybe it is the case of contacting ST |
The analysis of @sgiraz pointed out an important timing issue on Closing. |
Interesting timing for a comparison: Source: https://www.mathworks.com/campaigns/offers/next/field-oriented-control-techniques-white-paper.html Note We're not that bad, after all! |
cc @Nicogene @sgiraz @marcoaccame @maggia80 @mfussi66
Originally posted by @pattacini in #67 (comment)
The text was updated successfully, but these errors were encountered: