Skip to content

Update AMDS sensor card docs to provide an expression for the sensed quantity in terms of the ADC voltage #127

@elsevers

Description

@elsevers

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:

https://github.com/Severson-Group/AMDC-Firmware/blob/6083845366af2af6a3a036e42e759e632418f439/sdk/app_cpu1/common/drv/amds.c#L124-L128

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).

Image

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:

Image

3. High Voltage Card

The high voltage card provides an expression that can be solved for this:

Image

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:
$I_{\rm PRIMARY} = (V_{\rm ADC} - 2.4922) \times 29.4118 {\rm [ A ]} $

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions