← Wiki · Component

Current sensing (INA186)

Measures a current through a small shunt resistor and turns it into a voltage an ADC can read. Battery drain, motor or ESC current, overcurrent warnings.

What it does#

A current flowing through a small resistor (the shunt) drops a few millivolts across it. A current-sense amplifier multiplies that drop into a voltage an ADC can read. The INA186A3 (TI, SC70-6) multiplies by 100: with a 10 mΩ shunt, 1 A gives 10 mV across the shunt and 1 V at OUT.

Its inputs work anywhere from −0.2 to 40 V while the chip itself runs from 1.7 to 5.5 V, so the shunt can sit in the battery line of a 6S drone (high side) while the amplifier runs from 3.3 V.

Example circuit: The 10 mΩ shunt R1 sits between VBAT and VLOAD; IN+ and IN− read across it. VS on 3V3 with 100 nF, REF on GND: ISENSE is 1 V per ampere.
The 10 mΩ shunt R1 sits between VBAT and VLOAD; IN+ and IN− read across it. VS on 3V3 with 100 nF, REF on GND: ISENSE is 1 V per ampere. Open the current_sense_ina186 example from this page in SolderCanvas: “Insert into my schematic”.

Choosing the shunt#

  • Voltage: full-scale current × shunt × 100 must stay below VS. At 3.3 V and 10 mΩ that is about 3 A.
  • Power: the shunt burns I² × R: 3 A in 10 mΩ is 0.09 W, fine for a 1206 resistor. Large ESC currents need 0.2 to 1 mΩ in 2512.
  • Accuracy: use a 1 % shunt and route IN+ and IN− as a pair straight from its pads (Kelvin connection), not from the power traces.

Pitfalls#

  • REF on GND measures one direction only. For charge and discharge, put REF at VS / 2.
  • Filter before the ADC, not before the amplifier: resistors in series with IN+ and IN− add gain error.
  • SC70 pinout: the SOT-23 (DDF) version has ENABLE and different pins. Use the matching symbol.