Phase Shift Calculator (Using Oscilloscope)
Determine the phase difference between two sine waves using the Lissajous figure method.
Lissajous Figure Calculator
Calculated Phase Shift
0.52 rad
0.50
In Phase
Dynamic Lissajous Figure
What is Phase Shift?
In electronics and signal processing, a phase shift refers to the angular difference between two sinusoidal waveforms of the same frequency. It quantifies how much one wave leads or lags behind another in time. This concept is crucial for analyzing AC circuits, control systems, and telecommunications. When you need to calculate phase shift using an oscilloscope, one of the most intuitive methods is by observing Lissajous figures, which graphically represent the relationship between two signals.
This calculator is designed for engineers, technicians, and students who need to quickly determine the phase difference by measuring key points on a Lissajous pattern displayed on an oscilloscope screen.
Phase Shift Formula and Explanation
When an oscilloscope is set to XY mode, with one signal fed into the horizontal input (X) and another into the vertical input (Y), it generates a Lissajous figure. If the frequencies are identical, this figure will be a stable ellipse (or a circle/line in special cases). The phase shift (Φ) can be calculated from the geometry of this ellipse.
The formula is:
Φ = arcsin(A / B)
Where ‘A’ is the Y-intercept and ‘B’ is the maximum Y-amplitude. This provides the phase angle in radians, which can be easily converted to degrees.
| Variable | Meaning | Unit (Auto-inferred) | Typical Range |
|---|---|---|---|
| Φ (Phi) | The resulting phase shift angle. | Degrees (°) or Radians (rad) | 0° to 90° (for this method) |
| A | The Y-intercept: distance from the center to where the ellipse crosses the vertical axis. | Divisions, cm, mm, Volts | 0 to B |
| B | The maximum vertical amplitude of the ellipse. | Divisions, cm, mm, Volts | Greater than 0 |
Practical Examples
Example 1: Small Phase Shift
An engineer is testing a filter circuit. On the oscilloscope, the Lissajous figure is a narrow ellipse.
- Inputs:
- Y-Axis Intercept (A): 0.8 Divisions
- Maximum Y-Amplitude (B): 3.2 Divisions
- Calculation: Φ = arcsin(0.8 / 3.2) = arcsin(0.25)
- Results:
- Phase Shift: 14.48°
- This indicates the two signals are nearly in phase.
Example 2: Quadrature Phase Shift
Two signals are fed into the oscilloscope, producing a perfect circle.
- Inputs:
- Y-Axis Intercept (A): 2.5 cm
- Maximum Y-Amplitude (B): 2.5 cm
- Calculation: Φ = arcsin(2.5 / 2.5) = arcsin(1)
- Results:
- Phase Shift: 90°
- This is known as a quadrature phase shift, common in certain oscillator circuits.
For more details on setting up your equipment, see this guide on setting up your lab.
How to Use This Phase Shift Calculator
- Set Up Oscilloscope: Connect your two signals to the vertical (CH1) and horizontal (CH2) inputs. Set the oscilloscope display mode to XY. Center the resulting Lissajous figure on the graticule.
- Measure A: Measure the distance from the central horizontal axis to the point where the ellipse crosses the central vertical axis. This is your ‘Y-Axis Intercept (A)’.
- Measure B: Measure the distance from the central horizontal axis to the highest (or lowest) point of the ellipse. This is your ‘Maximum Y-Amplitude (B)’.
- Select Units: Choose the unit you used for measurement (e.g., Divisions, cm). It is critical that both A and B are measured using the same unit.
- Enter Values: Input your measured values for A and B into the calculator.
- Interpret Results: The calculator instantly provides the phase shift in degrees and radians, the A/B ratio, and a visualization of the corresponding Lissajous figure.
Key Factors That Affect Phase Shift Calculation
- Frequency Stability: The method requires both signals to be at the exact same frequency. Any drift will cause the Lissajous figure to rotate, making measurement impossible.
- Signal Purity: This method works best for pure sine waves. Distortion or noise can warp the shape of the ellipse and lead to inaccurate results. A tutorial on understanding sine waves can be helpful.
- Measurement Accuracy: Parallax error and the thickness of the trace on the oscilloscope screen can limit the precision of your A and B measurements.
- Oscilloscope Calibration: Ensure your oscilloscope’s vertical and horizontal amplifiers are correctly calibrated for accurate geometric representation.
- Centering: The ellipse must be perfectly centered on the screen’s axes to ensure the A and B measurements are referenced correctly from the origin.
- Gain Settings: Adjust the vertical and horizontal gain (Volts/Div) to make the figure large enough to measure accurately, but without clipping it at the edges of the screen.
Frequently Asked Questions (FAQ)
A straight line indicates a phase shift of 0° (if sloped up and to the right) or 180° (if sloped down and to the right).
A circle indicates a 90° phase shift and equal amplitudes for both signals.
This specific formula, Φ = arcsin(A/B), only resolves angles between 0° and 90°. To determine if the angle is, for example, 150° instead of 30°, you must observe the slope of the ellipse. An ellipse tilted from top-right to bottom-left indicates a phase angle between 90° and 180°.
The calculation is based on the ratio of two physical measurements on the screen. If you measure A in ‘cm’ and B in ‘divisions’, the ratio will be meaningless and the calculate phase shift using oscilloscope result will be incorrect.
In the standard time base mode, both channels are plotted against time. In XY mode, the voltage of one channel is plotted against the voltage of another, which is necessary for Lissajous figure analysis.
This method is specifically for sinusoidal waveforms. Applying it to square or triangle waves will produce different shapes, and the arcsin formula will not yield a correct phase shift value. Our guide on waveform analysis techniques covers other signals.
While the frequency value itself isn’t in the formula, the two signals must have an identical frequency for the pattern to be stable. If frequencies differ, you’ll see a rotating or complex pattern, not a static ellipse. You can explore this with our frequency to wavelength calculator.
It’s often used to analyze the phase relationship between voltage and current in reactive components like capacitors and inductors in an AC circuit. Learn more about AC circuits here.
Related Tools and Internal Resources
Explore other calculators and learning materials to expand your electronics knowledge.
- Ohm’s Law Calculator: For fundamental DC circuit calculations.
- Frequency to Wavelength Calculator: Convert between frequency and wavelength for electromagnetic waves.
- Oscilloscope Basics: A beginner’s guide to using an oscilloscope.
- Understanding AC Circuits: An introduction to the concepts of impedance and phase in AC systems.
- Guide to Setting Up Your Electronics Lab: Tips on essential equipment for your workspace.
- What is a Sine Wave?: A deep dive into the properties of sinusoidal waveforms.