Ina219 Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
INA219 Bidirectional Current/Power monitor.
The INA219 is a high-side current shunt and power monitor with an I2C interface. The INA219 monitors both shunt drop and supply voltage, with programmable conversion times and filtering. A programmable calibration value, combined with an internal multiplier, enables direct readouts in amperes. An additional multiplying register calculates power in watts. http://www.ti.com/lit/ds/symlink/ina219.pdf
public class Ina219 : IDisposable
[System.Device.Model.Interface("INA219 Bidirectional Current/Power monitor")]
public class Ina219 : IDisposable
type Ina219 = class
interface IDisposable
[<System.Device.Model.Interface("INA219 Bidirectional Current/Power monitor")>]
type Ina219 = class
interface IDisposable
Public Class Ina219
Implements IDisposable
- Inheritance
-
Ina219
- Attributes
- Implements
Constructors
Ina219(I2cConnectionSettings) |
Construct an INA219 device using an I2cConnectionSettings. |
Ina219(I2cDevice) |
Construct an Ina219 device using an I2cDevice |
Properties
BusAdcResolutionOrSamples |
Set the Ina219 ADC resolution or samples to be used when reading the Bus voltage. |
BusVoltageRange |
Property representing the Bus voltage range of the INA219 |
OperatingMode |
Property representing the Operating mode of the INA219 |
PgaSensitivity |
Property representing the voltage range of the Programable Gain Amplifier used in the INA219 to measure Shunt Voltage. |
ShuntAdcResolutionOrSamples |
Set the INA219 ADC resolution or samples to be used when reading the Shunt voltage. |
Methods
Dispose() |
Dispose instance |
ReadBusVoltage() |
Read the measured Bus voltage. |
ReadCurrent() |
Read the calculated current through the INA219. |
ReadPower() |
Get the calculated power in the circuit being monitored by the INA219. |
ReadShuntVoltage() |
Read the measured shunt voltage. |
Reset() |
Reset the INA219 to default values; |
SetCalibration(UInt16, Single) |
Set the INA219 calibration value used to scale the Shunt voltage into a Current reading. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for