A method for detecting distance calibration
The carrier frequency of the smart pen is adjusted through the self-calibration method, and the transmission frequency is adjusted according to the feedback signal, which solves the problem of inaccurate ranging during the assembly of the smart pen and achieves higher ranging accuracy and consistency.
Patent Information
- Application Number
- CN202210690645.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-17
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2042-06-17
AI Technical Summary
During the assembly process of existing smart pens, the ranging sensitivity is inconsistent due to differences in shell materials and component errors, resulting in a deviation between the set distance and the actual distance, making it difficult to achieve accurate distance monitoring.
A self-calibration method is used. A pulse monitoring signal with a carrier frequency of X, a fixed number of Y times, and a fixed number of Z is transmitted to the obstacle plate through the ranging sensor. The carrier frequency is adjusted according to the feedback signal, and the optimal frequency value is stored in the internal memory of the device to achieve calibration.
It solves the problem of inaccurate distance measurement caused by assembly errors, improves the distance measurement accuracy and consistency of the smart pen, and reduces the defective rate.
Smart Images

Figure CN114942425B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of distance measurement calibration, and in particular to a method for detecting distance calibration. Background Art
[0002] Traditional distance-monitoring devices use pre-measured wavelengths through experimental testing. The chip is then burned directly into the device during production, followed by housing assembly. Varying housing materials, particularly the sensor lens, can lead to variations in the device's distance-measuring sensitivity, potentially causing misjudgments. This is particularly true for the popular anti-myopia smart pen, which is designed to encourage children to maintain a good sitting posture while writing. It keeps the pen at a certain distance from the body and issues an alert if the distance between the pen and the person falls outside the set range, preventing problems like myopia caused by poor posture. Existing smart pens determine the distance by adjusting the current and transmission power of electronic components to determine the detection distance. However, during product assembly, the angle between the assembled infrared emitting tube and the infrared receiving tube, as well as the errors in the electronic components themselves and the errors in the transmittance of the shell, will accumulate to produce very large errors, resulting in a huge deviation between the set distance and the actual distance, thus defeating the purpose of the smart pen. In addition, if the set distance needs to be adjusted after production, the circuit must be modified or the components must be replaced to adjust the monitoring distance. In addition, when the circuit board is produced and assembled into the product, because the outside needs to be assembled with infrared transparent, translucent or other shells of different transparencies around the circuit board, deviations in the injection molding and color matching of the shell will further cause errors between the infrared emitting tube and the infrared receiving tube. Summary of the Invention
[0003] In order to overcome the above problems, the purpose of the present invention is to provide a method for detecting distance calibration, which can perform self-calibration according to the device's own conditions.
[0004] The present invention is implemented by the following method: a method for detecting distance calibration, the method comprising the following steps:
[0005] Step A1: The device capable of monitoring distance transmits a pulse monitoring signal with a carrier frequency of X, a fixed frequency of Y, and a fixed number of Z pulses to an obstruction plate through its own ranging sensor, where X, Y, and Z are positive numbers. If the number of pulse monitoring signals fed back from the obstruction plate received by the ranging sensor is greater than or equal to a predetermined value, step A2 is executed; if the number of pulse monitoring signals fed back from the obstruction plate received by the ranging sensor is less than the predetermined value, step A3 is executed.
[0006] Step A2: Subtracting a fixed value A from the transmission carrier frequency X, and performing the next round of transmission until the number of pulse monitoring signals fed back is less than the predetermined value, storing the transmission carrier frequency value in the internal memory of the device, thereby completing the calibration of the smart pen;
[0007] Step A3: Add a fixed value A to the transmission carrier frequency X and perform the next round of testing until the feedback Z signal is greater than or equal to the predetermined value. The carrier frequency value is stored in the internal memory of the device, thereby completing the calibration of the smart pen.
[0008] Furthermore, in step A3, if the number of pulse monitoring signals fed back from the obstacle plate received by the ranging sensor is still less than the predetermined value after the transmission carrier frequency X is continuously increased by a fixed value N times, the transmission carrier frequency X is subtracted by the fixed value A, and the next round of testing is performed until the feedback Z signal is greater than or equal to the predetermined value. The carrier frequency value is then stored in the internal memory of the device, thereby completing the calibration of the smart pen.
[0009] Furthermore, the device is an anti-myopia smart pen.
[0010] Furthermore, the range of the transmission carrier frequency X in step A3 is 20KHZ-50KHZ; the range of the fixed number of transmissions Y is 5 to 15 times; and the range of the fixed number Z is 30 to 50 pulses.
[0011] Furthermore, the fixed value A ranges from 0.1 to 1.
[0012] Furthermore, if the device capable of monitoring distance has a distance measurement error during use, the method is started, and the starting method includes: resetting the button or long pressing the start button and performing a button operation according to the prompt sound to start the method to achieve calibration.
[0013] Furthermore, the obstacle plate is an obstacle plate of a distance measurement calibration auxiliary device, and the distance measurement calibration auxiliary device includes a base, a scale, a fixing part, a sliding part, and an obstacle plate. The fixing part for fixing the smart pen is provided at the left end of the upper surface of the base, and the scales are provided at the front and rear ends of the upper surface of the base, and the scales are located to the right of the fixing part; a sliding part for driving the obstacle plate to slide is provided in the base, and the sliding part is located between the front and rear scales. The obstacle plate is hingedly provided on the sliding part, and the obstacle plate is located above the scale.
[0014] Furthermore, the fixing part includes a limit block, a limit belt, and a limit hole. The limit block is provided on the left end of the upper surface of the base, and the limit block is located to the right of the scale. The limit hole is provided on the front surface of the limit block. The limit belt is provided on the upper surface of the base, and the limit belt is located in front of the limit block.
[0015] Furthermore, the sliding part includes a guide rail groove, a slide rail, a pulley, and a moving block. The guide rail groove is opened at the front and rear ends of the base, the slide rail is arranged in the guide rail groove, the pulley is slidably arranged on the slide rail, the moving block is arranged on the upper surface of the base, the pulley is arranged at the front and rear ends of the lower surface of the moving block, and the obstacle plate is hingedly arranged on the moving block.
[0016] Furthermore, L-shaped limiting plates are provided at the front and rear ends of the left side of the barrier plate, and the L-shaped limiting plates are located above the base.
[0017] The beneficial effects of the present invention are that it enables distance measurement calibration for devices capable of monitoring distances, particularly for smart pen errors, resolving the issues of high defect rates and uneven accuracy associated with traditional programming at a fixed frequency. Furthermore, the present invention employs a distance measurement calibration auxiliary device with position limiting blocks and position limiting belts to secure different smart pens. Guide rails, slide rails, pulleys, and moving blocks are provided to move the barrier plate to achieve different calibration distances. A graduated scale is provided to further precisely move the barrier plate. Furthermore, a test algorithm is implemented to assign pulsed infrared signals of different frequencies to different distances, which are then stored within the smart pen. This resolves the problem of distance setting errors caused by different assembly and material batches. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 Schematic diagram of the method flow of the present invention;
[0019] Figure 2 Schematic diagram of a specific implementation method of the present invention;
[0020] Figure 3 It is a structural schematic diagram of the present invention;
[0021] Figure 4 It is a schematic diagram of the structure of the present invention when in use;
[0022] Figure 5 for Figure 4 A partial enlarged view of point A in the middle;
[0023] Figure 6 for Figure 4 Cross-section in the middle BB direction;
[0024] Figure 7 for Figure 6 A partial enlarged view of point C in the middle;
[0025] Figure 8 This is a waveform diagram showing the relationship between carrier frequency and relative position. DETAILED DESCRIPTION
[0026] The present invention will be further described below with reference to the accompanying drawings.
[0027] See Figure 1 , this embodiment is implemented by the following method: a method for detecting distance calibration, the method comprising the following steps:
[0028] Step A1: The device capable of monitoring distance transmits a pulse monitoring signal with a carrier frequency of X, a fixed frequency of Y, and a fixed number of Z pulses to an obstruction plate through its own ranging sensor, where X, Y, and Z are positive numbers. If the number of pulse monitoring signals fed back from the obstruction plate received by the ranging sensor is greater than or equal to a predetermined value, step A2 is executed; if the number of pulse monitoring signals fed back from the obstruction plate received by the ranging sensor is less than the predetermined value, step A3 is executed.
[0029] Step A2: Subtracting a fixed value A from the transmission carrier frequency X, and performing the next round of transmission until the number of pulse monitoring signals fed back is less than the predetermined value, storing the transmission carrier frequency value in the internal memory of the device, thereby completing the calibration of the smart pen;
[0030] Step A3: Add a fixed value A to the transmission carrier frequency X and perform the next round of testing until the feedback Z signal is greater than or equal to the predetermined value. The carrier frequency value is stored in the internal memory of the device, thereby completing the calibration of the smart pen.
[0031] Preferably, in this embodiment, in step A3, if the number of pulse monitoring signals fed back from the obstacle plate received by the ranging sensor after the transmission carrier frequency X is continuously increased by a fixed value N times is still less than the predetermined value, the transmission carrier frequency X is subtracted from the fixed value A, and the next round of testing is performed until the fed-back Z signal is greater than or equal to the predetermined value. The carrier frequency value is then stored in the internal memory of the device, thereby completing the calibration of the smart pen.
[0032] In the present invention, the predetermined value may preferably be Y / 2, but is not limited thereto. It may also be Y / 3, Y / 4, etc., depending on the accuracy required by the device. In the above, the fixed value A may be 0.1 kHz, and N may be 1 to 5 times, but is not limited thereto.
[0033] In the method of the present application, the device may be an anti-myopia smart pen. The receiving chip of the ranging sensor is preferably IRM-H920J5 / TR2. The transmission carrier frequency X in step A3 ranges from 20 kHz to 50 kHz; the fixed number of transmissions Y ranges from 5 to 15; and the fixed number Z ranges from 30 to 50 pulses. The fixed value A ranges from 0.1 to 1.
[0034] For details, see Figure 8 , because the initial transmission carrier frequency of the product is different after it is produced, here we take the four points a, b, c, and d in the figure as an example, and the distance that meets the requirements is point e, then:
[0035] When the initial transmission carrier frequency selected is point C, if the number of pulse monitoring signals fed back from the obstacle plate received by the ranging sensor is greater than or equal to a predetermined value, step A2 is executed, i.e., the transmission carrier frequency X is subtracted by a fixed value A (i.e., the selected frequency is shifted to the left). The next round of transmission is performed until the number of pulse monitoring signals fed back is less than the predetermined value. The transmission carrier frequency value is then stored in the device's internal memory, thereby completing the calibration of the smart pen.
[0036] When the selected initial transmission carrier frequency is the peak point b, the frequency selection point can be moved to the left or to the right until the number of pulse monitoring signals fed back is less than the predetermined value. The transmission carrier frequency value is stored in the internal memory of the device, thereby completing the calibration of the smart pen.
[0037] When the initial transmission carrier frequency selected is point a, if the number of pulse monitoring signals fed back from the obstacle plate received by the ranging sensor is less than the predetermined value, step A3 is executed; the transmission carrier frequency X is increased by a fixed value A, and the next round of testing is performed until the feedback signal Z is greater than or equal to the predetermined value. The carrier frequency value is then stored in the device's internal memory, thereby completing the calibration of the smart pen.
[0038] In addition, specifically, when the selected point is point d, if, as in step A3, the number of pulse monitoring signals fed back from the obstacle plate received by the ranging sensor is still less than the predetermined value after the transmitting carrier frequency X is continuously increased by a fixed value N times (the frequency selection point is shifted to the right), the transmitting carrier frequency X is subtracted by the fixed value A (the frequency selection point is shifted to the left), and the next round of testing is performed until the fed-back Z signal is greater than or equal to the predetermined value. The carrier frequency value is then stored in the internal memory of the device, thereby completing the calibration of the smart pen.
[0039] It is worth mentioning that, in order to ensure better accuracy, the carrier frequency value may be verified by adding / subtracting the carrier frequency value 1-2 times before being stored in the internal memory of the device. This is not a limitation.
[0040] Preferably, if the device capable of monitoring distance has a distance measurement error during use, the method is started, and the starting method includes: resetting the button or long pressing the start button and performing a button operation according to the prompt sound to start the method to achieve calibration.
[0041] In this embodiment, in order to allow those skilled in the art to better understand the method of the present invention, please refer to Figures 2 and Figure 3 As shown, the present invention provides an embodiment: a method for detecting distance calibration, the method comprising the following steps:
[0042] Step S1: When in use, place the distance measurement calibration auxiliary device for calibrating the distance on the desktop, and then fix the smart pen that needs to be calibrated on the distance measurement calibration auxiliary device;
[0043] Step S2: moving the obstruction plate of the distance measurement calibration auxiliary device according to the scale on the distance measurement calibration auxiliary device, so that the obstruction plate moves to the required calibration distance;
[0044] Step S3: When the smart pen is performing distance calibration, the infrared transmitter of the smart pen transmits a pulse infrared signal with a carrier frequency of X, a fixed number of times Y, and a fixed number Z to the obstacle board;
[0045] Step S4: The smart pen determines whether the infrared receiver receives the required pulse infrared signal according to the test algorithm. If the pulse infrared signal is received, the test ends; if not, the next round of testing begins.
[0046] Step S5: Save the infrared transmission carrier frequency at the end of the test in the internal memory of the smart pen, thereby completing the calibration of the smart pen.
[0047] The present invention will be further described below in conjunction with a specific embodiment:
[0048] Step S1: When in use, place the distance measurement calibration auxiliary device for calibrating the distance on the desktop, and then fix the smart pen that needs to be calibrated on the distance measurement calibration auxiliary device;
[0049] Step S2: moving the obstruction plate of the distance measurement calibration auxiliary device according to the scale on the distance measurement calibration auxiliary device, so that the obstruction plate moves to 16 cm on the scale;
[0050] Step S3: When the smart pen is performing distance calibration, the infrared transmitter of the smart pen transmits a pulse infrared signal with a carrier frequency of 38 kHz, a fixed number of 10 times, and a fixed number of 40 pulses to the white paper on the obstacle board;
[0051] Step S4: Every 10 times is regarded as a cycle to determine whether an obstacle is detected. Each time, 40 pulses are sent. If the number of feedback signals detected in the 40 pulses is greater than 1, the number of distance detected is increased by 1. If the infrared receiver receives pulse signals greater than or equal to 5 times, an obstacle is detected. The infrared transmission carrier frequency 38KHZ is subtracted from the fixed value 0.1KHZ, and the infrared transmission carrier frequency is 37.9KHZ. A new round of testing is performed. If the infrared transmission carrier frequency 37.9KHZ is used to transmit pulse signals and the infrared receiver receives less than 5 pulse signals, it is determined that no obstacle is detected. The infrared transmission carrier frequency of 38KHZ is stored in the memory of the smart pen. The infrared transmission carrier frequency corresponding to a distance of 16 cm is 38KHZ. If the pulse signals are still received greater than or equal to 5 times, the infrared transmission carrier frequency is subtracted by 0.1 and a new round of testing is continued until it is less than 5 times.
[0052] If the first round of testing is performed with a pulse signal of an infrared transmission carrier frequency of 38KHZ and the received pulse signal is less than 5 times, the infrared transmission carrier frequency 38KHZ will be increased by a fixed value of 0.1KHZ, so that the infrared transmission carrier frequency is 38.1KHZ, and a new round of testing is performed. If the infrared transmission carrier frequency of 38.1KHZ receives more than or equal to 5 pulse signals, the infrared transmission carrier frequency of 38.1KHZ will be stored in the memory of the smart pen. The infrared transmission carrier frequency corresponding to a distance of 16 cm is 38.1KHZ. If the pulse signal still received is less than 5 times, the infrared transmission carrier frequency is increased by 0.1 and a new round of testing is continued until it is less than 5 times.
[0053] See also Figures 3 to 7 As shown in FIG. 1 , an embodiment of the present invention provides a distance measurement calibration aid device comprising a base 1 and an obstruction plate 2. The obstruction plate 2 is movable horizontally on the base 1 and is perpendicular to the base 1. A fixing member 3 for securing a smart pen is provided on the side of the base 1 opposite the obstruction plate 2. The base 1 is used to place the smart pen, the fixing member 3 is used to secure the smart pen to the base 1, and the obstruction plate 2 is used to reflect infrared pulse signals generated by the smart pen's infrared transmitter.
[0054] See also Figures 3 and 4As shown, in one embodiment of the present invention, the fixing member 3 includes a limiting block 31, a limiting belt 32, and a limiting hole 33. The limiting block 31 is provided at the left end of the upper surface of the base 1, and the limiting hole 33 is provided on the front surface of the limiting block 31. The limiting belt 32 is provided on the upper surface of the base 1, and is located in front of the limiting block 31. The limiting hole 33 is used to fix the head of the smart pen, and the limiting belt 32 is used to fix the body of the smart pen to prevent the smart pen from swinging during testing.
[0055] See also Figure 6 and Figure 7 As shown, in one embodiment of the present invention, a sliding member 4 is provided within the base 1 for driving the barrier plate 2 to move horizontally. The sliding member 4 includes a guide rail groove 41, a slide rail 42, a pulley 43, and a moving block 44. The guide rail groove 41 is provided at both the front and rear ends of the base 1. The slide rail 42 is provided within the guide rail groove 41. The pulley 43 is slidably provided on the slide rail 42. The moving block 44 is provided on the upper surface of the base 1. The pulley 43 is provided at both the front and rear ends of the lower surface of the moving block 44. The barrier plate 2 is hingedly provided on the moving block 44. The sliding member 4 is used to drive the barrier plate 2 to move. The guide rail groove 41 is used to accommodate the slide rail 42. The slide rail 42 cooperates with the pulley 43 to drive the moving block 44 to move. The moving block 44 is used to drive the barrier plate 2 to move.
[0056] See also Figure 4 As shown, in one embodiment of the present invention, a scale 5 is provided on the upper surface of the base 1 along the translation direction of the barrier plate 2, and the scale 5 is located below the barrier plate 2. The scale 5 is used to accurately measure the distance the barrier plate 2 moves.
[0057] See also Figure 5 As shown, in one embodiment of the present invention, L-shaped stoppers 6 are provided at the front and rear ends of the left side of the barrier plate 2. The L-shaped stoppers 6 are located above the base 1. The L-shaped stoppers 6 are used to fix the front and rear ends of the white paper, eliminating the need to directly stick the white paper on the barrier plate 2, saving time and effort.
[0058] The above description is only a preferred embodiment of the present invention. All equivalent changes and modifications made according to the scope of the patent application of the present invention should fall within the scope of the present invention.
Claims
1. A method for detecting distance calibration, characterized in that: The method comprises the following steps: Step A1: The device capable of monitoring distance transmits a pulse monitoring signal with a carrier frequency of X, a fixed frequency of Y, and a fixed number of Z pulses to an obstruction plate through its own ranging sensor, where X, Y, and Z are positive numbers. If the number of pulse monitoring signals fed back from the obstruction plate received by the ranging sensor is greater than or equal to a predetermined value, step A2 is executed; if the number of pulse monitoring signals fed back from the obstruction plate received by the ranging sensor is less than the predetermined value, step A3 is executed. Step A2: Subtracting a fixed value A from the transmission carrier frequency X, and performing the next round of transmission until the number of pulse monitoring signals fed back is less than the predetermined value, storing the transmission carrier frequency value in the internal memory of the device, thereby completing the calibration of the smart pen; Step A3: adding a fixed value A to the transmission carrier frequency X, and performing the next round of testing until the feedback signal Z is greater than or equal to the predetermined value, storing the carrier frequency value in the internal memory of the device, thereby completing the calibration of the smart pen; In step A3, if the number of pulse monitoring signals fed back from the obstacle plate received by the ranging sensor is still less than the predetermined value after the transmission carrier frequency X is continuously increased by a fixed value N times, the transmission carrier frequency X is subtracted by the fixed value A, and the next round of testing is performed until the feedback Z signal is greater than or equal to the predetermined value. The carrier frequency value is then stored in the internal memory of the device, thereby completing the calibration of the smart pen.
2. The method for detecting distance calibration according to claim 1, wherein: The device is an anti-myopia smart pen.
3. The method for detecting distance calibration according to claim 2, wherein: The range of the transmission carrier frequency X in step A3 is 20KHZ-50KHZ; the range of the fixed number of transmissions Y is 5 to 15 times; and the range of the fixed number Z is 30 to 50 pulses.
4. The method for detecting distance calibration according to claim 1, wherein: The fixed value A ranges from 0.1 to 1.
5. The method for detecting distance calibration according to claim 1, wherein: If the device capable of monitoring distance has a distance measurement error during use, the method is started, and the starting method includes: resetting the button or long pressing the start button and performing a button operation according to the prompt sound to start the method to achieve calibration.
6. The method for detecting distance calibration according to claim 1, wherein: The obstacle plate is an obstacle plate of a distance measurement calibration auxiliary device, which includes a base, a scale, a fixing part, a sliding part, and an obstacle plate. The fixing part for fixing the smart pen is provided at the left end of the upper surface of the base, and the scales are provided at the front and rear ends of the upper surface of the base, and the scales are located to the right of the fixing part; a sliding part for driving the obstacle plate to slide is provided in the base, and the sliding part is located between the front and rear scales. The obstacle plate is hingedly provided on the sliding part, and the obstacle plate is located above the scale.
7. The method for detecting distance calibration according to claim 6, characterized in that: The fixing part includes a limit block, a limit belt, and a limit hole. The limit block is provided at the left end of the upper surface of the base, and the limit block is located to the right of the scale. The limit hole is opened on the front surface of the limit block. The limit belt is provided on the upper surface of the base, and the limit belt is located in front of the limit block.
8. The method for detecting distance calibration according to claim 6, wherein: The sliding part includes a guide rail groove, a sliding rail, a pulley, and a moving block. The guide rail groove is opened at the front and rear ends of the base, the sliding rail is arranged in the guide rail groove, the pulley is slidably arranged on the slide rail, the moving block is arranged on the upper surface of the base, the pulley is arranged at the front and rear ends of the lower surface of the moving block, and the obstacle plate is hingedly arranged on the moving block.
9. The method for detecting distance calibration according to claim 6, wherein: L-shaped limiting plates are provided at the front and rear ends of the left side of the barrier plate, and the L-shaped limiting plates are located above the base.
Citation Information
Patent Citations
Calibration method and device for proximity sensor, and terminal
CN106323353A
Test fixture of distance measuring sensor module
CN216387130U