INA260 have two fetures to average and make the signal better the time to take the sample and the oversampling of the signal. How to combine this to the software.
I have a signal that is from a motor and this signal is quite jumping up and down. key for me is to get the most accurate average reeding and hopfully can calculate the Wh it consumes as close as posible.
So the question is :
What is the best aproche to make this? have the fast sampling and 1024 averaging or to have both the long sampling and 1024 averaging. Then how to tie this to the software ? should i sample 1 pr ms or should i sample like if i have 8.244ms sampling time and 64 times oversmapling then only read the sensor 1 time in the combined 8.244ms*64 + some delay to secure tolerances for the reading or should i sample still at 1ms ?
My hope was that by having 8.244ms sampling time and then 1024 i can cover the full time of this 8.244ms*1024 and only read it once in this cycle to get a accurate average current!