Changes between Version 75 and Version 76 of Other/Summer/2024/signal


Ignore:
Timestamp:
Aug 6, 2024, 10:05:57 PM (4 months ago)
Author:
wesleychen
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Other/Summer/2024/signal

    v75 v76  
    119119The solution to this is to add something known as a barker code to the beginning of our signal. This is a special code that is "random," but both receiver and transmitter know what it is. So, at the transmitter, we compare the barker code to every timestamp in the signal and see which timestamps match the closest. We then know that the barker code occurred at those locations. Knowing one barker code can tell us where the signal starts. Knowing two can tell us the frequency offset based on the time difference between the two.
    120120
    121 [[Image(Screen Shot 2024-08-06 at 5.55.59 PM.png)]]
     121[[Image(Screen Shot 2024-08-06 at 5.55.59 PM.png, 400px)]]
    122122
    123123In reality this is done using a mathematical tool called correlation which compares multiplies the two signals at every time point (you can imagine the shorter barker code scrolling across the longer signal) and takes the integral/area under curve. After correlating with both I and Q, the result of each is squared and added together. The final correlation is shown below
    124124
    125 [[Image(Screen Shot 2024-08-06 at 6.03.54 PM.png​)]]
     125[[Image(Screen Shot 2024-08-06 at 6.03.54 PM.png​, 400px)]]
    126126
    127127After finding the frequency offset and phase, we can multiply each IQ sample by some exponential e^(-''i''*<delta>)^ where <delta> stands in for the error / angle offset of that sample. When multiplying numbers in the complex plane, the angle of the two are added allowing us to easily correct every sample. Now we see why complex numbers are useful. The corrected IQ samples are shown below.
    128128
    129 [[Image(Screen Shot 2024-08-06 at 6.04.02 PM.png)]]
     129[[Image(Screen Shot 2024-08-06 at 6.04.02 PM.png, 300px)]]
    130130
    131131== Architecture