Hall coordinate zero calibration method and device
By detecting sensors and Hall sensors, the Hall zero calibration value is determined, and the transmission mechanism is accurately moved to the Hall coordinate zero position, solving the performance damage caused by forced mechanical blockage in Hall sensor applications, ensuring the long-term and stable operation of the equipment .
Patent Information
- Application Number
- CN202411151931.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-11-26
AI Technical Summary
In Hall sensor applications, the small installation space makes it impossible to use limit switches to mark the mechanical limit position. It is necessary to determine whether the transmission mechanism reaches the mechanical limit by forcibly mechanically blocking, resulting in damage to the motor or mechanical properties.
The Hall zero calibration value is determined by the detection sensor and the Hall sensor, and the transmission mechanism is accurately moved to the Hall coordinate zero position to avoid forcibly mechanical blockage.
The transmission mechanism is accurate and in place, avoiding damage to motor or mechanical properties caused by mechanical blockage, and extending the service life of the components.
Smart Images

Figure CN119022768A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of displacement detection equipment, and in particular to a Hall coordinate zero point calibration method and device. Background Art
[0002] Hall sensors are mostly used to reflect the relative displacement change information between transmission mechanisms. When in use, the Hall coordinates need to be initialized each time the machine is turned on. The transmission mechanism is driven to the mechanical limit position by controlling the motor rotation to determine the mechanical limit position, which is the zero point position of the Hall coordinates.
[0003] However, due to the small installation space, it is not suitable to use limit switches and other structures to mark the mechanical limit position. The only way to determine whether the mechanical limit position has been reached is to use forced mechanical blocking, that is, the motor cannot drive the transmission mechanism to move further and still outputs torque. If the transmission mechanism still does not move at this time, it is considered that the transmission mechanism is at the mechanical limit. However, this operation method will cause damage to the motor performance or mechanical performance and affect the service life of the components. Summary of the invention
[0004] The object of the present invention is to provide a Hall coordinate zero point calibration method and device, which first determines the Hall zero point calibration value by detecting sensors and Hall sensors, and then moves the transmission mechanism according to the Hall zero point calibration value so that the transmission mechanism can accurately reach the Hall coordinate zero point position. This process can avoid the situation where the motor performance or mechanical performance is damaged due to forced mechanical blocking.
[0005] To achieve the above object, the present invention provides the following technical solutions:
[0006] On the one hand, a Hall coordinate zero point calibration method is provided, which comprises the following steps:
[0007] The driving transmission mechanism moves between the two mechanical limit structures from the initial position to the mechanical limit structure, and the initial Hall value and the terminal Hall value when the transmission mechanism is located at the initial position and the mechanical limit structure are recorded respectively, and the Hall value change is calculated;
[0008] Determine the Hall zero point calibration value according to the Hall value change;
[0009] The driving transmission mechanism starts from the current position and moves between the two mechanical limit structures until the detection sensor generates a detection signal, and the position of the transmission mechanism when the detection signal is generated is obtained and recorded as the initial position of the zero point calibration;
[0010] The driving transmission mechanism starts from the zero point calibration initial position and moves toward the mechanical limit structure until the current Hall value change is consistent with the Hall zero point calibration value, and then the movement of the transmission mechanism is stopped.
[0011] Preferably, the initial position is the position where the transmission mechanism is located when the transmission mechanism moves between the two mechanical limit structures until the detection sensor generates a detection signal.
[0012] Preferably, the detection sensor comprises a photoelectric sensor.
[0013] Preferably, the detection sensor comprises an optical coupler.
[0014] Preferably, the Hall value change ΔH is obtained according to ΔH=|H1-H0|, wherein H0 and H1 are the initial Hall value and the end Hall value, respectively.
[0015] Preferably, during the movement of the transmission mechanism, when the Hall value no longer changes or changes within a predetermined range, it is considered that the transmission mechanism has moved to the mechanical limit structure.
[0016] Preferably, determining the Hall zero calibration value according to the Hall value variation comprises the following steps:
[0017] Get several Hall value changes, remove the maximum and minimum values of all Hall value changes, and average the remaining Hall value changes to get the average value of the Hall value changes. The average value of the Hall value change This is the Hall zero point calibration value.
[0018] Preferably, the two mechanical limiting structures include a first mechanical limiting structure and a second mechanical limiting structure; and when the driving unit works in a first working mode, it drives the transmission mechanism to move toward the first mechanical limiting structure, and when working in a second working mode, it drives the transmission mechanism to move toward the second mechanical limiting structure.
[0019] Preferably, the detection sensor is arranged between two mechanical limiting structures.
[0020] On the other hand, a Hall coordinate zero point calibration device is also provided, comprising:
[0021] Drive unit;
[0022] A transmission mechanism connected to the driving unit;
[0023] A detection sensor is arranged between two mechanical limit structures and is used to generate a corresponding detection signal when the transmission mechanism moves to a predetermined position;
[0024] A Hall sensor, which is used to obtain the Hall value corresponding to the position of the transmission mechanism in real time;
[0025] A Hall value variation calculation unit, which is used to obtain a number of Hall value variations and determine a Hall zero point calibration value according to the number of Hall value variations;
[0026] The driving unit drives the transmission mechanism to move between the two mechanical limit structures according to the Hall zero point calibration value, and starts to move from the position where the detection sensor generates a corresponding detection signal until the Hall value change of the Hall sensor is consistent with the Hall zero point calibration value, and stops the movement of the transmission mechanism.
[0027] In summary, the present invention has the following beneficial effects compared with the prior art:
[0028] The present invention first determines the Hall zero point calibration value by detecting the sensor and the Hall sensor. When performing the Hall coordinate zero point calibration later, it is only necessary to move the transmission mechanism according to the Hall zero point calibration value so that the Hall value change corresponding to the transmission mechanism is consistent with the Hall zero point calibration value. It can be considered that the transmission mechanism has reached the Hall coordinate zero point position. Mechanical stalling will not occur throughout the process, and damage to the motor performance or mechanical performance due to forced mechanical stalling can be avoided. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 A schematic diagram of the steps of moving the transmission mechanism in the present invention to obtain the change in the Hall value;
[0030] Figure 2 It is a schematic diagram of the steps of driving the transmission mechanism to move to the zero point position of the Hall coordinate according to the Hall zero point calibration value in the present invention. DETAILED DESCRIPTION
[0031] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0032] Example 1
[0033] like Figure 1 The present embodiment provides a Hall coordinate zero point calibration method, which comprises the following steps:
[0034] S1. Determine the position information of the first mechanical limiting structure P1 and the second mechanical limiting structure P2. In this embodiment, the first mechanical limiting structure P1 and / or the second mechanical limiting structure P2 may be a block, plate, or rod-shaped structure made of metal, plastic, or the like.
[0035] In this embodiment, the position information of the first mechanical limiting structure P1 and the second mechanical limiting structure P2 can be determined by the parameter setting at the factory;
[0036] S2. A detection sensor 1 is arranged between the first mechanical limit structure P1 and the second mechanical limit structure P2; in this embodiment, the detection sensor 1 includes a photoelectric sensor such as an optical coupler, which can generate a corresponding signal according to whether the light path is blocked. For example, in this embodiment, when the detection sensor 1 is an optical coupler, it includes a light emitting end and a light receiving end. When the light is blocked, the light receiving end cannot receive the signal from the light emitting end. At this time, the optical coupler outputs a high-level signal. On the contrary, when the light is not blocked, it outputs a low-level signal.
[0037] S3, drive the transmission mechanism 100 to move between the first mechanical limiting structure P1 and the second mechanical limiting structure P2 (such as along the Figure 1 The transmission mechanism 100 moves in the direction indicated by the arrow in part (a) of FIG. 1 until the detection sensor 1 generates a corresponding detection signal (i.e., the transmission mechanism 100 moves to Figure 1 When the position shown in part (b) is reached, the detection sensor 1 generates a detection signal, and at the same time as the detection sensor 1 generates the detection signal, the position of the transmission mechanism 100 is obtained through the Hall sensor, which is recorded as the initial position Ps, and the Hall value corresponding to the initial position Ps is recorded as the initial Hall value H0;
[0038] In this embodiment, when the transmission mechanism 100 moves to a predetermined position, it generates induction with the detection sensor 1 (such as blocking the light emitted by the optical coupler, etc.), so that the detection sensor 1 generates a corresponding detection signal, and the driving unit includes a motor, which can drive the transmission mechanism 100 to move by rotating;
[0039] S4, such as Figure 1 As shown in parts (b)-(c) of FIG. 1 , the driving unit drives the transmission mechanism 100 from the initial position Ps to move along the Figure 1 In part (b), the device moves to the first mechanical limit structure P1 or the second mechanical limit structure P2 in the direction indicated by the arrow, and the Hall value of the Hall sensor 2 when the transmission mechanism 100 is located at the first mechanical limit structure P1 or the second mechanical limit structure P2 is recorded as the end point Hall value H1;
[0040] And obtain the Hall value change ΔH according to ΔH=|H1-H0|;
[0041] In this embodiment, during the movement of the transmission mechanism 100, the Hall value corresponding to the position of the transmission mechanism 100 is obtained in real time through the Hall sensor 2. When the Hall value no longer changes or changes within a predetermined range (such as ±1% of the Hall value), it is considered that the transmission mechanism 100 has moved to the first mechanical limit structure P1 or the second mechanical limit structure P2;
[0042] S5. Repeat the above steps S3-S4 several times, for example 10 times, to obtain several corresponding Hall value changes ΔH, remove the maximum and minimum values of all Hall value changes ΔH, and average the remaining Hall value changes ΔH to obtain the average Hall value change value. The average value of the Hall value change It is used to indicate the distance between the detection sensor 1 and the first mechanical limit structure P1 or the second mechanical limit structure P2, and the average value of the Hall value change is As the Hall zero point calibration value, and store it;
[0043] S6, such as Figure 2 As shown in part (a) of the figure, after the device is turned on, the driving unit drives the transmission mechanism 100 to move from the current position between the first mechanical limit structure P1 and the second mechanical limit structure P2 (such as along the Figure 2 In the direction indicated by the arrow in part (a), until the detection sensor 1 generates a corresponding detection signal (i.e. the transmission mechanism 100 moves to Figure 2 When the detection sensor 1 is at the position shown in part (b), the detection sensor 1 generates a detection signal, and at the same time as the detection sensor 1 generates the detection signal, the position of the transmission mechanism 100 is obtained through the Hall sensor, which is recorded as the zero point calibration initial position Ps', and the Hall value corresponding to the zero point calibration initial position Ps' is recorded as the zero point calibration initial Hall value H0';
[0044] In this step, the principle of the detection sensor 1 generating the detection signal is the same as that in step S3, and will not be repeated here;
[0045] S7, such as Figure 2 As shown in part (b) of FIG. 1 , the driving unit drives the transmission mechanism 100 to move in the same direction (e.g., along the same direction) from the initial position Ps' of the zero point calibration. Figure 2 The transmission mechanism 100 moves in the direction indicated by the arrow in part (b) of the figure to move toward the first mechanical limit structure P1 or the second mechanical limit structure P2. During this process, the Hall value of the Hall sensor will change based on the initial Hall value H0' of the zero point calibration until the current Hall value change of the Hall sensor is consistent with the Hall zero point calibration value. Then, the movement of the transmission mechanism 100 is stopped. At this time, the position of the transmission mechanism 100 is the Hall coordinate zero point position (such as Figure 2 The position of the transmission mechanism 100 shown in part (c);
[0046] In this step, the movement direction of the transmission mechanism 100 may correspond to the working mode of the driving unit. For example, when the driving unit works in the first working mode, the transmission mechanism 100 is driven to move toward the first mechanical limiting structure P1. When the driving unit works in the second working mode, the transmission mechanism 100 is driven to move toward the second mechanical limiting structure P2.
[0047] Furthermore, when the driving unit is a motor, when the motor rotates in a first direction (such as clockwise), the driving transmission mechanism 100 moves toward the first mechanical limiting structure P1, and when it rotates in a second direction (such as counterclockwise), the driving transmission mechanism 100 moves toward the second mechanical limiting structure P2.
[0048] For example, if in step S6, the initial Hall value H0' of the zero point calibration is 2000, the average Hall value change is (i.e., the Hall zero point calibration value) is 5000, then in step S7, the transmission mechanism 100 moves in the same direction, so that when the Hall value of the Hall sensor is 7000, the Hall value change (5000=7000-2000) is consistent with the Hall zero point calibration value, which means that the transmission mechanism 100 has reached the Hall coordinate zero point position, thereby completing the Hall zero point calibration.
[0049] Therefore, in this embodiment, the position of the transmission mechanism is detected by the detection sensor, and the Hall value change corresponding to the position of the transmission mechanism is obtained by the Hall sensor during the movement of the transmission mechanism, and the Hall zero point calibration value is further determined. It is used as the distance between the detection sensor and the mechanical limit structure. When performing the Hall coordinate zero point calibration later, it is only necessary to move the transmission mechanism according to the Hall zero point calibration value so that the Hall value change corresponding to the transmission mechanism is consistent with the Hall zero point calibration value. It can be considered that the transmission mechanism has reached the Hall coordinate zero point position. No mechanical stalling will occur throughout the process, avoiding the situation in the prior art where the motor performance or mechanical performance is damaged due to forced mechanical stalling.
[0050] Embodiment 2:
[0051] This embodiment provides a Hall coordinate zero point calibration device, which can implement the Hall coordinate zero point calibration method described in Embodiment 1. Figure 1 As shown, the Hall coordinate zero point calibration device includes:
[0052] Drive unit;
[0053] A transmission mechanism 100 connected to the driving unit;
[0054] A detection sensor 1, which is disposed between the first mechanical limiting structure P1 and the second mechanical limiting structure P2, and is used to generate a corresponding detection signal when the transmission mechanism 100 moves to a predetermined position;
[0055] A Hall sensor 2, which is used to obtain a Hall value corresponding to the position of the transmission mechanism 100 in real time;
[0056] A Hall value variation calculation unit is used to obtain a number of Hall value variations ΔH according to ΔH=|H1-H0|, and to average the number of Hall value variations ΔH to obtain an average Hall value variation value. The process is the same as steps S3-S5;
[0057] Wherein, H0 and H1 are respectively the initial Hall value corresponding to the position of the transmission mechanism 100 when the detection sensor 1 generates the corresponding detection signal and the terminal Hall value corresponding to when the transmission mechanism 100 moves from the position corresponding to the initial Hall value to the first mechanical limit structure P1 or the second mechanical limit structure P2;
[0058] The driving unit is based on the average value of the Hall value change The driving mechanism 100 moves between the first mechanical limit structure P1 and the second mechanical limit structure P2, so that the driving mechanism 100 starts to move from the position where the detection sensor 1 generates the corresponding detection signal until the Hall value change of the Hall sensor is equal to the average value of the Hall value change. When they are consistent, the movement of the transmission mechanism 100 is stopped.
[0059] To sum up, the present invention determines the Hall zero point calibration value through the detection sensor and the Hall sensor, and uses it as the distance between the detection sensor and the mechanical limit structure. When performing the Hall coordinate zero point calibration later, it is only necessary to move the transmission mechanism according to the Hall zero point calibration value, so that the Hall value change corresponding to the transmission mechanism is consistent with the Hall zero point calibration value, and it can be considered that the transmission mechanism has reached the Hall coordinate zero point position. Mechanical stalling will not occur throughout the process, and the situation where the motor performance or mechanical performance is damaged due to forced mechanical stalling can be avoided.
[0060] 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 principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A Hall coordinate zero point calibration method, It is characterized in that The steps include: The driving transmission mechanism moves between the two mechanical limit structures from the initial position to the mechanical limit structure, and the initial Hall value and the terminal Hall value when the transmission mechanism is located at the initial position and the mechanical limit structure are recorded respectively, and the Hall value change is calculated; Determine the Hall zero point calibration value according to the Hall value change; The driving transmission mechanism starts from the current position and moves between the two mechanical limit structures until the detection sensor generates a detection signal, and the position of the transmission mechanism when the detection signal is generated is obtained and recorded as the initial position of the zero point calibration; The driving transmission mechanism starts from the zero point calibration initial position and moves toward the mechanical limit structure until the current Hall value change is consistent with the Hall zero point calibration value, and then the movement of the transmission mechanism is stopped.
2. The Hall coordinate zero point calibration method as claimed in claim 1, It is characterized in that The initial position is the position where the transmission mechanism is located when the transmission mechanism moves between the two mechanical limit structures until the detection sensor generates a detection signal.
3. The Hall coordinate zero point calibration method as claimed in claim 1, It is characterized in that The detection sensor includes a photoelectric sensor.
4. The Hall coordinate zero point calibration method as claimed in claim 3, It is characterized in that The detection sensor includes an optical coupler.
5. The Hall coordinate zero point calibration method as claimed in claim 1, It is characterized in that The Hall value change ΔH is obtained according to ΔH=|H1-H0|, where H0 and H1 are the initial Hall value and the end Hall value respectively.
6. The Hall coordinate zero point calibration method according to claim 1, It is characterized in that During the movement of the transmission mechanism, when the Hall value no longer changes or changes within a predetermined range, it is considered that the transmission mechanism has moved to the mechanical limit structure.
7. The Hall coordinate zero point calibration method as claimed in claim 1, It is characterized in that Determining a Hall zero point calibration value according to the Hall value variation comprises the following steps: Get several Hall value changes, remove the maximum and minimum values of all Hall value changes, and average the remaining Hall value changes to get the average value of the Hall value changes. The average value of the Hall value change This is the Hall zero point calibration value.
8. The Hall coordinate zero point calibration method according to claim 1, It is characterized in that The two mechanical limit structures include a first mechanical limit structure and a second mechanical limit structure; and when the drive unit works in a first working mode, the transmission mechanism is driven to move toward the first mechanical limit structure, and when the drive unit works in a second working mode, the transmission mechanism is driven to move toward the second mechanical limit structure.
9. The Hall coordinate zero point calibration method according to claim 1, It is characterized in that The detection sensor is arranged between two mechanical limiting structures.
10. A Hall coordinate zero point calibration device, It is characterized in that include: Drive unit; A transmission mechanism connected to the driving unit; A detection sensor is arranged between two mechanical limit structures and is used to generate a corresponding detection signal when the transmission mechanism moves to a predetermined position; A Hall sensor, which is used to obtain the Hall value corresponding to the position of the transmission mechanism in real time; A Hall value variation calculation unit, which is used to obtain a number of Hall value variations and determine a Hall zero point calibration value according to the number of Hall value variations; The driving unit drives the transmission mechanism between two mechanical limit structures according to the Hall zero point calibration value, and starts to move from the position where the detection sensor generates a corresponding detection signal until the Hall value change of the Hall sensor is consistent with the Hall zero point calibration value, and then stops the movement of the transmission mechanism.
Citation Information
Cited By
Method and device capable of dynamically calibrating pedal controller
CN121900363A
