Skip to main content

Otii and short pulses

Otii and short pulses

January 10, 2020

Let’s start with the facts: Otii Arc has a sample rate of 4ksps for current and 1ksps for voltage. If you’re wondering how shorter pulses affect energy measurement accuracy, you’ve come to the right place!

Our investigation

We used pulses of 1us, 10us, 100us, 1ms, 10ms and 100ms. The current in these pulses was roughly 25mA. There was no current consumption between the pulses, except for a small leakage of single-digit nA. We’ll refer to it as zero-current consumption.

So, here’s what we did to verify Otii measurement accuracy for short pulses. Feel free to follow these steps and try it out for yourself:

  1. Measure the energy in the pulse with Otii
  2. Subtract the Otii zero-current energy measurement
  3. Use an oscilloscope to get the pulse width and voltage
  4. Calculate the current required to get the Otii measured energy, based on the oscilloscope data

    Checkpoint: You now have a calculated Otii current for the pulse.
  5. Based on 100ms and 10ms measurements, calculate the error created in the oscilloscope based current calculation
  6. Compensate the Otii calculated current with the oscilloscope error

Checkpoint: You now have an oscilloscope error compensated Otii measured current. Remember that the oscilloscope has also provided you with data concerning the pulse.

Result: You now know the error created from different pulses.

We repeated our measurement 10 times to find variations and to calculate an average error. We recommend that you do the same.

Our conclusions

We used pulses of 100ms and 10ms to get a feeling of the error that occurs when we move from current measured with Otii to current calculated from energy. Why these pulses, you ask? We chose them because we can trust the Otii current measurements for these pulse lengths. As you might remember, we used oscilloscope data, i.e. pulse length and voltage, to calculate the current from energy. The reason is that, at shorter pulses, we don’t have voltage measurement samples from Otii.

PulseCurrent, calculated from energyCurrent, measured with OtiiError

When moving to shorter pulses, we cannot compare with Otii measured current. Instead, we need to compare the current calculated from energy with the current measured with the oscilloscope. Measure the voltage drop over a resistor in-line with the load, or – as we did – over a part of the load, since we have it divided into two parts. After this, you can calculate the current flowing through the load. If nothing else is connected to Otii Arc, Otii should give you the same value.

PulseCurrent, calculated from oscilloscopeCurrent, measued with OtiiError

When we use current calculated from oscilloscope values, we can see that the error is roughly 2 % compared to Otii measured current. As we use this knowledge and follow steps 1 to 7 above, we reach the following result:

PulseCurrent, calculated from energyCurrent, calculated from oscillscopeError, compensated with 2% oscilloscope errorStandard deviation for compensated error

So, this is very interesting. Why does the error suddenly decrease when we go below 100us pulse? Our explanation: a switch between measurement ranges takes roughly 10us. For a 10us and 1us pulse Otii Arc has no time to switch. In other words, Otii Arc remains in high accuracy mode.

The increase in standard deviation between a 1us and 10us pulse shows that the individual error, for one pulse, is higher. We haven’t concluded that the error is normally distributed, so we only use this value as a comparison to show how much it varies from pulse to pulse. We’d also like to point out that, because the amount of energy in these pulses is so small, there are many other sources of inaccuracies that will have an impact on battery life.

Become a member of our community

Gain access to exclusive resources, educational materials, and expert advice to enhance your knowledge and understanding of powering IoT devices and battery testing.