Table of Contents
Open Table of Contents
Intro
This is a followup to my FMCW radar adventure.
This Post will showcase the so called radar cube, which not only allows an arbitrary number of objects to be detected, but also gives information about the angle.
Concept & Key Ideas
In the last post I looked at different beat frequencies to distinguish the range of different objects. This had a limitation in that each additional object would require another chirp rate to provide a supply with enough different beat frequencies to resolve them all. This is impractical and is therefore only useful in teaching.
Additionally the difference in beat frequency due to doppler is very small, so it’s hard to measure.
The alternative is using the phase difference of the signal caused by the changing time delay of a moving object. E.g. The object moves further away and so it takes the signal a different time to travel and the returning signal will have a phase shift compared to the previous. By measuring the phase difference over multiple chirps one can calculate the frequency of the phase-shift. This is proportional to velocity.
How does one measure the phase of a signal? It’s always relative, but one can measure it by looking at the difference to the transmitted signal over multiple chirps using IQ Signals (see bottom of page).
Additionally the idea can be expanded to measure also angles. When the signal arrives at multiple recievers spaced apart you get the signals seperated by a fixed phase difference.
More elaborate information can be found in this amazing article by wireless pi.
Putting this all together one can get range, velocity and angle information from the received signal resulting in a 3-dimensional FFT called a radar cube.
Demonstration
You can interact with a live FMCW radar cube simulation below.
It shows a slice of half the radar cube along the doppler axis, therefore showing range- and angle-fft magnitude. The red arrow shows the true range + angle at its origin and velocity as its length, while the green one shows the same for the detection.
Caveats:
- The detection algorithm is not very good. It just looks for local maxima.
- The intensity of the echo signal decays with . Therefore targets would barely be visible.
- No Noise included.
Regardless, the principle is visible.
Some things to try:
- as you move the objects see how the bright spot moves. We can determine the location from that peak.
- as you change the parameters observe the max range, velocity and angle values.
- place an object outside the range limit
- reducing the number of receivers makes the angle less accurate
Conclusion
Building these small models is actually a lot of fun. I definitely understand things in more depth this way.
The “mosquito frying laser cannon using acoustic radar detection” is for now just an idea 😏
IQ Signals
Instead of just mixing with one frequency we use two frequencies that are in quadrature to each other (meaning they are shifted by a quarter wavelength) to measure the phase of a signal. In this case cosine and sine. IQ demodulation allows splitting a cosine/sinus into an “In-Phase” (I) cosine and a quadrature (Q) “Phase shifted” by 90° sinusoid, where the amplitudes of both determine the phase. Using the identities
if we mix the received signal with the cosine and sine of the carrier frequency together we get
Just like before we can apply a low pass filter on both to get just the low frequency component.
The can be plotted on the X axis and the component on the y. You will then have a rotating arrow for a single signal.
As you can see it is not symmetric anymore, because no matter the phase shift we have two components. The amplitude of both together gives us the phase and magnitude.
Finally giving us a the complex signal
This complex signal can then be plugged into an FFT to find the spectrum of frequencies and phase.