PSU Energy - DC - System

What it does

It measures the DC energy by intercepting the cable pathway from the PSU to the ATX mainboard connector.

Classname

  • PsuEnergyDcSystemProvider

Prerequisites

The provider requires special hardware to work:

The provider is designed to only work with the 12-Pin ATX format from Fujitsu and assumes that all 12 V power rails are funneld together and sent over one shunt resistor.

The 11 Vsb and PWR_ON, PWR_OK rails are ignored as they carry not load.

The resistor is assumed to be a [Isabellenhütte PBV 0,005 Ohm](Isabellenhütte PBV 0,005 Ohm).

ATX original pinout
ATX Y-Cable to connect shunt resistor and mainboard
Shunt resistor wiring on Terminal Board

Configuration

The provider is designed to run at a fixed sampling frequency of 61 ms, which is the maximum resolution the PicoLog HRDL ADC-24 can provide for one channel.

Please do not change this value in the config.yml

The provider will configure the PicoLog HRDL ADC-24 into streaming mode with 60 ms frequency sampling and capture the data every 61 ms

Input Parameters

  • args
    • -i: interval in milliseconds

By default the measurement interval is 1000 ms, which however is only for testing purposes.

As stated in the paragraph before the provider should always be used with 61 ms samling frequency

> ./metric-provider-binary -i 61

Output

This metric provider prints to Stdout a continuous stream of data. The format of the data is as follows:

TIMESTAMP READING

Where:

  • TIMESTAMP: Unix timestamp, in microseconds
  • READING: The measured energy in millijoules

Any errors are printed to Stderr.

Troubleshooting

If you cannot get a reading from the PicoLog HRDL ADC-24 try disconnecting the USB and reconnecting. It is very prone to getting stuck in the capture loop and then does not accept connections anymore.