Changes between Version 74 and Version 75 of Other/Summer/2024/signal
- Timestamp:
- Aug 6, 2024, 10:05:27 PM (4 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Other/Summer/2024/signal
v74 v75 119 119 The 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. 120 120 121 [[Image( )]]121 [[Image(Screen Shot 2024-08-06 at 5.55.59 PM.png)]] 122 122 123 123 In 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 124 124 125 [[Image( )]]125 [[Image(Screen Shot 2024-08-06 at 6.03.54 PM.png)]] 126 126 127 127 After 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. 128 128 129 [[Image( )]]129 [[Image(Screen Shot 2024-08-06 at 6.04.02 PM.png)]] 130 130 131 131 == Architecture