Close

Calibration Tool for MetaShunt

A project log for MetaShunt: High Dynamic Range Current Measurement

A low-cost and accurate tool for analyzing the power consumption of ultra-low power and IoT devices with rapidly changing current usage

jake-wachlinJake Wachlin 08/17/2025 at 02:350 Comments

To enable improved accuracy of MetaShunt V2, it would be nice to be able to calibrate at each of the 8 gain stages. With this in mind, I developed a high dynamic range current supply. To test the concept before ordering a custom PCB, I developed an equivalent breadboard version with the first 5 gain stages, seen below. The actual design has isolated power and isolated communications, so it can be connected to the same USB hub as MetaShunt without issue. This prototype however is not isolated, and so was powered by an external USB battery pack. An Adalogger M0 is used to control the gain stages, changing them every few seconds while I record the measured current on MetaShunt V2.

I measured all of the relevant resistors and voltage reference in this design, and calculated the sourced current. Then I measured the current with MetaShunt V2 and compared the difference. The real design will use highly accurate components (0.1% resistors, 0.2% voltage reference, etc.) but for this test I am just measuring the components with a multimeter (accuracy unknown).

Expected CurrentMeasured CurrentError
2.39uA2.39uA0.0%
27.2uA27.35uA0.55%
254.4uA255.7uA0.51%
279.2uA280.2uA0.36%
2.525mA2.528mA0.12%
2.801mA2.801mA0.0%
24.813mA24.685mA-0.52%
27.615mA27.415mA-0.7%

So overall, fantastic accuracy across the board, and proved out the concept! Next step is to build the full system and build automatic calibration software for MetaShunt to improve it's accuracy even further. Nonetheless, even without calibration, MetaShunt is currently within 1% of the true current across 5 orders of magnitude in this testing!

Discussions