SparkFun INA2XX Arduino Library  v1.0.0-3-gc9007d6
Arduino Library for the SparkFun Qwiic Power Monitor (INA228 / INA237)
Loading...
Searching...
No Matches
sfDevINA228.h File Reference

Header file for the SparkFun INA228 high-precision power monitor driver. More...

#include "sfDevINA2XX.h"

Go to the source code of this file.

Classes

class  sfDevINA228
 INA228 high-precision power/energy/charge monitor driver. More...
 

Detailed Description

Header file for the SparkFun INA228 high-precision power monitor driver.

sfDevINA228 extends sfDevINA2XX with INA228-specific measurement capabilities:

  • 20-bit ADC with 24-bit measurement registers (VSHUNT, VBUS, CURRENT)
  • 24-bit POWER register
  • 40-bit ENERGY and CHARGE accumulation registers
  • High-precision LSB scaling (312.5 nV shunt, 195.3125 uV bus, 7.8125 m-deg-C temp)
  • Calibration using scale constant 13107.2 x 10^6

The measurement bodies themselves live once in sfDevINA2XX as individually templated/parameterized helpers; the methods below are thin forwarders that pass the INA228 types and constants. Like the base class, every method returns a SparkFun Toolkit error code; measured values are returned through reference (output) parameters.

Author
SparkFun Electronics
Date
June 2026

SPDX-License-Identifier: MIT

See also
https://github.com/sparkfun/SparkFun_INA2XX_Arduino_Library