completelycharged
Active member
- Joined
- Mar 7, 2018
- Messages
- 1,083
Looking at the spec sheet for the INA260 the accuracy is going to be an interesting problem because it's designed to work with relatively stable loading. I was hoping that the trigger mode would allow for an external trigger input (rising or falling edge of the PWM) but the trigger pin is driven from internal criteria only. Even thought the trigger pin could be used to create the PWM by a bit of hokey pokey, yes not in a manner that would make the results easy to interpret, deep rabbit hole. The Fig.13. Frequency Response plot is relatively trouble free upto about 200Hz.
The ADC does not seem to specify a sample and hold type ADC so switching transitions of the load will cause more detectable singular sample errors. This critically also limits the upper load frequency and may require a formula to convert the INA260 values to the "actual" values. This is because if the INA is sampling at say 1mS and the load is 1kHz (50/50) the load is only on for 0.5mS and the measured ADC value will be lower than the actual value by some function as to how the ADC works (e.g. successive approximation). With a rising edge the ADC may chase the measurement to the top but on a falling transition the ADC would stop at some random point and this random value would occur as a function of frequency. As the frequency rises the measured value will decrease more and more below the actual value on sample averaging approach.
I'm wondering if triggered sampling mode (write to register to trigger conversion of one sample only - no averaging) on the INA260 can then remove over 95% of detectable current measurement errors (switch off transitions) by filering with a maximum expected allowable deviation.
The ADS1115 does not have an extrernal trigger either, unfortunately. Searching web for parts...
So... low frequency testing may be better driven from a pin rather than the servo controller PWM output, but the frequency limit will be quite low. Higher frequency will have to average a lot more samples and also be limited below 1kHz without further interpretation of measuements.
The ADC does not seem to specify a sample and hold type ADC so switching transitions of the load will cause more detectable singular sample errors. This critically also limits the upper load frequency and may require a formula to convert the INA260 values to the "actual" values. This is because if the INA is sampling at say 1mS and the load is 1kHz (50/50) the load is only on for 0.5mS and the measured ADC value will be lower than the actual value by some function as to how the ADC works (e.g. successive approximation). With a rising edge the ADC may chase the measurement to the top but on a falling transition the ADC would stop at some random point and this random value would occur as a function of frequency. As the frequency rises the measured value will decrease more and more below the actual value on sample averaging approach.
I'm wondering if triggered sampling mode (write to register to trigger conversion of one sample only - no averaging) on the INA260 can then remove over 95% of detectable current measurement errors (switch off transitions) by filering with a maximum expected allowable deviation.
The ADS1115 does not have an extrernal trigger either, unfortunately. Searching web for parts...
So... low frequency testing may be better driven from a pin rather than the servo controller PWM output, but the frequency limit will be quite low. Higher frequency will have to average a lot more samples and also be limited below 1kHz without further interpretation of measuements.