TIDUEM8B March   2019  – February 2021

 

  1.   1
  2.   2
  3.   3
  4.   4
  5.   5
  6.   6
    1.     7
      1.      8
      2.      9
    2.     10
  7.   11
    1.     12
    2.     13
      1.      14
      2.      15
      3.      16
      4.      17
      5.      18
      6.      19
      7.      20
      8.      21
      9.      22
      10.      23
    3.     24
      1.      25
        1.       26
        2.       27
        3.       28
        4.       29
          1.        30
          2.        31
      2.      32
        1.       33
          1.        34
          2.        35
          3.        36
          4.        37
          5.        38
          6.        39
          7.        40
        2.       41
          1.        42
        3.       43
          1.        44
            1.         45
            2.         46
          2.        47
          3.        48
  8.   49
    1.     50
      1.      51
      2.      52
        1.       53
          1.        54
          2.        55
        2.       56
      3.      57
    2.     58
      1.      59
        1.       60
        2.       61
        3.       62
          1.        63
          2.        64
            1.         65
            2.         66
              1.          67
                1.           68
                2.           69
              2.          70
              3.          71
      2.      72
        1.       73
        2.       74
  9.   75
    1.     76
    2.     77
    3.     78
      1.      79
    4.     80
    5.     81
    6.     82
  10.   83
    1.     84
  11.   85
  12.   86
Voltage and Current Signals

For a one-voltage configuration, reverse the orientation for the line B current measurement with respect to the line-to-line voltage measurement for the power readings to have the proper sign. Instead of reversing the CT connections to switch the orientation of the line B current measurement, line B raw current samples are negated for the one-voltage configuration, which allows switching between two-voltage configuration and one-voltage configurations in software without having to rewire the CT to board connections. The test software of the design has support for storing the raw voltage and current ADC values for phase A or phase B, regardless if the one-voltage configuration or two-voltage configuration is selected.

The raw ADS131M04 samples are signed integers and any stray DC or offset value on these converters are removed using a DC tracking filter. A separate DC estimate for all voltages and currents is obtained using the filter, voltage, and current samples, respectively. This estimate is then subtracted from each voltage and current raw ADC sample.

The resulting instantaneous voltage and current samples are used to generate the following intermediate results:

  • Accumulated squared values of voltages and currents, which is used for VRMS and IRMS calculations, respectively
  • Accumulated energy samples to calculate active energy
  • Accumulated energy samples using current and 90° phase-shifted voltage to calculate reactive energy

The foreground process processes these accumulated values.