A magnetic button calibration method and calibration device
By comparing the reading gap between the reference source and the signal digitization module, and calibrating multiple pressing positions of the magnetic button based on pre-stored standard values, the existing magnetic button calibration problems are solved, and more efficient calibration and better durability are achieved.
Patent Information
- Application Number
- CN202411857608.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2044-12-17
AI Technical Summary
The existing magnetic key calibration methods are inefficient, resulting in inaccurate output readings, affecting the sensitivity and durability of magnetic keys.
A magnetic key calibration method is adopted to compare the readings of the electrical signal output by the magnetic sensor by referring to the source and signal digitization module to determine whether the gap is within the preset range, and if so, calibration is performed. The calibration process includes measuring the magnetic flux of the magnet, the stroke of the magnetic button and the pressing pressure, and calibrating the reading based on the pre-stored standard value.
Improves the calibration efficiency of magnetic buttons, obtains more accurate readings and higher durability, and extends the service life of magnetic buttons.
Smart Images

Figure CN119335381B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to electronic product calibration technology, and in particular to a magnetic button calibration method and calibration equipment. Background Art
[0002] Magnetic keys use the change of magnetic field to bring about the change of output voltage or current to detect whether the magnetic key is pressed. It usually consists of a keycap, a magnet (such as a magnet), a magnetic sensor (such as a Hall sensor or a reed switch), and a signal digitization module. Generally, the magnet is set inside the keycap, and the magnetic sensor is set near the magnet. When the user presses the magnetic key, the magnet will approach the magnetic sensor, thereby changing the magnetic field around the magnetic sensor. After the magnetic sensor detects this change, it will output an electrical signal, which is read by the signal digitization module. The electrical signal represents the relative position between the magnet and the magnetic sensor. Of course, the magnetic sensor can also be set inside the keycap, and move closer to or away from the magnet with the keycap.
[0003] The sensitivity and sensing accuracy of the magnetic key affect whether the magnetic key can work properly. In future use, this indicator will continue to decline as the magnetic key is continuously pressed, so it is a key indicator that affects the user experience and life. The sensitivity and sensing accuracy of the magnetic key are not good, which is specifically manifested in the reading of the signal digitization module (i.e., analog-to-digital conversion module, or ADC module) built into the magnetic key. It does not change much as the magnetic key is pressed, or the reading is offset. Therefore, before leaving the factory, the factory will test the magnetic keys and discard products with unqualified sensitivity and sensing accuracy.
[0004] At present, before magnetic buttons leave the factory, generally only the readings output by the magnetic buttons (that is, the readings output by the built-in ADC module) are checked to see if they are normal or have changed. Those that are abnormal or have not changed are discarded. Some factories or laboratories will calibrate the magnetic buttons, but generally only the abnormal readings of the ADC module of the magnetic buttons are forcibly changed to near normal. However, the effect of this calibration is often not good. After a certain period of use, the magnetic buttons are still prone to failure. The easy failure of magnetic buttons has become one of the main obstacles to its promotion in the market, especially for magnetic buttons with built-in linear Hall sensors that need to accurately identify different pressing positions.
[0005] Therefore, a better magnetic button calibration method is urgently needed to improve the calibration efficiency of magnetic buttons and promote magnetic buttons with more accurate readings and higher durability to the market. Summary of the invention
[0006] The present application provides a magnetic key calibration method and calibration equipment, which can improve the calibration efficiency of the magnetic key and obtain a magnetic key with more accurate readings and higher durability.
[0007] In the first aspect, the present application provides a magnetic button calibration method, which adopts the following technical solution:
[0008] A magnetic key calibration method, wherein the magnetic key comprises a magnet, a magnetic sensor, and a signal digitization module connected to the output end of the magnetic sensor, and the magnetic key calibration method comprises the following steps:
[0009] When the magnetic key is in the first pressing position, the reference source and the signal digitization module are used to read the electrical signal output by the magnetic sensor, the reference source reading is a, and the signal digitization module reading is b; it is determined whether the difference between a and b is within the first preset range; when it is determined that the difference between a and b is within the first preset range, the magnetic key is pressed by a pressing device, and the magnetic key is changed from the second pressing position to the third pressing position by pressing; in the process of the magnetic key changing from the second pressing position to the third pressing position, when the magnetic key is in each of a group of pressing positions, a reading is read out by the signal digitization module, thereby obtaining a group of readings, and each of the group of readings corresponds to one of the group of pressing positions; and the group of readings is calibrated based on pre-stored standard values.
[0010] Furthermore, the magnetic button calibration method further includes:
[0011] Measuring the magnetic flux or magnetic field strength of the magnet; and determining whether the magnetic flux or magnetic field strength is within a second preset range, and when the determination is yes, continuing the calibration, and when the determination is no, terminating the calibration.
[0012] Furthermore, the magnetic button calibration method further includes:
[0013] Measure the stroke d of the magnetic button from being released to the top position to being pressed to the bottom position; and determine whether the stroke d is within a third preset range. When the determination is yes, continue calibration; when the determination is no, terminate calibration.
[0014] Furthermore, the magnetic button calibration method further includes:
[0015] The reference source is used to collect the first voltage value output when the magnetic button is in the released top position, and the reading of the reference source is v1; the reference source is used to collect the second voltage value output when the magnetic button is in the pressed bottom position, and the reading of the reference source is v2; and it is determined whether the difference between v1 and v2 is within a fourth preset range. When the judgment is yes, the calibration is continued, and when the judgment is no, the calibration is terminated.
[0016] Further, the set of press positions is determined by sampling at certain time intervals, and the set of press positions is calculated based on the second press position and the certain time interval; or the set of press positions is measured by using a distance measurement module, and the distance measurement module is synchronized with the signal digitization module under the control of the central processing module.
[0017] Furthermore, the pre-stored standard value is obtained based on measurements of a plurality of standard magnetic buttons at a plurality of pressing positions.
[0018] Furthermore, the magnetic button calibration method further includes:
[0019] Measure the pressing force f exerted on the magnetic button when the magnetic button is in the fourth pressing position; and determine whether the pressing force f is within a fifth preset range. If so, continue calibration; otherwise, terminate calibration.
[0020] In the second aspect, the present application provides a magnetic button calibration device, which adopts the following technical solution:
[0021] A magnetic button calibration device, used to perform the magnetic button calibration method described above, comprising:
[0022] A calibration table, on which a product with a magnetic button is placed; the magnetic button includes a magnet, a magnetic sensor, and a signal digitization module connected to the output end of the magnetic sensor, the signal digitization module is used to collect the electrical signal output by the magnetic sensor; a pressing device is used to press the magnetic button; a reference source is connected to the output end of the magnetic sensor and is used to collect the electrical signal output by the magnetic sensor; a central processing module is at least connected to the signal digitization module and is used to: in the process of the magnetic button changing from a second pressing position to a third pressing position, when the magnetic button is in each of a group of pressing positions, use the signal digitization module to read out a reading each time, thereby obtaining a group of readings, and each of the group of readings corresponds to one of the group of pressing positions; and based on pre-stored standard values, calibrate the group of readings.
[0023] Furthermore, it also includes: a distance measurement module, used to measure the absolute position value of the magnetic button when it is in a certain pressing position; and a magnetic flux measurement module, used to measure the magnetic flux or magnetic field strength of the magnet.
[0024] This application has significant technical effects due to the adoption of the above technical solutions:
[0025] Before calibrating the magnetic key, when the magnetic key is in any certain pressing position (the first pressing position), the difference between the reading of the reference source and the reading of the signal digitization module is compared. If the difference between the two exceeds the first preset range, the magnetic key is discarded and no longer calibrated. Therefore, the fault can be discovered in advance to eliminate the factors that have a greater impact on the subsequent calibration (inaccurate reading of the signal digitization module), thereby improving the calibration efficiency of the magnetic key. And calibrate a group of readings corresponding to a group of pressing positions of the magnetic key to improve the accuracy of a group of pressing position readings during the pressing process of the magnetic key. The calibration of multiple pressing positions improves the durability and working stability of the magnetic key after leaving the factory, and the consistency of the product; at the same time, calibrating these pressing positions can also make the entire pressing process smoother and improve the user experience; and it is also possible to select one or more pressing positions of the group of pressing positions for programming other functions in the future, enriching the functions of the magnetic key. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 A simplified cross-sectional view of a magnetic button in the prior art;
[0027] Figure 2 This is a structural schematic diagram of a magnetic button calibration device according to an embodiment of the present application;
[0028] Figure 3 This is a structural schematic diagram of a magnetic button calibration device according to another embodiment of the present application;
[0029] Figure 4 This is a structural schematic diagram of a magnetic button calibration device according to another embodiment of the present application;
[0030] Figure 5 This is a simplified block diagram of a magnetic button calibration device according to another embodiment of the present application;
[0031] Figure 6 This is a simplified block diagram of a magnetic button calibration device according to another embodiment of the present application;
[0032] Figure 7 This is a module schematic diagram of a magnetic button calibration device and a magnetic button according to another embodiment of the present application;
[0033] Figure 8 A flowchart of a magnetic button calibration method implemented in one embodiment of the present application;
[0034] Fig. 9 A flowchart of a magnetic button calibration method implemented in another embodiment of the present application;
[0035] Fig.10 A flowchart of a magnetic button calibration method implemented in another embodiment of the present application;
[0036] Fig.11 A flowchart of a magnetic button calibration method implemented in another embodiment of the present application;
[0037] Fig.12 A flowchart of a magnetic button calibration method implemented in another embodiment of the present application;
[0038] Fig.13 This is a flow chart of a magnetic button calibration method implemented in another embodiment of the present application.
[0039] The names of the parts indicated by the numerical labels in the accompanying drawings are as follows: 1—magnetic button, 2—programmed voltage source, 3—magnetic flux meter, 4—pressure sensor, 5—distance sensor, 6—industrial robot, 7—calibration table, 8—pressing device, 9—PC, 10—central processing module, 11—key cap, 12—magnet, 13—spring, 14—circuit board, 15—magnetic sensor, 16—signal digitization module, 71—workbench, 72—tooling, 73—push-pull cylinder, 74—push-pull slide rail, 81—pressing finger, 82—mounting seat, 83—mounting plate, 84—pressing cylinder, 105—linear Hall sensor, 106—ADC module, 141—single chip microcomputer, 201—reference source, 301—magnetic flux measurement module, 401—pressure measurement module, 501—distance measurement module. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. The described embodiments are only possible technical implementations of the present application, not all possible implementations. Those skilled in the art can completely combine the embodiments of the present application to obtain other embodiments without creative work, and these embodiments are also within the scope of protection of the present application.
[0041] It should be understood that the terms "first", "second", and "third" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", and "third" may explicitly or implicitly include one or more of the feature. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined. Example
[0042] In the examples of this application, see Figure 1 , Figure 5The magnetic key 1 includes a movable keycap 11, a magnet 12 disposed inside the keycap 11, a spring 13 for resetting the keycap 11, a circuit board 14, a magnetic sensor 15 connected to the circuit board 14 and capable of sensing the magnetic field strength of the magnet 12, and a signal digitization module 16 connected to the output end of the magnetic sensor 15, wherein the signal digitization module 16 is used to collect the electrical signal output by the magnetic sensor. The magnetic sensor 15 may be a linear Hall sensor, a magnetic induction sensor, or a switch-type Hall sensor, etc. Of course, the switch-type Hall sensor can only calibrate the two pressing positions of the magnetic key 1 when it is released to the top position and pressed to the bottom position. The signal digitization module 16 may be an ADC module, etc.
[0043] In the embodiment of the present application, the magnetic sensor 15 senses the magnetic field strength generated by the magnet 12 and forms an electrical signal, which may be a voltage signal or a current signal. The electrical signal is read by a signal digitization module and converted into a reading in the form of a digital signal, which may be a voltage value or a current value, etc.
[0044] In the process of implementing magnetic button calibration, see Figure 2 , Figure 5 The magnetic button calibration device may include the following devices: a calibration platform 7, a pressing device 8, a reference source 201, and a central processing module 10.
[0045] The calibration table 7 is used to place the product with the magnetic button 1. In a specific implementation, see Figure 2 The calibration table 7 includes a workbench 71, a workstation set on the workbench 71, and a tool 72 for positioning the magnetic button 1. When calibrating the magnetic button 1, the product with the magnetic button 1 is placed on the workstation and positioned by the tool 72. Figure 3 The embodiment shown, Figure 4 The illustrated embodiment also includes the above-described structure.
[0046] The pressing device 8 is used to press the magnetic button 1, which can be a structure arranged on the calibration platform 7 or a device independent of the calibration platform 7. For example, the pressing device 8 can be a cylinder structure (such as Figure 3 ) or an industrial robot 6 independent of the calibration table 7 (as shown Figure 2 as shown).
[0047] In a specific implementation, see Figure 3The pressing device 8 includes a mounting plate 83 disposed on the calibration table 7, a pressing cylinder 84 connected to the mounting plate 83 and with its output shaft facing the magnetic key 1, a mounting seat 82 connected to the output shaft of the pressing cylinder 84, and a pressing finger 81 set on the pressing cylinder 84. The output shaft of the pressing cylinder 84 can be horizontally arranged, in which case the workbench 71 is vertically arranged, the pressing cylinder 84 is arranged on one side of the workbench 71 through the mounting plate 83, the tooling 72 positions the magnetic key 1 vertically against the workbench 71, the pressing finger 81 is facing the keycap 11, and the pressing cylinder 84 drives the pressing finger 81 to move horizontally to press the keycap 11. The output shaft of the pressing cylinder 84 can also be set vertically. In this case, the workbench 71 is set horizontally. The pressing cylinder 84 is set above the workbench 71 through the mounting plate 83. The magnetic key 1 is placed flat on the workbench 71. The pressing finger 81 is facing the keycap 11 of the magnetic key 1. The pressing cylinder 84 drives the pressing finger 81 to move vertically to press the keycap 11.
[0048] In a specific implementation, see Figure 2 The pressing device 8 is an industrial robot 6 with an independent structure. The industrial robot 6 has a manipulator, which includes a pressing finger 81 and a mounting seat 82. The pressing finger 81 is mounted on the industrial robot 6 through the mounting seat 82. The pressing finger 81 is used to directly contact the keycap 11 of the magnetic key 1, and an elastic layer may be provided thereon. Figure 4 The illustrated embodiment also includes the above-described structure.
[0049] The reference source 201 may be an independent programmable voltage source 2 (eg Figure 2 As shown) or a programmable current source, or it can be a voltage-dividing reference circuit in the central processing module 10 or other device capable of collecting the electrical signal output by the magnetic button 1, which is connected to the output end of the magnetic sensor 15 to collect the electrical signal output by the magnetic sensor 15 and obtain a reading.
[0050] The programmable voltage source 2 or the programmable current source is used for precise measurement of electrical signals, and can provide a relatively accurate reference value as a comparison benchmark for the accuracy of the readings of the signal digitization module 16. It can also enhance the repeatability of the calibration work, and can provide a relatively consistent comparison benchmark in different calibration cycles, which helps to improve the magnetic sensor 15 to maintain consistent performance after long-term use; it is highly flexible, and can calibrate the magnetic button 1 in different environments, which can ensure the performance of the magnetic sensor 15 in the actual use environment.
[0051] The central processing module 10 can be a desktop computer, a laptop computer or other type of external device with processing capabilities, or a device with processing capabilities embedded in the calibration station 7, which is used to read a reading using the signal digitization module 16 when the magnetic button 1 is in each of a group of pressing positions during the process of the magnetic button 1 changing from the second pressing position to the third pressing position, thereby obtaining a group of readings, and each of the group of readings corresponds to one of the group of pressing positions; and calibrate the group of readings based on the pre-stored standard value. In a specific implementation, see Figure 2 , the central processing module 10 is embedded in the PC 9.
[0052] In other embodiments, see Figure 4 A push-pull cylinder 73 can also be provided on the calibration table 7, a push-pull slide rail 74 is provided on the workbench 71, and the tooling 72 is slidably sleeved on the push-pull slide rail 74. The output shaft of the push-pull cylinder 73 is connected to the tooling 72, and the push-pull cylinder 73 can drive the tooling 72 to slide along the direction of the push-pull slide rail 74. The probe connected to the reference source 201 is set on the workbench 71 and is located at the lower end of the tooling 72. When the circuit board 14 of the magnetic button 1 is mounted on the tooling 72, it can contact the probe. The push-pull cylinder 73 drives the circuit board 14 on the tooling 72 to move, so that the probe contacts the output end of the magnetic sensor, that is, the reference source 201 is connected to the output end of the magnetic sensor, and the reference source 201 can read the electrical signal output by the magnetic sensor 15.
[0053] Of course, in other embodiments, the push-pull cylinder 73 and the push-pull slide rail 74 may not be provided, and the probe of the reference source 201 is directly connected to the output end of the magnetic sensor manually.
[0054] In other embodiments, a first conveyor belt for conveying products with magnetic buttons 1 to be calibrated and a second conveyor belt for conveying products that have passed the calibration may be provided on the calibration platform 7. At the same time, a first cylinder for pushing the products to be calibrated to the workstation and a first push rod connected to the output shaft of the first cylinder may be provided on the calibration platform 7. The first conveyor belt conveys the products to be calibrated to the workstation, and the first push rod pushes the products to be calibrated to the workstation. A second cylinder for pushing the products that have passed the calibration into the second conveyor belt and a second push rod connected to the output shaft of the second cylinder may be provided on the calibration platform 7. The products that have passed the calibration are pushed onto the second conveyor belt by the second push rod. A third conveyor belt for conveying products that have failed the calibration, a third cylinder for pushing away products that have failed the calibration, and a third push rod connected to the output shaft of the third cylinder may be provided on the calibration platform 7. The products that have failed the calibration are pushed onto the third conveyor belt by the third push rod. An LED light may also be provided on the workstation 71. When a problem occurs during the product calibration process, the LED light displays a red light, and when the product calibration passes, the LED light displays a green light. A sound alarm may also be provided on the calibration table 7 to give an alarm when a problem occurs during the product calibration process.
[0055] In the embodiment of the present application, in order to further improve the durability and working stability of the magnetic button after calibration, the magnetic button calibration device may further include some magnetic button fault measurement devices, see Figure 6 The magnetic button calibration device in this embodiment includes the following devices: a distance measurement module 501, a magnetic flux measurement module 301, and a pressure measurement module 401.
[0056] The distance measurement module 501 is used to measure the absolute position value of the magnetic button 1 when it is in a certain pressing position, for example, to measure the distance d traveled by the magnetic button 1 from being released to the top position to being pressed to the bottom position; it can be a structure set on the calibration platform 7 or a device independent of the calibration platform 7.
[0057] The magnetic flux measurement module 301 is used to measure the magnetic flux or magnetic field strength of the magnet 12; it can be a structure set on the calibration platform 7 or a device independent of the calibration platform 7. The magnetic flux or magnetic field strength of the magnet 12 can be measured before the magnetic button 1 is placed on the calibration platform 7, or it can be measured at any time after the magnetic button 1 is placed on the calibration platform 7.
[0058] The pressure measurement module 401 is used to measure the pressing force f exerted on the magnetic key 1 when the magnetic key 1 is in the fourth pressing position; it can be set on the pressing device 8 and measured at any time when the pressing device 8 presses the magnetic key 1, that is, the fourth pressing position is any position when the pressing device presses the magnetic key; the pressure measurement module 401 can measure once or multiple times each time the pressing device 8 presses a magnetic key 1, or it can measure once after pressing multiple magnetic keys 1.
[0059] In a specific embodiment, see Figure 7 The circuit board 14 of the magnetic button 1 is provided with a single-chip microcomputer 141 and a memory, and the memory can be used to store the reading of the calibrated signal digitization module. The single-chip microcomputer 141 can be used to determine whether the difference between the reading of the reference source and the reading of the signal digitization module is within the first preset range. Of course, in other embodiments, the determination of whether the difference between the reading of the reference source and the reading of the signal digitization module is within the first preset range can also be performed in the central processing module or a remote server, which will not affect the implementation of the embodiment of the present application.
[0060] The applicant found that the inaccurate reading of the signal digitization module may be caused by problems with the signal digitization module itself, or by failures of other components (such as failure of the magnet, failure of the magnetic button mechanism), or by slight differences in materials, manufacturing processes or assembly, etc., or even differences in different batches or assembly and production by different equipment during the production of the magnetic button. If the reading of the signal digitization module is forcibly changed to be close to normal, on the one hand, the effect of calibrating the readings of other pressing positions is not good and it is not easy to calibrate. On the other hand, after the magnetic button is used for a certain period of time after leaving the factory, it is easy to continue to fail due to the deterioration of the original fault. Based on this, in one embodiment provided by the present application, before calibrating the magnetic button, the reading of the reference source is first compared with the reading of the signal digitization module to determine whether there is a problem with the signal digitization module itself, that is, whether the reading of the signal digitization module is normal. After confirming that it is normal, the reading of a group of pressing positions of the magnetic button is calibrated.
[0061] The method provided in the above embodiment first ensures that there is no problem with the signal digitization module itself, that is, the reading of the signal digitization module is normal, and then performs calibration, thereby overcoming the problem of poor calibration effect and poor durability caused by direct calibration in the prior art, and improving the calibration effect and durability of the magnetic button.
[0062] Preferably, before or after judging whether the signal digitization module itself is working properly, it is possible to judge in turn whether the magnet, magnetic key mechanism and other components are working properly, and then calibrate the readings of a group of pressing positions of the magnetic key after they are all working properly. In this way, while ensuring that there is no problem with the signal digitization module itself, it is also ensured that the main components such as the magnet, magnetic key mechanism and other components are working properly before calibration, so that a better calibration effect can be obtained, and the calibration effect and durability of the magnetic key can be further improved.
[0063] See also Figure 8 In one embodiment of the present application, the method for implementing magnetic button calibration includes steps 11 to 15, as described below.
[0064] Step 11: When the magnetic button is in the first pressing position, the reference source and the signal digitization module are used to read the electrical signal output by the magnetic sensor, the reference source reading is a, and the signal digitization module reading is b; the reference source is a device that can accurately and objectively collect the electrical signal output by the magnetic sensor, and its reading is used as a comparison benchmark.
[0065] Step 12: Determine whether the difference between a and b is within the first preset range. It should be noted that the first preset range is a preset value, which can be a value set according to user requirements or a value set according to market data or a value set by the magnetic button calibration device itself. Before calibrating the magnetic button, first compare whether the difference between the reading of the reference source and the reading of the signal digitization module is within the first preset range. This step can exclude magnetic buttons with problems in the signal digitization module itself.
[0066] Step 13: When it is determined that the difference between a and b is within the first preset range, the magnetic key is pressed using a pressing device, and the magnetic key is changed from the second pressing position to the third pressing position by pressing. The second pressing position may be the same as the first pressing position in step 11, or may be different, but must not be at the same position as the third pressing position, and the third pressing position may be the same as the first pressing position in step 11, or may be different.
[0067] Step 14: In the process of the magnetic key changing from the second pressing position to the third pressing position, when the magnetic key is in each of a group of pressing positions, use the signal digitization module to read out a reading each time, thereby obtaining a group of readings, and each of the group of readings corresponds to one of the group of pressing positions; in the process of the magnetic key changing from the second pressing position to the third pressing position, in the travel it passes, a number of position points are sampled to obtain a group of pressing positions, and a group of readings are read accordingly.
[0068] A group of pressing positions includes at least two pressing positions. This embodiment is described by taking a plurality of pressing positions as an example: the pressing positions are specifically the 1st to nth pressing positions, which are set as the 1st pressing position, the 2nd pressing position, ..., the nth pressing position in the order of the pressing. The signal digitization module reads out the corresponding 1st reading, the 2nd reading, ..., the nth reading in each pressing position. It should be noted that the 1st pressing position can be the same position as the second pressing position, or a different position, and the nth pressing position can be the same position as the third pressing position, or a different position.
[0069] Step 15: Calibrate the set of readings based on pre-stored standard values. The pre-stored standard values may be a set of standard data obtained by measuring a plurality of standard magnetic keys at a plurality of corresponding pressing positions, or a set of standard data set according to user requirements, or a set of standard data set by a program algorithm.
[0070] It should be noted that the pre-stored standard value is also a set of data, which can correspond one-to-one with a set of readings of the signal digitization module according to the corresponding pressing position, that is, each pre-stored standard value in the set of data corresponds to one of the set of readings. The pre-stored standard value may not have a one-to-one corresponding relationship with a set of readings of the signal digitization module according to the corresponding pressing position. The existing calibration algorithm does not require a one-to-one corresponding relationship between the pre-stored standard value and the value to be calibrated according to the pressing position.
[0071] It should be noted that the “pressing position” in the first pressing position, the second pressing position, the third pressing position, the first pressing position, the second pressing position, ..., the nth pressing position, a group of pressing positions, etc. in all the embodiments of the present application does not refer to the position of the magnetic key when it is in a pressed state, but refers to the magnetic key in any position, including the position when the magnetic key is released to the top position, that is, not pressed by the pressing device, and may also include any position of the magnetic key when it is pressed by the pressing device.
[0072] exist Figure 8In the embodiment of the present application shown, before calibrating the magnetic key, when the magnetic key is in any certain pressing position, the difference between the reading of the reference source and the reading of the signal digitization module is compared. If the difference between the two exceeds the first preset range, the magnetic key is discarded and no longer calibrated, and the fault is found in advance to eliminate the factors that have a greater impact on the subsequent calibration (the signal digitization module itself has a problem), thereby improving the calibration efficiency of the magnetic key. Calibration of a group of readings corresponding to a group of pressing positions can improve the smoothness of the magnetic key during the pressing process, improve the pressing feel of each magnetic key, and select any one or more pressing positions for programming other key functions to enrich the key functions of the magnetic key. In addition, by reading the readings of each magnetic key in real time with the reference source and comparing them with the difference of the readings of the signal digitization module, rather than comparing the difference between the readings of the signal digitization module and the ideal value, it can adapt to the actual conditions of different magnetic keys, obtain a comparison benchmark (reference source reading) that is closer to the actual magnetic key, reduce the situation of inaccurate judgment due to inaccurate comparison benchmarks, and reduce misjudgment.
[0073] It should also be noted that because the signal digitization modules of different magnetic buttons may have different reading formats, it is necessary to first convert the reading of the signal digitization module from a non-standard format to a standard format reading (such as a voltage value) and then compare it with the reading of the reference source to prevent the reading output of the magnetic button from being non-standard. You can also use a table lookup or other method to solve the problem of non-standard reading of the magnetic button signal digitization module.
[0074] In an embodiment of the present application, in step 12, it is determined whether the difference between a and b is within the first preset range. The judgment result can be output in text form, and the output content can further include statistics and analysis of a, b and the difference between a and b, so that the manufacture of magnetic keys can be improved in a targeted manner according to the judgment result. For the judgment result, it can also be output in a manner such as an alarm. When the difference between a and b exceeds the first preset range, that is, the reading of the signal digitization module does not meet the requirements, an alarm is used in the form of a buzzer, an indicator light, a prompt box, etc., to prompt that the reading of the signal digitization module does not meet the requirements, so as to realize the magnetic keys that do not meet the requirements are picked out, returned to the test line for testing and maintenance, and prevent the magnetic keys from flowing into the market. Of course, whether the judgment result is output and what form the output of the judgment result is in do not affect the implementation of the embodiment of the present application.
[0075] In the embodiment of the present application, whether the reading of the signal digitization module meets the requirements can be determined based on a single pressing position. At this time, as long as the difference between a and b at a pressing position is determined to exceed the first preset range, it is determined that the reading of the signal digitization module does not meet the requirements. It is also possible to set a tolerance range for the number of pressing positions that do not meet the requirements. Only when the number of pressing positions that do not meet the preset requirements reaches a preset threshold value, it is determined that the reading of the signal digitization module does not meet the requirements.
[0076] In other embodiments, further, the determination of whether the difference between a and b is within the first preset range is specifically implemented by the following algorithm: after converting the format of b to the same format as a, |ab| / a≤z%, where z is any positive number. The first preset range is (z%×a).
[0077] The measurement accuracy of products that meet the first preset range can be divided into at least two levels. For example, the first preset range of a model of magnetic button is set to (5%×a), that is, z is 5. According to the measurement accuracy, the products are divided into two levels. The first level is when |ab| / a is within 2.5%, and the second level is when |ab| / a is between 2.5% and 5%. Specifically, the signal digitization module of a magnetic button outputs an electrical signal reading b of 2.38V (after conversion) for the magnetic sensor, and the reference source reading a is 2.4V, and the first preset range is 0.12V. The central processing module determines that 2.4V-2.38V is within the first preset range, and calculates that |ab| / a=0.83%, so it is determined that the signal digitization module reading a is more accurate, and the next step is performed. At the same time, the measurement accuracy of the magnetic button is the first level. For another example, the signal digitization module of a magnetic button outputs a signal reading b of 2.12V (after conversion) for the magnetic sensor, and the reference source sampling reading a is 2.4V. The first preset range is 0.12V. If the difference between the two exceeds the first preset range, the magnetic button is deemed unqualified and its calibration is terminated.
[0078] In the embodiment of the present application, in order to further improve the calibration efficiency of the magnetic button, the method may further include measuring the factors that may affect the calibration of the magnetic button, see Fig. 9 In this embodiment, the magnetic button calibration method further includes steps 21 and 22, as described below.
[0079] Step 21: measuring the magnetic flux or magnetic field strength of the magnet; the magnetic flux or magnetic field strength of the magnet can be measured by a device such as a magnetic flux measurement module.
[0080] Step 22: Determine whether the magnetic flux or magnetic field strength is within a second preset range, and if so, continue calibration; if not, terminate calibration.
[0081] If the magnetic flux or magnetic field strength exceeds the second preset range, it means that the magnet does not meet the requirements and no calibration is performed.
[0082] It should be noted that the second preset range is a preset value, which may be a value set according to user requirements or a value set according to market data or a value set by the magnetic button calibration device itself.
[0083] It should also be noted that the embodiment of the present application can perform measurements when the magnetic key is in any pressing position, for example, the magnetic key can be measured when it is released to the top position, or when it is pressed to the bottom position, or after the magnetic key is assembled. The execution order is not limited and does not affect the implementation of the embodiment of the present application. Of course, the preferred method is to perform this measurement before using the pressing device to press the magnetic key, so that the magnetic key with unqualified magnets can be eliminated at the earliest time, saving time and cost.
[0084] exist Fig. 9 In the embodiment of the present application shown, before calibrating the magnetic button, the magnetic flux or magnetic field strength of the magnet can be measured when the magnetic button is in any pressing position. If the magnetic flux or magnetic field strength exceeds the second preset range, it means that the magnet of the magnetic button itself is faulty, and the magnetic button is discarded and no longer calibrated. Magnetic button calibration is a fine-tuning method and is not suitable for correcting faults in the magnet itself. In this way, the influencing factor of magnet failure is eliminated, the calibration efficiency of the magnetic button and the durability and working stability of the magnetic button after leaving the factory are further improved, and the probability of failure of the magnetic button after a certain period of use is reduced.
[0085] In the embodiment of the present application, in step 22, it is determined whether the magnetic flux or magnetic field strength is within the second preset range, and the judgment result can be output in the form of text, and the output content can further include statistics and analysis of the magnitude of the magnetic flux or magnetic field strength, so that the manufacturing of the magnetic key can be targetedly improved according to the judgment result. For the judgment result, it can also be output in a manner such as an alarm. When the magnetic flux or magnetic field strength exceeds the second preset range, that is, the magnetic flux or magnetic field strength of the magnet does not meet the requirements, an alarm is used in the form of, for example, a buzzer, an indicator light, a prompt box, etc., to prompt that the magnetic flux or magnetic field strength of the magnet does not meet the requirements, so as to realize the magnetic keys that do not meet the requirements are picked out and returned for inspection. After the magnet is replaced, it can still be re-calibrated and can be put on the market after the calibration is qualified. Of course, whether the judgment result is output and what form the output of the judgment result is in do not affect the implementation of the embodiment of the present application.
[0086] In the embodiment of the present application, in order to further improve the calibration efficiency of the magnetic button, the method may further include measuring another factor that may affect the calibration, see Fig.10In this embodiment, the magnetic button calibration method further includes steps 31 and 32, as described below.
[0087] Step 31: Measure the travel d of the magnetic key from the released top position to the pressed bottom position. The travel d of the magnetic key from the released top position to the pressed bottom position can be measured by a distance measurement module or other device. The released top position is the position when the magnetic key is not pressed by the pressing device, and the pressed bottom position is the position when the magnetic key is pressed to the bottom by the pressing device. The distance measurement module measures the absolute values of these two positions respectively, and the difference between them is the travel d.
[0088] Step 32: Determine whether the stroke d is within the third preset range, if it is determined to be yes, continue calibration, if it is determined to be no, terminate calibration. If the stroke d exceeds the third preset range, it means that the magnetic key does not meet the requirements and no longer needs to be calibrated.
[0089] It should be noted that the third preset range is a preset value, which may be a value set according to user requirements or a value set according to market data or a value set by the magnetic button calibration device itself.
[0090] It should also be noted that the above steps are performed before calibrating a set of readings of the magnetic buttons, so as to exclude the magnetic buttons whose stroke d does not meet the requirements.
[0091] exist Fig.10 In the embodiment of the present application shown, before calibrating the reading of the magnetic button, the stroke d of the magnetic button from being released to the top position to being pressed to the bottom position is measured. On the one hand, if the stroke d exceeds the third preset range, it means that the pressing structure of the magnetic button is faulty, that is, the magnetic button is discarded and no longer calibrated. Similarly, magnetic button calibration, as a means of fine-tuning, is not suitable for correcting faults in the pressing structure itself. In this way, eliminating the influencing factor of the pressing structure failure can further improve the calibration efficiency of the magnetic button; on the other hand, it can also improve the consistency of the magnetic button pressing position change range, improve the consistency of the magnetic button pressing performance, improve the consistency of the pressing feel, and enhance the user experience.
[0092] It should also be noted that the embodiment of the present application can simultaneously collect a set of readings corresponding to a set of pressing positions and measure the travel d of the magnetic key from being released to the top position to being pressed to the bottom position during the process of the pressing device pressing the magnetic key once. That is, in the above embodiment, the second pressing position is the release to the top position, and the third pressing position is the press to the bottom position. In other words, the pressing device presses the magnetic key once, that is, simultaneously reads a set of readings corresponding to a set of pressing positions and measures the travel d of the magnetic key from being released to the top position to being pressed to the bottom position, which can save time costs. At the same time, you can select any pressing position in the process of this pressing to obtain a and b, or you can select any pressing position in a set of pressing positions to obtain b, and the reference source also reads a reading a at this position. Of course, this is not necessary, and the travel d, a set of readings corresponding to a set of pressing positions, and a and b can also be obtained by pressing twice or three times, which does not affect the implementation of the embodiment of the present application.
[0093] In the embodiment of the present application, in step 32, it is determined whether the stroke d is within the third preset range, and the judgment result can be output in text form. The output content can further include statistics and analysis of the size of the stroke d, so that the manufacture of the magnetic key can be targetedly improved according to the judgment result. For the judgment result, it can also be output in a manner such as an alarm. When the stroke d exceeds the third preset range, that is, the stroke d does not meet the requirements, an alarm is used in the form of, for example, a buzzer, an indicator light, a prompt box, etc., to prompt that the stroke d does not meet the requirements, so as to realize the magnetic keys that do not meet the requirements are picked out and returned for inspection. After replacing the pressing structure or adjusting the overall structure, it can still be re-calibrated and can be put on the market after the calibration is qualified. Of course, whether the judgment result is output and what form the output of the judgment result is in do not affect the implementation of the embodiment of the present application.
[0094] In the embodiment of the present application, in order to further improve the calibration efficiency of the magnetic button, the method may further include measuring another factor that may affect the calibration, see Fig.11 In this embodiment, the magnetic button calibration method further includes steps 41-43, as described below.
[0095] Step 41: Use the reference source to collect the first voltage value output when the magnetic button is in the released top position, and the reading of the reference source is v1.
[0096] Step 42: Use the reference source to collect a second voltage value output when the magnetic button is in the pressed-to-bottom position, the reading of the reference source being v2.
[0097] Step 43: Determine whether the difference between v1 and v2 is within a fourth preset range. If so, continue calibration; if not, terminate calibration.
[0098] The difference between v1 and v2 is the maximum voltage range of the magnetic key. If the difference between v1 and v2 exceeds the fourth preset range, it means that the voltage range generated during the pressing of the magnetic key does not meet the requirements, indicating that the magnetic key has poor sensitivity, poor calibration effect, and great difficulty, so no calibration is performed. This can further improve the calibration efficiency of the magnetic key and the durability and working stability of the magnetic key after leaving the factory, and reduce the probability of failure of the magnetic key after a certain period of use.
[0099] It should be noted that the fourth preset range is a preset value, which may be a value set according to user requirements or a value set according to market data or a value set by the magnetic button calibration device itself.
[0100] It should also be noted that the embodiment of the present application can simultaneously collect a group of readings corresponding to a group of pressing positions, a first voltage value, a second voltage value, and measure the travel d of the magnetic key from the release to the top position to the press to the bottom position during the process of the pressing device pressing the magnetic key once, that is, in the above embodiment, the second pressing position is the release to the top position, and the third pressing position is the press to the bottom position. In other words, press once, that is, read the first voltage value, the second voltage value, and a group of readings corresponding to a group of pressing positions at the same time, and then make various judgments. The entire calibration process only needs to be pressed once to save time and cost. At the same time, you can select any pressing position in the process of this pressing to obtain a and b, or you can select any pressing position in a group of pressing positions to obtain b, and the reference source also reads a reading a at this position. Of course, this is not necessary. A set of readings, a first voltage value, and a second voltage value corresponding to a set of pressing positions are collected, and the travel d of the magnetic button from the released top position to the pressed bottom position, as well as the readings of a and b are measured. These steps can also be obtained by pressing twice, three times, or four times, etc., without affecting the implementation of the embodiments of the present application.
[0101] exist Fig.11 In the embodiment of the present application shown, before calibrating the reading of the magnetic button, it is possible to first determine whether the difference between v1 and v2 meets the requirements. If it exceeds the fourth preset range, it means that the real voltage range output by the magnetic button is faulty. This fault may exist in the pressing structure or in the related circuit. The magnetic button is discarded and no longer calibrated. Similarly, magnetic button calibration, as a means of fine-tuning, is not suitable for correcting faults in the pressing structure or related circuits themselves. In this way, eliminating the influencing factor that the real voltage range output by the magnetic button is faulty can further improve the calibration efficiency of the magnetic button.
[0102] The determination of the difference between v1 and v2 can be arranged at any step in the whole process of calibrating the magnetic key. Preferably, it can be arranged to be performed after confirming that the reading of the signal digitization module is correct. v1 and v2 correspond to the first voltage value and the second voltage value of the output of the magnetic key when it is released to the top position and pressed to the bottom position, respectively.
[0103] In the embodiment of the present application, in step 43, it is determined whether the difference between v1 and v2 is within the fourth preset range, and the judgment result can be output in text form. The output content can further include statistics and analysis of v1, v2 and the difference between v1 and v2, so that the manufacturing of the magnetic key can be improved in a targeted manner according to the judgment result. For the judgment result, it can also be output in the form of, for example, an alarm. When the difference between v1 and v2 exceeds the fourth preset range, that is, the difference between v1 and v2 does not meet the requirements, an alarm is used in the form of, for example, a buzzer, an indicator light, a prompt box, etc., to prompt that the difference between v1 and v2 does not meet the requirements, so as to realize the magnetic key that does not meet the requirements to be picked out and returned for inspection. After replacing the relevant circuit or pressing structure, it can still be re-calibrated and can be put on the market after the calibration is qualified. Of course, whether the judgment result is output and what form the output of the judgment result is in do not affect the implementation of the embodiment of the present application.
[0104] In an embodiment of the present application, in order to better perform calibration, the method may further include a sampling method for a specific position point of a set of pressing positions. In this embodiment, the magnetic key calibration method further includes the following steps: the set of pressing positions is determined by sampling at a certain time interval, and the set of pressing positions is calculated based on the second pressing position and the certain time interval. For example, starting from the time when the second pressing position is pressed, sampling is performed every 0.02 milliseconds, a total of 50 points are sampled, and then the third pressing position is reached; or, starting from the time when the second pressing position is pressed, sampling is performed every 0.005 milliseconds, a total of 300 points are sampled, and then the third pressing position is reached.
[0105] It should be noted that the certain time interval is based on the clock circuit of the single-chip microcomputer or central processing unit of the magnetic key calibration device or the single-chip microcomputer of the magnetic key to set the sampling time. The setting of the sampling interval and the number of samples must ensure that the sampling can be completed before reaching the third pressing position (i.e., the pressing end point, usually the position where the pressing is to the bottom), and the sampling points should be spread over the entire stroke as much as possible.
[0106] A group of pressing positions includes at least two pressing positions. This embodiment is described by taking a plurality of pressing positions as an example: the group of pressing positions is specifically the 1st to nth pressing positions, where n≥2, which are sequentially changed at a certain time interval and sequentially set to the 1st pressing position, the 2nd pressing position, ..., the nth pressing position. The signal digitization module sequentially reads the corresponding 1st reading, the 2nd reading, ..., the nth reading at each pressing position.
[0107] It should be noted that the first pressing position may be the second pressing position or may not be the second pressing position, and the nth pressing position may be the third pressing position or may not be the third pressing position.
[0108] It should also be noted that the certain time intervals may be uniform time intervals, for example, a pressing position is determined every 0.03 milliseconds during the pressing process and a reading is read out at the same time, or they may be uneven time intervals. There are no restrictions on the number of a group of pressing positions, and sampling a group of pressing positions and a group of readings at uniform time intervals or uneven time intervals, and neither affects the implementation of the embodiments of the present application.
[0109] It should be noted that a group of pressing positions can be sampled from any part of the distance in the stroke d that the magnetic key travels from the released top position to the pressed bottom position. In the present embodiment, in order to improve the calibration effect of the magnetic key, a group of pressing positions are sampled from the time when the magnetic key is released to the top position until the time when the magnetic key is pressed to the bottom position. The sampling of this group of pressing positions includes the two pressing positions of the magnetic key being released to the top position and the magnetic key being pressed to the bottom position. At the same time, such a sampling distance can sample more pressing positions and calibrate more readings. The pressing feel of the calibrated magnetic key will be smoother.
[0110] It should also be noted that each of a group of pressing positions changes in sequence at a certain time interval, which means: taking the second pressing position and the first pressing position do not overlap, and the third pressing position and the nth pressing position do not overlap as an example, during the pressing process, the magnetic key changes in sequence from the second pressing position to the first pressing position, the first pressing position changes to the second pressing position,..., the nth pressing position changes to the third pressing position.
[0111] In this embodiment, the second pressing position is that the magnetic key is in the released top position (that is, the position when the magnetic key is not pressed), and the second pressing position coincides with the first pressing position, and the third pressing position is that the magnetic key is in the pressed bottom position, and the third pressing position coincides with the nth pressing position. Assume that in the process of the pressing device pressing the magnetic key, the time points corresponding to the first pressing position, the second pressing position, ..., and the nth pressing position are marked on the time axis, that is: the first pressing position is marked as T1, the second pressing position is marked as T2, the third pressing position is marked as T3, ..., and the nth pressing position is marked as Tn, that is, the time points on the time axis are specifically: [T1, T2, T3, ..., Tn]. It should be understood that the time points on the time axis are evenly spaced, and the first pressing position is marked as 0.
[0112] When the magnetic key changes from the first pressing position to the nth pressing position, the time axis moves from T1 to Tn. In the process from T1 to Tn, the two pressing positions corresponding to them can be calculated through two time points Tx to Tx+1. When the magnetic key is pressed at a uniform speed, the pressing position of the magnetic key at each time point Tx can be calculated by multiplying time and speed. When the magnetic key is pressed with a uniform force, the displacement of the magnetic key can be measured synchronously with the pressing time sampling to directly obtain the pressing position at each time point Tx; or a certain approximate estimate can be taken to regard the pressing process as a uniform speed, thereby calculating the pressing position of the magnetic key at each time point Tx. Where x is less than n and greater than or equal to 1.
[0113] In other embodiments of the present application, the sampling method for the specific positions of a group of pressing positions can also be measured by using a distance measurement module, and the distance measurement module is synchronized with the signal digitization module under the control of the central processing module.
[0114] It should be noted that a group of pressing positions includes at least two pressing positions. This embodiment is explained by taking a plurality of pressing positions as an example: the travel (i.e., distance interval) of the magnetic key from one pressing position to the next pressing position is measured and obtained by the distance measurement module. At the same time, under the control of the central processing unit, the distance measurement module samples a pressing position each time it measures the distance, and the signal digitization module synchronously reads a reading at the corresponding pressing position once. It can be set that a pressing position is sampled after each movement of the magnetic key at a certain distance interval. The group of pressing positions is specifically the 1st to nth pressing positions, n≥2, which are changed in sequence according to a certain distance interval, and are set in sequence as the 1st pressing position, the 2nd pressing position, ..., and the nth pressing position. The signal digitization module reads out the corresponding 1st reading, the 2nd reading, ..., and the nth reading in sequence at each pressing position.
[0115] It should be noted that the first pressing position may be the second pressing position or may not be the second pressing position, and the nth pressing position may be the third pressing position or may not be the third pressing position.
[0116] It should also be noted that a plurality of pressing positions can be sampled at uniform intervals, or a group of pressing positions can be sampled at non-uniform intervals. Similarly, the number of a group of pressing positions, sampling a group of pressing positions at uniform intervals or non-uniform intervals, are not limited and do not affect the implementation of the embodiments of the present application.
[0117] It should also be noted that a group of pressing positions change in sequence according to the distance interval, which means: taking the second pressing position and the first pressing position do not overlap, and the third pressing position and the nth pressing position do not overlap as an example, the magnetic key pressing process changes in sequence from the second pressing position to the first pressing position, and then from the first pressing position to the second pressing position,..., and then from the nth pressing position to the third pressing position.
[0118] In this embodiment, the second pressing position is taken as an example in which the magnetic button is released to the top position (that is, the position when the magnetic button is not pressed), and the second pressing position coincides with the first pressing position, and the third pressing position is taken as an example in which the magnetic button is pressed to the bottom position, and the third pressing position coincides with the nth pressing position: it is assumed that the distance scale points of the first pressing position, the second pressing position, ..., and the nth pressing position are marked on the distance scale axis, that is: the first pressing position is marked as D1, the second pressing position is marked as D2, the third pressing position is marked as D3, ..., and the nth pressing position is marked as Dn, that is, the distance scale points on the distance scale axis are specifically: [D1, D2, D3, ..., Dn]. It should be understood that the distance scale points on the distance scale axis are evenly spaced, and D1 corresponding to the first pressing position is marked as 0.
[0119] When the magnetic key changes from the first pressing position to the nth pressing position, the distance scale axis moves from D1 to Dn. From D1 to Dn, the distance measurement module can be used to measure which two pressing positions the two distance scale points Dy to Dy+1 specifically correspond to. Among them, y is less than n and greater than or equal to 1.
[0120] In an embodiment of the present application, in order to achieve more accurate calibration of a set of readings corresponding to a set of pressing positions, the method may further include a sampling method for pre-stored standard values. In this embodiment, the magnetic button calibration method further includes the following steps: the pre-stored standard values are obtained based on measurements of multiple standard magnetic buttons at multiple pressing positions.
[0121] It should be noted that multiple standard magnetic buttons refer to the readings read by these magnetic buttons at each pressing position that are confirmed by experiments, calibration or use. Each standard magnetic button is pressed, and a reading is read at each pressing position. The pressing is repeated multiple times, and multiple readings can be obtained at each pressing position. After multiple groups of readings are obtained, all readings read at the same pressing position can be averaged to obtain the standard reading corresponding to the pressing position, that is, a group of standard readings corresponding to a group of pressing positions can be obtained to form a pre-stored standard value, which is stored in the calibration device or magnetic button. It is also possible to set the most identical readings read at each pressing position as the pre-stored standard value corresponding to the pressing position after obtaining multiple groups of readings. Of course, each standard magnetic button can also be pressed only once, and each pressing position only corresponds to one reading. After pressing multiple standard magnetic buttons, each pressing position can obtain a group of readings, forming multiple groups of readings, and then these readings are processed according to the above method or a similar method to obtain the pre-stored standard value.
[0122] Of course, in other embodiments, the pre-stored standard value may be a value set according to user requirements or a value set according to market data or a value set by the calibration device itself.
[0123] In the embodiment of the present application, in order to further improve the calibration efficiency of the magnetic button, the method may further include measuring another factor that may affect the calibration, see Fig.12 In this embodiment, the magnetic button calibration method further includes steps 51 and 52, as described below.
[0124] Step 51: measuring the pressing force f exerted on the magnetic button when the magnetic button is at the fourth pressing position.
[0125] Step 52: Determine whether the pressing force f is within the fifth preset range. If it is determined to be yes, continue calibration; if it is determined to be no, terminate calibration.
[0126] The pressing force f is the force applied by the pressing device on the magnetic button. If the pressing force f exceeds the fifth preset range, it means that the operation of the pressing device does not meet the requirements and should be adjusted before pressing again.
[0127] It should be noted that the fifth preset range is a preset value, which may be a value set according to user requirements or a value set according to market data or a value set by the magnetic button calibration device itself.
[0128] It should also be noted that the above steps can be performed at any time when the pressing device presses the magnetic key, that is, any time can be selected to perform measurement during the process from the magnetic key being released to the top position to being pressed to the bottom position; each press can be measured, or a random measurement can be selected after a period of work; multiple measurements can be performed in one press, or only one measurement can be performed in one press; the press can also be performed separately, without following the process from the magnetic key being released to the top position to being pressed to the bottom position. Of course, in order to save time cost, it is preferred to perform the measurement when the pressing device just applies the pressing force to the magnetic key, and make a judgment after the measurement. The fourth pressing position is any position of the magnetic key when the pressing device presses the magnetic key.
[0129] exist Fig.12 In the embodiment of the present application shown, when it is found that the pressing force f applied to the magnetic key does not meet the requirements, the calibration is stopped and continued after the operation of the pressing device is adjusted. This can reduce the impact of external factors on the readings of the signal digitization module and can further improve the calibration efficiency of the magnetic key. On the other hand, the sampling of a group of pressing positions of the magnetic key is related to the pressing time process or the pressing distance process, that is, it is related to the pressing force f. By obtaining a magnetic key with a relatively uniform pressing force f, the sampling of a group of pressing positions of each magnetic key can be unified to improve the calibration accuracy.
[0130] In an embodiment of the present application, in step 52, it is determined whether the pressing force f is within the fifth preset range, and the judgment result can be output in text form. The output content can further include statistics and analysis of the size of the pressing force f, so that targeted improvements can be made to the manufacture of the magnetic key based on the judgment result in the future. The judgment result can also be output in the form of, for example, an alarm. When the pressing force f exceeds the fifth preset range, that is, the pressing force f does not meet the requirements, an alarm is issued in the form of, for example, a buzzer, an indicator light, a prompt box, etc., to prompt that the pressing force f does not meet the requirements, so that the staff can adjust the work of the pressing device to ensure that the premise of calibration is as consistent as possible. Of course, whether the judgment result is output and what form the output of the judgment result is in do not affect the implementation of the embodiment of the present application.
[0131] It should also be noted that in all the embodiments of the present application, the relevant judgment procedures can be uniformly processed by the central processing unit, or can be processed by the single-chip microcomputer of the magnetic button, or can be processed by the single-chip microcomputer of each measurement module; it can also be partially processed by the central processing unit, partially processed by the single-chip microcomputer of the magnetic button, partially processed by the single-chip microcomputer of each measurement module, and partially processed by manual judgment, etc. There is no limitation on which device is used for processing, and it does not affect the implementation of the embodiments of the present application.
[0132] The specific implementation of the present application is described below in conjunction with a specific application scenario. In this specific application scenario, the signal digitization module 16 uses an ADC module 106, the reference source 201 uses a programmable voltage source 2, the magnetic sensor 15 uses a linear Hall sensor 105, and the pressing device 8 uses an industrial robot 6. The ADC module 106 and the programmable voltage source 2 both collect the electrical signal output by the linear Hall sensor 105 and obtain corresponding voltage values. Fig.13 In this embodiment, the magnetic button calibration method is implemented through the following steps 101-113.
[0133] Step 101: Measure the magnetic flux of the magnet. The magnetic flux is measured by inserting a probe of a magnetic flux meter into the key cap and approaching the magnet. Of course, this measurement step can also be performed when the magnetic key is in any position.
[0134] Step 102: Determine whether the magnetic flux is within a second preset range. If it is determined to be yes, proceed to step 103. If it is determined to be no, terminate the calibration and sound an alarm.
[0135] The magnetic flux measured in step 101 is transmitted to the central processing module, and the central processing module determines whether the magnetic flux is within the second preset range. If the magnetic flux is within the second preset range, the magnet is deemed qualified, and step 103 is continued. If the magnetic flux exceeds the second preset range, the magnet is deemed unqualified, the calibration of the magnetic key is terminated, and an alarm is sounded to remind the staff. The alarm content is: "Warning, the magnetic flux of the magnet does not meet the requirements, please take it out", so that the unqualified magnetic key can be repaired accordingly. In this way, it is first determined whether the magnet is qualified to eliminate the influence of the magnet on the calibration and post-factory operation of the magnetic key. Of course, this judgment step can also be performed no longer at the earliest, as long as it is performed before calibrating a set of readings of the magnetic key.
[0136] Step 103: The magnetic button is in the released top position, and the programmable voltage source and the ADC module are used to read the electrical signal output by the magnetic sensor. The reading of the programmable voltage source is a, and the reading of the ADC module is b.
[0137] The programmable voltage source reading a is also the first voltage value output when the magnetic button is released to the top position using the programmable voltage source, that is, v1 (v1 will be used in subsequent steps).
[0138] Step 104: Determine whether the difference between a and b is within the first preset range. The reading of the programmable voltage source and the reading of the ADC module are transmitted to the central processing module for processing. After determining whether the magnet is qualified, the accuracy of the first reading of the ADC module is determined, which can reduce time cost.
[0139] Of course, the readings of the programmable voltage source and the ADC module can also be obtained when the magnetic button is in any other position, and step 104 may not be performed at this time. The above two steps only need to be performed before calibrating a set of readings of the magnetic button.
[0140] Step 105: When it is determined that the difference between a and b exceeds the first preset range, the calibration of the magnetic button is terminated, and an alarm is sounded to remind the staff, the alarm content is: "Warning, the ADC module reading is inaccurate, please take it out", so that corresponding repairs can be carried out; when it is determined that the difference between a and b is within the first preset range, the manipulator of the industrial robot presses the magnetic button, and by pressing, the magnetic button is changed from being in a released top position to being in a pressed bottom position.
[0141] Step 106: When the pressed position of the magnetic button changes, 80 pressed positions are sampled at the same time interval to form a group of pressed positions. At each sampled pressed position, the ADC module reads out a reading to obtain a group of readings, and each of the group of readings corresponds to one of the group of pressed positions.
[0142] Step 107: Use a programmable voltage source to collect a second voltage value output when the magnetic button is pressed to the bottom position, and the reading of the reference source is v2.
[0143] Step 108: Determine whether the difference between a and v2 is within the fourth preset range. If it is determined to be yes, proceed to step 109. If it is determined to be no, terminate the calibration and sound an alarm to remind the staff. The alarm content is: "Warning, the difference between a and v2 does not meet the requirements, please take it out" so that it can be repaired accordingly. This determination step can also be processed by the central processing module.
[0144] Of course, step 107 and step 109 are not limited to be performed at this time, as long as they are performed before calibrating a set of readings of the magnetic button.
[0145] Step 109: Measure the travel distance d of the magnetic button from the released top position to the pressed bottom position. The travel distance d is transmitted to the central processing module.
[0146] Step 110: Determine whether the stroke d is within the third preset range. When it is judged to be yes, continue to step 109. When it is judged to be no, terminate the calibration and sound an alarm to remind the staff. The alarm content is: "Warning, the stroke d of the magnetic button does not meet the requirements, please take it out" so that corresponding repairs can be carried out.
[0147] Of course, step 109 and step 110 are not limited to be performed at this time, as long as they are performed before calibrating a set of readings of the magnetic button.
[0148] The determination step may also be processed by the central processing module. In order to reduce time cost, the measurement of the stroke d, the collection of the first voltage value and the second voltage value, and the reading of a set of readings are completed in one pressing process of the manipulator of the industrial robot.
[0149] Step 111: Measure the pressing force f exerted on the magnetic key when the magnetic key is at the bottom position. The position where the magnetic key is at the bottom position is relatively easy to determine, which facilitates the unified detection of the pressing force f.
[0150] Step 112: Determine whether the pressing force f is within the fifth preset range. If it is determined to be yes, proceed to step 113. If it is determined to be no, terminate the calibration and sound an alarm to remind the staff. The alarm content is: "Warning, the pressing force f of the industrial robot does not meet the requirements. Please adjust the work of the industrial robot" so that the work of the industrial robot can be adjusted. This determination step can also be processed by the central processing module.
[0151] Of course, step 111 and step 112 are not limited to be performed at this time, as long as they are performed before calibrating a set of readings of the magnetic button.
[0152] Step 113: Based on the pre-stored standard values, the set of readings obtained in step 106 is calibrated, that is, the readings of the ADC module corresponding to each pressing position are replaced with the corresponding pre-stored standard values, and stored in the microcontroller of the magnetic button. In subsequent use, each time the magnetic button is pressed to the corresponding pressing position, the ADC module outputs the corresponding pre-stored standard value.
[0153] Next, an embodiment of the device provided in this application is introduced.
[0154] See also Figure 2 , Figure 7 The magnetic button calibration equipment includes a calibration table 7, an industrial robot 6 (an example of a pressing device), a programmable voltage source 2 (an example of a reference source), a PC 9, a magnetic flux meter 3 (an example of a magnetic flux measurement module), a distance sensor 5 (an example of a distance measurement module), and a pressure sensor 4 (an example of a pressure measurement module).
[0155] The calibration table 7 includes a workbench 71 , a workstation arranged on the workbench 71 , and a tool 72 for positioning the magnetic button. The product with the magnetic button is placed on the workstation and is positioned by the tool 72 .
[0156] The PC 9 is arranged on the calibration table 7, and has a central processing module 10 therein, which is connected to the industrial robot 6 to control the operation of the industrial robot 6. When the industrial robot 6 is operating, the pressing finger 81 moves toward the magnetic button 1 placed on the workstation and presses the magnetic button 1. The industrial robot 6 operates at a high speed and has high working efficiency.
[0157] See also Figure 2 , the program-controlled voltage source 2 is arranged on the calibration table 7, located next to the workstation, and the program-controlled voltage source 2 is connected to two probes, and the program-controlled voltage source 2 is connected to the output end of the linear Hall sensor 105 on the circuit board 14 of the magnetic button through the probe, and the ADC module 106 of the magnetic button is also connected to the output end of the linear Hall sensor 105, respectively used to read the voltage signal output by the linear Hall sensor 105 under different magnetic field strengths, and respectively obtain the readings a and b in the form of digital signals, and convert a into a reading in the same format as b, such as both are voltage values. The program-controlled voltage source 2 and the ADC module 106 are also connected to the central processing module 10, and transmit a and b to the central processing module 10. The reading of the program-controlled voltage source 2 is an accurate value, and the central processing module 10 determines the accuracy of the reading of the ADC module 106 by judging whether the difference between a and b is within the first preset range.
[0158] The ADC module 106 is short for Analog-to-Digital Converter. The ADC module 106 is one of the components of the magnetic key 1, and is disposed on the circuit board 14 of the magnetic key 1, connected to the output end of the magnetic sensor 15, and used to convert the analog signal output by the magnetic sensor 15 into a digital signal that can be processed by the central processing module 10 or the digital circuit or the single-chip microcomputer.
[0159] After the circuit board 14 of the magnetic key 1 is brought into contact with the probe of the program-controlled voltage source 2, the program-controlled voltage source 2 is connected to the output end of the linear Hall sensor 105, and the industrial robot 6 drives the pressing finger 81 to start pressing the magnetic key 1, thereby realizing automation and high efficiency. Moreover, the industrial robot 6 presses the magnetic key 1, so that the intensity and distance of each pressing can be within the error range as much as possible, thereby improving the accuracy of calibration.
[0160] See also Figure 2 , Figure 7, the magnetic flux meter 3 is located next to the magnetic key 1, and the magnetic flux meter 3 includes a probe that can be inserted into the magnetic key 1 to measure the magnetic flux of the magnet 12. The magnetic flux meter 3 is connected to the central processing module 10, and the probe of the magnetic flux meter 3 can be inserted into the key cap 11 to measure the magnetic flux of the magnet 12 before the pressing finger 81 presses the magnetic key 1. The product with the magnetic key 1 to be calibrated is still a semi-finished product, and the probe can be inserted into the key cap 11. The measured magnetic flux is transmitted to the central processing module 10, and the central processing module 10 determines whether the magnetic flux is within the second preset range to confirm whether the magnet 12 is qualified. If the magnetic flux is within the second preset range (within the range of error allowance), the magnet 12 is deemed qualified and the next calibration is performed. If the magnetic flux exceeds the second preset range, the magnet 12 is deemed unqualified, and the central processing module 10 issues an instruction to terminate the calibration of the magnetic key 1. The magnetic flux meter 3 can be a Tesla meter, a magnetic field scanner, or a magnetic field intensity meter and a sensor.
[0161] See also Figure 2 , Figure 7 The distance sensor 5 is arranged on the workbench 71, and is connected to the central processing module 10. The distance sensor 5 measures the absolute position value of the magnetic key when it is in a certain pressing position, for example, measuring the stroke d of the magnetic key from the released top position to the pressed bottom position. The distance sensor 5 transmits the measured stroke d to the central processing module 10, and the central processing module 10 determines whether the stroke d is within the third preset range (within the allowable error range). The distance sensor 5 can be an infrared sensor, a laser sensor, or other devices capable of measuring distance.
[0162] See also Figure 2 , Figure 7 The pressure sensor 4 is connected to the central processing module 10. The pressure sensor 4 is installed between the pressing finger 81 and the mounting seat 82. When the pressing finger 81 presses the keycap of the magnetic key, it will be subjected to the counter pressure of the magnetic key 1. The counter pressure is transmitted to the pressure sensor 4. Therefore, the pressure sensor 4 can measure the pressing force f of the pressing finger 81 on the magnetic key 1. The pressure sensor 4 transmits the measured pressing force f to the central processing module 10. The central processing module 10 determines whether the pressing force f of the pressing finger 81 on the magnetic key 1 is within the fifth preset range (within the allowable error range) to improve the consistency of the pressing force f of the pressing finger 81 on each magnetic key 1.
[0163] The same model of magnetic button 1 may have different assembly positions of components in different machines during the production process, such as during assembly. Therefore, the pressure sensor 4 and the distance sensor 5 are used in conjunction with each other to improve the consistency of the pressing force of the pressing finger 81 on each magnetic button 1 and the consistency of the travel of each magnetic button 1 from the released top position to the pressed bottom position, thereby improving the consistency of the same model of products leaving the factory and enhancing the user experience.
[0164] A memory is provided on the circuit board of the magnetic button 1 for storing pre-stored standard values.
[0165] In short, the above is only the preferred embodiment of the present application, and all equivalent changes and modifications made according to the scope of the patent application of the present application should fall within the scope of coverage of the patent application of the present application.
Claims
1. A magnetic button calibration method, characterized in that: in, The magnetic key comprises a magnet, a magnetic sensor, and a signal digitization module connected to the output end of the magnetic sensor. The magnetic key calibration method comprises the following steps: When the magnetic button is in the first pressing position, the reference source and the signal digitization module are used to read the electrical signal output by the magnetic sensor, the reference source reading is a, and the signal digitization module reading is b; Determine whether the difference between a and b is within a first preset range; When it is determined that the difference between a and b is within the first preset range, the magnetic key is pressed by a pressing device, and the magnetic key is changed from the second pressing position to the third pressing position by pressing; In the process of the magnetic key changing from the second pressing position to the third pressing position, when the magnetic key is in each of a group of pressing positions, a reading is read out using the signal digitization module, thereby obtaining a group of readings, and each of the group of readings corresponds to one of the group of pressing positions; and calibrating the set of readings based on pre-stored standard values; Before calibrating the set of readings, the travel distance d of the magnetic button from the released top position to the pressed bottom position is measured; and Determine whether the stroke d is within a third preset range, and if so, continue calibration; if not, terminate calibration; Before calibrating the set of readings, the reference source is used to collect the first voltage value output when the magnetic button is in the released top position, and the reading of the reference source is v1; Using the reference source to collect a second voltage value output when the magnetic button is in the pressed bottom position, the reading of the reference source being v2; and It is determined whether the difference between v1 and v2 is within a fourth preset range. If it is determined to be yes, the calibration is continued; otherwise, the calibration is terminated.
2. A magnetic button calibration method according to claim 1, characterized in that: The magnetic button calibration method also includes: measuring the magnetic flux or magnetic field strength of the magnet; and Determine whether the magnetic flux or magnetic field strength is within a second preset range, and when it is determined to be yes, continue calibration; when it is determined to be no, terminate calibration.
3. A magnetic button calibration method according to claim 1, characterized in that: The second pressing position is the release-to-top position, the third pressing position is the press-to-bottom position, and the measurement of the stroke d and the reading of the set of readings are completed during one pressing process of the pressing device.
4. A magnetic button calibration method according to claim 1, characterized in that: The second pressing position is the release to the top position, the third pressing position is the press to the bottom position, and the measurement of the stroke d, the collection of the first voltage value and the second voltage value, and the reading of the set of readings are completed during one pressing process of the pressing device.
5. A magnetic button calibration method according to claim 1, characterized in that: The set of pressing positions is determined by sampling at a certain time interval, and the set of pressing positions is calculated based on the second pressing position and the certain time interval; or The set of pressing positions is measured by using a distance measurement module, and the distance measurement module is synchronized with the signal digitization module under the control of the central processing module.
6. A magnetic button calibration method according to claim 1, characterized in that: The pre-stored standard value is obtained based on measurements of a plurality of standard magnetic buttons at a plurality of pressing positions.
7. A magnetic button calibration method according to claim 1, characterized in that: The magnetic button calibration method also includes: measuring the pressing force f exerted on the magnetic key when the magnetic key is in the fourth pressing position; and It is determined whether the pressing force f is within a fifth preset range. If it is determined to be yes, the calibration is continued; otherwise, the calibration is terminated.
8. A magnetic button calibration device, characterized in that: A magnetic key calibration method for performing any one of claims 1 to 7, comprising: A calibration table on which the product with the magnetic button is placed; The magnetic button includes a magnet, a magnetic sensor, and a signal digitization module connected to the output end of the magnetic sensor, wherein the signal digitization module is used to collect the electrical signal output by the magnetic sensor; A pressing device, used for pressing the magnetic button; A reference source connected to the output end of the magnetic sensor and used to collect the electrical signal output by the magnetic sensor; A distance measurement module, used to measure the absolute position value of the magnetic button when it is at a certain pressing position; A magnetic flux measurement module, used to measure the magnetic flux or magnetic field strength of the magnet; A central processing module, connected at least to the signal digitization module, is used to: In the process of the magnetic key changing from the second pressing position to the third pressing position, when the magnetic key is in each of a group of pressing positions, a reading is read out using the signal digitization module, thereby obtaining a group of readings, and each of the group of readings corresponds to one of the group of pressing positions; and The set of readings is calibrated based on pre-stored standard values.
Citation Information
Patent Citations
Self-calibration sensor device and method based on cold standby redundancy
CN116642525A
Self-calibration Hall plate and calibration method thereof
CN117906644A