Multi-point proximity switching value detection method based on Hall sensor array

Through the initialization of the Hall sensor array and magnetic flux calibration, combined with the full combination superposition strategy of traversing grouping and analog signal change amount, the crosstalk signal problem of the Hall sensor array in multi-point proximity switching detection is solved, achieving high accuracy and high efficiency detection effects.

CN119780695AActive Publication Date: 2025-04-08JINAN UNIVERSITY
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411985882.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-04-08
Estimated Expiration
2044-12-31

AI Technical Summary

Technical Problem

The existing Hall sensor arrays have crosstalk signal problems in multi-point proximity switch detection, and the signal noise is relatively low, making it difficult to accurately judge the proximity switch.

Method used

Ensure the initial state of each Hall sensor is accurate through initialization and flux calibration, using a full combination superposition strategy of traversing grouping and analog signal change amounts to calculate the real-time analog error squared to determine the detection result.

Benefits of technology

It improves the accuracy and reliability of detection, reduces false alarms and missed reports, reduces hardware costs, improves detection efficiency, and adapts to different application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119780695A_ABST
    Figure CN119780695A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-point proximity switching value detection method based on a Hall sensor array, which ensures that the initial state of a Hall sensor is accurate through initialization and calibration steps, reduces errors, improves the detection accuracy and reliability through simulating magnetic field change according to a magnetic flux calibration criterion, and can be used by a user according to requirements. A part containing a permanent magnet is flexibly placed above a sensor, position information is input, the system is made to adapt to different application scenes, a traversal grouping and analog signal variation full combination superposition strategy is adopted, simultaneous detection of multiple detection points is achieved, expandability is improved, after a real-time detection stage is started, the Hall sensor is continuously sampled, and the detection accuracy is improved. Real-time simulation error square is rapidly calculated, timely response to magnetic field change is ensured, user operation is simple and convenient, use difficulty is reduced, a Hall sensor array reduces cost and improves efficiency, false alarm and missing alarm are reduced through accurate detection and rapid response, and follow-up processing cost is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of multi-point proximity switch quantity detection, and in particular to a multi-point proximity switch quantity detection method based on a Hall sensor array. Background Art

[0002] Hall sensor arrays are widely used in multi-point proximity switch detection, especially in scenarios such as electronic piano keys that require simultaneous processing of multiple permanent magnet approach or distance signals. However, the existing technology has the following defects:

[0003] First, when the permanent magnet approaches the Hall sensor array, not only the target sensor will generate a signal, but its adjacent sensors may also be interfered with, generating crosstalk signals. This crosstalk signal is particularly obvious when the permanent magnet is not close enough to the sensor or the distance between the sensors is not large enough, which will seriously affect the accurate judgment of the switching quantity.

[0004] Secondly, although in theory the signal of the Hall sensor can be estimated based on the magnetic flux according to the proximity of the permanent magnet and the proximity switch quantity can be calculated accordingly, in practice, the consistency of the Hall sensor is difficult to ensure completely and there is a lot of noise in the signal output by the sensor, so the signal quantity after filtering may be greatly different from the theoretical value. In addition, the magnetic flux of the permanent magnet is also difficult to unify with high precision, resulting in the use of magnetic flux as the specific calculation basis when the signal-to-noise ratio is low. It is not feasible. Summary of the invention

[0005] In view of this, the present invention proposes a multi-point proximity switch value detection method based on a Hall sensor array, which can accurately detect the multi-point proximity switch value.

[0006] The technical solution of the present invention is achieved in this way:

[0007] A multi-point proximity switch quantity detection method based on a Hall sensor array specifically includes:

[0008] Initializing a Hall sensor array, wherein the Hall sensor array is a one-dimensional or two-dimensional array, wherein any Hall sensor is arranged equidistantly from its adjacent Hall sensors;

[0009] Perform initial calibration. The user starts the initial calibration process with a duration of t1. The analog-to-digital converter samples and stores the signals of all Hall sensors at a certain frequency f, and calculates the average signal of each Hall sensor.

[0010] To perform magnetic flux calibration, the user starts the magnetic flux calibration process with a duration of t2. The user places a component containing a permanent magnet on a Hall sensor in the center of the array. The Hall sensor must have complete primary and secondary adjacent sensors. The user repeatedly presses and releases the component. The system samples and stores the signal of the Hall sensor and its primary and secondary adjacent sensors, and calculates the maximum and minimum values ​​of the signal reduction.

[0011] According to the detection requirements, the user places a component containing a permanent magnet above the Hall sensor to be detected and enters the position information of the Hall sensor. The system marks the Hall sensor as activated.

[0012] All activated Hall sensors are traversed and grouped to form several groups with different group numbers;

[0013] For all possible combinations of pressing the components containing permanent magnets corresponding to the Hall sensors in each group, a full combination superposition of the analog signal changes is performed to form multiple simulation schemes;

[0014] The system enters real-time detection, continuously samples all Hall sensors, calculates the real-time simulation error square of each simulation scheme in each group, and obtains the detection result of the pressing condition of the permanent magnet in this group based on the real-time simulation error square.

[0015] As a further optional solution of the multi-point proximity switch detection method based on the Hall sensor array, the one-dimensional arrangement of the Hall sensor array is a straight line equidistant arrangement, and the two-dimensional arrangement is a staggered arrangement row by row to form a regular hexagonal center layout.

[0016] As a further optional scheme of the multi-point proximity switch quantity detection method based on the Hall sensor array, in the real-time detection step, the system traverses all groups, and for each simulation scheme in each group, calculates the square of the error between the real-time signal change obtained by sampling each Hall sensor in the group and the signal change simulated by the Hall sensor in the simulation scheme, and selects the simulation scheme with the smallest total square error as the detection result.

[0017] As a further optional solution of the multi-point proximity switch detection method based on the Hall sensor array, the average signal amount of each Hall sensor is calculated, and the specific calculation formula is:

[0018]

[0019] Among them, the is the average reference signal quantity, is the signal after smoothing filtering for the kth sampling.

[0020] As a further optional solution of the multi-point proximity switch detection method based on the Hall sensor array, the calculation signal reduction amount is specifically calculated by the formula:

[0021]

[0022] Among them, the is the signal reduction, θ is the correction factor.

[0023] As a further optional solution of the multi-point proximity switch detection method based on the Hall sensor array, the method also includes performing a smoothing filtering operation on the Hall sensor signal.

[0024] A multi-point proximity switch detection device based on a Hall sensor array, comprising:

[0025] A Hall sensor array module, wherein the Hall sensor array module is a one-dimensional or two-dimensional array structure, wherein any Hall sensor is arranged equidistantly from its adjacent Hall sensors, for detecting magnetic field changes;

[0026] Initialization and calibration module, used for initial calibration. The user starts the initial calibration process with a duration of t1. The analog-to-digital converter samples and stores the signals of all Hall sensors at a certain frequency f, and calculates the average signal of each Hall sensor.

[0027] The activation and grouping module is used to receive user input, place a component containing a permanent magnet above the Hall sensor to be detected, and input the position information of the Hall sensor. The system marks it as an activated Hall sensor and traverses and groups all activated Hall sensors to form several groups with different group numbers.

[0028] The simulation and detection module is used to perform a full combination superposition of the analog signal changes of the Hall sensors in each group to form multiple simulation schemes, and when the system enters the real-time detection stage, continuously sample all Hall sensors, calculate the real-time simulation error square of each simulation scheme in each group, and obtain the detection result of the pressing condition of the permanent magnet in this group based on the real-time simulation error square;

[0029] The control and processing module is used to control the initialization, calibration, activation grouping, simulation and detection process of the entire detection device, and process related data to output the final detection result.

[0030] As a further optional solution of the multi-point proximity switch detection device based on the Hall sensor array, the device also includes a smoothing filter processing module for performing a smoothing filter operation on the Hall sensor signal.

[0031] A computing device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the multi-point proximity switch quantity detection method based on the Hall sensor array are implemented.

[0032] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the multi-point proximity switch quantity detection method based on a Hall sensor array are implemented.

[0033] The beneficial effects of the present invention are as follows: the initialization and calibration steps ensure that the initial state of each Hall sensor is accurately recorded, reducing errors caused by individual differences in sensors or environmental factors; the magnetic flux calibration further improves the accuracy and reliability of detection by simulating magnetic field changes in actual use scenarios; users can flexibly place components containing permanent magnets above the Hall sensors to be detected according to detection requirements, and input position information, which enables the system to adapt to different application scenarios; the full combination superposition strategy of traversing grouping and analog signal change amount enables the system to handle simultaneous detection of multiple detection points, thereby improving the scalability of the system; after entering the real-time detection stage, all Hall sensors can be continuously sampled, and the real-time simulation error square of each simulation scheme in each group can be quickly calculated, thereby quickly obtaining the detection result; this real-time performance ensures that the system can respond to magnetic field changes in a timely manner; users can activate the Hall sensor and perform detection through simple operations, thereby reducing the difficulty of use; the use of the Hall sensor array reduces the hardware cost and improves the detection efficiency; through accurate detection and rapid response, false alarms and missed alarms can be reduced, thereby saving subsequent processing costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 A schematic diagram of the steps of a multi-point proximity switch value detection method based on a Hall sensor array provided in an embodiment of the present invention;

[0036] Figure 2 A schematic diagram of the composition of a multi-point proximity switch detection device based on a Hall sensor array provided in an embodiment of the present invention;

[0037] Figure 3 It is an equidistant one-dimensional sensor array;

[0038] Figure 4 A two-dimensional sensor array is arranged in a hexagonal staggered pattern. DETAILED DESCRIPTION

[0039] The technical solutions in the embodiments of the present invention are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0040] refer to Figure 1 to Figure 2 , a multi-point proximity switch quantity detection method based on a Hall sensor array, specifically comprising:

[0041] Initializing a Hall sensor array, wherein the Hall sensor array is a one-dimensional or two-dimensional array, wherein any Hall sensor is arranged equidistantly from its adjacent Hall sensors;

[0042] Perform initial calibration. The user starts the initial calibration process with a duration of t1. The analog-to-digital converter samples and stores the signals of all Hall sensors at a certain frequency f, and calculates the average signal of each Hall sensor.

[0043] To perform magnetic flux calibration, the user starts the magnetic flux calibration process with a duration of t2. The user places a component containing a permanent magnet on a Hall sensor in the center of the array. The Hall sensor must have complete primary and secondary adjacent sensors. The user repeatedly presses and releases the component. The system samples and stores the signal of the Hall sensor and its primary and secondary adjacent sensors, and calculates the maximum and minimum values ​​of the signal reduction.

[0044] According to the detection requirements, the user places a component containing a permanent magnet above the Hall sensor to be detected and enters the position information of the Hall sensor. The system marks the Hall sensor as activated.

[0045] All activated Hall sensors are traversed and grouped to form several groups with different group numbers;

[0046] For all possible combinations of pressing the components containing permanent magnets corresponding to the Hall sensors in each group, a full combination superposition of the analog signal changes is performed to form multiple simulation schemes;

[0047] The system enters real-time detection, continuously samples all Hall sensors, calculates the real-time simulation error square of each simulation scheme in each group, and obtains the detection result of the pressing condition of the permanent magnet in this group based on the real-time simulation error square.

[0048] In this embodiment, the initialization and calibration steps ensure that the initial state of each Hall sensor is accurately recorded, reducing errors caused by individual differences in sensors or environmental factors. The magnetic flux calibration further improves the accuracy and reliability of detection by simulating magnetic field changes in actual use scenarios. Users can flexibly place components containing permanent magnets above the Hall sensors to be detected according to detection requirements and input position information, which enables the system to adapt to different application scenarios. The full combination superposition strategy of traversing grouping and analog signal change enables the system to handle simultaneous detection of multiple detection points, improving the scalability of the system. After entering the real-time detection stage, all Hall sensors can be continuously sampled, and the real-time simulation error square of each simulation scheme in each group can be quickly calculated, so as to quickly obtain the detection results. This real-time performance ensures that the system can respond to magnetic field changes in a timely manner. Users only need to activate the Hall sensor and perform detection through simple operations, reducing the difficulty of use. The use of the Hall sensor array reduces hardware costs and improves detection efficiency. Through accurate detection and rapid response, false alarms and missed alarms can be reduced, thereby saving subsequent processing costs.

[0049] Preferably, the one-dimensional arrangement of the Hall sensor array is a straight-line equidistant arrangement, and the two-dimensional arrangement is a staggered arrangement row by row to form a regular hexagonal central layout.

[0050] In this embodiment, the one-dimensional straight line equidistant arrangement ensures that each sensor has a uniform interval in the straight line direction, which is convenient for accurate and consistent detection in a single direction. The two-dimensional staggered arrangement in rows to form a regular hexagonal center layout maximizes the use of space, so that the sensor array covers a wider detection area on the two-dimensional plane, while reducing the blind spots between sensors, improving the comprehensiveness and accuracy of detection; the equidistant arrangement helps to reduce signal interference between sensors, because each sensor is under the same environmental conditions and is affected by adjacent sensors in the same way. The regular hexagonal layout reduces the direct signal overlap between adjacent sensors through the staggered arrangement, further It reduces noise and interference, improves signal quality and detection accuracy; the equidistant arrangement allows the sensor array to maintain consistent sensitivity when detecting targets, because each sensor can respond uniformly to changes in the magnetic field. The regular hexagonal layout increases the number of sensors and optimizes their arrangement, which improves the detection resolution of the array, allowing the system to more accurately identify changes in the magnetic field at different locations; both the straight-line equidistant arrangement and the row-by-row staggered arrangement make the installation of the sensor array simpler and more intuitive, because the position and spacing between sensors are fixed. This standardized arrangement also helps with subsequent maintenance and troubleshooting, because faulty sensors can be easily identified and replaced.

[0051] Preferably, in the real-time detection step, the system traverses all groups, and for each simulation scheme in each group, calculates the square of the error between the real-time signal change obtained by sampling each Hall sensor in the group and the signal change simulated by the Hall sensor in the simulation scheme, and selects the simulation scheme with the smallest total square error as the detection result.

[0052] In this embodiment, by calculating the square of the error between the real-time signal change and the simulated signal change, the system can quantitatively evaluate the degree of closeness of each simulation scheme to the actual situation, and select the scheme with the smallest total square error as the detection result, which can minimize the error and improve the accuracy of the detection; in actual applications, due to the interference of various external factors (such as magnetic field fluctuations, temperature changes, etc.), the signal output by the sensor may have certain fluctuations. By calculating the square of the error and selecting the scheme with the minimum value, the system can perform certain fault tolerance processing on these fluctuations, thereby enhancing the robustness and stability of the system; by traversing all groups and simulation schemes, although the amount of calculation is increased, this process is carried out in the background and has little impact on the user's real-time experience. At the same time, since the scheme with the smallest total square error is selected, the system can quickly obtain the detection results while ensuring accuracy, thereby improving the detection efficiency; it can be applied to different detection scenarios and needs. Whether it is single-point detection or multi-point detection, the system can adapt by adjusting the simulation scheme and traversal strategy.

[0053] Preferably, the average signal amount of each Hall sensor is calculated by the following specific calculation formula:

[0054]

[0055] Among them, the is the average reference signal quantity, is the signal after smoothing filtering for the kth sampling.

[0056] Preferably, the calculation signal reduction amount is specifically calculated by the following formula:

[0057]

[0058] Among them, the is the signal reduction, θ It is a correction coefficient, which can be set by the user between 0.8 and 1 according to actual use.

[0059] Preferably, the method further comprises performing a smoothing filtering operation on the Hall sensor signal.

[0060] In this embodiment, the Hall sensor may be interfered by various environmental noises and internal circuit noises during operation, resulting in noise components in the output signal. The smoothing filtering operation can effectively reduce these noises, making the output signal smoother and purer. The signal quality after smoothing filtering is higher, thereby improving the measurement accuracy of the system. The smoothing filtering operation can simplify the signal processing process and reduce the complexity of subsequent processing steps, which helps to improve data processing efficiency and reduce system power consumption.

[0061] The detailed steps of the detection method are as follows:

[0062] After the sensor power-on self-test initialization is completed, the user first starts the initial calibration with a duration of t1. t1 can be set within a range of not less than 5 seconds according to the actual application. During the initial calibration, the system samples and stores the signals of all sensors at a certain frequency f through an analog-to-digital (AD) converter. According to the needs, f can take a value of not less than 25. During the initial calibration, the user cannot move the permanent magnet, otherwise the calibration will fail. The system sets a signal change threshold. If the signal change exceeds the threshold, it is determined that the user has moved the permanent magnet and the user is required to restart the initial calibration.

[0063] After the initial calibration is completed, the system calculates the average signal of each sensor. The specific calculation formula is:

[0064]

[0065] Among them, the is the average reference signal quantity, is the signal after smoothing filtering at the kth sampling;

[0066] The user is required to place only one component containing a permanent magnet in the center of the array. The sensor corresponding to the component is required to have 6 complete level 1 adjacent sensors and 12 level 2 adjacent sensors. After the placement is completed, the user inputs the position of the sensor and the system stores it and informs the user to start the magnetic flux calibration. Let this sensor be sensor i_j;

[0067] The duration of magnetic flux calibration is t2, which can be set within a range of not less than 10 seconds according to the actual application. During the calibration process, the user is required to repeatedly press and release the permanent magnet component for more than 5 times, and the system samples and stores all the signals of sensor i_j and its 1st and 2nd level adjacent sensors;

[0068] After the magnetic flux calibration is completed, the system calculates the signal reduction of sensor i_j. The specific calculation formula is:

[0069]

[0070] Among them, the is the signal reduction, θ It is the correction coefficient, which can be set by the user between 0.8 and 1 according to actual use;

[0071] The system uses the same formula to calculate the signal reduction of 6 adjacent sensors at level 1, and averages the signal reduction of adjacent sensors at level 1, which is recorded as

[0072] The system uses the same formula to calculate the signal reduction of 12 2-level adjacent sensors, and averages the signal reduction of 2-level adjacent sensors, which is recorded as

[0073] The user removes the component containing the permanent magnet, and re-places the component on the sensor to be detected according to his needs. After the placement is completed, the row and column of the sensor to be detected by the permanent magnet are input into the system, and the system stores and marks the sensor as an activated sensor;

[0074] After the positions of all activated sensors are input, the system uses the following steps to perform a first-level traversal of all activated sensors: Before the first-level traversal, each sensor is assigned a unique serial number, such as i*m+j, and a group number, which is the same as the serial number. For any activated sensor, its serial number is set to a, and a second-level traversal is performed on all other sensors except this sensor. If other activated sensors are its first-level or second-level adjacent sensors, the sensor is an isolated sensor and no operation is performed. The group number is its serial number. For any activated sensor, its serial number is set to a, and a second-level traversal is performed on all other sensors except this sensor. If any other activated sensor b is its first-level or second-level adjacent sensor, the second-level traversal is stopped, and the group number of sensor a is changed to b. At the same time, the group numbers of all activated sensors with group number a are changed to b.

[0075] After the first level of traversal is completed, the system will form several groups with different group numbers. The system will traverse all groups according to the following steps: If there is only one activated sensor in the group, the signal will be reduced by As the analog value of the sensor pressed And store the sensor position and signal reduction. If there are u activated sensors in the group, the signal simulation values ​​of all sensors in the group when the corresponding permanent magnet is pressed are combined and superimposed and stored. For example, first simulate the first, second, third, ... u components when they are pressed separately, and store the signal changes of all sensors in the group. At this time, except for the sensor that presses the permanent magnet, there is a signal change The 1st and 2nd level adjacent sensors will also generate signal changes, and the system records the simulated value. For example, if a sensor is the 1st level adjacent sensor of the 1st sensor, when the 1st sensor is simulated to be pressed, its signal change is The simulated signal changes of all sensors in the group and the corresponding sensors are stored to form a simulation scheme. Then, the permanent magnets corresponding to the first and second sensors are simulated to be pressed at the same time, and the signal changes of all sensors in the group are simulated. At this time, in addition to the first and second sensors, other sensors in the group will also have corresponding signal changes. The signal change of any sensor is the superposition of the signal changes generated by pressing all permanent magnets under this simulation. For example, if a sensor is a level 1 adjacent sensor of both the first and second sensors, its signal change is If a sensor is both the first sensor's second-level adjacent sensor and the second sensor's first-level adjacent sensor, then its signal change is If the first sensor is also the first-level adjacent sensor of the second sensor, then its signal change is The simulated signal changes of all sensors in the group and the corresponding sensors are stored to form a simulation scheme. Then, the permanent magnets corresponding to the second and third sensors are simulated to be pressed at the same time, the permanent magnets corresponding to the third and fourth sensors are simulated to be pressed at the same time... the permanent magnets corresponding to the u-1th and u-th sensors are simulated to be pressed at the same time, and the corresponding scheme is stored. Then, the first, second and third sensors are simulated to be pressed at the same time, the second, third and fourth sensors are simulated to be pressed at the same time... the permanent magnets corresponding to the u-2th, u-1th and u-th sensors are simulated to be pressed at the same time, and the corresponding scheme is stored, and so on, and finally the model scheme of all u sensors in the group being pressed is simulated. The total number of all simulation schemes is u! ;

[0076] After completing the calculation, the system enters real-time detection and continuously samples all sensors. The sampled values ​​are processed as follows: all groups are traversed, and for each group, each simulation scheme of the group is traversed, and the real-time signal change obtained by sampling each sensor in the group is subtracted from the signal change simulated by the sensor in the simulation scheme, and the square is obtained to obtain the real-time simulation error square, and the real-time simulation error squares of all sensors in any simulation scheme q are added to obtain the total real-time simulation error square of the simulation scheme. Among all simulation schemes, the simulation scheme with the smallest total real-time simulation error square is selected as the detection result of the current system for the pressing of the permanent magnet of this group. After completing the traversal of all groups, the pressing status of the permanent magnet corresponding to the current left and right sensors can be determined.

[0077] A multi-point proximity switch detection device based on a Hall sensor array, comprising:

[0078] A Hall sensor array module, wherein the Hall sensor array module is a one-dimensional or two-dimensional array structure, wherein any Hall sensor is arranged equidistantly from its adjacent Hall sensors, for detecting magnetic field changes;

[0079] Initialization and calibration module, used for initial calibration. The user starts the initial calibration process with a duration of t1. The analog-to-digital converter samples and stores the signals of all Hall sensors at a certain frequency f, and calculates the average signal of each Hall sensor.

[0080] The activation and grouping module is used to receive user input, place a component containing a permanent magnet above the Hall sensor to be detected, and input the position information of the Hall sensor. The system marks it as an activated Hall sensor and traverses and groups all activated Hall sensors to form several groups with different group numbers.

[0081] The simulation and detection module is used to perform a full combination superposition of the analog signal changes of the Hall sensors in each group to form multiple simulation schemes, and when the system enters the real-time detection stage, continuously sample all Hall sensors, calculate the real-time simulation error square of each simulation scheme in each group, and obtain the detection result of the pressing condition of the permanent magnet in this group based on the real-time simulation error square;

[0082] The control and processing module is used to control the initialization, calibration, activation grouping, simulation and detection process of the entire detection device, and process related data to output the final detection result.

[0083] Preferably, the device further comprises a smoothing filter processing module for performing a smoothing filter operation on the Hall sensor signal.

[0084] A computing device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the multi-point proximity switch quantity detection method based on the Hall sensor array are implemented.

[0085] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the multi-point proximity switch quantity detection method based on a Hall sensor array are implemented.

[0086] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A multi-point proximity switch detection method based on a Hall sensor array, characterized in that: Specifically include: Initializing a Hall sensor array, wherein the Hall sensor array is a one-dimensional or two-dimensional array, wherein any Hall sensor is arranged equidistantly from its adjacent Hall sensors; Perform initial calibration. The user starts the initial calibration process with a duration of t1. The analog-to-digital converter samples and stores the signals of all Hall sensors at a certain frequency f, and calculates the average signal of each Hall sensor. To perform magnetic flux calibration, the user starts the magnetic flux calibration process with a duration of t2. The user places a component containing a permanent magnet on a Hall sensor in the center of the array. The Hall sensor must have complete primary and secondary adjacent sensors. The user repeatedly presses and releases the component. The system samples and stores the signal of the Hall sensor and its primary and secondary adjacent sensors, and calculates the maximum and minimum values ​​of the signal reduction. According to the detection requirements, the user places a component containing a permanent magnet above the Hall sensor to be detected and enters the position information of the Hall sensor. The system marks the Hall sensor as activated. All activated Hall sensors are traversed and grouped to form several groups with different group numbers; For all possible combinations of pressing the components containing permanent magnets corresponding to the Hall sensors in each group, a full combination superposition of the analog signal changes is performed to form multiple simulation schemes; The system enters real-time detection, continuously samples all Hall sensors, calculates the real-time simulation error square of each simulation scheme in each group, and obtains the detection result of the pressing condition of the permanent magnet in this group based on the real-time simulation error square.

2. A multi-point proximity switch detection method based on a Hall sensor array according to claim 1, characterized in that: The one-dimensional arrangement of the Hall sensor array is a straight-line equidistant arrangement, and the two-dimensional arrangement is a staggered arrangement row by row, forming a regular hexagonal central layout.

3. A multi-point proximity switch detection method based on a Hall sensor array according to claim 2, characterized in that: In the real-time detection step, the system traverses all groups, and for each simulation scheme in each group, calculates the square of the error between the real-time signal change obtained by sampling each Hall sensor in the group and the signal change simulated by the Hall sensor in the simulation scheme, and selects the simulation scheme with the smallest total square error as the detection result.

4. A multi-point proximity switch detection method based on a Hall sensor array according to claim 3, characterized in that: The specific calculation formula for calculating the average signal amount of each Hall sensor is: Among them, the is the average reference signal quantity, is the signal after smoothing filtering for the kth sampling.

5. A multi-point proximity switch detection method based on a Hall sensor array according to claim 4, characterized in that: The specific calculation formula for calculating the signal reduction is: Among them, the is the signal reduction, θ is the correction factor.

6. A multi-point proximity switch detection method based on a Hall sensor array according to claim 5, characterized in that: The method further includes performing a smoothing filtering operation on the Hall sensor signal.

7. A multi-point proximity switch detection device based on a Hall sensor array, characterized in that: include: A Hall sensor array module, wherein the Hall sensor array module is a one-dimensional or two-dimensional array structure, wherein any Hall sensor is arranged equidistantly from its adjacent Hall sensors, for detecting magnetic field changes; Initialization and calibration module, used for initial calibration. The user starts the initial calibration process with a duration of t1. The analog-to-digital converter samples and stores the signals of all Hall sensors at a certain frequency f, and calculates the average signal of each Hall sensor. The activation and grouping module is used to receive user input, place a component containing a permanent magnet above the Hall sensor to be detected, and input the position information of the Hall sensor. The system marks it as an activated Hall sensor and traverses and groups all activated Hall sensors to form several groups with different group numbers. The simulation and detection module is used to perform a full combination superposition of the analog signal changes of the Hall sensors in each group to form multiple simulation schemes, and when the system enters the real-time detection stage, continuously sample all Hall sensors, calculate the real-time simulation error square of each simulation scheme in each group, and obtain the detection result of the pressing condition of the permanent magnet in this group based on the real-time simulation error square; The control and processing module is used to control the initialization, calibration, activation grouping, simulation and detection process of the entire detection device, and process related data to output the final detection result.

8. The multi-point proximity switch detection device based on the Hall sensor array according to claim 7 is characterized in that: The device also includes a smoothing filter processing module, which is used to perform a smoothing filter operation on the Hall sensor signal.

9. A computing device, characterized in that The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method implements the steps of the multi-point proximity switch quantity detection method based on the Hall sensor array as claimed in any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the multi-point proximity switch quantity detection method based on the Hall sensor array according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Integrated proximity switch, proximity switch system and proximity switch manufacturing method

    CN110880927A

  • Error compensation method and device of Hall sensor, electronic equipment and storage medium

    CN116772700A

  • Current sensor system

    EP3364208A1

  • Calibration of hall device sensitivity using auxiliary hall device

    WO2019199983A1