Skip to main content
Measure power consumption from watt meter nets. Supports Yocto-Watt, Joulescope JS220, and Nordic PPK2 hardware.

Import

Methods

Method Reference

Net.get(name, type=NetType.WattMeter)

Get a watt meter net by name.
Parameters: Returns: Watt meter Net instance

read()

Read the current power consumption. Available on all watt meter hardware.
Returns: float - Power in watts

read_current()

Read the current in amps. Joulescope JS220 and Nordic PPK2.
Returns: float - Current in amps

read_voltage()

Read the voltage in volts. Joulescope JS220 and Nordic PPK2.
Returns: float - Voltage in volts

read_all()

Read current, voltage, and power in a single atomic measurement. Joulescope JS220 and Nordic PPK2. This is more efficient than calling read_current(), read_voltage(), and read() separately, as all values come from the same sample window.
Returns: dict with keys:

The duration parameter

read(), read_current(), read_voltage() and read_all() take duration, the averaging window in seconds. The default is 0.1.

read_average(duration)

Joulescope JS220 only. Return the gapless average current, voltage and power over a long window. It uses the instrument’s charge and energy accumulators, so it holds no samples and drops no data.
Returns: dict with keys current, voltage and power

Examples

Basic Power Reading

Joulescope Full Measurement

Power Profiling

Battery Life Estimation

Power Limit Verification

Sleep Current Verification (Joulescope)

Supported Hardware

Hardware Feature Comparison

Notes

  • Power is returned in watts (W)
  • Joulescope JS220 averages measurements over 0.1 seconds for higher precision
  • Nordic PPK2 averages measurements over 0.3 seconds and operates in source mode, where it supplies a configurable voltage of 0.8–5V. Voltage readings therefore reflect the configured value, not an independent measurement
  • read_current(), read_voltage(), and read_all() are available on the Joulescope JS220 and Nordic PPK2; calling them on a Yocto-Watt raises UnsupportedInstrumentError, a RuntimeError
  • For current on Yocto-Watt: calculate from power and known voltage (I = P / V)
  • Use multiple readings and averaging for stability
  • Allow settling time after device state changes