This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Ti energy library msp430 phase to phase voltage calculation

Hi,

 I am working with msp340f6779 based 3 phase energy meter with TI energy library provided. I am able to measure phase to neutral voltage, now I want to measure phase to phase voltage, but is not given in the TI energy library. Is there any library which support phase to phase voltage??

Or can anyone help me with phase to phase voltage calculation or with formulas for doing the same

Thanks in advance

Anand

  • Hi Anand,

    We don't have a library to do phase to phase that I am aware of, but I can walk you through the changes you need to make to the library to implement phase to phase measurements.  I've also notified some of our metering experts to help assist if necessary.

    In the metrology-background.c file, there is a function called per_sample_dsp() that runs inside of the ADC ISR for every sample.  In this function, the sample gets saved to V_sample with this line of code (where 'ph' is the phase that is being manipulated at that time):

    V_sample = adc_v_buffer[ph];
    

    Then a few lines later, the value gets squared as part of the root-mean-square calculation:

    #if defined(SAG_SWELL_SUPPORT)
        sqac_voltage(phase->metrology.V_sq_cycle, V_sample);
    #else
        sqac_voltage(phase_dot_products->V_sq, V_sample);
    #endif
    

    In between these lines, you should add the modification that compares V_sample to the sample for the next phase by subtracting it out.  E.g., for phase 0, you should subtract phase 1; for phase 1, subtract phase 2; and for phase 2 subtract phase 0.  Then that this difference and square it, then continue the rest of the library.

    Mike

  • The next version of the energy library will have the option to measure phase-to-phase voltages using the differencing technique Mike described. It works well, but it does assume time alignment between the ADCs. If there are significant differences between the phase shifts caused by the three voltage ADC input filters, due to component tolerances, this might compromise accuracy. It shouldn't be too serious an issue, but it is something to be aware of, and check.

  • Hi, 

    Thank you, for the prompt reply. Sorry for the late response. anyway I will try the way you guided. 

  • Anand,

    Did you have any additional questions? If not, I will close this thread. You can always reopen it later if necessary.

    Mike
  • Hello mike can you please help me with the post which i have posted today. the link is below
    e2e.ti.com/.../497322
  • Hello steve,
    can you please help meto solve the issue, which i have posted today. the link is below

    e2e.ti.com/.../497322
  • I responded in the other thread.

**Attention** This is a public forum