Building a controlled magnetic environment

For my capstone engineering project, I am working with two other students to build a Helmholtz cage for CubeSat testing. The proposed system uses three orthogonal coil pairs to control the magnetic-field components along the X, Y, and Z axes.

The goal is to give our team a repeatable ground-test environment for magnetorquers and their control software. Rather than relying on the ambient field in the lab, we want to generate controlled conditions around a test volume and compare the commanded field with sensor measurements.

My work: the GUI and simulation connection

I am developing the graphical user interface and getting familiar with NASA’s 42 simulation software. My current focus is exploring how to create a feedback loop between 42 and our GUI so that the simulation and interface can exchange useful information.

The proposed interface will bring commanded and measured field vectors together in one place. The broader software plan includes sensor acquisition, visualization, and converting a desired magnetic-field vector into coil-current commands while respecting electrical operating limits.

The 42 connection is still being explored. Establishing the data exchange, deciding what the GUI needs to send and display, and testing that connection are part of the ongoing work.

How the proposed system fits together

  1. Define the field. Use the GUI and simulation workflow to specify the magnetic environment to reproduce.
  2. Command the coils. Translate the desired field vector into independent axis-current commands through the control electronics.
  3. Measure the response. Acquire magnetic-sensor readings to compare the generated field with the requested field.
  4. Visualize and refine. Display the comparison and develop calibration and feedback adjustments as the hardware and software are integrated.

Design goals

Our proposal targets a 30 × 30 × 30 cm test volume, a field-strength range of ±50 A/m on each axis, and 1% theoretical field uniformity. These are design requirements we are working toward, rather than measured results from a finished cage.

The concept also calls for reproducing changing magnetic environments, cancelling the lab’s ambient field, and allowing the cage to be disassembled and stored. Coil geometry, power electronics, sensing, and software all need to work together to reach those goals.

Modeling before fabrication

The MATLAB design calculator evaluates a three-axis square-coil geometry. It models the field contribution of the windings, constructs a current-to-field response matrix, and solves for the currents required to match a requested field at the center of the test region.

It also samples field variation throughout a three-dimensional region and estimates wire length, resistance, DC voltage, power, and inductance. Approximate geometry and current-limit checks help identify configurations that need further work before fabrication.

These calculations support design iteration. The script’s inductance estimates and geometry checks are approximate; measured field mapping and detailed mechanical checks remain part of validation.

What comes next

My next steps are to continue developing the GUI, learn the relevant parts of 42, and establish a working exchange between them. As the cage hardware comes together, the project plan includes calibration, field mapping, comparison with model predictions, and integrated testing with a magnetorquer.

This project is still in progress. I am building toward a system where the interface, simulation, sensors, and physical coils form one usable test platform.