Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

timers, gpio's connected to logic analyzers

Measuring Energy Consumption

...

There are two main approaches to measuring execution time. In one of them, let’s call it internal, we rely on some timer already available in our board, and use it to keep track of certain interesting events that we want to measure. While this approach is simple, it has the downside of consuming some energy, which may impact other concurrent measurements. The second approach is the external, where an instrument such as a logical analyser is connected to one or more GPIOs in the board. Then, we want to log an event, we toggle those GPIOs on or off, and have them logged over time by the external instrument software.

Measuring Energy Consumption

multimeters, oscilloscopes, power profilers

The way to measure energy consumption consists in connecting the device to an external instrument, such as multimeter, oscilloscope or power profilers, that can measure current draw.

Multimeters can be used to read the current consumption at a given point in time, but do not allow automating measurements or taking them over time.

TODO: I don’t know how to set up the hardware part of measuring with an osciloscope

A more sophisticated and accurate way of measuring energy consumption consists in using a power profiler, such as the nRF Power Profiler Kit and the Otii Arc Pro. One advantage of the latter is that it is designed to be board-agnostic, so we will select it as the instrument for this tutorial.

Correlating Execution Time and Energy Consumption

...