Measurement number correction method per inch and optical navigation device

Through the cooperation of the optical sensor and the processing circuit, the CPI of the optical navigation device is calculated and adjusted, and the problem of complex and poor results of traditional methods is solved, and simple and effective CPI correction is achieved.

CN115145413BActive Publication Date: 2025-07-08PIXART IMAGING INC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111593313.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-07-27
Filing Date
2021-12-23
Publication Date
2025-07-08
Estimated Expiration
2041-12-23

AI Technical Summary

Technical Problem

Traditional CPI correction methods cannot provide simple correction suggestions and require complex equipment, resulting in problems such as poor or too fast movement of optical mice.

Method used

The optical data is sensed by the optical sensor, and the processing circuit calculates the movement of the optical navigation device, and adjusts the CPI to an appropriate value according to the ratio or difference between the actual CPI and the set CPI.

Benefits of technology

The CPI of the optical navigation device is realized through simple steps to ensure its movement smoothness and adapt to the deviations of different assembly and manufacturing processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115145413B_ABST
    Figure CN115145413B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for calibrating counts per inch and an optical navigation device. The optical navigation device includes: an optical sensor for sensing optical data; and a processing circuit that is set with a first CPI, for calculating the movement of the optical navigation device based on the optical data, and for outputting the movement. Wherein the processing circuit receives a calibration instruction to calibrate the first CPI to a second CPI, and the second CPI is obtained by the following steps: (a) calculating an actual CPI, which corresponds to the movement output by the processing circuit within a time interval, and the time interval is the time when the relative movement between the optical navigation device and the surface reaches a first predetermined distance; (b) calculating the ratio or difference between the actual CPI and the first CPI; and (c) generating the second CPI according to the ratio or the difference. The present invention can calibrate the CPI of the optical navigation device through simple steps.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This case relates to a CPI (Count Per Inch) calibration method and an optical navigation device, and particularly to a CPI calibration method and an optical navigation device that can calibrate CPI according to a calibration ruler pattern. Background Art

[0002] CPI is an important parameter of a traditional optical mouse because CPI refers to the frequency at which the optical mouse outputs movement to a host such as a computer host. If the CPI is too low, the user may feel that the movement of the optical mouse is not smooth. On the contrary, if the CPI is too high, the user may feel that the optical mouse moves too fast. Therefore, an appropriate CPI must be set for the optical mouse.

[0003] Due to differences in the assembly process, component manufacturing process, or firmware of the optical mouse, the actual CPI may be different from the CPI set for the optical mouse. However, traditional CPI calibration methods do not provide calibration suggestions or require complex equipment.

[0004] Therefore, a new CPI calibration mechanism is needed. Summary of the Invention

[0005] An object of the present invention is to disclose an optical navigation device that can calibrate CPI through simple steps.

[0006] Another object of the present invention is to disclose a CPI calibration method that can calibrate CPI through simple steps.

[0007] An embodiment of the present invention discloses an optical navigation device, including: an optical sensor for sensing optical data; and a processing circuit set with a first CPI for calculating the movement of the optical navigation device according to the optical data and outputting the movement. The processing circuit receives a calibration instruction to calibrate the first CPI to a second CPI, and the second CPI is obtained by the following steps: (a) calculating the actual CPI corresponding to the movement output by the processing circuit within a time interval, where the time interval is the time when the relative movement between the optical navigation device and the surface reaches a first predetermined distance; (b) calculating the ratio or difference between the actual CPI and the first CPI; and (c) generating the second CPI according to the ratio or the difference.

[0008] Another embodiment of the present invention discloses a CPI calibration method for calibrating the CPI of an optical navigation device, which includes an optical sensor and a processing circuit. The method includes: (a) sensing optical data through the optical sensor; (b) calculating the movement of the optical navigation device based on the optical data by the processing circuit set with a first CPI, and outputting the movement by the processing circuit; (c) calculating the actual CPI, where the actual CPI corresponds to the movement output by the processing circuit within a time interval, and the time interval is the time when the relative movement between the optical navigation device and the surface reaches a first predetermined distance; (d) calculating the ratio or difference between the actual CPI and the first CPI; (e) generating a second CPI based on the ratio or the difference; and (f) calibrating the first CPI to the second CPI.

[0009] According to the above embodiment, the CPI of the optical navigation device can be calibrated through simple steps. Brief Description of the Drawings

[0010] Figure 1 A schematic diagram of an optical mouse according to an embodiment of the present invention is shown.

[0011] Figure 2 A schematic diagram of a CPI calibration method according to an embodiment of the present invention is shown.

[0012] Figure 3 A schematic diagram of a calibration ruler pattern according to an embodiment of the present invention is shown.

[0013] Figure 4 A schematic diagram of how to calibrate the CPI of an optical mouse when the calibration ruler pattern is displayed on a display is shown.

[0014] Figure 5 、 Figure 6 and Figure 7 Schematic diagrams of when the calibration ruler pattern is displayed on a display according to different embodiments of the present invention are shown.

[0015] Figure 8 A flowchart of a CPI calibration method according to an embodiment of the present invention is shown.

[0016] Among them, the reference numerals are explained as follows:

[0017] 100 Optical mouse

[0018] 101 Processing circuit

[0019] 103 Optical sensor

[0020] 300 Calibration ruler pattern

[0021] 400 Mobile phone

[0022] 401 Display

[0023] Steps 801, 803, 805, 807, 809, 811

[0024] CPI_R Actual CPI

[0025] CPI_1 First CPI

[0026] d1 First predetermined distance

[0027] da db Relative displacement

[0028] SR Surface

[0029] Rec Rectangle

[0030] MR1, MR2, MR3, MR4 Marking areas Detailed implementation manners

[0031] The content of the present invention will be described below with multiple embodiments. Please also note that the elements in each embodiment can be implemented by hardware (such as a device or a circuit) or firmware (such as writing at least one program in a microprocessor). In addition, the "first", "second" and similar descriptions in the following description are only used to define different elements, parameters, data, signals or steps, and are not used to limit their order. For example, the first device and the second device may represent two devices with the same structure but different functions.

[0032] Figure 1 The schematic diagram of an optical mouse 100 according to an embodiment of the present invention is shown. Please also note that in the following embodiments, the optical mouse is taken as an example to illustrate the concept of the present invention. However, the optical mouse can be replaced by any other optical navigation device, such as an optical touch device.

[0033] As Figure 1As shown, the optical mouse 100 includes a processing circuit 101 and an optical sensor 103. The optical sensor 103 is used to sense optical data. The optical data can be an image or any other optical data including optical features. The processing circuit 101 is used to calculate the motion of the optical mouse 100 based on the optical data and output the motion. For example, the optical mouse 100 is connected to a computer host and outputs its motion to the computer host. The processing circuit 101 is set to have a first CPI. That is, the processing circuit 101 is expected to output the motion at the first CPI. Note that although the embodiments of the present invention describe the motion being output by the processing circuit 101, it is not limited that the motion is output by the processing circuit 101. The motion can be output by any other device coupled to the processing circuit 101. In addition, the processing circuit 101 can also output other data besides the motion. Therefore, in an embodiment, the processing circuit 101 is expected to output motion or non-motion data at the first CPI. In the following embodiments, only the motion is taken as an example for illustration.

[0034] However, due to various possible reasons, the actual CPI of the processing circuit 101 may be different from the first CPI. Therefore, the processing circuit 101 can receive a calibration instruction to calibrate the first CPI to a second CPI, so that the optical mouse 100 can truly output the motion at the first CPI. The second CPI can be obtained by various methods. In an embodiment, the second CPI is obtained after the relative displacement between the optical navigation device 100 and the surface reaches a first predetermined distance.

[0035] Figure 2 A schematic diagram of a CPI calibration method according to an embodiment of the present invention is shown. In Figure 2 In the shown embodiment, the processing circuit 101 is expected to operate at the first CPI CPI_1. Then, the processing circuit 101 will calculate the actual CPI CPI_R corresponding to the number of motions output during the time interval when the relative displacement between the optical navigation device 100 and the surface SR reaches the first predetermined distance d1. Also note that the relative displacement may occur when the optical mouse 100 moves but the surface SR stops, or when the optical mouse 100 stops but the surface SR moves.

[0036] Next, calculate the ratio between the actual CPI CPI_R and the first CPI CPI_1 or the difference between the actual CPI CPI_R and the first CPI CPI_1. Then, the second CPI will be generated according to the ratio or the difference.

[0037] For example, if the first CPI, CPI_1, is 8000 and the actual CPI, CPI_R, is 6000, then the ratio of the first CPI, CPI_1, to the actual CPI, CPI_R, is 8000 / 6000 = 1.3334. That is to say, the ratio of the CPI set by the processing circuit 101 to the actual CPI is 1.3334. Therefore, if the processing circuit 101 is to operate at the actual CPI of 8000, the CPI set by the optical mouse 100 can be 8000 * 1.3334 = 10667. That is, the CPI set by the processing circuit 101 changes from 8000 (the first CPI, CPI_1) to 10667 (the second CPI, CPI_2).

[0038] Multiple methods can be used to determine whether the relative displacement between the optical navigation device 100 and the surface SR reaches a first predetermined distance. In one embodiment, a calibration ruler pattern is provided as the surface SR used for the determination. Figure 3 A schematic diagram of a calibration ruler pattern according to an embodiment of the present invention is shown. As Figure 3 shown, the calibration ruler pattern 300 includes a plurality of rectangles Rec. In addition, each rectangle Rec has a plurality of marking areas MR1, MR2, MR3, MR4 (only four are marked in the figure). More specifically, the rectangles Rec are arranged in a repeating pattern, and each rectangle Rec includes the same number of marking areas, for example, 8 marking areas.

[0039] In this case, the processing circuit 101 determines whether the relative displacement reaches the first predetermined distance based on whether the optical sensor 103 senses the marking area. More specifically, the rectangle Rec has a first side (e.g., the left side) and a second side (e.g., the right side) opposite to the first side. The processing circuit 101 determines whether the relative displacement reaches the first predetermined distance based on whether the optical sensor senses the marking areas on the first side and the second side at different times. For example, if the optical sensor 103 first senses the marking area MR1 and then senses the marking area MR3, the processing circuit 101 will determine that there is a relative displacement da (the first predetermined distance) between the optical mouse 100 and the calibration ruler pattern 300. Similarly, if the optical sensor 103 first senses the marking area MR2 and then senses the marking area MR4, the processing circuit 101 will determine that there is a relative displacement db (the first predetermined distance) between the optical mouse 100 and the calibration ruler pattern 300.

[0040] The marking areas can have different contents. In one embodiment, the marking areas respectively have specific patterns. For example, the marking area MR1 is circular and the marking area MR3 is triangular. In this example, the processing circuit 101 determines whether the relative displacement has reached a first predetermined distance based on whether the optical sensor 103 senses a specific pattern. For example, if the optical sensor 103 first senses a circle and then senses a triangle, the processing circuit 101 determines that there is a relative displacement da between the optical mouse 100 and the calibration ruler pattern 300.

[0041] In another embodiment, the marking areas respectively have a grayscale distribution. For example, if the entire grayscale distribution of the rectangle Rec is between 0% and 100%, the grayscale distribution of the marking area MR1 is between 0% and 5%, the grayscale distribution of the marking area MR2 is between 5% and 22%, the grayscale distribution of the marking area MR3 is between 73% and 90%, and the grayscale distribution of the marking area MR4 is between 90% and 100%. In this example, the processing circuit 101 determines whether the relative displacement has reached a first predetermined distance based on whether the optical sensor 103 senses a grayscale change caused by the grayscale distributions of different marking areas. In one embodiment, the calibration ruler pattern 300 can be encoded such that the grayscale distribution can be represented by a digital code.

[0042] The following Table 1 shows an example of the digital codes representing the grayscale changes between different marking areas.

[0043] MR1 MR2 MR3 MR4 MR1 000110 001100 010010 MR2 000000 001101 010011 MR3 000001 000111 010100 MR4 000010 001000 001110

[0044] For example, if the processing circuit 101 detects that the digital code representing the grayscale change is 010010, it means that the optical mouse has moved from the marking area MRl to the marking area MR4. If the processing circuit 101 detects that the digital code representing the grayscale change is 001101, it means that the optical mouse has moved from the marking area MR2 to the marking area MR3. Also note that when using different algorithms, the digital codes representing the grayscale changes may be different.

[0045] The calibration ruler pattern 300 can be provided in different ways. In one embodiment, the calibration ruler pattern 300 is printed on paper. In this case, the optical mouse 100 can move on the paper for CPI calibration while the paper does not move. In another embodiment, the calibration ruler pattern 300 is displayed on a display. The display can be, for example, a touch screen or an e-paper, or a display with only a display function. In this case, the optical mouse 100 can move on the display for CPI calibration, but the display and the calibration ruler pattern 300 do not move. Instead, the optical mouse 100 can stop on the display for CPI calibration, and only the calibration ruler pattern 300 moves.

[0046] Figure 4Schematic diagram showing how to calibrate the CPI of an optical mouse when a calibration ruler pattern 300 is displayed on a display. As Figure 4 shown, the calibration ruler pattern 300 can be displayed on the display 401 of the mobile phone 400, and the optical mouse 100 is placed on the display 401. In this case, the optical mouse 100 does not move when calibrating the CPI. Instead, the user can scroll the calibration ruler pattern 300 to generate a relative displacement between the optical mouse 100 and the calibration ruler pattern 300.

[0047] The calibration ruler pattern 300 can be displayed on the display 401 in different directions. Figure 5 、 Figure 6 and Figure 7 show schematic diagrams when the calibration ruler pattern is displayed on the display according to different embodiments of the present invention. In Figure 5 the embodiment, the mobile phone 400 is in the portrait mode, and the calibration ruler pattern 300 is displayed parallel to the upper and lower edges of the display 401. Additionally, in Figure 6 the embodiment, the mobile phone 400 is in the portrait mode, and the calibration ruler pattern 300 is displayed perpendicular to the upper and lower edges of the display 401. Additionally, in Figure 7 the embodiment, the mobile phone 400 is in the portrait mode. In the portrait mode, the calibration ruler pattern 300 is neither perpendicular nor parallel to the upper and lower edges of the display 401. When the mobile phone 400 is operated in the landscape mode, the display of the calibration ruler pattern 300 can follow the Figure 5 、 Figure 6 and Figure 7 shown rules.

[0048] The foregoing CPI calibration method can be executed in various scenarios. For example, after the optical mouse is manufactured in the factory, the CPI of the optical mouse can be calibrated. In addition, the user can calibrate the CPI when playing games or before playing games. In addition, the CPI calibration method can be triggered by various methods. For example, the CPI calibration method can be triggered by a button on the optical mouse, or by an icon displayed on a user interface displayed on a display controlled by a computer host to which the optical mouse is connected.

[0049] Based on the foregoing embodiments, a CPI calibration method can be obtained for calibrating the CPI of an optical navigation device including an optical sensor and a processing circuit, such as Figure 1 the optical mouse shown. Figure 8 is a flowchart of the CPI calibration method according to an embodiment of the present invention, including the following steps:

[0050] Step 801

[0051] Sense optical data through an optical sensor.

[0052] Step 803

[0053] The processing circuit calculates the movement of the optical navigation device based on the optical data of the optical sensor, and outputs the movement through the processing circuit. Wherein the first CPI is set to the processing circuit. That is to say, the processing circuit is expected to operate at the first CPI.

[0054] Step 805

[0055] Within the time interval when the relative displacement between the optical navigation device and the surface reaches the first predetermined distance, calculate the actual CPI corresponding to the number of movements output by the processing circuit. This step can be achieved by a calibration ruler pattern as shown in Figure 3

[0056] Step 807

[0057] Calculate the ratio between the actual CPI and the first CPI or the difference between the actual CPI and the first CPI.

[0058] Step 809

[0059] Generate a second CPI based on the ratio or difference in Step 807.

[0060] Step 811

[0061] Correct the first CPI to the second CPI.

[0062] According to the above embodiments, the CPI of the optical navigation device can be corrected through simple steps.

[0063] The above are only the preferred embodiments of the present invention and are not used to limit the present invention. For those skilled in the art, the present invention can have various changes and modifications. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims

1. An optical navigation device, characterized in that, Comprising: An optical sensor for sensing optical data; And A processing circuit, set to a first counts per inch, for calculating the movement of the optical navigation device based on the optical data and for outputting the movement; Wherein the processing circuit receives a calibration instruction to calibrate the first counts per inch to a second counts per inch, the second counts per inch being calculated by the following steps: (a) Calculating an actual counts per inch corresponding to the movement output by the processing circuit within a time interval, the time interval being the time when the relative movement between the optical navigation device and the surface reaches a first predetermined distance; (b) Calculating the ratio or difference between the actual counts per inch and the first counts per inch; And (c) Generating the second counts per inch based on the ratio or the difference Wherein step (a) further comprises: (a1) Providing a calibration ruler pattern, the calibration ruler pattern including a plurality of marked areas; (a2) Judging whether the relative movement has reached the first predetermined distance according to whether the optical sensor senses the plurality of marked areas at different times.

2. The optical navigation device according to claim 1, wherein Wherein the plurality of marked areas each have a specific pattern, and step (a2) judges whether the relative movement has reached the first predetermined distance according to whether the optical sensor senses the specific pattern.

3. The optical navigation device according to claim 1, wherein, Wherein the plurality of marked areas each have a gray-scale distribution, and step (a2) judges whether the relative movement has reached the first predetermined distance according to whether the optical sensor senses the gray-scale difference generated between the gray-scale distributions of the plurality of marked areas.

4. The optical navigation device according to claim 3, characterized in that, Step (a2) further comprises: Encoding the plurality of marked areas such that the plurality of gray-scale distributions can be represented by digital codes; and Judging whether the relative movement has reached the first predetermined distance according to the digital codes.

5. The optical navigation device according to claim 1, characterized in that, Wherein the calibration ruler pattern includes a plurality of rectangles, wherein the plurality of rectangles are arranged in repetition and each of the plurality of rectangles includes the same number of the marked areas.

6. The optical navigation device according to claim 5, wherein, Wherein each of the plurality of rectangles has a first side and a second side opposite to the first side, and step (a2) judges whether the relative movement has reached the first predetermined distance according to whether the optical sensor senses the plurality of marked areas on the plurality of first sides and the plurality of marked areas on the plurality of second sides at different times.

7. The optical navigation device according to claim 1, wherein The calibration ruler pattern is printed on paper.

8. The optical navigation device according to claim 1, wherein The calibration ruler pattern is displayed on a screen.

9. The optical navigation device according to claim 1, characterized in that, The optical navigation device is an optical mouse.

10. A method for calibrating counts per inch for calibrating the counts per inch of an optical navigation device, the optical navigation device including an optical sensor and a processing circuit, characterized in that, Comprising: (a) Sensing optical data through the optical sensor; (b) Calculating the movement of the optical navigation device based on the optical data by a processing circuit set to a first counts per inch and outputting the movement by the processing circuit; (c) Calculating an actual counts per inch corresponding to the movement output by the processing circuit within a time interval, the time interval being the time when the relative movement between the optical navigation device and the surface reaches a first predetermined distance; (d) Calculating the ratio or difference between the actual counts per inch and the first counts per inch; (e) Generating a second counts per inch based on the ratio or the difference; And (f) Calibrating the first counts per inch to the second counts per inch; Among them, step (c) further includes: (c1) providing a calibration ruler pattern, the calibration ruler pattern including a plurality of marking areas; (c2) judging whether the relative movement reaches the first predetermined distance according to whether the optical sensor senses the plurality of marking areas at different times.

11. The method for calibrating the number of measurements per inch according to claim 10, wherein Among them, the plurality of marking areas respectively have specific patterns, and step (c2) judges whether the relative movement reaches the first predetermined distance according to whether the optical sensor senses the specific patterns.

12. The method for calibrating the number of measurements per inch according to claim 10, wherein Among them, the plurality of marking areas respectively have a gray scale distribution, and step (c2) judges whether the relative movement reaches the first predetermined distance according to whether the optical sensor senses the gray scale differences generated between the gray scale distributions of the different plurality of marking areas.

13. The method for calibrating the number of measurements per inch according to claim 12, wherein Step (c2) further includes: encoding the plurality of marking areas so that the plurality of gray scale distributions can be represented by digital codes; and judging whether the relative movement reaches the first predetermined distance according to the digital codes.

14. The method for calibrating the number of measurements per inch according to claim 10, characterized in that, Among them, the calibration ruler pattern includes a plurality of rectangles, wherein the plurality of rectangles are arranged repeatedly and each of the plurality of rectangles includes the same number of the marking areas.

15. The method for calibrating the number of measurements per inch according to claim 14, characterized in that, Among them, each of the plurality of rectangles has a first side and a second side opposite to the first side, and step (c2) judges whether the relative movement reaches the first predetermined distance according to whether the optical sensor senses the plurality of marking areas on the plurality of first sides and the plurality of marking areas on the plurality of second sides at different times.

16. The method for calibrating the number of measurements per inch according to claim 10, wherein The calibration ruler pattern is printed on paper.

17. The method for calibrating the number of measurements per inch according to claim 10, wherein The calibration ruler pattern is displayed on the screen.

18. The method for calibrating the number of measurements per inch according to claim 10, wherein The optical navigation device is an optical mouse.

Citation Information

Patent Citations

  • Method for calibrating value of sampling precision of optical sensor, optical sensor and main control unit

    CN107632721A