Coulomb Counting drift from amplifier offset
18 parts
A shunt amplifier with a 100µV input offset feeds a coulomb counter. Watch the 2A load switch off: the counter keeps counting 0.1A that isn't there, 100mAh an hour. A 12V battery drives a 6Ω load through the load switch, a voltage-controlled changeover: load cmd steps from 0 to 5V at 2s and moves it to its unused contact. The current returns through Rsh, 1mΩ. U1 amplifies Rsh's voltage 50 times (1kΩ and 49kΩ, on ±5 V), with Vos, a visible 100µV source, in series with its + input. The counter, an integrator block with gain 20/s = 1/(50 × 1mΩ), turns the amplified voltage into coulombs: 1V on charge is 1C. The ƒx probe, V(amp)/0.05, is the current the gauge believes. Press Run: on screen at ×0.25 the load switches off at about 2s, and the counter keeps climbing.
- Rsh 1mΩ
- battery 12V
- load switch ≥2.5V
- load cmd 5V step
- load 6Ω
- Vos 100µV
- U1
- R1 1kΩ
- R2 49kΩ
- counter ∫×20
- +5V supply 5V
- -5V supply 5V