X-NUCLEO-IHM08M1 Op-amp current calculation
- March 8, 2025
- 2 replies
- 1552 views
Hello everyone,
I’m working on a project where I am using the motor controller’s current sense circuitry (shunt + op amp). Here are my key details:
1. Hardware Setup:
- Board: X-NUCLEO-IHM08M1 with NUCLEO-H755ZI-Q
- Op Amp: TSV994
- Shunt Resistor: 0.01 Ω, 3 W rating (from BOM)
- Supply: 12 V, measured ~0.45 A from the power supply
2. Observations:
- At no load (no supply connected, only 3.3 V to the controller), the amplifier output is around 1.65–1.7 V, which I treat as the zero-current offset.
- When I measure actual load with the 12 V, 0.45 A supply, my code calculates 8–9 A from the ADC, which seems impossible because the supply is only delivering ~0.45 A total.
- I attempted to validate the amplifier gain using resistor ratios and the op amp datasheet. It suggests a total gain of around 13.7.
- I also used the approach of “maximum possible voltage” across the shunt (0.01 Ω) with a 3.3 V rail, concluding ~13–14× hardware gain.
- Yet, the measured “current” is far too high compared to the actual supply current.
3. What I’ve Tried:
- Offset Calibration: I subtract the ~1.65 V offset at zero current in code.
- Known Resistor Checks: I physically measured some resistors to confirm they match the BOM.
- Known Current Test: I tried a partial approach but the readings still show inflated current.
4. Questions
- Why might the amplifier or code still report 8–9 A if the supply is only 0.45 A?
- Could there be a second stage or firmware multiplier that’s boosting the reading?
- Is there a recommended method to measure the actual net gain or confirm the offset beyond the typical approach?
Any guidance or insight would be greatly appreciated. I suspect either a hidden second stage gain, incorrect offset usage, or a mismatch between BOM and real population. If anyone has seen similar overestimated current readings with TSV994 or a 0.01 Ω shunt, please share your debugging steps.
Thanks in advance!
