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 [14 Mar 2022 18:35] – update libiio, a few other details Mark Thoren | resources:eval:user-guides:circuits-from-the-lab:cn0566 [15 Jun 2023 20:52] (current) – [Phased Array Software] Dongmin Lee | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======EVAL-CN0566-RPIZ Overview====== | + | ====== CN0566 |
- | [[ADI> | + | ===== Introduction ===== |
- | The RF input signal is received from an onboard 8 element patch antenna that operates from 10 to 10.5 GHz. Each antenna element is input to an [[ADI> | + | Phased array communications and radar systems are finding increased use in a variety of applications. This places |
+ | Most of the labs are run on a Python GUI, with several helper scripts. These can be run on a remote host computer, or directly on the phaser' | ||
+ | For more advanced application development, the Phaser is also supported in the MATLAB RF Microwave Toolbox. Equivalent MATLAB lab exercises are in development, and will be added below as they are completed. | ||
- | The ADAR1000' | + | {{ : |
- | + | ||
- | The system consists of the EVAL-CN0566-RPIZ, | + | |
- | + | ||
- | {{ : | + | |
+ | Here is a brief video introduction to beamforming and the Phased Array Platform: | ||
<WRAP centeralign> | <WRAP centeralign> | ||
- | < | + | {{youtube>dUn2_fiOh94? |
</ | </ | ||
+ | |||
+ | ===== Quick Start Guide ===== | ||
+ | * There are a few steps that need to be performed before diving into the lab exercises. Please visit the **[[: | ||
\\ | \\ | ||
- | {{ : | + | ===== Phased Array Hardware ===== |
- | <WRAP centeralign> | + | |
- | Figure 2. EVAL-CN0566-RPIZ Circuit Evaluation Board, RF circuitry/ | + | |
- | </ | + | |
- | ---- | + | * To get acquainted with the hardware, see the **[[resources: |
- | ===== Features ===== | + | |
- | | + | |
- | | + | |
- | * Supports applications running GNURadio, Python, or MATLAB | + | |
- | ===== Videos | + | ===== Phased Array Software ====== |
- | {{youtube> | + | There are several pieces of software used with the CN0566 Phaser, including a user-friendly Graphical User Interface (GUI) and a number of command-line utilities. This page describes the various pieces of software: |
- | ===== Documents Needed | + | * **[[resources: |
+ | * **[[: | ||
+ | ===== Phased Array Assembly and Testing ====== | ||
- | * [[ADI> | + | The phaser ships fully assembled and ready to go. Should you need to re-assemble a disassembled board, or do a quick functionality test, refer to this page: |
- | ===== Equipment Required ===== | + | |
- | | + | |
- | * EVAL-CN0566-RPIZ Circuit Evaluation Board | + | |
- | * Raspberry Pi 4 | + | |
- | * 15.3W USB-C Power Supply | + | |
- | * SMA cables | + | |
- | * Monitor with HDMI display | + | |
- | * Micro HDMI to HDMI adaptor | + | |
- | * HDMI to HDMI cable | + | |
- | * 16GB or larger SD card | + | |
- | * USB keyboard | + | |
- | | + | |
- | * ADI Kuiper Linux image | + | |
- | \\ | + | |
- | ---- | + | |
- | ===== Block Assignments ===== | + | |
- | <wrap center 50%> | + | ===== Labs and Lectures |
- | //< | + | |
- | </ | + | |
- | \\ | + | |
- | {{ : | + | |
- | <wrap center 50%> | + | |
- | //< | + | |
- | </ | + | |
- | \\ | + | |
- | * Connector **P1** is the 14 pin header for connection to ADALM-Pluto | + | |
- | * Connector **P2** is the 40 pin connector for Raspberry Pi 4 | + | |
- | * Connector **P16** is the type C port for the supply | + | |
- | * Connector **RX1** is the SMA connector for RX1 output | + | |
- | * Connector **RX2** is the SMA connector for RX2 output | + | |
- | * Connector **TX_IN** is the SMA connector for TX input | + | |
- | * Connector **TX_OUT_1** is the SMA connector for first TX output | + | |
- | * Connector **TX_OUT_2** is the SMA connector for second TX output | + | |
- | * Connector **LO_OUT** is the SMA connector for LO output | + | |
- | * Connector **EXT_LO** is the SMA connector for external LO input | + | |
- | * Connector **P11** is the TR pins of ADAR1000s | + | |
- | * Connector **J3 to J10** are the footprints for SMP connectors in case external antenna is to be used | + | |
- | * Potentiometer **R43** is the manual control of output voltage | + | |
- | * Potentiometer **R14** is the manual control of output current limit | + | |
- | * Header **P12** contains the output signal for the fan control | + | |
- | \\ | + | |
- | ---- | + | |
- | ===== Running the System | + | |
- | {{ : | + | |
- | <wrap center 50%> | + | |
- | //<fc # | + | |
- | </ | + | |
- | - Set solder jumpers for the desired settings. | + | |
- | - Proceed with the [[/ | + | |
- | - Burn the SD card with the latest ADI Kuiper Linux image. Insert the flashed SD card on designated slot on Raspberry Pi. | + | |
- | - Turn on the input supply. Wait for the Raspberry Pi to boot up. | + | |
- | - Open terminal and configure the device tree overlay file. See [[/ | + | |
- | - Wait for the Raspberry Pi to boot up again. | + | |
- | <fc # | + | {{ : |
- | \\ | + | The ADALM-PHASER is meant for you to experience, first hand, phased array beamforming |
- | ---- | + | <WRAP round 80% download> |
- | ===== Solder Jumper Settings | + | **{{ : |
- | The [[ADI> | + | |
- | {{ : | + | |
- | <wrap center 50%> | + | |
- | //<fc # | + | |
- | </ | + | |
- | <wrap center 50%> | + | **{{ : |
- | <fc #ff0000>**TO BE EDITED**</fc> | + | </WRAP> |
- | </wrap> | + | |
- | \\ | + | The expanded list of topics |
- | ===EEPROM_ID: | + | |
- | EEPROM_ID sets the EEPROM I2C address. It consists of P4, P5 and P6 solder jumpers connected respectively to A2, A1 and A0 address selection pins of U7. The default address configuration is “111”. This EEPROM I2C address is configurable from 001 to 111. It cannot be set to " | + | |
- | ^ | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | | | + | |
- | \\ | + | |
- | ---- | + | |
- | ===== Hardware Setup ===== | + | |
- | ==== Setting up and Connecting the Raspberry Pi ==== | + | |
- | The output display | + | |
- | {{ : | + | |
- | <wrap center 50%> | + | |
- | //<fc # | + | |
- | </ | + | |
- | Connect an USB mouse and keyboard on the USB port of the Raspberry Pi Zero W. This shall allow us to control the Raspberry Pi upon boot up. | + | |
- | {{ : | + | |
- | <wrap center 50%> | + | |
- | //<fc # | + | |
- | </ | + | |
- | Raspberry Pi connects to the EVAL-CN0508-RPIZ through P2 which is a 40-pin connector. You may do this directly by connecting the RPi on the bottom side of the connector or through a 40-pin ribbon cable. | + | |
- | {{ : | + | |
- | <wrap center 60%> | + | |
- | //<fc # | + | |
- | </ | + | |
- | \\ | + | |
- | ==== Input Supply ==== | + | |
- | Power to the EVAL-CN0566-RPIZ can be connected through P16. P16 is a 3.0A USB-C receptacle. | + | |
- | {{ : | + | |
- | <wrap center 60%> | + | |
- | //<fc # | + | |
- | </ | + | |
- | \\ | + | |
- | ==== Output connections ==== | + | |
- | Connect an ADALM-Pluto on RX1 or RX2 to process the output of CN0566 | + | |
- | {{ : | + | |
- | <wrap center 50%> | + | |
- | //<fc # | + | |
- | </ | + | |
- | \\ | + | |
- | ---- | + | * Phaser Hardware Overview, |
- | ===== Software Setup ===== | + | * **[[resources: |
- | ==== Loading CN0566 Image on SD Card ==== | + | * Lecture Video |
- | In order to control the CN0566 from the Raspberry Pi, you will need to install ADI Kuiper Linux on an SD card. Complete instructions, | + | * {{youtube>-Vqbgf0MjPk? |
- | \\ | + | |
- | <WRAP todo> | + | |
- | REMOVE when Kuiper 12/13/2022 RC released.\\ | + | |
- | For now, use this release candidate: | + | |
- | [[https:// | + | |
- | \\ | + | |
- | </ | + | * Basics of SDR and Beamforming Control |
- | \\ | + | * **[[resources: |
- | Write the image and follow the system configuration procedure.\\ | + | * **[[resources: |
- | ==== Configuring the SD Card ==== | + | |
- | Follow the Hardware Configuration procedure under **Preparing | + | |
- | \\ | + | * Lab Video |
- | <code> | + | * {{youtube> |
- | # Phaser board overlay: | + | |
- | dtoverlay=rpi-cn0566 | + | |
- | # Heartbeat blinky: | + | * Phased Array Beam Steering |
- | dtparam=act_led_trigger=heartbeat | + | * **[[resources:eval: |
+ | * Lecture and Lab Video | ||
+ | * {{youtube> | ||
- | # Short GPIO21 (pin 40) to ground for shutdown: | + | * Phased Array Antenna Patterns |
- | dtoverlay=gpio-shutdown, | + | * **[[resources:eval: |
- | </ | + | * Lecture and Lab Video |
- | If you will be logging in via VNC, comment out the following line, and set the HDMI group and mode accordingly: | + | * {{youtube>UQgmtWChNfM? |
- | <code> | + | |
- | # dtoverlay=vc4-kms-v3d | + | |
- | # uncomment to force a specific HDMI mode (this will force VGA) | + | * Sidelobes |
- | hdmi_group=2 | + | * **[[resources:eval:user-guides:circuits-from-the-lab:cn0566:sidelobes_tapering|Lab Material]]** |
- | hdmi_mode=82 | + | * Lecture and Lab Video |
- | </ | + | * {{youtube>be_5D4eNtCY? |
- | \\ | + | |
- | Or alternatively, | + | |
- | < | + | |
- | wget https:// | + | |
- | rename config_cn0566.txt config.txt | + | |
- | sudo mv / | + | |
- | sudo cp config.txt /boot/ | + | |
- | </ | + | |
- | \\ | + | |
- | <WRAP todo> | + | |
- | ToDo: Remove with next release of Kuiper.\\ | + | |
- | The libiio included in this release of Kuiper is 0.21 and needs to be updated. Enter the following commands:\\ | + | |
- | < | + | |
- | git clone https:// | + | |
- | git checkout master | + | |
- | cd libiio | + | |
- | mkdir build && cd build && cmake -DWITH_SYSTEMD=ON -DWITH_HWMON=ON -DWITH_EXAMPLES=ON ../ && make && sudo make install | + | |
- | sudo reboot | + | |
- | </code> | + | |
- | </ | + | |
- | \\ | + | |
+ | * Grating Lobes | ||
+ | * **[[resources: | ||
+ | * Lecture and Lab Video | ||
+ | * {{youtube> | ||
+ | * Beam Squint | ||
+ | * **[[resources: | ||
+ | * Lecture and Lab Video | ||
+ | * {{youtube> | ||
- | <WRAP todo> | + | * Quantization Sidelobes |
- | REMOVE this when merged:\\ | + | * **[[resources: |
- | For now - the CN0566 overlay is not yet merged to master or included in the latest Kuiper Linux image. Copy this file to / | + | * Lecture and Lab Video |
- | [[https:// | + | * {{youtube>51O5FLVZE4c? |
- | Or from the Raspberry Pi command line: | + | |
- | < | + | |
- | wget https:// | + | |
- | sudo cp rpi-cn0566.dtbo / | + | |
- | sudo reboot | + | |
- | </ | + | |
- | </ | + | |
- | \\ | + | |
- | <WRAP todo> | + | |
- | REMOVE this when merged:\\ | + | |
- | For now - the CN0566 GUI and required pyadi-iio additions are in a development branch. The pyadi-iio that is pre-installed on Kuiper needs to be cleanly removed and replaced. Run the following commands: | + | |
- | < | + | |
- | cd ~ | + | |
- | # Uninstall existing pyadi, reinstall from source: | + | |
- | sudo pip3 uninstall -y pyadi-iio | + | |
- | git clone https:// | + | |
- | cd pyadi-iio | + | |
- | git checkout cn0566_dev | + | |
- | sudo python3 setup.py install | + | |
- | </ | + | |
- | </ | + | |
- | At this point, the GUI can be run from the command line. Run the following commands: | + | |
- | < | + | |
- | cd ~/ | + | |
- | python3 cn0566_gui.py | + | |
- | </ | + | |
- | The GUI should load and begin displaying the beam pattern as shown below. | + | |
- | {{ :resources: | + | |
- | <wrap center 75%> | + | |
- | //<fc>Figure x. Phaser GUI</ | + | |
- | </ | + | |
- | ===== Pluto Setup ===== | + | |
- | A Pluto Rev C or higher is required. For the CN0566, a custom firmware image is used that incorporates a TDD engine | + | * Analog, Digital, and Hybrid Beamforming |
+ | * **[[resources: | ||
+ | * Lecture | ||
+ | * {{youtube> | ||
- | <WRAP todo> | + | * Monopulse Tracking |
- | REMOVE this when it's got a proper home on Github releases\\ | + | * **[[resources: |
- | The first step is to update the firmware to the latest release, following the procedure at:\ | + | |
- | [[https:// | + | |
- | Next, download and unzip the updated firmware image, located here:\\ | + | |
- | {{ :resources: | + | |
- | (**Yes**, unzip, UNlike upgrading to the latest release.)\\ | + | |
- | Drag and drop the pluto_DW_feb_7_2022.frm to the Pluto mass storage device, then eject.\\ | + | |
- | \\ | + | |
- | For Reference - OLD version (do NOT use):\\ | + | |
- | {{ : | + | |
- | </ | + | |
- | The next step is to update the Pluto configuration to enable the AD9361' | + | * Radar: |
- | [[university:tools:pluto:users:customizing# | + | * **[[resources:eval:user-guides:circuits-from-the-lab:cn0566: |
- | For //**setting the mode of a Rev. C PlutoSDR to 2r2t, the following would be sequence of commands:**//\\ | + | |
+ | | ||
- | Verify that the configuration was programmed properly by entering the following commands: | + | * Radar: CFAR, Range Normalization, |
- | < | + | * Lab Material (Coming Soon) |
- | fw_printenv attr_name | + | * Lecture Video (Coming Soon) |
- | fw_printenv attr_val | + | * Lab Video (Coming Soon) |
- | fw_printenv compatible | + | |
- | fw_printenv mode | + | |
- | </code> | + | |
- | Wihich should return: | + | |
- | < | + | |
- | # fw_printenv attr_name | + | |
- | attr_name=compatible | + | |
- | # fw_printenv attr_val | + | |
- | attr_val=ad9361 | + | |
- | # fw_printenv compatible | + | |
- | compatible=ad9361 | + | |
- | # fw_printenv mode | + | |
- | mode=2r2t | + | |
- | # | + | |
- | </ | + | |
+ | ===== Additional Resources ===== | ||
+ | |||
+ | This series is partially derived from several sources that also provide valuable background information. | ||
+ | * Analogue Dialogue Phased array paper series: | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
+ | * [[adi> | ||
- | \\ | ||
- | \\ <WRAP center round tip 50%>Make sure to have the latest version of IIO Oscilloscope. Complete instructions and update scripts are found at **[[resources: | ||
- | ---- | ||
- | ===== CN0566 Configuration/ | ||
- | {{ : | ||
- | {{ : | ||
- | {{ : | ||
- | {{ : | ||
- | \\ | ||
- | ---- | ||
===== More Information and Useful Links ===== | ===== More Information and Useful Links ===== | ||
- | + | | |
- | * [[adi> | + | * [[: |
- | | + | * [[: |
- | * [[ADI> | + | |
- | * [[ADI> | + | |
- | * [[ADI> | + | |
- | * [[ADI> | + | |
- | * [[ADI> | + | |
- | * [[ADI> | + | |
- | * [[ADI> | + | |
- | * [[ADI> | + | |
- | * [[ADI> | + | |
- | * [[ADI> | + | |
- | * [[ADI> | + | |
- | * [[ADI> | + | |
- | * [[ADI> | + | |
- | * [[ADI> | + | |
- | * [[ADI> | + | |
- | + | ||
- | ===== Schematic, PCB Layout, Bill of Materials, Casing ===== | + | |
- | <WRAP round 80% download> | + | |
- | [[adi> | + | |
- | * Schematics | + | |
- | * PCB Layout | + | |
- | * Bill of Materials | + | |
- | * Allegro Project | + | |
- | * LTSpice Simulations | + | |
- | </ | + | |
//End of Document// | //End of Document// |