Loading simulator…
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.
R_SHUNT = 0.1 Ω is in the positive battery path, not the ground return. This keeps battery and system ground directly connected.V_DIFF meter between the battery-side and drive-side terminals of R_SHUNT, with polarity selected so battery discharge produces a positive reading.I_DRIVE as discharge. At , the chosen polarity gives . At (charging), the polarity reverses and .I_DRIVE = 0 A, there is no significant shunt drop, so . The magnitude of the voltage corresponds to the magnitude of current through .In EWsim, apply , 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.