Skip to content

Define Lookup Table for halbach array #81

Open

Description

@Relm-Arrowny

This is mostly data analysis and fitting part of the measured dataissue and currently is in a dirty from, this issue is to clean up and add the module to this repo.

We also need a new set of calibration data

Goals

Acceptance criteria : What journeys should the user be able to complete to consider your feature done
Be as specific as you can, check them off once they work. Add more if you find more requirements during development. Issue should only be considered done after all of them are checked

  • Fixed Sensor Frame: A full calibration sequence can be run without moving or rotating the 3-axis Hall probe..
  • Continuous Z-Axis Amplitude Sweep: A user can capture a "Base Curve" sweeping $B_z$ from -180 mT to +180 mT (with $B_x \approx 0$) in fine increments (e.g., 5-10 mT), explicitly recording the zero-field crossing, with strictly continuous motor movements.
  • Angular Anisotropy Mapping: A user can capture full $360^\circ$ (or $\pm 90^\circ$) field rotations at fixed field amplitudes (e.g., 50, 100, 150, and 173 mT) to map the array's distortion and $x\text{–}z$ anisotropy.
  • X-Axis Saturation Limits: The dataset includes specific points mapping the absolute physical maximum field achievable along the $\pm x$-axis (expected $\sim 173$ mT).
  • Unified Dataset: All collected data is output to a single, flat CSV file (e.g., calibration_raw.csv) containing columns for sweep_type, m1, m2, m3, m4, Bx_meas, By_meas, and Bz_meas.

Tasks

base on the goals, deduce the tasks required. check them off once they're done

  • Run Base Curve: Execute the optimizer to sweep $B_z$ from -180 mT to +180 mT. Implement a penalty for large motor jumps to ensure the solver tracks the continuous $\sim 166^\circ$ "scissor" branch.
  • Run Angle Sweeps: Execute open-loop or closed-loop angle sweeps at 50, 100, 150, and 173 mT. (Calculate by taking the base motor positions for that amplitude and commanding $m_{\text{new}} = m_{\text{base}} + \theta$).
  • Run X-Axis Sweeps: Execute an optimizer sweep pushing the field purely along $+x$ and $-x$ until physical saturation to capture the exact boundary envelope.

Related Resources

any images/gifs, mockups/wireframes that would aid the development should be listed here
MockUp : link to mockup
Coda doc: link to coda

Additional context
This recalibration is required to fix an issue discovered in the previous dataset (HA optimisation.zip)

Activity

  1. changed the title [-]Define Lookup Table:[/-] [+]Define Lookup Table fro halbach array[/+] on Nov 18, 2026
  2. changed the title [-]Define Lookup Table fro halbach array[/-] [+]Define Lookup Table for halbach array[/+] on Nov 18, 2026
  3. oliwenmandiamond commented on Nov 27, 2026

    @oliwenmandiamond

    @Relm-Arrowny is this complete?

  4. Relm-Arrowny commented on Nov 27, 2026

    @Relm-Arrowny
    CollaboratorAuthor

    not even remotely..... because the data was incomplete, I generated the missing part with my best guess, so this need to be done again and I need to write test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions