Skip to main content
Visitor II
November 30, 2023
Question

INA1863IDCKR

  • November 30, 2023
  • 2 replies
  • 2474 views

Hello,
I am trying to read the value from the INA186A3IDCKR current integrated circuit using the ADC2_INO channel on the stm32f103c8t6 microprocessor. My ADC channel is connected to the Vout section. When I examined the datasheet, I did not come across a formulation, but I want to use the adc value Vout I read in the formulation I will find.
Can you help me?
(Below is the usage of the integrated circuit)

rl.png

    This topic has been closed for replies.

    2 replies

    Graduate II
    November 30, 2023

    So reviewing the data sheets.

    The GAIN is 100, your Rsense is not specified

    If VS connects to VREF+ an ADC reading of 4095 is that voltage

    Voltage across IN pins will be (ADCVALUE / 4096.0) * (VREF / 100.0)

    The voltage drop across Rsense relates to current using Ohm's Law

    LeyliferAuthor
    Visitor II
    November 30, 2023

    When I apply this formulation, the adc value changes, but the Vout value is read as 0, so the current value is also 0. Is there a library I should add to perform the calculations that I missed?

    Graduate II
    November 30, 2023

    I think Tesla means the MCU's VREF+ pin, where's that connected?

    Maybe you should start checking with a DMM:

    - is there some current through the sense resistor?

    - what's the output voltage of the INA? That should be V(INA) = I * Rsense * 100

    If that's working, then you can work on the ADC stuff.