This version (03 Apr 2024 01:29) was approved by Mark Thoren.The Previously approved version (09 Jan 2024 23:14) is available.Diff

EVAL-CN0566-RPIZ Quick Start Guide

CN0566 “Phaser” Quick Start Guide.

This is the minimum amount of setup to get the phaser up and running.

Unboxing / Setup Video

Equipment Required

  • Hardware
    • EVAL-CN0566-RPIZ Board
    • Raspberry Pi 4
    • ADALM-Pluto
    • 5 V, 3 A, USB-C wall adapter
    • HB100 microwave source
      • 5V benchtop supply or 3 AAA (or AA) cells for HB100 power
    • Micro HDMI to HDMI cable (or suitable adapters)
    • 16GB or larger SD card
    • Tripod
    • One of the following:
      • Ethernet cable and DHCP-enabled network with internet access
      • Wireless network
    • One of the following:
      • USB keyboard and mouse, HDMI display (if running locally)
      • Host computer with SSH client and / or VNC client.
  • Software
    • ADI Kuiper Linux image
  • Other
    • Wired or Wireless network connection, with access to the internet (for accessing update files from Github.)

This is the step file for the HB100 holder, with a 1/4-20 thread for a standard camera mount. HB100s can vary from manufacturer to manufacturer, so please do a quick measurement on the one you have, and make any necessary adjustments to the step file.
Alternatively, use one of the other mounting methods described in the quick-start video.
HB100 Holder Step File

Overview Photo

Figure 2. EVAL-CN0566-RPIZ Circuit Evaluation Block assignment

SD card / Software Setup

The SD card that ships with the first phaser production run MUST be updated with a new image. The Phaser works with Kuiper Linux 2021_R2 (or later), which, in spite of the “2021” in the name, was released in Spring, 2023.

In order for the Raspberry Pi to control the Phaser devices, you will need to write the ADI Kuiper Linux image to an SD card and configure it. Complete instructions, including where to download the SD card image, how to write it to the SD card, and how to configure an example system are provided at Analog Devices Kuiper Linux.
Hints: The Kuiper Linux wiki pages give a few options, but the “official” Raspberry Pi imager is very straightforward:
Raspberry Pi Imager

Switch to ADI Kuiper Imager once it's stable and documented on the wiki.

After writing the image, if a window pops up saying “this card needs to be formatted, would you like to format it now?”, the answer is NO. Eject the card and insert it into the Raspberry Pi's SD card slot.

Assembling, Booting and Configuring the System

Figure 3. Test Setup Functional Block Diagram

  1. Connect ADALM-Pluto's CENTER micro-USB port to Raspberry Pi via micro-USB to USB cable.
  2. CAREFULLY thread the tripod into the tripod mount. Please minmize stress on the tripod mount while plugging in cables and other operations, as it is screwed directly to the PC board.
  3. Verify that the SD card is properly inserted into the slot on the Raspberry Pi.
  4. EITHER:
    1. Connect an HDMI display, USB keyboard, and USB mouse to the Raspberry pi, OR
    2. For remote login, connect the Raspberry Pi's Ethernet jack to your wired network, or directly to a host computer's Ethernet jack
  5. Power up the setup through the type-C port of the CN0566. Do NOT connect a supply to the Raspberry Pi.
  6. Wait for Raspberry Pi to boot. (This may take a minute or two, as the filesystem is expanded on first boot.)
  7. After booting, if you are using a keyboard and local display open a terminal as seen on the taskbar. If you are logging in over the network connection, you can open a graphical desktop VNC session or command line SSH session to hostname analog.local

Configuring the SD Card

The easiest way to configure the SD card is by running a setup script. This does require a wired or wireless internet connection, but it is much easier than doing things manually. A wired connection is fairly straightforward if your network supports DHCP. If you need to use a wireless connection, you'll have to boot to the graphical desktop and connect manually.
Once connected to a network, 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.) The script is commented if you want a detailed description of what it's doing.

sudo chmod +x
sudo reboot

(Wait for the system to reboot)
Note: After running the script, the hostname will be phaser.local
If you are going to be running scripts and other software directly on the Raspberry Pi, it's a good idea set a few options using the Raspberry Pi configuration utility. This can be accessed from the Start Menu under Preferences, or by running:

sudo raspi-config

from the command line. Set the locale, keyboard, timezone, and wifi country (if you'll be connecting to your network by wifi.)

Software Quick Start

At this point, the GUI can be run from the command line. Power up the HB100 source with either a 3V benchtop power supply or two AA cells and aim it a the phaser antenna. Run the following command to find the HB100 frequency:

cd ~/pyadi-iio/examples/phaser

Ideally, there should be a single, sharp peak as shown in the figure below.

Figure 1. Find HB100 script

If there is a single prominent peak, enter “y”. If there are several peaks or no visible peak, close the plot and enter 'n' at the prompt. Reposition the HB100 (and make sure there are no other sources nearby), then re-run the script.
Next run the GUI:

cd ~/pyadi-iio/examples/phaser

The GUI should load and begin displaying the beam pattern as shown below. Figure x. Phaser GUI

Initial Calibration

The phaser board is initially uncalibrated; each element will have a slightly different gain and slight phase error due to numerous factors. The script provides a calibration utility that will generate calibration files. Shut down the GUI if it is running. Place the HB100 directly in front of the array at mechanical boresight , approximately 1.5 m away. Then run:

cd ~/pyadi-iio/examples/phaser
python 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 when run again.

Refer to CN0566 Calibration for additional details

Appendix: Pluto Setup

The Pluto that ships with the phaser kit has been pre-configured. In case something goes wrong, here is how to update the firmware and settings. For the CN0566, the TDD engine and additional control signals are required for some configurations, and were added as of Pluto firmware 0.38. The latest firmware is available from:


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
# fw_printenv attr_val
# fw_printenv compatible
# fw_printenv mode

Appendix: Configuration Script Notes

To manually edit config.txt, add the following:

# Phaser board overlay:

# Heartbeat blinky:

# Short GPIO121 (pin 40) to ground for shutdown:

If you will be logging in via VNC, see this article:
RPi 4 4gb slow VNC
Also if running “headless” without a monitor, set the HDMI group and mode accordingly:

# dtoverlay=vc4-kms-v3d

# uncomment to force a specific HDMI mode (this will force 1920x1080)

End of Document

resources/eval/user-guides/circuits-from-the-lab/cn0566/quickstart.txt · Last modified: 03 Apr 2024 01:29 by Mark Thoren