RobTillaart / INA3221_RT

Arduino library for the I2C INA3221 3 channel voltage and current sensor.
MIT License
12 stars 1 forks source link

Reading time not changing with "setBusVoltageConversionTime" #8

Open joachymus opened 4 hours ago

joachymus commented 4 hours ago

Hi all,

I am just playing with INA3221 and this amazing library. Unfortunately, I am not sure whether the setting functions (average, busConvTine, ShuntConvTime) work properly/at all. I cannot tell from the values but there is definitely no "time spent" change. I do all readings within a micro second regardless what values are set to those parametres...

With all zeros: INA.setAverage(0); INA.setBusVoltageConversionTime(0); INA.setShuntVoltageConversionTime(0); the reading is done within the same time as with all sevens: INA.setAverage(7); INA.setBusVoltageConversionTime(7); INA.setShuntVoltageConversionTime(7);

I am not an expert but if feels improper... Am I misunderstanding anything here? Please advise.

Thanks in advance and have a great day.

Br, j.

RobTillaart commented 3 hours ago

Thanks for reporting the issue, At the moment I have more than a dozen issues open and try to work through it. When time permits I will try to have a first look this weekend.

Rob