Texas Instruments INA219 Element
The INA219 element is used to measure current and power consumption. This element is for using the Texas Instruments INA219 current/power monitor.
The INA219 is a sensor element that can be imported into the Element Toolbox through the Add Element button located in the toolbox from the Embedded tab.
The following properties can be changed for the INA219 element:
The name of the element.
I2C Driver Instance
The I2C bus used to communicate with the sensor.
The I2C address the element sends data to.
Shunt Resistor Value (Milli-Ohms)
The resistance value of the shunt resistor. The INA219 requires a calibrated resistor for the shunt.
The sensitivity gain for the sensor.
The default voltage range for the sensor.
Bus ADC Resolution
The resolution (in bits) for the ADC that samples the sensor’ bus line.
Shunt ADC Resolution
The resolution (in bits), sample rate, and sample time for reading the shunt’s voltage. Increasing this value will make voltage readings more accurate, but will take longer to sample.
The following triggers are available to execute events from within the INA219 element:
Execute an event when the source element connected to the INA219 triggers.
Execute an event when current data is read (in micro-amps).
Bus Voltage Read
Execute an event when bus voltage data is read (in milli-volts).
Execute an event when power data is read (in milli-watts).
Shunt Voltage Read
Execute an event when shunt voltage data is read (in milli-volts).
The following abilities are available for the INA219 element when its source element triggers:
Trigger the element(s) that follow the INA219 element.
Read the sensor’s current data.
Read Bus Voltage
Read the sensor’s bus voltage data.
Read the sensor’s power consumption data.
Read Shunt Voltage
Read the sensor’s shunt voltage data.