Import
Methods
Method Reference
Net.get(name, type=NetType.WattMeter)
Get a watt meter net by name.
Returns: Watt meter Net instance
read()
Read the current power consumption. Available on all watt meter hardware.
float - Power in watts
read_current()
Read the current in amps. Joulescope JS220 and Nordic PPK2.
float - Current in amps
read_voltage()
Read the voltage in volts. Joulescope JS220 and Nordic PPK2.
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.
dict with keys:
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; operates in source mode (supplies a configurable voltage 0.8–5V), so voltage readings reflect the configured value, not an independent measurement
read_current(),read_voltage(), andread_all()are available on the Joulescope JS220 and Nordic PPK2; calling them on a Yocto-Watt will raise an error- 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

