CN0566 is a phased-array beamforming antenna demonstration platform that allows the user to experience the principles and applications of phased array antennas.
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 ADL8107, a low noise amplifier (LNA) that operates from 6-18GHz with 1.3dB NF and 24 dB gain. The output of these amplifiers are fed into the main core of this circuitry, two of the ADAR1000. The ADAR1000 is an 8 GHz to 16 GHz, 4-Channel, beamformer that allow per-channel, 360° phase adjustment with 2.8° resolution and 31dB gain adjustment with 0.5dB resolution. The ADAR1000s are capable of bidirectional, half-duplex operation. However, CN0566 only connects the ADAR1000 receive paths. The outputs of four LNAs get phase and amplitude shifted by an ADAR1000, then summed together at its RFIO output.
The ADAR1000's RFIO output passes through a low pass filter before entering the LTC5548 mixer. The low pass filter removes the high side image of the mixer as well as any re-radiation of the high side LO. LTC5548 outputs an IF of approximately 2.2 GHz which passes through a low pass filter (LPF) to remove mixer spurs and attenuate any RF or LO leakage. The LPF's output, at Rx1 and Rx2, can then be mixed down and sampled by an external 2-channel SDR receiver, such as the ADALM-Pluto.
The system consists of the EVAL-CN0566-RPIZ, Raspberry Pi 3 or 4 running ADI Kuiper Linux, an ADALM-Pluto Rev. C, 5V power source, and either keyboard/mouse/monitor OR separate host connected via VNC. The Raspberry Pi 4 provides all SPI, I2C, and discrete digital I/O control signals.
Figure 1. EVAL-CN0566-RPIZ Circuit Evaluation Board, array/Raspberry Pi side
Figure 2. EVAL-CN0566-RPIZ Circuit Evaluation Board, RF circuitry/Pluto side
Figure 2. EVAL-CN0566-RPIZ Circuit Evaluation Board Top View
Figure 3. EVAL-CN0566-RPIZ Circuit Evaluation Board Side View
Figure 4. Test Setup Functional Block Diagram
TO BE EDITED
The CN0566 has jumper headers which configure different settings as shown below. Also, the default shunt positions are highlighted.
Figure 5. EVAL-CN0566-RPIZ Evaluation Board Solder Jumper Guide
TO BE EDITED
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 “000” since U4 already uses this address for RPi HAT identification.
The output display of the system will be through an external monitor with HDMI capability. To do this, connect the micro HDMI to HDMI adapter on the Raspberry Pi 4 HDMI port. Connect this to the monitor via the HDMI to HDMI cable.
Figure 6. Hardware connection of Raspberry Pi to Monitor Display
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. Figure 7. Hardware connection of Input Devices to Raspberry Pi
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. Figure 8. Hardware connection of EVAL-CN0566-RPIZ and Raspberry Pi Zero W
Power to the EVAL-CN0566-RPIZ can be connected through P16. P16 is a 3.0A USB-C receptacle.
Figure 9. Hardware Connection of Input Power Supply to EVAL-CN0566-RPIZ
Connect an ADALM-Pluto on RX1 or RX2 to process the output of CN0566
Figure 10. EVAL-CN0566-RPIZ Evaluation Board Output Connections
A Pluto Rev C or higher is required. For the CN0566, a custom firmware image is used that incorporates a TDD engine and additional control signals.
REMOVE this when it's got a proper home on Github releases
The first step is to update the firmware to the latest release, following the procedure at:\ Pluto/M2k Firmware Updates. Make sure to upload the entire zip file, not the pluto.frm contained within.
Next, download and unzip the updated firmware image, located here:
(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's second channel. Follow the directions at:
Updating to the AD9364,
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:
fw_printenv attr_name fw_printenv attr_val fw_printenv compatible fw_printenv mode
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 #
In order to control the CN0566 from the Raspberry Pi, you will need to install ADI Kuiper Linux on an SD card. Complete instructions, including where to download the SD card image, how to write it to the SD card, and how to configure the system are provided at Analog Devices Kuiper Linux. Pay particular attention to the localization settings, keyboard settings, etc. if you will be running examples on the Raspberry Pi itself (versus remotely.)
REMOVE when Kuiper 2021_r2_RC1 or later released. This will include the cn0566 device tree blob and libiio 0.24 with context forwarding.
This is only available within ADI here:
Write the image and follow the system configuration procedure.
After burning the image above, log into the Raspberry Pi and open the Raspberry Pi configuration utility.
Set the hostname to “phaser”, set the locale, keyboard, and wifi country (if you'll be connecting to your network by wifi.) Next, run the following commands (and take a look at the setup script if you're suspicious, and note that there may be some updates as newer versions of Kuiper Linux are released.)
wget https://github.com/mthoren-adi/rpi_setup_stuff/raw/main/phaser/phaser_sdcard_setup.sh sudo chmod +x phaser_sdcard_setup.sh ./phaser_sdcard_setup.sh
SKIP AHEAD to running the example, or see below for details of what just happened.
A complete config.txt file is posted for convenience. Enter the following commands from a terminal to download and apply a complete config.txt file with all edits above included:
wget https://github.com/mthoren-adi/rpi_setup_stuff/raw/main/phaser/config_phaser.txt rename config_phaser.txt config.txt sudo mv /boot/config.txt /boot/config_original.txt sudo cp config.txt /boot/
Or alternatively, follow the Hardware Configuration procedure under Preparing the Image: Raspberry Pi in the Analog Devices Kuiper Linux page, adding the following lines to the very end of /boot/config.txt:
# Phaser board overlay: dtoverlay=rpi-cn0566 # Heartbeat blinky: dtparam=act_led_gpio=26 dtparam=act_led_trigger=heartbeat # Short GPIO121 (pin 40) to ground for shutdown: dtoverlay=gpio-shutdown,gpio_pin=21,active_low=1,gpiopull=up
If you will be logging in via VNC, comment out the following line, and set the HDMI group and mode accordingly:
# dtoverlay=vc4-kms-v3d # uncomment to force a specific HDMI mode (this will force 1920x1080) hdmi_group=2 hdmi_mode=82
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://github.com/analogdevicesinc/pyadi-iio.git 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 ~/pyadi-iio/examples/cn0566 python3 cn0566_gui.py
The phaser board is initially uncalibrated; each element will have a slightly different gain and slight phase error due to numerous factors. the cn0566_examples.py script provides a calibration utility that will generate calibration files. Make sure an antenna is attached to J1, and is facing straight at the antenna array from approximately 1.5m away. Then run:
python3 cn0566_examples.py cal
The script provides debug information and plots as it is running, you may have to close out of each plot for the script to proceed. After running this script, files gain_cal_val.pkl and phase_cal_val.pkl will be placed in the working directory. The GUI program will also load these files automatically.
Refer to CN0566 Calibration for additional details
Make sure to have the latest version of IIO Oscilloscope. Complete instructions and update scripts are found at Analog Devices IIO Oscilloscope.
End of Document