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

Update analog front end on current sensor card #41

Open
npetersen2 opened this issue Mar 9, 2022 · 0 comments
Open

Update analog front end on current sensor card #41

npetersen2 opened this issue Mar 9, 2022 · 0 comments
Labels
question Questioning something that could be an issue.

Comments

@npetersen2
Copy link
Collaborator

After many months of using the current sensor cards, I have found that the analog conditioning front-end drifts slightly over time...

Recall how the circuitry works:

  1. the LEM sensor outputs a current proportional to the sense current
  2. a burden resistor converts this current to a voltage
  3. the voltage is conditioned and sensed by ADC
  4. the digital ADC code is sent to the AMDC

The issue is that the 0A input voltage into the ADC is a mid-scale value... i.e. VREF/2 or something. This means that the final ADC code the user gets on the AMDC is not zero for 0A current. It is some value based on the circuitry. The issue is that this mid-scale value slowly drifts over period of months such that the offset is not fixed... This caused ~100mA of offset for me, which was problematic.

Note that the GAIN of the sensor and analog circuitry is pretty stable... I found no issues with the gain. Only the offset.

My quick fix is to simply calibrate the offset at boot every time I run the bench... I flow 0A of current and record the mid-scale voltage and just subtract that from the ADC.

TODO

A better solution would be to move to an analog front that does this offset calibration in hardware... see the LV sensor card for an example of how to do this.

@npetersen2 npetersen2 added the question Questioning something that could be an issue. label Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Questioning something that could be an issue.
Projects
None yet
Development

No branches or pull requests

1 participant