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

Implementation file for the SparkFun INA237 power monitor driver. More...

#include "sfDevINA237.h"

Detailed Description

Implementation file for the SparkFun INA237 power monitor driver.

This file implements INA237-specific measurement methods including 16-bit register reads and the INA237 calibration formula.

INA237 ADC Details:

  • 16-bit ADC
  • VSHUNT/VBUS/CURRENT registers are 16 bits wide
  • POWER register is 24 bits wide (unsigned)
  • No ENERGY or CHARGE registers
  • Shunt LSB: 5 uV (ADCRANGE=0) or 1.25 uV (ADCRANGE=1)
  • Bus LSB: 3.125 mV
  • Temp LSB: 125 m-deg-C (data in bits [15:4], 12-bit)
  • Calibration scale: 819.2 x 10^6 (x4 for ADCRANGE=1)
Author
SparkFun Electronics
Date
2025

SPDX-License-Identifier: MIT

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