Other Parts Discussed in Thread: BQSTUDIO
Hello,
I am facing is an issue that the current value reading from AFE is not accurate will show the samples which we have taken
Given Current AFE Calculated current
1A -> 0.206
1.5A -> 0.306
2A -> 0.4
2.5A -> 0.499
3A -> 0.592
3.5A -> 0.692
4A -> 0.784
4.5A -> 0.882
5A -> 0.98
and we have calibrated the value using slop method I will mention that condition down
f(curr_val_s16 >= -1 && curr_val_s16 <= 1)
{
current = 0;
}
else if (curr_val_s16 < 0) /*Discharge Current */
{
current_s32 = ((curr_val_s16*51)/10) ;
}
else /*Charge Current */
{
current_s32 = (((curr_val_s16*51)-752)/10);
}
above logic was implemented in our code to calibrate the code
Due to this, we cant able implement thought AFE, we cant able give sleep current do have any solution for this ?
Thank and Regards
Pavithraa