Skip to content
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

calibration / offset min & max values #1

Open
richardor-cell opened this issue Oct 1, 2021 · 1 comment
Open

calibration / offset min & max values #1

richardor-cell opened this issue Oct 1, 2021 · 1 comment

Comments

@richardor-cell
Copy link

Hi,
how do you compute or set CURRENT_OFFSET_MIN & MAX ?

@sharma-binod
Copy link
Contributor

The CURRENT_OFFSET_MIN and CURRENT_OFFSET_MAX value has been determined using ( 2048 -/+ (12.5% of 2048) ).

Brief Description:
In the current measurement circuit, there is an offset of 1.65 volts which is needed to measure negative current with ADC. This offset translates to 2048 counts in ADC configured for 12 bit resolution. But due to board non-linearities, opamp drifts etc, we have need some tolerance. We have assigned a tolerance of about 12.5 %, and hence the maximum and minimum values are calculated as above. It should be noted that the tolerance value 12.5% is not fixed, and can be made stricter or more relaxed based on requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants