Method for judging position through Hall element
By using two Hall sensors to detect the motor position and calculate its average value, the problem of origin uncertainty caused by the delay of a single Hall sensor is solved, which significantly improves the accuracy and reliability of motor position detection, providing accurate and accurate for motor control. Base.
Patent Information
- Application Number
- CN202411424667.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-12
- Publication Date
- 2025-01-14
AI Technical Summary
The motor origin certainty caused by the single Hall sensor is not high due to signal processing delay, especially when the motor speed changes, which affects position detection accuracy and system performance.
Two Hall sensors are used to detect the motor position separately, and the mechanical origin is determined by calculating their average values to ensure consistent delays at different speeds, thereby improving the accuracy of position detection.
The average calculation eliminates the uncertainty caused by the delay of a single Hall sensor, significantly improves the accuracy and reliability of motor position detection, and provides an accurate reference point for subsequent control.
Smart Images

Figure CN119309604A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of anti-interference circuits, and in particular relates to a method for determining a position through a Hall element. Background Art
[0002] The mechanical origin provides a reference point for the movement of the motor, allowing the control system to accurately know the initial position of the motor. This is critical for applications that require precise position control, such as automation and manufacturing processes, where the motor needs to move repeatedly between specific positions. Determining the mechanical origin ensures that the motor returns to the same position every time, ensuring consistent and repeatable operation.
[0003] At present, contactless Hall sensors are generally used to determine the mechanical origin of the motor in the device. Contactless Hall sensors have the advantages of non-contact measurement and fast response speed, but the Hall sensor has a rise and fall delay, and the delay is different at different speeds. Therefore, the origin determined by a single Hall sensor is uncertain. This delay is mainly caused by the signal processing and amplification process inside the Hall sensor. When the motor speed changes greatly, this speed-related delay will reduce the accuracy of the origin detection, thereby affecting the performance of the entire system.
[0004] Therefore, the prior art has defects. Summary of the invention
[0005] The purpose of the present invention is to overcome the deficiency of uncertainty in the origin determined by a single Hall sensor in the above-mentioned prior art, and to provide a method for determining a position by using a Hall element.
[0006] The present invention is implemented as follows: A method for determining position by using a Hall element comprises the following steps:
[0007] S01, setting two Hall sensors, named as the first Hall element and the second Hall element respectively;
[0008] S02, driving the motor at a certain speed to run in the direction of any of the Hall sensors;
[0009] S03, continuously monitoring the output signals of the first Hall element and the second Hall element;
[0010] S04, when the first Hall element detects the first falling edge, the position of the motor at this time is recorded as x1;
[0011] S05, when the second Hall element detects the first falling edge, the position of the motor at this time is recorded as x2;
[0012] S06, the motor stops, and the position of the origin is calculated by software, i.e. (x1+x2) / 2;
[0013] S07. Set the calculated origin position as the mechanical origin of the motor.
[0014] Furthermore, in subsequent software processing, the calculated origin position is used as the origin of the coordinate system. During the operation of the motor, when the recorded motor position value increases, it indicates that the motor is running in the positive direction, and when the recorded motor position value decreases, it indicates that the motor is running in the reverse direction.
[0015] Furthermore, the coordinate value of the origin is unique during the entire motor operation process, and the accuracy is ±1 minimum position resolution.
[0016] Furthermore, during the operation of the motor, the origin position is updated in real time, and the origin position is adjusted or offset according to specific application requirements to adapt to different measurement or control requirements.
[0017] Furthermore, the first Hall element and the second Hall element have the same delay at different speeds.
[0018] Furthermore, the first Hall element and the second Hall element are installed in the radial position of the motor rotor to ensure synchronous detection of the passing magnet.
[0019] The present invention provides a method for determining position through Hall elements. By recording the motor positions when the first Hall element and the second Hall element detect the first falling edge respectively, the initial position can be accurately captured during the motor startup phase, providing an accurate reference point for subsequent position control, and the average value of the output signals of the two Hall sensors is calculated to determine the origin position, thereby eliminating the uncertainty caused by the delay of a single Hall sensor and significantly improving the accuracy of motor position detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] 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 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.
[0021] The following drawings are only intended to illustrate and explain the present invention, and are not intended to limit the scope of the present invention.
[0022] Figure 1 The present invention provides a method for determining a position by using a Hall element.
[0023] Figure 2 This is a working principle diagram of a method for determining position through a Hall element provided by the present invention. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0025] See also Figure 1-Figure 2 , a method for determining position by using a Hall element disclosed in the invention, a method for determining position by using a Hall element, comprising the following steps:
[0026] S01. Set two Hall sensors, named as the first Hall element and the second Hall element respectively.
[0027] S02. Drive the motor at a certain speed to run in the direction of any of the Hall sensors.
[0028] The first Hall element and the second Hall element are installed in the radial position of the motor rotor to ensure synchronous detection of the magnet passing through the motor rotor.
[0029] S03. Continuously monitor the output signals of the first Hall element and the second Hall element.
[0030] When the magnetic field changes, the carriers in the first Hall element and the second Hall element will be affected by the Lorentz force, resulting in a change in the Hall voltage. The change in the Hall voltage is amplified and processed by the circuit, and then converted into a digital signal for further analysis and control. That is, according to the change in the Hall voltage, the first Hall element and the second Hall element can output corresponding signals for control or monitoring.
[0031] And the first Hall element and the second Hall element have the same delay at different speeds. "Delay" refers to the time difference between the change in magnetic field (such as the magnet on the motor rotor passing through the sensor) and the corresponding level change (such as jumping from a high level to a low level) output by the first Hall element or the second Hall element. In the motor control system, the speed of the motor may change, resulting in different speeds at which the magnet passes through the Hall sensor. If the two Hall sensors have the same delay at different speeds, their response time to magnetic field changes will remain consistent. That is, due to the matching delay characteristics of the first Hall element and the second Hall element, the position measurement data they provide at different speeds will have higher consistency. When the first Hall element and the second Hall element respond with the same delay, the exact position of the motor can be determined more accurately, reducing the system error caused by the difference in response time, thereby improving the overall measurement accuracy.
[0032] S04. When the first Hall element detects the first falling edge, the position of the motor at this time is recorded as x1.
[0033] When the motor rotates and the Hall sensor is aligned with the magnet on the motor's rotor or encoder, the sensor detects the presence of the magnetic field and generates a high-level signal. When the magnet passes the first Hall element and the magnetic field disappears, the output of the first Hall element jumps from a high level to a low level, generating a falling edge, that is, x1 is the position of the magnet passing on the motor when the first Hall element first detects the disappearance of the magnetic field.
[0034] S05. When the second Hall element detects the first falling edge, the position of the motor at this time is recorded as x2.
[0035] Similarly, x2 is the position of the magnet passing through the motor when the second Hall element first detects the disappearance of the magnetic field.
[0036] S06, the motor stops, and the position of the origin is calculated by software, that is, (x1+x2) / 2.
[0037] By taking the average of two independent measurements, the error caused by factors such as sensor error or motor vibration can be further reduced, thereby improving the overall measurement accuracy. In addition, if the first Hall element and the second Hall element have deviations due to installation errors or other factors, the average value can also help eliminate such deviations and obtain a more accurate origin position.
[0038] S07. Set the calculated origin position as the mechanical origin of the motor.
[0039] Furthermore, in the subsequent software processing, the calculated origin position is used as the origin of the coordinate system (coordinate = 0), and the origin position is used as the reference point for motor position measurement. Any position measurement of the motor will be performed relative to this origin. The feedback control system with the origin as the reference is easier to implement, which helps to achieve accurate speed and position control. The coordinate value of the origin is unique throughout the motor operation process, and the accuracy is ±1 minimum position resolution. The system can maximize the resolution capability of the Hall sensor. During the operation of the motor, when the recorded motor position value increases, it means that the motor is running in the positive direction, and when the recorded motor position value decreases, it means that the motor is running in the reverse direction. The motor controller uses this position information to adjust the operation of the motor, which can reduce random errors and systematic errors, thereby improving the accuracy of motor position detection. The accurate calculation of the origin position provides a reliable reference point for motor control, which helps to achieve stable performance under various operating conditions.
[0040] During the operation of the motor, the origin position is updated in real time and can be adjusted or offset according to specific application requirements to adapt to different measurement or control requirements.
[0041] In summary, the characteristic that two Hall sensors have the same delay at different speeds is utilized, thereby eliminating the uncertainty caused by the delay of a single Hall sensor. In this way, the accuracy and reliability of the motor origin determination can be significantly improved, providing an accurate basis for subsequent motor control.
[0042] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions or improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for determining position by using a Hall element, characterized in that: The steps include: S01, setting two Hall sensors, named as the first Hall element and the second Hall element respectively; S02, driving the motor at a certain speed to run in the direction of any of the Hall sensors; S03, continuously monitoring the output signals of the first Hall element and the second Hall element; S04, when the first Hall element detects the first falling edge, the position of the motor at this time is recorded as x1; S05, when the second Hall element detects the first falling edge, the position of the motor at this time is recorded as x2; S06, the motor stops, and the position of the origin is calculated by software, i.e. (x1+x2) / 2; S07. Set the calculated origin position as the mechanical origin of the motor.
2. A method for determining position by using a Hall element according to claim 1, characterized in that: In the subsequent software processing, the calculated origin position is used as the origin of the coordinate system. During the operation of the motor, when the recorded motor position value increases, it means that the motor is running in the positive direction, and when the recorded motor position value decreases, it means that the motor is running in the reverse direction.
3. A method for determining position by using a Hall element according to claim 2, characterized in that: The coordinate value of the origin is unique during the entire motor operation, and the accuracy is ±1 minimum position resolution.
4. The method for determining position by using a Hall element according to claim 1, characterized in that: During the operation of the motor, the origin position is updated in real time and adjusted or offset according to specific application requirements to adapt to different measurement or control requirements.
5. The method for determining position by using a Hall element according to claim 1, characterized in that: The first Hall element and the second Hall element have the same delay at different speeds.
6. The method for determining position by using a Hall element according to claim 1, characterized in that: The first Hall element and the second Hall element are installed at a radial position of the motor rotor to ensure synchronous detection of the passing magnet.