54. Measure bidirectional current

Circuit

Loading simulator…

Design Approach

Charging and discharging currents flow in opposite directions. A high-side shunt preserves the battery’s ground connection and lets the sign of a differential voltage identify current direction.

How the Circuit Works

  1. Keep ground undisturbed. The supplied R_SHUNT = 0.1 Ω is in the positive battery path, not the ground return. This keeps battery and system ground directly connected.
  2. Measure across the shunt. The reference connects the supplied V_DIFF meter between the battery-side and drive-side terminals of R_SHUNT, with polarity selected so battery discharge produces a positive reading.
  3. Apply the sign convention. The task defines negative I_DRIVE as discharge. At IDRIVE=−1AI_{\mathrm{DRIVE}} = -1\,\mathrm{A}, the chosen polarity gives VDIFF≈+100mVV_{\mathrm{DIFF}}\approx+100\,\mathrm{mV}. At IDRIVE=+1AI_{\mathrm{DRIVE}}=+1\,\mathrm{A} (charging), the polarity reverses and VDIFF≈−100mVV_{\mathrm{DIFF}} \approx -100\,\mathrm{mV}.
  4. Interpret zero current. At I_DRIVE = 0 A, there is no significant shunt drop, so VDIFF≈0VV_{\mathrm{DIFF}} \approx 0\,\mathrm{V}. The magnitude of the voltage corresponds to the magnitude of current through V=IRV=IR.

Verify the Circuit

In EWsim, apply IDRIVE=−1AI_{\mathrm{DRIVE}} = -1\,\mathrm{A}, 0 A, and +1 A. Observe V_DIFF around +100 mV, 0 mV, and −100 mV, respectively. Reverse the meter leads experimentally and notice the sign convention reverse.

Key Learnings

  • A differential shunt signal carries both current magnitude and direction.
  • High-side sensing avoids shifting system ground, but real ADCs typically need a suitable common-mode-capable amplifier.