This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:eval:user-guides:circuits-from-the-lab:cn0566:calibration [08 Apr 2022 00:16] – [Calibrating Element Gain and Phase] list formatting Mark Thoren | resources:eval:user-guides:circuits-from-the-lab:cn0566:calibration [18 Jun 2022 23:33] (current) – Title change Jon Kraft | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | Now that the CN0566 | + | The purpose of this lab is to get acquainted with how the software controls and captures data from the Phaser hardware. You COULD skip forward to the calibration section in this lab, which is prerequisite for the subsequent labs, but eventually you may want to write your own custom software, or at least modify the provided example scripts. Rest assured, very little software knowledge is required to understand this lab; it is intended to be the Phaser equivalent of " |
+ | \\ | ||
+ | Make sure that the Phaser | ||
===== Finding the Source Frequency ===== | ===== Finding the Source Frequency ===== | ||
There are two distinct ways to use the Phaser setup: | There are two distinct ways to use the Phaser setup: | ||
Line 17: | Line 19: | ||
Figure 2. Saving Frequency Calibration File | Figure 2. Saving Frequency Calibration File | ||
</ | </ | ||
+ | |||
+ | ===== Running the Minimal Example ===== | ||
+ | Aim the HB100 at the Phaser. | ||
+ | \\ | ||
+ | Open the cn0566_minimal_example.py script, either in Thonny, or run from the command line. | ||
+ | \\ | ||
+ | Observe the output, which should look similar to the figure below: | ||
+ | {{ : | ||
+ | Here’s what we’ve done: | ||
+ | * Received the 10.525 GHz signal | ||
+ | * Downconverted it to 2.2 GHz | ||
+ | * Received the 2.2 GHz IF with the Pluto SDR | ||
+ | * Set the Pluto’s internal PLLs to 2.2 GHz minus a small offset | ||
+ | * Set the Pluto’s ADC sample rate to 30 Msps | ||
+ | * Loaded a 20 MHz wide digital filter into the Pluto | ||
+ | * Capture a buffer of 1024 samples | ||
+ | * Plot the time domain samples | ||
+ | * Take the FFT of the samples, then plot. | ||
+ | \\ | ||
+ | So what does that Python script do?? The python script, “cn0566_minimal_example.py” first takes care of some housekeeping operations - set the antenna to zero phase, equal gain on all elements, and set a few parameters in the Pluto SDR. Then we are simply plotting the buffers of data from Pluto. | ||
+ | \\ | ||
+ | Next, change the " | ||
+ | \\ | ||
===== Calibrating Element Gain and Phase ===== | ===== Calibrating Element Gain and Phase ===== | ||
- | The phaser board is initially uncalibrated; | + | The phaser board is initially uncalibrated; |
+ | \\ | ||
+ | For the gain calibration, | ||
+ | \\ | ||
+ | For the phase calibration, | ||
+ | \\ | ||
+ | The cn0566_examples.py script provides a calibration utility that will generate calibration files. Place an HB100 (or antenna connected to J1) facing straight at the antenna array from approximately 1.5m away. Then run: | ||
< | < | ||
python3 cn0566_examples.py cal | python3 cn0566_examples.py cal |