I am considering using the INA219 in a design. Here is a brief overview of this particular part of the circuit:
Bus Voltage: 6.7V
Load: 50ohms
Max expected current : 134mA
Min expected current: 0 mA
We need to digitally control the power delivered to the load. Therefore, a MOFET will be put between the load and ground. It will be switched on/off via MCU PWM. Modifying the duty cycle will change the average power. We have verified that this method works, however we need a way to monitor power being delivered to the load.
The PWM signal has to be above about 20kHz to get out of the audible frequency range. I am aware I cannot use an RC filter before the INA219 because the series resistance will produce errors in the results.
1) Can I use the INA219 for this application? I do not need instantaneous power. Since the ADC is a delta-sigma converter, can I just oversample the signal and the device will produce an average? Or is there a limiting factor I am overlooking?
2) How would I calculate a shunt value for this? For more accurate results, would I have to manually change the PGA gain for what I would expect the power to be?
Thanks,
Mark