Electronic – Detect Phase Difference 360 Degrees

phase

Let's say I have two sine waves that are both DC offset to have no negative values, the measurement I want is the phase difference between these waves. When researching I've only seen detectors that give the phase difference up to 180 degrees, saying that if you want a 360 degree range you just need to figure out the quadrant. What I mean is that if the difference is outputted as 180 degree max difference, I can get a 360 range simply by telling if I am in the negative or positive range of the signal (speaking abstractly considering it's a DC biased AC waveform). However, I am at a loss as to how to do this, any help would be greatly appreciated.

This is for a laser range finding application. I am utilizing multi-frequency phase shift measurements to determine the distance. That is, I am modulating the laser by a sine wave (varying frequencies depending on the distance, all in the MHz range) and then measuring the phase difference between my modulating waveform and the waveform received by the photodiode. I have a phase comparator now that gives a 0-180 range. I can work with a 0-180 degree range except for it limits my max distance calculation to half the modulating frequency wavelength (and less precision).

Also, I am aware a 2*pi shifted waveform is indistinguishable from the original, to clarify I suppose, I just need to know the full range of phase shift within a 360 degree range.

EDIT: After some research it seems my answer is a double balanced mixer operating as a phase comparator in saturated mode (limiter). This seems to indicate that an imbalance in the dB levels of the two signals are not as important (within reason). However, the output of such a setup is still a DC output ranging from 0-180 degrees. So, hopefully the answer lies in figuring out if it is possible to adapt or add to such a mixer setup that gives me further info as to which quadrant the phase is in so I can tell if it's -180 to 0 or 0 to +180.

Best Answer

Why bother with phase at all?

The original question poses the problem of phase disambiguation over the entire unit circle for a (sine-driven) frequency modulated laser. The core approach, as proposed, will never achieve the stated aim because you need more information to disambiguate phase over 360deg than you have in a single frequency reflection scheme (which is ultimately what the originally described modulated then demodulated and phase differenced system boils down to).

However, if you just want distance, why not use the conventional Frequency Modulated Continuous Wave LIDAR approach? To get there from your proposal, just change your sine wave to a saw-tooth wave and look at the frequency difference between transmit and received signals instead of the phase difference.

Like so:

enter image description here

The saw-tooth (or "chirp") driven frequency modulation maps propagation distance/delay into frequency shift. Multiple targets are now separated by the frequency of their return signals (3 reflecting targets shown in the figure). The dashed lines indicate echoes from reflecting objects in the environment. The dashing is not intended to indicate gaps in the spectrum.

You need transmitter identity

If you insist on a phase-of-arrival (PoA) approach, a simple permutation to your original proposal would be to add a second laser and use phase-difference-of-arrival (PDoA) between them.

In order for a difference to be unambiguous over 360deg, you must be able to determine the transmitter's (e.g. reference signal's) identity (which laser transmitted the received reflection) in order to determine phase lag vs. lead. Without this, you get the problem that you and others have elucidated. Namely, that <0,-180deg> looks a lot like <+180deg,0>.

Fortunately, such a feat is achievable with modulation and careful design. I proposed one such approach as part of my dissertation work. For your consideration, ARI:

Angle-of-Arrival-Assisted Relative Interferometry (ARI)

An ARI-based system consists of transmitting beacons and passive receive-only objects each of which is equipped with a directional antenna. The beacons and objects may be almost co-located and appear to an operator as a single piece of equipment as seems to be the case with your application.

Each of the beacons knows its location and orientation. Each beacon transmits a unique pair of frequencies creating a beat envelope in the transmitted signal which is not unique to any beacon. The receiver can then identify reflecting targets in the intermediate environment through the intersection of the vectors formed from the known beacon locations and the set of angles of the directional antennae.

enter image description here

An initial angular-intersection based estimate is then refined by searching in the volumetric space defined by the intersection of the beamwidths of each beacon using the relative distances between beacons to disambiguate. This difference in path length is known through the phase difference of arrival of the envelopes from each beacon (or time difference since the envelope frequency is common to all beacons).

Since, the transmitter's identity is known from the frequency components and all of the required transmitter timing information is encoded in the signal, an object’s receiver does not need to maintain phase coherence with the time source of any beacon. Further, the beacons are immune to phase coherence errors in their carrier needing only to maintain sync amongst beacons at the modest frequency of their beat envelope.

The identity-encoded and directive nature of ARI assists in disambiguating phase-based distance relationships which are, otherwise, only disambiguous for the region ⟨−π/2, π/2⟩ and, adding orientation knowledge, allows 3D localization from a mathematical minimum of just two beacons and one object.

Why it works

The transmitted signal from each beacon consists of two frequencies – one that is unique to the beacon, fx1 , and one that is shared across all beacons, fcom. A Hartley modulator architecture may be used to produce the following signal over the air:

enter image description here

Algebraically we see that this resolves to just two frequencies: fc + fx1 and fc + fx1 + fcom. This is a Single Side Band-Suppressed Carrier (SSB-SC) transmission.

Since this is the absolute minimum amount of spectrum required to convey all of the information required for ARI we are as spectrally efficient as possible.

enter image description here

The distance information required to localize a target is encoded in the phase of the signal at fcom. However, two transmitters on the same frequency will interfere and obscure the identity and phase of each.

ARI supports multiple simultaneous transmissions without interference, because the common frequency information is actually present on multiple unique frequencies (fx2 = fx1 + fcom , for x = a, b, c...).

Accordingly, we designate fcom as the baseband signal and task the ARI receiver with recovering it from each beacon.

Although the transmitted signal is up-converted in quadrature, the received signal does not require down-conversion in quadrature – a single conversion super-heterodyne receiver is sufficient.

The spectrum of the resulting intermediate signal contains the identities of any beacons transmitting towards the object at its current look direction. Beacons may be identified by the presence of a signal at fa1, fb1, etc... and at each of these frequencies offset by fcom. As fx1 is unique to the transmitter and the frequency offset, fcom, is common to all transmitters, a second unique frequency, fx2 = fx1 + fcom, exists for each beacon.

Implementation options

There are three basic implementation strategies: analog, digital time-domain filtration, and digital frequency domain filtration. Like so:

enter image description here

You can use ARI to solve the proposed problem

In the case of your laser, it is not possible to make the laser emit multiple frequencies simultaneously. Rather, you can modulate the single frequency output. You can apply ARI to the two lasers system proposed above by building your ARI waveforms into the signal driving the modulator itself, like so:

enter image description here

In the figure, the dashed lines indicate echoes from reflecting objects in the environment. The dashing is not intended to indicate gaps in the spectrum.

In this manner, ARI is essentially acting as four FMCW LIDAR systems operated in a non-interfering time-synchronized manner. Conversion to an intermediate frequency allows ∆fn recovery more readily and the rest is as previously described.

Further reading...

So there you have it. ARI is one (of several possible) techniques for encoding transmitter identity in a phase difference of arrival based system.

There are a number of papers that I (and others) have written on this approach here.