Quote of the Day

Whenever you want to marry someone, go have lunch with his ex-wife.

- Shelly Winter

## Introduction

A customer today requested an AC-output Uninterruptible Power Source (UPS) for our indoor Optical Network Termination (ONT) products. Product Management asked us to consider this unit from CyberPower. This unit, like most other AC-output UPS hardware, does not generate an actual sine wave output like the local power utility (Figure 1 – sine waves are what comes out of an AC outlet). Instead, it generates an output that is often referred to as a simulated sine wave (also known as a pseudo-sine wave, quasi-sine wave, modified sine wave, or Pulse-Width Modulated [PWM]). I thought it would be useful to look at the mathematics behind this type of output.

This backup power unit converts the DC voltage from the battery into a simulated sine wave that will imitate the behavior of a real sine wave for most loads. A pure sine wave inverter can be used in a lot of different ways so are worth looking into. A device that performs this operation is called an inverter. You might wonder why the backup power folks chose to put out a simulated sine wave rather than a true sine wave. Like most things in the engineering, the issue is one of cost. Another option one could look into is the Switch Mode Power Supply (SMPS). This is more cost-effective compared to a pure sine-wave inverter. You could find clear instructions that will assist you in troubleshooting switch mode power supplies at a faster rate on many websites.

Generating a pure sine wave is relatively expensive when compared to generating an approximation. For an example of a circuit for generating a bipolar (i.e. both positive and negative voltage levels) PWM output, see the Wikipedia. In my experience, the simulated sine wave works almost as well as a real sine wave for most applications. I have had a couple of instances that involve radio receivers where the simulated sine wave did not work well. In each case, the audio output was contaminated with noise that would not have existed with a real sine wave. I discuss the inverter that caused these issues in Appendix A. Other than those two cases, I have been able to successfully power everything from lights to computers using a simulated sine wave.

## Background

Calling the output of this UPS a "simulated sine wave" is a bit of a stretch. The power waveform from an outlet is a sine wave (purple waveform in Figure 2). Observe that the "simulated sine wave" (reddish-brown waveform in Figure 2) does not look like a sine wave at all -- it is a form of pulse-width modulation. As is shown in Figure 2, the power supply output has only three output levels*: +V _{A}*, 0 V, and

*-V*, where

_{A}*V*is amplitude of pulse-width modulation. Notice also that three time values are shown in Figure 2:

_{A}*T*: the time during each period that the voltage output stays at_{H}*V*_{A}*T*: the time during each period that the voltage output stays at_{L}*-V*_{A}*T*: the period of the signal

For the simulated sine wave to have zero DC level like that of the utilities' AC waveform, *T _{H}*=

*T*. We will define the duty cycle to be .

_{L}These backup units work by creating a pulse-width modulated output that has:

- an amplitude comparable to the amplitude of a standard AC sine wave
*V*_{A} - an RMS value (
*V*) that is comparable to a standard AC sine wave_{RMS} - the same period as the standard AC sine wave (60 Hz in North America)

We will use a bit of mathematics to derive the relationship between *V _{A}*,

*D*, and

*V*.

_{RMS}## Analysis

### Requirements

Most AC-input powered equipment will work if they are presented with a simulated sine wave voltage waveform that has the same:

*V*as the utility power sine wave_{A}*V*as the utility power sine wave_{RMS}*T*as the utility power sine wave

We will derive expressions that will allow us to determine the required *V _{A}* and

*V*values in terms of the nominal power line voltage and the duty cycle.

_{RMS}### Derivation

#### Voltage Amplitude

Determining the required voltage amplitude is the easy. In the US, the nominal AC voltage at the power meter is set by ANSI C84.1-2011 at 120 V (RMS). The amplitude of a sinusoid is related to its RMS value by Equation 1.

Eq. 1 |

So we should see our inverter putting out a voltage with an amplitude around 170 V.

#### RMS Voltage

Equation 2 shows how we can derive the relationship between *V _{A}*,

*D*, and

*V*.

_{RMS}Eq. 2 | Definition of RMS voltage | |

Positive and negative pulses are symmetrical, so I will just integrate over half a period | ||

The function is a constant during the on-portion of the duty cycle, zero otherwise | ||

Evaluate the integral | ||

Compute D for a North American power system |

This means that an inverter that generates a simulated sine wave with 170 V amplitude and a duty cycle of 50% will provide the same peak voltage amplitude and RMS voltage as is delivered from a North American wall outlet. For many applications, that is good enough.

### Real UPS Output Example

Lab Note: My oscilloscope did not want to display the whole waveform on the screen, so I ended up running the output through a resistor divider that reduced its level by a factor of 33.8. This division factor allowed me to display everything with a minimum of fuss. So all voltages you see going forward will need to be multiplied by 33.8 to get their actual value.

Let's take a detailed look at the output voltage from a CyberPower CP550HG, which is a commonly used backup unit for PCs. Figure 3 shows an oscilloscope screenshot of the unloaded output from the CP550HG. I was lazy today and did not do any analysis of my own on the signal -- I just let the oscilloscope compute things like RMS voltage and period.

The key characteristics from this plot are:

- Duty cycle of 49% (50% target)
- Frequency of 60.770 Hz (60 Hz target)
- Peak amplitude of 181 V = 33.8·10.7V/2 (170V target)
- RMS output voltage of 125.2 V = 33.8·3.704 V (120 V target)

The numbers measured are all within the range I would have expected for this unit. Since these are numbers were measured with zero load, I would expect them to be a bit high and they are.

See Appendix A for the data I measured from an inverter I use to run my computer when I am in my car. This is a very cheap unit and its numbers are a bit different because their design goals were different.

## Conclusion

I was able to derive the amplitude and duty cycle required for a simulated sine wave inverter to behave similarly to a North American 120 V power waveform and I verified this derivation with an actual test case from the lab. The values I measured were all as I would have expected.

### Appendix A

Here is the Black and Decker inverter I use in my car (Figure 4). Overall, it has worked well for me over the past few years. However, it did corrupt the audio output from a couple of radios that I was trying out.

Here is a plot of its output (Figure 5).

It has a lower peak voltage than the CyberPower. They compensate for this by making the duty cycle longer, which increases the RMS voltage. This is the unit that has caused me trouble powering some radio gear.

I would summarize its characteristics as follows.

- Duty cycle of 80%
- Frequency of 59.6 Hz
- Peak amplitude of 136.9 V
- RMS voltage of 117.6 V

Since this unit does not have the same peak voltage as a utility sine wave, I would expect it may have some issues driving some types of loads and I have seen issues (mentioned above). They probably made the decision to reduce the output voltage because generating higher voltages costs more than generating lower voltages -- and cost drives everything in consumer products.

Excellent explanation. I'm learning about solar power at the moment, and in that community modified sine wave inverters are much disparaged, to the point I'm afraid to use them for anything but running basic motors. According to many online sources, I run the risk of ruining other electronics if I run them for prolonged periods using MSW. That made me think of UPS systems--Surely they must utilize pure sine wave technology if MSW is so detrimental. As you've so well explained, they do not. I'm still not entirely sure I want to trust them, but you've provided some good data points. Thank you!

Good work thanks

Why computers with active filter SMPS won't work properly with Simulated sine wave?

There certainly can be issues. For example, Dell warns people about potential issues with inverters that use step-sine wave approximations. Here are some things I have personally seen or have been told about:

For these reasons, you can buy true-sine wave inverters, but they are expensive.

mark

Pingback: What would happen if you filtered brushless motor PWM into a DC voltage? - HeliFreak