Uniform magnetic field generating device and method based on Helmholtz coil and related equipment

By using a uniform magnetic field generator with Helmholtz coils, and by dynamically adjusting the coil spacing using a power supply module, a spacing control module, a magnetic field detection module, and an analysis module, the problem of low magnetic field uniformity of Helmholtz coils is solved, and a highly uniform magnetic field is generated, making it suitable for various application scenarios.

CN121812306APending Publication Date: 2026-04-07CASIC DEFENSE TECH RES & TEST CENT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511777557.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-28
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

The uniform magnetic field generated by Helmholtz coils has low uniformity and cannot be precisely controlled, failing to meet the higher requirements of modern technology for magnetic field uniformity.

Method used

A uniform magnetic field generator using Helmholtz coils includes a power supply module, a spacing control module, a magnetic field detection module, an analysis module, and a control module. By detecting the magnetic field strength and uniformity, the coil spacing is dynamically adjusted to achieve the target magnetic field uniformity.

Benefits of technology

It achieves precise control of the magnetic field uniformity of Helmholtz coils, meets various magnetic field uniformity requirements, and features miniaturized and highly integrated devices that are adaptable to various electromagnetic magnetic field environments and easy to operate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121812306A_ABST
    Figure CN121812306A_ABST
Patent Text Reader

Abstract

The invention provides a uniform magnetic field generating device and method based on a Helmholtz coil and related equipment.The device comprises the Helmholtz coil, a power module, a distance control module, a magnetic field detection module, an analysis module and a control module, the Helmholtz coil at least comprises two adjacent target coils, and the distance control module is connected with the magnetic field detection module. The power supply module supplies power to the target coils to enable the target coils to generate a magnetic field with preset intensity, and the magnetic field detection module detects peak magnetic field intensity and edge magnetic field intensity of the magnetic field with the preset intensity generated by the two adjacent target coils, so that the analysis module determines the uniformity of the magnetic field generated by the two adjacent target coils. And the control module controls the spacing control module to dynamically adjust the spacing between the two adjacent target coils according to the magnetic field uniformity and the target magnetic field uniformity, so that the magnetic field uniformity reaches the target magnetic field uniformity. According to the device, the magnetic field uniformity of the Helmholtz coil is adjusted, and the flexibility is good.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of Helmholtz coils, and more particularly to a uniform magnetic field generating device, method and related equipment based on Helmholtz coils. Background Technology

[0002] A Helmholtz coil is a device consisting of multiple circular coils carrying the same current. When the distance between two adjacent coils is equal to their radii, a relatively uniform magnetic field is generated in the central region between the two coils. However, the uniformity of the magnetic field generated in this way is low, which cannot meet the requirements of various complex environments with high requirements for magnetic field uniformity. Summary of the Invention

[0003] In view of this, the purpose of this application is to propose a uniform magnetic field generating device, method and related equipment based on Helmholtz coils, so as to solve the problem that the uniformity of the uniform magnetic field generated by Helmholtz coils is low and cannot be precisely controlled.

[0004] To achieve the above objectives, this application provides a uniform magnetic field generator based on a Helmholtz coil, comprising: A Helmholtz coil, wherein the Helmholtz coil comprises at least two adjacent target coils; A power module, connected to the target coil, is used to control the target coil to generate a magnetic field of a preset strength; A spacing control module, connected to at least one of the target coils, is used to control the spacing between two adjacent target coils; The magnetic field detection module is used to detect the peak magnetic field strength and edge magnetic field strength of the magnetic field generated by two adjacent target coils with a preset strength, and output the peak magnetic field strength data and edge magnetic field strength data. An analysis module, connected to the magnetic field detection module, is used to receive the peak magnetic field strength data and the edge magnetic field strength data, and determine the magnetic field uniformity generated by two adjacent target coils based on the data. The control module is connected to the analysis module and the spacing control module respectively. It is used to receive the magnetic field uniformity output by the analysis module and control the spacing control module to adjust the spacing between two adjacent target coils according to the magnetic field uniformity and the target magnetic field uniformity, so that the magnetic field uniformity reaches the target magnetic field uniformity.

[0005] Optionally, the power module includes a power controller and a DC current source connected to each other. The DC current source is connected to the target coil and is used to control the target coil to generate a magnetic field of a preset intensity.

[0006] Optionally, the interval control module comprises a motor and a transmission device, an output shaft of the motor is connected with the transmission device, and the transmission device is connected with the target coil to adjust the interval of two adjacent target coils under the driving of the motor.

[0007] Optionally, the magnetic field detection module comprises a gauss meter.

[0008] Optionally, the device further comprises a host computer, the host computer is connected with the control module in signal and is used to display the magnetic field uniformity data.

[0009] Based on the same inventive concept, the disclosure also provides a method for generating a uniform magnetic field based on a Helmholtz coil, which applies the device of any one of the above, and comprises the following steps: Placing two adjacent target coils of the Helmholtz coil at a preset initial interval, and supplying power to the target coils to make the target coils generate a magnetic field of a preset intensity; Obtaining the peak magnetic field intensity data and the edge magnetic field intensity data generated by the two adjacent target coils; Determining the uniformity of the current magnetic field based on the peak magnetic field intensity data and the edge magnetic field intensity data; Based on the uniformity of the current magnetic field and the target magnetic field uniformity, adjusting the interval of the two adjacent target coils to make the magnetic field uniformity reach the target magnetic field uniformity.

[0010] Optionally, based on the uniformity of the current magnetic field and the target magnetic field uniformity, adjusting the interval of the two adjacent target coils to make the magnetic field uniformity reach the target magnetic field uniformity, comprises: In response to determining that the uniformity of the current magnetic field is greater than the target magnetic field uniformity, the interval of the two adjacent target coils is shortened to make the magnetic field uniformity reach the target magnetic field uniformity; In response to determining that the uniformity of the current magnetic field is less than the target magnetic field uniformity, the interval of the two adjacent target coils is increased to make the magnetic field uniformity reach the target magnetic field uniformity.

[0011] Optionally, the step of placing two adjacent target coils of the Helmholtz coil at a preset initial interval and supplying power to the target coils to make the target coils generate a magnetic field of a preset intensity comprises: Based on the magnetic field of the preset intensity, the target coil parameters and the preset initial interval, determining the target input current required for the target coil to generate the magnetic field of the preset intensity; Inputting the target input current to the target coil to make the target coil generate a magnetic field of a preset intensity.

[0012] Based on the same inventive concept, this disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method described above when executing the computer program.

[0013] Based on the same inventive concept, this disclosure also provides a non-transitory computer-readable storage medium that stores computer instructions for causing a computer to perform the method described above.

[0014] Based on the same inventive concept, this disclosure also provides a computer program product, including computer program instructions, characterized in that, when the computer program instructions are run on a computer, the computer performs the method as described above.

[0015] As described above, the uniform magnetic field generator based on a Helmholtz coil provided in this application includes: a Helmholtz coil, a power supply module, a spacing control module, a magnetic field detection module, an analysis module, and a control module. The Helmholtz coil comprises at least two adjacent target coils. The power supply module supplies power to the target coils, enabling them to generate a magnetic field of a preset intensity. The magnetic field detection module detects the peak and edge magnetic field intensities of the magnetic field generated by the two adjacent target coils, allowing the analysis module to determine the uniformity of the magnetic field generated by the two adjacent target coils based on these intensities. The control module controls the spacing control module to dynamically adjust the spacing between the two adjacent target coils based on the magnetic field uniformity and the target magnetic field uniformity, so that the magnetic field uniformity reaches the target uniformity. This device enables the adjustment of the magnetic field uniformity of the Helmholtz coil to meet various scenarios with different magnetic field uniformity requirements. Furthermore, the device possesses advantages such as miniaturization, high integration, high magnetic field uniformity generation, and simple and powerful method. It is not limited by the application site and can meet the application needs of various electromagnetic magnetic field environments. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in this application or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a schematic diagram of a uniform magnetic field generator based on a Helmholtz coil, as shown in the embodiments of this application. Figure 2 This is a schematic diagram illustrating a method for generating a uniform magnetic field based on a Helmholtz coil, as shown in the embodiments of this application. Figure 3 This application provides a schematic diagram showing the magnetic field distribution along the axis of a single target coil in an embodiment of the present application. Figure 4 This is a schematic diagram showing the magnetic field distribution of a Helmholtz coil composed of two target coils, as shown in an embodiment of this application. Figure 5 This is a schematic diagram of the structure of an electronic device shown in an embodiment of this application. Detailed Implementation

[0018] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with specific embodiments and the accompanying drawings.

[0019] It should be noted that, unless otherwise defined, the technical or scientific terms used in the embodiments of this application should have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms "first," "second," and similar terms used in the embodiments of this application do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are only used to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0020] As described in the background section, the Helmholtz coil, a classic magnetic field generator, consists of two circular coils with identical geometric parameters. These coils are coaxially arranged and flowed with constant currents of equal magnitude and direction. When the distance between two adjacent coils equals the radius of the coil itself, an approximately uniform magnetic field distribution can be formed within a specific spatial region centered at the midpoint of the two coil axes. This characteristic, coupled with its simple structure and controllable cost, has led to its widespread application in fundamental physics experiments, electronic equipment calibration, and magnetic material testing, making it an indispensable piece of equipment in scientific research and engineering.

[0021] However, with the rapid development of modern technology, many cutting-edge fields have placed more stringent demands on the uniformity of magnetic field environments. For example, in high-end technology fields such as quantum computing and aerospace, magnetic field uniformity is a key factor affecting the performance of core devices and the stability of the system, imposing requirements on the spatial distribution consistency and long-term stability of the magnetic field far exceeding those of traditional application scenarios. Therefore, addressing the problem of insufficient magnetic field uniformity in Helmholtz coils by developing superior magnetic field generating devices or improving existing structures has become an important research direction to meet the needs of modern technological development.

[0022] The following is in conjunction with the appendix Figures 1-5 The embodiments of this application will be described in detail below.

[0023] like Figure 1 As shown, a uniform magnetic field generator based on a Helmholtz coil includes: A Helmholtz coil, wherein the Helmholtz coil comprises at least two adjacent target coils; A power module, connected to the target coil, is used to control the target coil to generate a magnetic field of a preset strength; A spacing control module, connected to at least one of the target coils, is used to control the spacing between two adjacent target coils; The magnetic field detection module is used to detect the peak magnetic field strength and edge magnetic field strength of the magnetic field generated by two adjacent target coils with a preset strength, and output the peak magnetic field strength data and edge magnetic field strength data. An analysis module, connected to the magnetic field detection module, is used to receive the peak magnetic field strength data and the edge magnetic field strength data, and determine the magnetic field uniformity generated by two adjacent target coils based on the data. The control module is connected to the analysis module and the spacing control module respectively. It is used to receive the magnetic field uniformity output by the analysis module and control the spacing control module to adjust the spacing between two adjacent target coils according to the magnetic field uniformity and the target magnetic field uniformity, so that the magnetic field uniformity reaches the target magnetic field uniformity.

[0024] Specifically, a Helmholtz coil comprises at least two adjacent target coils. The winding material for each target coil is oxygen-free copper with high conductivity and low hysteresis loss, while the coil frame is made of high-strength insulating ceramic material. This ensures efficient current conduction while preventing interference from the frame's permeability on the magnetic field distribution. The number of turns, wire diameter, and winding precision of each target coil are strictly consistent. The winding process utilizes automated precision winding equipment to reduce the spacing between each coil turn, laying a structural foundation for subsequent magnetic field uniformity control. In practical applications, the number of target coils can be expanded in the coaxial direction to form a multi-coil array structure, further enhancing the magnetic field range, depending on the required magnetic field coverage.

[0025] The power module is the power source for precise control of the magnetic field strength. It is connected to each target coil via high-temperature shielded wires. The grounding treatment of the shielding layer of these wires effectively isolates external electromagnetic interference from affecting current stability. Simultaneously, a current feedback unit can be installed within the power module to collect real-time current data from the target coils. When a deviation from the preset current value is detected, the current feedback unit automatically adjusts to prevent current fluctuations from causing deviations in the magnetic field strength.

[0026] The spacing control module is used to control the spacing between two adjacent target coils. The spacing control module can be combined with laser displacement measurement technology to acquire real-time data on the actual spacing between the two adjacent target coils and feed this data back to the control module, thus forming a closed-loop control for spacing adjustment.

[0027] The magnetic field detection module can collect magnetic field strength data at various detection points. Peak magnetic field strength data comes from the midpoint region of the axis, while edge magnetic field strength data comes from the magnetic field boundary region. Both peak and edge magnetic field strength data can be measured at multiple points in the corresponding region, and then the average value is taken. After detection, the module transmits the processed peak and edge magnetic field strength data to the analysis module via a high-speed data bus.

[0028] The analysis module employs an embedded microprocessor, such as the STM32H743VI, with a built-in dedicated algorithm for calculating magnetic field uniformity. Upon receiving intensity data from the magnetic field detection module, it first performs filtering preprocessing to remove abnormal data points caused by environmental interference. Then, it calculates the current magnetic field uniformity using the formula: Magnetic Field Uniformity = |Peak Magnetic Field Intensity - Edge Magnetic Field Intensity|. Furthermore, the analysis module also has data storage capabilities, recording the magnetic field intensity data and corresponding uniformity indicators for each detection in real time, facilitating subsequent data traceability and analysis.

[0029] The control module can be a PLC controller, such as a Siemens S7-1200 series controller. The controller receives the current magnetic field uniformity data output by the analysis module in real time and compares it with the target uniformity. Based on the comparison result, the control module sends an adjustment command to the spacing control module. The spacing control module adjusts the spacing between two adjacent target coils according to the adjustment command to make the magnetic field uniformity reach the target magnetic field uniformity.

[0030] In this embodiment, a uniform magnetic field generator based on a Helmholtz coil includes: a Helmholtz coil, a power supply module, a spacing control module, a magnetic field detection module, an analysis module, and a control module. The Helmholtz coil comprises at least two adjacent target coils. The power supply module supplies power to the target coils, enabling them to generate a magnetic field of a preset intensity. The magnetic field detection module detects the peak and edge magnetic field intensities of the magnetic field generated by the two adjacent target coils. The analysis module determines the uniformity of the magnetic field generated by the two adjacent target coils based on the peak and edge magnetic field intensities of the preset intensity magnetic field. The control module controls the spacing control module to dynamically adjust the spacing between the two adjacent target coils based on the magnetic field uniformity and the target magnetic field uniformity, so that the magnetic field uniformity reaches the target magnetic field uniformity. This device enables the adjustment of the magnetic field uniformity of the Helmholtz coil to meet various scenarios with different magnetic field uniformity requirements. Furthermore, the device has advantages such as miniaturization, high integration, high magnetic field uniformity generation, and simple and powerful method. It is not limited by the application site and can meet the application requirements of various electromagnetic magnetic field environments.

[0031] In some embodiments, the power module includes a power controller and a DC current source connected to each other. The DC current source is connected to the target coil and is used to control the target coil to generate a magnetic field of a preset strength.

[0032] Specifically, the power module adopts a dual-unit architecture of a power controller and a DC current source, which can achieve bidirectional data interaction via an RS485 communication interface. The DC current source is a linear constant current power supply. This type of power supply achieves stable output current through real-time adjustment of the linear regulating transistor, resulting in a lower ripple coefficient compared to switching power supplies, effectively avoiding interference from high-frequency ripple on magnetic field stability. Furthermore, the DC current source integrates dual power supply units for both main and backup power, seamlessly switching between them via a power switching switch. For example, the main power supply uses a high-power linear constant current module to meet the power requirements of different magnetic field strengths, providing a continuous and stable current to the target coil during normal operation. The backup power supply uses a high-reliability lithium battery pack module with a capacity matching the rated power of the main power supply. When the main power supply experiences faults such as overvoltage, overcurrent, undervoltage, or power failure, the fault detection circuit built into the power controller can capture abnormal signals in real time, immediately triggering the power switching switch to activate the backup power supply, ensuring the stability of the equipment's power supply. The DC current source and the target coil are connected via a low-impedance copper busbar, the surface of which is silver-plated to reduce contact resistance and minimize losses during current transmission.

[0033] In this embodiment, the power module achieves precise control and convenient adjustment of the magnetic field strength of the target coil through a power controller and a DC current source. As the core control unit, the power controller can quickly respond to magnetic field strength adjustment needs, converting preset magnetic field strength parameters into precise current control signals to drive the DC current source to output a stable current. The direct connection between the DC current source and the target coil ensures efficient and stable current transmission, enabling the target coil to accurately generate a magnetic field of the preset strength, effectively avoiding the problems of magnetic field strength drift and insufficient adjustment accuracy in traditional power supply structures. Furthermore, this power module requires no complex manual intervention; the setting and switching of the magnetic field strength can be completed simply through control commands, greatly improving operational convenience and providing a stable and reliable basic magnetic field guarantee for subsequent magnetic field uniformity control, adapting to the differentiated magnetic field strength requirements in different scenarios.

[0034] In some embodiments, the spacing control module includes a motor and a transmission device, the output shaft of the motor being connected to the transmission device, and the transmission device being connected to the target coil to adjust the spacing between two adjacent target coils under the drive of the motor.

[0035] Specifically, a two-phase hybrid stepper motor can be selected. This type of motor combines the high torque characteristics of a permanent magnet stepper motor with the high precision advantages of a reactive stepper motor, enabling fine-scale adjustment of the target coil spacing with high stability. The transmission device can adopt a ball screw structure, with a flexible coupling connecting the motor output shaft and the ball screw to avoid the influence of mechanical stress on transmission accuracy. The ball screw efficiently converts the motor's rotational motion into linear motion, with low wear, long service life, and maintains high transmission accuracy even after long-term use. When the control module issues a spacing adjustment command, the motor drives the ball screw to rotate through the flexible coupling. The nut seat of the ball screw drives the target coil to move smoothly, thereby precisely changing the spacing between two adjacent target coils. The entire adjustment process is responsive and runs smoothly, meeting the high-precision requirements of magnetic field uniformity optimization for spacing adjustment.

[0036] In this embodiment, the motor, as the power source, can quickly respond to the adjustment commands of the control module and drive the transmission device with its stable output torque. The transmission device converts the rotational motion of the motor into linear motion, reducing power transmission losses and improving adjustment accuracy. This spacing control module changes the limitation of the fixed spacing of traditional Helmholtz coils, realizing flexible adjustment of the coil spacing and meeting the fine spacing correction required for magnetic field uniformity optimization.

[0037] In some embodiments, the magnetic field detection module includes a gaussmeter.

[0038] In this embodiment, the gaussmeter incorporates a sensor. When it is necessary to detect the magnetic field strength, the sensor probe of the gaussmeter is placed at a preset position within the magnetic field region. When the magnetic field lines pass through the sensor, a current proportional to the magnetic field strength is generated inside the sensor. The gaussmeter captures this current value through its built-in signal processing unit, thereby accurately calculating the magnetic field strength at the corresponding position. To further reduce measurement errors, the gaussmeter can employ a detection method of multiple measurements and averaging. At each preset detection point, multiple consecutive measurements are performed, and the average value of the data is taken as the final magnetic field strength data for that detection point.

[0039] In some embodiments, the device further includes a host computer, which is signal-connected to the control module and used to display magnetic field uniformity data.

[0040] In this embodiment, the host computer is connected to the control module to receive magnetic field uniformity data and issue control commands such as target uniformity. The control module is also connected to the power supply module to enable automatic control of the power supply module, while the host computer can read parameters such as output current and power status. Furthermore, the control module is connected to the spacing control module, allowing the host computer to control the spacing control module and simultaneously read the real-time coil spacing and motor operating status. Through its connection to the control module, the host computer achieves centralized monitoring of device operating data and convenient control of core parameters, providing users with an intuitive and efficient operation and management interface.

[0041] Based on the same inventive concept, such as Figure 2 As shown, this disclosure also provides a method for generating a uniform magnetic field based on a Helmholtz coil, using the apparatus described in any of the above claims, comprising the following steps: S100: Place two adjacent target coils of the Helmholtz coil at a preset initial distance and supply power to the target coils to generate a magnetic field of a preset strength; Specifically, the control module sends a power supply command to the power module, and the power module's power controller responds immediately, starting the DC current source and outputting a stable current according to the preset current parameters. The current is sent to the target coil through the transmission line, causing the target coil to generate a magnetic field of preset strength. At the same time, the power module monitors the current stability in real time through the built-in sampling unit, and the host computer displays the current parameters synchronously.

[0042] S200: Acquire peak magnetic field strength data and edge magnetic field strength data of the magnetic fields generated by two adjacent target coils; Specifically, this step is performed by the magnetic field detection module and the analysis module. The magnetic field detection module collects magnetic field strength data and edge magnetic field strength data using a gaussmeter. Peak magnetic field strength data comes from the midpoint region of the axis, while edge magnetic field strength data comes from the magnetic field boundary region. Both peak and edge magnetic field strength data can be measured at multiple points in the corresponding regions, and then the average value is taken. After the detection is completed, the module transmits the processed peak and edge magnetic field strength data to the analysis module via a high-speed data bus.

[0043] S300: Determine the uniformity of the current magnetic field based on the peak magnetic field strength data and the edge magnetic field strength data; S400: Based on the current magnetic field uniformity and the target magnetic field uniformity, adjust the spacing between two adjacent target coils to make the magnetic field uniformity reach the target magnetic field uniformity.

[0044] In this step, the analysis module calculates the uniformity of the current magnetic field using the formula: Magnetic Field Uniformity = |Peak Magnetic Field Strength - Edge Magnetic Field Strength|. The uniformity of the current magnetic field is the absolute value of the difference between the peak magnetic field strength and the edge magnetic field strength. It is important to note that the magnitude of the magnetic field uniformity value is inversely related to the magnetic field homogeneity: a larger uniformity value indicates a greater difference in magnetic field strength between the peak and edge regions, resulting in poorer magnetic field homogeneity; a smaller uniformity value indicates that the strength of the magnetic field in different regions is more similar, resulting in better magnetic field homogeneity. For example, the target magnetic field uniformity can be set to 1Gs: when the current magnetic field uniformity is greater than 1Gs, it indicates that the magnetic field distribution difference exceeds the allowable range and the uniformity does not meet the standard; at this time, the control module controls the stepper motor of the spacing control module to rotate forward, and the motor increases the distance of the target coil through the transmission device until the uniformity (absolute value of the difference) drops to 1Gs; when the current magnetic field uniformity is less than 1Gs, it indicates that the magnetic field distribution difference is less than the target threshold and the uniformity is better than the requirement (or needs to match the magnetic field gradient of a specific scenario); at this time, the control module controls the stepper motor of the spacing control module to rotate in the reverse direction, and the motor decreases the distance of the target coil through the transmission device until the uniformity stabilizes at the target value of 1Gs.

[0045] The method in this embodiment has the same beneficial effects as the corresponding device embodiment, which will not be described in detail here.

[0046] In some embodiments, in step S400, adjusting the spacing between two adjacent target coils based on the uniformity of the current magnetic field and the uniformity of the target magnetic field to make the uniformity of the current magnetic field reach the uniformity of the target magnetic field includes: S401: In response to determining that the uniformity of the current magnetic field is greater than the target magnetic field uniformity, the distance between the two adjacent target coils is increased so that the magnetic field uniformity reaches the target magnetic field uniformity. S402: In response to determining that the uniformity of the current magnetic field is less than the target magnetic field uniformity, the distance between two adjacent target coils is shortened so that the magnetic field uniformity reaches the target magnetic field uniformity.

[0047] Specifically, the analysis module calculates the absolute value of the difference between the peak magnetic field strength data and the edge magnetic field strength data collected by the magnetic field detection module according to the preset formula: magnetic field uniformity = |peak magnetic field strength - edge magnetic field strength|, to obtain the specific value of the current magnetic field uniformity. The control module compares this calculation result with the preset target magnetic field uniformity (1Gs) in real time. If the comparison determines that the current magnetic field uniformity is greater than the target magnetic field uniformity, the control module controls the stepper motor of the spacing control module to rotate forward. The motor increases the distance between the target coils through the transmission device until the absolute value of the difference equals the target magnetic field uniformity. If the comparison determines that the current magnetic field uniformity is less than the target magnetic field uniformity, the distance between the two adjacent target coils is shortened to make the magnetic field uniformity reach the target magnetic field uniformity. Throughout the process, the displacement sensor of the spacing control module provides real-time feedback on the change in coil spacing, and the magnetic field detection module synchronously collects magnetic field strength data to ensure that the adjustment action and the change in uniformity are linked in real time, avoiding problems of over-adjustment or under-adjustment.

[0048] The steps described above for adjusting the distance between two adjacent target coils based on the uniformity of the current magnetic field and the uniformity of the target magnetic field are not completed in a single step, but are achieved through a cyclical mode of micro-adjustment, real-time detection, and precise correction, in order to avoid large uniformity deviations caused by excessive adjustment in a single step.

[0049] In some embodiments, in step S100, placing two adjacent target coils of the Helmholtz coil at a preset initial distance and supplying power to the target coils to generate a magnetic field of a preset strength includes: S101: Based on the preset magnetic field strength, target coil parameters, and preset initial spacing, determine the target input current required to generate the preset magnetic field strength in the target coil; In this step, the control module precisely adjusts the input current of the Helmholtz coil. The core basis for this adjustment is the mapping relationship between magnetic field strength and current established through theoretical analysis and software simulation. The specific implementation process is as follows: First, a Helmholtz coil simulation model with parameters consistent with the actual target coil is constructed based on the Matlab software platform. This model fully incorporates key physical parameters such as the number of coil turns, radius, and preset initial spacing to ensure the authenticity and reliability of the simulation results. Then, based on the Biot-Savart theorem, the theoretical derivation and simulation analysis of the magnetic field distribution are carried out. According to this theorem, such as... Figure 3 As shown, the formula for calculating the magnetic flux density at any point A on the axis of a single current-carrying circular coil is: (1) In the formula, μ0 is the permeability of free space (H / m); N is the number of turns in a single coil; I is the current flowing through it (A); R is the radius of the coil (m); and x is the distance from point A on the X-axis to the center point of the coil plane.

[0050] As can be seen from this formula, the magnetic field distribution on the axis of a single current-carrying circular coil exhibits the pattern that the intensity is greatest at the center of the coil and gradually decreases towards both sides along the axis.

[0051] In this embodiment, the one-dimensional Helmholtz coil consists of a pair of parallel, coaxial, and connected circular coils. Figure 4 The two coils have the same direction and magnitude of current. Its core characteristic is that when the coil radius is equal to the distance between the two coils, a relatively wide uniform magnetic field can be formed near the midpoint of the axis, and the direction of the magnetic field is parallel to the axis. Since the magnetic field distribution of a one-dimensional Helmholtz coil is the superposition effect of the magnetic fields of two current-carrying circular coils, assuming its axis coincides with the Z-axis and the distances of the two current-carrying circular coils to the XOY plane are equal, the formula for calculating the magnetic induction intensity at any point on its axis is: (2) In the formula: μ0 is the permeability of free space, H / m; N0 is the number of turns of a single coil; I is the current; R is the radius of the coil, m; h is the distance from the two coils to the XOY plane, m; z is the distance from any point on the axis to the origin of the coordinate system, m.

[0052] Using the aforementioned theoretical formulas, and given the coil turns N, radius R, distance h from the two coils to the XOY plane, and distance z from any point on the axis to the origin, the control module can deduce the target input current I required to generate the preset magnetic field strength in the target coil. Finally, the control module sends this target input current command to the power supply module, which outputs a stable current to the target coil from its DC current source. This not only ensures that the magnetic field strength generated by the Helmholtz coil precisely matches the preset requirements but also counteracts interference factors such as coil temperature drift and load fluctuations through a current closed-loop control mechanism, ensuring the stability of the magnetic field strength. Furthermore, based on the aforementioned theory and simulation support, when the magnetic field strength needs adjustment, simply updating the target current value through the control module achieves rapid and precise adjustment, fully meeting the magnetic field requirements in different scenarios.

[0053] S102: Input the target input current into the target coil so that the target coil generates a magnetic field of a preset strength.

[0054] In this embodiment, based on the preset magnetic field strength, target coil parameters, and preset initial spacing, the target input current required to generate the preset magnetic field strength is determined. When the magnetic field strength needs to be adjusted, the target current value only needs to be updated through the control module to achieve rapid and precise adjustment of the magnetic field strength, fully meeting the magnetic field requirements in different scenarios.

[0055] It should be noted that the method in this embodiment can be executed by a single device, such as a computer or server. The method can also be applied in a distributed scenario, where multiple devices cooperate to complete the task. In such a distributed scenario, one of these devices may execute only one or more steps of the method in this embodiment, and the multiple devices will interact with each other to complete the method described.

[0056] It should be noted that the above description describes some embodiments of this application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in a different order than that shown in the above embodiments and still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0057] Based on the same inventive concept, corresponding to any of the above embodiments, this application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the uniform magnetic field generation method described in any of the above embodiments.

[0058] Figure 5 This embodiment illustrates a more specific hardware structure of an electronic device. The device may include a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, memory 1020, input / output interface 1030, and communication interface 1040 are interconnected internally via the bus 1050.

[0059] The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0060] The memory 1020 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.

[0061] The input / output interface 1030 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components within the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touchscreens, microphones, various sensors, etc., while output devices may include displays, speakers, vibrators, indicator lights, etc.

[0062] The communication interface 1040 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0063] Bus 1050 includes a pathway for transmitting information between various components of the device, such as processor 1010, memory 1020, input / output interface 1030, and communication interface 1040.

[0064] It should be noted that although the above-described device only shows the processor 1010, memory 1020, input / output interface 1030, communication interface 1040, and bus 1050, in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the embodiments of this specification, and not necessarily all the components shown in the figures.

[0065] The electronic devices described above are used to implement the corresponding uniform magnetic field generation method in any of the foregoing embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0066] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the uniform magnetic field generation method as described in any of the above embodiments.

[0067] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a determined device.

[0068] The computer instructions stored in the storage medium of the above embodiments are used to cause the computer to execute the uniform magnetic field generation method as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0069] Based on the same concept, corresponding to any of the above embodiments, this application also provides a computer program product, including computer program instructions, which, when run on a computer, cause the computer to perform the method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0070] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of this application is limited to these examples; under the concept of this application, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of the embodiments of this application as described above, which are not provided in detail for the sake of brevity.

[0071] Additionally, to simplify the description and discussion, and to avoid obscuring the embodiments of this application, the well-known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided drawings. Furthermore, the apparatus may be shown in block diagram form to avoid obscuring the embodiments of this application, and this also takes into account the fact that the details of the implementation of these block diagram apparatuses are highly dependent on the platform on which the embodiments of this application will be implemented (i.e., these details should be fully understood by those skilled in the art). While specific details (e.g., circuits) have been set forth to describe exemplary embodiments of this application, it will be apparent to those skilled in the art that the embodiments of this application can be implemented without these specific details or with variations thereof. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0072] Although this application has been described in conjunction with specific embodiments thereof, many substitutions, modifications, and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may be used with the embodiments discussed.

[0073] The embodiments of this application are intended to cover all such substitutions, modifications, and variations that fall within the broad scope of the claims of this application. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the embodiments of this application should be included within the protection scope of this application.

Claims

1. A uniform magnetic field generating device based on a Helmholtz coil, characterized in that, include: A Helmholtz coil, wherein the Helmholtz coil comprises at least two adjacent target coils; A power module, connected to the target coil, is used to control the target coil to generate a magnetic field of a preset strength; A spacing control module, connected to at least one of the target coils, is used to control the spacing between two adjacent target coils; The magnetic field detection module is used to detect the peak magnetic field strength and edge magnetic field strength of the magnetic field generated by two adjacent target coils with a preset strength, and output the peak magnetic field strength data and edge magnetic field strength data. An analysis module, connected to the magnetic field detection module, is used to receive the peak magnetic field strength data and the edge magnetic field strength data, and determine the magnetic field uniformity generated by two adjacent target coils based on the data. The control module is connected to the analysis module and the spacing control module respectively. It is used to receive the magnetic field uniformity output by the analysis module and control the spacing control module to adjust the spacing between two adjacent target coils according to the magnetic field uniformity and the target magnetic field uniformity, so that the magnetic field uniformity reaches the target magnetic field uniformity.

2. The apparatus according to claim 1, characterized in that, The power module includes a power controller and a DC current source connected together. The DC current source is connected to the target coil and is used to control the target coil to generate a magnetic field of a preset intensity.

3. The apparatus according to claim 1, characterized in that, The spacing control module includes a motor and a transmission device. The output shaft of the motor is connected to the transmission device, and the transmission device is connected to the target coil to adjust the spacing between two adjacent target coils under the drive of the motor.

4. The apparatus according to claim 1, characterized in that, The magnetic field detection module includes a gaussmeter.

5. The apparatus according to claim 1, characterized in that, It also includes a host computer, which is connected to the control module by signals and is used to display magnetic field uniformity data.

6. A method for generating a uniform magnetic field based on a Helmholtz coil, using the apparatus described in any one of claims 1-5, characterized in that, Includes the following steps: Two adjacent target coils of a Helmholtz coil are placed at a preset initial distance, and power is supplied to the target coils to generate a magnetic field of a preset strength. Acquire the peak magnetic field strength data and edge magnetic field strength data of the magnetic fields generated by two adjacent target coils; Based on the peak magnetic field strength data and the edge magnetic field strength data, the uniformity of the current magnetic field is determined; Based on the current magnetic field uniformity and the target magnetic field uniformity, the distance between two adjacent target coils is adjusted so that the magnetic field uniformity reaches the target magnetic field uniformity.

7. The method according to claim 6, characterized in that, The step of adjusting the spacing between two adjacent target coils based on the current magnetic field uniformity and the target magnetic field uniformity to make the current magnetic field uniformity reach the target magnetic field uniformity includes: In response to the determination that the current magnetic field uniformity is greater than the target magnetic field uniformity, the distance between two adjacent target coils is shortened so that the magnetic field uniformity reaches the target magnetic field uniformity. In response to the determination that the uniformity of the current magnetic field is less than the target magnetic field uniformity, the distance between the two adjacent target coils is increased to make the magnetic field uniformity reach the target magnetic field uniformity.

8. The method according to claim 6, characterized in that, The step of placing two adjacent target coils of a Helmholtz coil at a predetermined initial distance and supplying power to the target coils to generate a magnetic field of a predetermined intensity includes: Based on the preset magnetic field strength, the target coil parameters, and the preset initial spacing, determine the target input current required to generate the preset magnetic field strength in the target coil; The target input current is input to the target coil to generate a magnetic field of a preset strength.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the program, it implements the method as described in any one of claims 6 to 8.

10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method according to any one of claims 6 to 8.

11. A computer program product comprising computer program instructions, characterized in that, When the computer program instructions are executed on a computer, the computer causes the computer to perform the method as described in any one of claims 6-8.