-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Abstract
We want each of the AMDS sensor card docs to provide an expression for the sensed quantity (i.e., current in amps for the current card) in terms of the ADC voltage to make it easy for users to read from the AMDS.
Context
AMDC-Firmware PR #449 is adding a new function to help users interpret their AMDS ADC data:
int amds_get_calibrated_data(double converted_voltage, double offset, double gain, double *out)
{
*out = (converted_voltage - offset) * gain;
return SUCCESS;
}We want to make it easy for users to know what to use for offset and gain for each of the AMDS cards.
1. Current Card
The AMDS current card currently does the opposite of what this issue is requesting (it provides the ADC terminal voltage in terms of the sensed quantity).
We can solve these expressions for Iprimary to get the sensed current.
2. Low Voltage Card
The low voltage card does not provide any data, but we can see from its schematic that VADC = 0.1*(VMEAS) + 2.048V:
3. High Voltage Card
The high voltage card provides an expression that can be solved for this:
Approach
Add to each of the AMDS card docs a section called ### Relationship Between Input and ADC voltage that provides an expression in the form of INPUT = (VADC - OFFSET) x GAIN
For example, in the current measurement REV B, we would have:
First do this:
As a first step, add a comment to this issue with the INPUT = (VADC - OFFSET) x GAIN for each of the three cards based on the default component values


