Skip to content

2.0 Setup

mmontee edited this page Jun 8, 2025 · 9 revisions

2.0 Setup


2.1 Software

2.1.1 Pre-Setup

You will need to install the following programs


2.2 Code Environment

NOTE: Currently only supports Windows

2.2.1 Cloning The Repo

This repo uses submodules to pull in the APIs for the different test equipment used in the observatory. To clone the repo, while also setting up the submodules, use the following command:

git clone --recurse-submodules https://github.com/HailStorm32/WEST-Lab-Capstone.git

2.2.2 Run Setup Script

Navigate to the Code directory in a terminal (powershell) and run setup_env.bat

This script will setup the python virtual environment and directories

After running the script you should now have a env directory.

2.2.3 Running in The Virtual Environment

You can run Python scripts within the virtual environment one of three ways:

2.2.3.1 Entering the ENV

In a Command Prompt terminal, in the Code directory, run env\Scripts\activate to enter the virtual environment. Any commands ran here will be run using the virtual Python interpreter.

To leave, run deactivate

2.2.3.2 Pointing to the ENV

To run scripts in the environment without entering it, you can use the path to virtual Python interpreter like as follows

env\Scripts\python.exe path/to/script.py
2.2.3.3 ENV in IDE

You can point your IDE to the virtual Python interpreter, enabling you to run the scripts from the IDE. The interpreter is located at Code\env\Scripts\python.exe

2.3 Test Setup

See section 6.0


2.4 Observatory Assembly

2.4.1 Preparation

To begin, users will need all the equipment listed in the BOM and the assembled PCB.

Review each piece of equipment and its required cabling. For example, determine where the USB connections will need to be made.

Photo of enclosure with assembled PCB.
Figure 2.4.1.a Observatory enclosure with assembled PCB.

2.4.2 Mounting Panel

  • Remove the mounting panel from the enclosure.
  • Arrange the testing equipment, PCB, and USB hubs in the desired position on the mounting panel. It's important to consider the positioning of the equipment's cabling.
  • For equipment with bolt patterns, mark the bolt pattern positions on the panel.
  • Use a drill to create holes at the marked locations.
  • Mount the standoffs to the panel.

Photo of panel with standoffs mounted.
Figure 2.4.2.a Panel after all standoffs have been mounted, with command strips in place.

  • The remaining equipment should be affixed using command strips.

2.4.3 Equipment Mounting

  • With all standoffs in place, fasten all equipment with bolts.

Photo showing all standoff-mounted equipment in place.
Figure 2.4.3.a Panel with all standoff-mounted equipment fixed in place.

  • If the standoffs have various heights, start by mounting the lowest ones first. Using standoffs of different lengths reduces interference between cables. The prototype shown uses standoffs of three different lengths: ¼”, ¾”, and 2”.

Photo showing equipment mounted at varying heights.
Figure 2.4.3.b Panel after all standoffs have been mounted, with command strips in place.

  • Any equipment that will be mounted to the panel with command strips should be put into place.

Photo showing all panel-mounted equipment in place.
Figure 2.4.3.c Panel with all panel-mounted equipment in place.

  • Both the Analog and Digital Discovery attach to a header on the Observatory PCB. Both PCB headers are labeled with the device's name and an arrow ('top->') to indicate the direction the top surface of the equipment should be facing.
  • Shown below in Figure 2.4.3.d are the Analog and Digital Discovery after being pressed onto their headers.

Photo with attached Analog and Digital Discovery.
Figure 2.4.3.d Attached Analog and Digital Discovery.

2.4.4 Cables

2.4.4.1 RF Cables

  • In Figure 2.4.4.1.a below, red labels indicate the necessary connections.
    • The labels '1', '2', and 'S' around the RF power splitter correspond to the physical labels on the splitter.
    • Radiating from the splitter are the connected coax cables, each labeled with the device it should be connected to.
    • Place the necessary attenuators between the 'S' connection on the splitter and the ADALM-PLUTO RX coax, as shown.

Photo of RF power splitter with attached coax cables.
Figure 2.4.4.1.a RF power splitter with attached coax cable and inline attenuators.

  • Figure 2.4.4.1.b, shown below, displays the coax and attenuators routed and connected to their respective equipment.

Photo of the routed and connected coax RF cables.
Figure 2.4.4.1.b Routed and connected RF signal coax cables.

2.4.4.2 USB Cables

  • All equipment routes its USB connection to the hub, except for the nRF52840-DK. The nRF52840-DK routes its USB connection to the YEPKIT, which is a small, command-line controlled USB hub. The YEPKIT up-streams to the larger USB hub that connects all equipment. Additionally, the YEPKIT requires two USB connections: one for control and the other for power.

Photo showing all USB cables connected between equipment and USB hub.
Figure 2.4.4.2.a All USB cables are routed and connected between the test equipment and the USB hub.

  • Zip ties and adhesive back mounts were used to secure cabling to the mounting panel in the prototype as shown in Figure 2.4.4.2.b.

Photo USB cables secured using Zip ties
Figure 2.4.4.2.b All USB cables are routed and connected between the test equipment and the USB hub.

2.4.4.3 Jumper Wires

  • Three groups of jumper wires are used to connect equipment to the Observatory PCB.
    • Six wires connect the nRF52840-DK as shown in Figure 2.4.4.3.a.
    • Three wires are used to connect the USB to a serial UART converter.
    • A set of 16 wires is used to route all GPIO signals through an FPGA, as shown in Figure 2.4.4.3.c.
  • The diagram in Figure 2.4.4.3.a shows the six necessary connections between the nRF52840-DK and the Observatory PCB.

Illustration of the connection between Sulu and the nRF52840.
Figure 2.4.4.3.a Connection between Sulu and the nRF52840.

Photo showing the jumper wires between the nRF52840 and Observatory PCB.
Figure 2.4.4.3.b Six wires connecting the nRF52840 and Observatory PCB supply power and the DUT SCuM programming interface.

Photo showing the jumper wires connected to the FPGA header.
Figure 2.4.4.3.c Two sets of wires route all GPIO to an FPGA and back to the Observatory PCB.

Photo of all jumper wires from a top-down perspective.
Figure 2.4.4.3.d Top-down look at jumper wires connected to the FPGA's I/O.

2.4.5 Sulu Development Board

Photo showing Sulu pressed into its header.
Figure 2.4.5.a Sulu pressed into the provided headers.

2.4.6 Enclosure

  • A power drill can be used to create an opening for a rubber grommet to be installed. This provides a safe pass-through for the USB hub's downstream cable as well as the 12V power supply. Figure 2.4.6.a below shows the grommet used on the prototype.

Photo of box exterior with rubber grommet installed.
Figure 2.4.6.a Rubber grommet installed into the enclosure with USB and power cables passed through.

  • Some equipment may mount to the internal walls of the enclosure. Figure 2.4.6.b shows the command strip mounts used for the Joule Scope in the prototype.

Photo of equipment mounting to the interior wall of the box.
Figure 2.4.6.b Some equipment may mount to the interior wall of the enclosure, as the Joule Scope did in the prototype pictured.

  • After all panel-mounted equipment is mounted and connected, place the panel into the enclosure and secure it in place using the provided hardware and holes in the interior corners of the box.

Photo of the box with the panel placed into position.
Figure 2.4.6.c The mounting panel is placed into the enclosure after all equipment is mounted and cabling is routed, then secured.