Optical encoder and electronic device

By distributing n coding patterns along the axial direction in the optical encoder and combining them with the staggered arrangement of reflective and light-absorbing materials, the problem of insufficient angular resolution of the optical encoder is solved, achieving higher angular resolution and a better user interaction experience.

CN115406471BActive Publication Date: 2026-11-27HUAWEI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110595881.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-29
Publication Date
2026-11-27
Estimated Expiration
2041-05-29

AI Technical Summary

Technical Problem

The optical encoder in existing smart digital crowns has limited angular resolution, causing menu scrolling and image zooming to be too fast, which affects the user experience.

Method used

Design an optical encoder that improves angular resolution by distributing n coding patterns along the axial direction on the code disk, using phase subdivision in both circumferential and axial dimensions, employing an alternating arrangement of reflective and light-absorbing materials, and combining an optimized layout of photodiodes and light sources to prevent crosstalk in the detection light.

Benefits of technology

The angular resolution of the optical encoder has been improved, enhancing the user experience and increasing the control precision of menu sliding and image zooming.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115406471B_ABST
    Figure CN115406471B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of terminals, in particular to an optical encoder and an electronic device. The optical encoder comprises a detector, a code disc and at least one light source. The code disc is provided with n code patterns distributed along the axial direction of the code disc, n is a positive integer greater than or equal to 2, each code pattern comprises a first pattern and a second pattern alternately distributed along the circumferential direction of the code disc, the intensity of the detection light reflected by the first pattern is different from the intensity of the detection light reflected by the second pattern under the irradiation of the detection light, and the adjacent two code patterns are staggered along the axial direction of the code disc. At least one light source is used for emitting detection light to the code disc, and the detector generates a code signal according to the detection light reflected by the first pattern and the detection light reflected by the second pattern. The above optical encoder can simultaneously perform phase subdivision along the circumference and along the axial direction to improve the angle resolution of the optical encoder and improve the experience of user interaction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technology, and in particular to an optical encoder and electronic device. Background Technology

[0002] Optical encoders are widely used in industrial fields, primarily for measuring the angular position and / or angular motion of shafts or axles. With the continuous development of smartwatches, they often utilize digital crowns to implement interactive functions such as menu scrolling and image zooming. However, in existing technologies, due to the limited angular resolution of the optical encoders in smartwatch crowns, rotating the crown causes menus to scroll too quickly and images to zoom too rapidly, thus negatively impacting the user experience. Summary of the Invention

[0003] This application provides an optical encoder that improves the angular resolution of the optical encoder, thereby enhancing the user's interactive experience.

[0004] On one hand, this application provides an optical encoder, including at least one light source, a detector, and a code disk. The code disk has n encoding patterns distributed along its axial direction, where n is a positive integer greater than or equal to 2. Each encoding pattern includes a first pattern and a second pattern alternately distributed along the circumference of the code disk. Under the illumination of detection light, the intensity of the detection light reflected by the first pattern is different from the intensity of the detection light reflected by the second pattern, and adjacent encoding patterns are staggered along the axial direction of the code disk. At least one light source is used to emit detection light to the code disk. The first and second patterns on the code disk can reflect detection light of different intensities. The detector can generate an encoding signal based on the detection light reflected by the first pattern and the detection light reflected by the second pattern. The encoding signal is used to indicate the circumferential movement of the code disk. When the optical encoder encodes along the axial direction, since the code disk has n encoding patterns distributed along its axial direction, and n is greater than or equal to 2, phase subdivision can be performed simultaneously in both circumferential and axial dimensions, thereby improving the angular resolution of the optical encoder and enhancing the user experience.

[0005] It should be noted that the detector can also collect the rotation speed and forward / reverse signals of the code disk. The first pattern is made of a reflective material, and the second pattern is made of a light-absorbing material. That is, when the detection light shines on the first pattern, the first pattern will reflect the detection light, and when the detection light shines on the second pattern, the second pattern will absorb the detection light. In addition, the n coding patterns can be the same.

[0006] In one embodiment, in two adjacent coding patterns, each first pattern in one coding pattern corresponds one-to-one with each first pattern in the other coding pattern. The two corresponding first patterns are in contact with each other and are staggered along the circumferential direction. The staggered size is 1 / n of the circumferential size of the first pattern along the code disk. The staggered size of the two corresponding first patterns is related to the number of coding patterns arranged along the axis of the code disk, so that the detector can better receive the detection light reflected by the first pattern.

[0007] In one embodiment, the detector may include at least one column of photodiodes. Specifically, along the column direction, the center-to-center distance between two adjacent photodiodes may be 1 / 2, 1 / 3, or 1 / 4...1 / m of 2 times (if the outer contour of the code disk is a regular polygon) or 4 times (if the outer contour of the code disk is a circle) the circumferential dimension of the first or second pattern.

[0008] In one embodiment, when n equals 2, i.e., when the code disk has two coded patterns distributed along the axial direction of the code disk, the detector may include a row of photodiodes, the row of photodiodes corresponding to the connection portion of the two coded patterns, and at least one light source is two, with the two light sources located on both sides of the row of photodiodes; during detection, the two light sources alternately emit detection light to their corresponding coded patterns, so that the row of photodiodes can only receive the detection light reflected by one coded pattern in the same time period. In this way, while improving the angular resolution of the optical encoder rotating along the circumferential direction of the code disk, crosstalk between the detection light reflected by the two coded patterns can also be prevented.

[0009] Furthermore, when n equals 2, that is, when there are two coding patterns distributed along the axis of the code disk on the code disk, the detector can also include two rows of photodiodes arranged side by side, with the two rows of photodiodes corresponding to the two coding patterns. At least one light source can also be used, and the light source can be set on the extension line of the column direction of the two rows of photodiodes. In this case, both coding patterns can receive the detection light emitted by the light source and reflect the detection light to their respective photodiodes to complete the measurement of the rotation angle.

[0010] Furthermore, when n equals 2, meaning the code disk has two coded patterns distributed along its axial direction, the detector can include two rows of photodiodes. These two rows of photodiodes are spaced apart along the code disk's axial direction, and a light-blocking plate extends between them along the column direction. In this case, at least two light sources can be used, positioned on either side of the two rows of photodiodes, with each row corresponding to one coded pattern. During detection, the two light sources emit detection light towards their respective coded patterns, allowing the two rows of photodiodes to receive the reflected detection light from their respective coded patterns, thereby measuring the code disk's rotation angle.

[0011] In one embodiment, n can also be equal to 3. That is, when the code disk has 3 coding patterns distributed along the axis of the code disk, the detector can include three rows of photodiodes. The three rows of photodiodes are arranged in parallel, and a light-blocking plate is provided between each pair of adjacent photodiodes. At least one light source is provided, and one light source is a strip light source and the other light source is located on the extension line of the photodiode column direction. In this case, all three coding patterns can receive the detection light emitted by the light source and can reflect the detection light to their respective photodiodes, thereby completing the measurement of the rotation angle of the code disk.

[0012] In the above embodiments, the first pattern and the second pattern can be rectangles or parallelograms, and can also be other shapes, which will not be listed here. The edges of the first and second patterns extending along the axis of the code disk can be parallel to the axis of the code disk or at an angle to the axis of the code disk.

[0013] In one embodiment, when n encoding patterns are specifically formed on the code disk, the distance that the first pattern in two adjacent encoding patterns extends along the axis of the code disk can be the same or different, and this is not limited here.

[0014] On the other hand, this application also provides an electronic device, including the optical encoder in any of the above-mentioned technical solutions. It also includes a processor-to-processor memory, a display screen, sensors, and a communication module; wherein, the memory stores program instructions and data required during program execution; the display screen provides a human-machine interface, presents various information to the user, and enables touch input via a touchscreen; the sensors include accelerometers, gyroscopes, ambient light sensors, etc., used to sense the system's environment and its own motion state; the communication module includes wireless communication functions such as WiFi and Bluetooth, used to exchange data with other devices; the optical encoder detects the rotation angle of the electronic device, providing the photoelectric converted electrical signal to the processor for recognition and processing; the processor executes program instructions, acquires the measurement signal from the optical encoder, processes the measurement signal to determine the rotation angle of the electronic device, and then controls the user interface to change or modify parameters. Changing the user interface can be done by changing menu items; modifying parameters can be done by adjusting the volume. Attached Figure Description

[0015] Figure 1 This is a schematic diagram of the structure of an optical encoder in the prior art;

[0016] Figure 2 A schematic diagram of the structure of an optical encoder provided in an embodiment of this application;

[0017] Figure 3 A schematic diagram of yet another structure of the optical encoder provided in the embodiments of this application;

[0018] Figure 4 A schematic diagram of yet another structure of the optical encoder provided in the embodiments of this application;

[0019] Figure 5 A schematic diagram of yet another structure of the optical encoder provided in the embodiments of this application;

[0020] Figure 6 A schematic diagram of yet another structure of the optical encoder provided in the embodiments of this application;

[0021] Figure 7 A schematic diagram of yet another structure of the optical encoder provided in the embodiments of this application;

[0022] Figure 8 A schematic diagram of yet another structure of the optical encoder provided in the embodiments of this application;

[0023] Figure 9 A schematic diagram of yet another structure of the optical encoder provided in the embodiments of this application;

[0024] Figure 10 This is a structural block diagram of an electronic device provided in an embodiment of this application.

[0025] Figure label:

[0026] 10-Code disk; 11-White stripe; 12-Black stripe; 100-Code pattern; 101-First pattern; 102-Second pattern; 20-Photodiode; 30-Light source; 40-Light shield. Detailed Implementation

[0027] To make the objectives, technical solutions, and advantages of this application clearer, the application will now be described in further detail with reference to the accompanying drawings.

[0028] like Figure 1As shown, in existing optical encoders, the black and white coding pattern is arranged along the circumference of the code disk 10. The angular resolution of the optical encoder depends on the number of black stripes 12, the number of white stripes 11, and the number of PD (photodiode) subdivisions. The minimum angular resolution of this optical encoder is calculated as follows: Assuming the total number of black stripes 12 and white stripes 11 is 100, and the number of black and white stripe cycles is 50, then the single-cycle angle θ = 360 / 50 = 7.2°. Assuming the number of PD (photodiode) subdivisions is 3 (i.e., the center distance between two adjacent photodiodes 20 is 1 / 3 of the length of the white stripe), the angular resolution is θ / 3 / 2 = 1.2°. According to the above calculation method, the minimum angular resolution is limited by the number of black stripes 12, the number of white stripes 11, and the number of PD subdivisions. In the application scenario of digital crown, the circumferential size of the reflective code disk is small, which leads to the processing limitations of the number of black stripes 12 and white stripes 11. The size of the black and white stripes along the circumference of the code disk cannot be reduced indefinitely, that is, the number of periods of black and white stripes cannot be increased indefinitely. In addition, if the number of PD subdivisions is continuously increased, the center distance between two adjacent PDs will be continuously reduced, which will reduce the size of the PD and thus affect the signal-to-noise ratio.

[0029] Therefore, this application provides an optical encoder that can achieve better angular resolution while ensuring the signal-to-noise ratio.

[0030] The terminology used in the following embodiments is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to also include expressions such as “one or more” unless the context clearly indicates otherwise.

[0031] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0032] Reference Figure 2 , Figure 2In this paper, the x-direction is the axial direction of the code disk, and the y-direction is the direction perpendicular to the axial direction. The optical encoder provided in this application includes at least one light source 30, a detector, and a code disk 10. The code disk 10 can rotate about its axis, and n coding patterns 100 are distributed along its axial direction on the code disk 10, where n is a positive integer greater than or equal to 2. Each coding pattern 100 includes a first pattern 101 and a second pattern 102 alternately distributed along the circumference of the code disk 10. Under the illumination of detection light, the intensity of the detection light reflected by the first pattern 101 is different from the intensity of the detection light reflected by the second pattern 102. Adjacent coding patterns 100 are staggered along the axial direction of the code disk 10. One or more light sources 30 are used to emit detection light to the code disk 10. The first pattern 101 and the second pattern 102 on the code disk 10 can reflect detection light of different intensities. The detector can generate a coding signal based on the detection light reflected by the first pattern 101 and the detection light reflected by the second pattern 102. The coding signal is used to indicate the circular motion of the code disk 10. When specifically detecting the rotation angle of the code disk 10, since the reflectivity of the first pattern 101 and the second pattern 102 included in each coding pattern 100 is different, and the two adjacent first patterns 101 are staggered (that is, there is a phase change between the two adjacent first patterns 101), the detection light emitted by the light source 30 can illuminate n coding patterns 100. The first pattern 101 in each coding pattern 100 reflects the detection light to the detector. In this way, phase subdivision can be performed simultaneously in two dimensions, along the circumference and along the axis, to improve the angular resolution of the optical encoder, thereby improving the user interaction experience.

[0033] It should be noted that the detector can also collect the rotation speed and forward / reverse rotation signals of the turntable. The first pattern 101 and the second pattern 102 have different reflectivities. The material of the first pattern 101 can be a reflective material, while the material of the second pattern 102 can be a light-absorbing material. That is, when detection light shines on the first pattern 101, the first pattern 101 will reflect the detection light; when detection light shines on the second pattern 102, the second pattern 102 will absorb the detection light. Furthermore, the n coded patterns 100 can be the same coded pattern 100. The light source can be a common incoherent LED (light emitting diode) light source, or a coherent light source such as an LD (laser diode) or VCSEL (vertical-cavity surface-emitting laser).

[0034] In one embodiment, in two adjacent coding patterns 100, each first pattern 101 in one coding pattern 100 corresponds one-to-one with each first pattern 101 in the other coding pattern 100. The corresponding two first patterns 101 are in contact with each other and are staggered along the circumferential direction. The staggered size is 1 / n of the circumferential size of the first pattern 101 along the code disk. That is, the staggered size of the two corresponding first patterns 101 is related to the number of coding patterns 100 arranged along the axis of the code disk 10, so that the detector can better receive the detection light reflected by the first pattern 101.

[0035] In the specific implementation process, the value of n can be 2, 3 or 4, etc. The specific value of n can be defined according to the length of the code disk along its axis and the detection resolution of the angle.

[0036] The following example uses a value of 2 for n. When n equals 2, the code disk has two encoding patterns distributed along the axis of the code disk. Continuing to refer to... Figure 2 Along the axial direction of the code disk 10, the edges of the first pattern 101 and the second pattern 102 in each coding pattern 100 extending along the axial direction of the code disk 10 are both arranged parallel to the axial direction of the code disk 10. The offset between two adjacent first patterns 101 is half the circumferential dimension of the first pattern 101 along the code disk 10. To correspond to the two coding patterns 100, the detector may include two rows of photodiodes 20, and at least one light source 30 may be present. The two rows of photodiodes 20 may be arranged side by side, and the two rows of photodiodes 20 correspond to the connection portion of the two coding patterns 100. The light source 30 may be located on the extension line of the column direction of the two rows of photodiodes 20. When specifically detecting the detection resolution of the rotation angle of the optical encoder along its circumference, since the two coding patterns 100 distributed along the axis of the code disk 10, that is, the number of subdivisions along the axis (x) of the code disk 10 is 2, the phase difference between the two corresponding first patterns 101 in the two adjacent coding patterns 100 is 90 degrees, the number of subdivisions in each column of photodiodes 20 along the y direction can be 3 (the same as the arrangement of photodiodes in the prior art), and the phase difference between the two adjacent photodiodes 20 in each column of photodiodes 20 is 60 degrees; with the number of cycles of the first pattern 101 and the second pattern 102 in each coding pattern 100 remaining unchanged, the light emitted by the light source 30 is reflected by the two corresponding first patterns 101 in the two coding patterns 100 to their respective corresponding column of photodiodes. At this time, the phase delay diagram of the two rows of photodiodes 20 is shown in Table 1. The number of subdivisions after superposition is 2*3=6. Thus, the number of subdivisions along the x direction is 2, and the number of subdivisions along the y direction is 3. Compared with the subdivision method of 3 subdivisions along the y direction, the minimum resolution value of this method is 1 / 2 of the original, thereby increasing the angular resolution of the optical encoder to twice the original.

[0037] It should be noted that in the above embodiments, when the number of subdivisions along the x-direction is a and the number of subdivisions along the y-direction is b, the actual number of subdivisions after superposition is the least common multiple of a and b.

[0038] Table 1:

[0039]

[0040] Additionally, refer to Figure 3 When n equals 2, the code disk 10 has two encoding patterns 100 distributed along the axial direction of the code disk 10. Along the axial direction of the code disk 10, the edges of the first pattern 101 and the second pattern 102 in each encoding pattern 100 extending along the axial direction of the code disk 10 are parallel to the axial direction of the code disk 10. The offset between two adjacent first patterns 101 is half the circumferential dimension of the first pattern 101 along the code disk 10. The detector may include two rows of photodiodes 20, spaced apart, with each row of photodiodes 20 corresponding to one encoding pattern 100. At least one light source 30 may also be present, or two, which may be positioned on opposite sides of the two rows of photodiodes 20 (i.e., the two light sources 30 are spaced apart along the axial direction of the code disk 10). In specific testing, since the two encoding patterns 100 distributed along the axis of the code disk 10, i.e., the number of subdivisions along the axis (x) of the code disk 10 is 2, and the phase difference between the two corresponding first patterns 101 in the two adjacent encoding patterns 100 is 90 degrees, while the number of photodiodes 20 along the y-direction and the number of cycles of the first pattern 101 and the second pattern 102 remain unchanged, the number of subdivisions is increased by 2 times. The two light sources 30 can emit detection light to their respective corresponding encoding patterns 100 at the same time. The first pattern 101 in the two encoding patterns 100 reflects the detection light to their respective corresponding photodiodes 20. At this time, the angular resolution value of the optical encoder rotating along its circumference is reduced to half of the original value, thereby increasing the angular resolution of the optical encoder to twice the original value, thus improving the user interaction experience. In order to prevent the detection light reflected by the first pattern 101 in the two coding patterns 100 from interfering with the other column of photodiodes 20, a light-blocking plate 40 can be provided between two adjacent photodiodes 20 to prevent the detection light reflected by the two corresponding first patterns 101 from affecting the other column of photodiodes 20.

[0041] Reference Figure 4When n equals 2, that is, the code disk 10 has two coding patterns 100 distributed along the axial direction of the code disk 10. Along the axial direction of the code disk 10, the edges of the first pattern 101 and the second pattern 102 in each coding pattern 100 extending along the axial direction of the code disk 10 are parallel to the axis of the code disk. The offset between two adjacent first patterns 101 is half the circumferential dimension of the first pattern 101 along the code disk 10. The detector may include a row of photodiodes 20, which correspond to the connection portion of the two coding patterns 100. At least one light source 30 is provided, consisting of two light sources 30 located on either side of the row of photodiodes 20. During detection, since the number of subdivisions of the two coding patterns 100 distributed along the axial direction of the code disk 10 (i.e., along the axial (x) direction of the code disk 10) is 2, the phase difference between the two corresponding first patterns 101 in two adjacent coding patterns 100 is 90 degrees. The number of photodiodes 20 along the y-direction and the number of first patterns 101 and second patterns... With the number of cycles remaining unchanged in Case 102, the number of subdivisions is doubled. Two light sources 30 alternately emit detection light onto their corresponding coded patterns 100, ensuring that a row of photodiodes 20 can only receive detection light reflected from the first pattern 101 of one coded pattern 100 at any given time. This prevents crosstalk between the detection light reflected from the first pattern 101 of two coded patterns 100, which would affect the detection results. Consequently, the angular resolution of the optical encoder rotating along its circumference is reduced to half of its original value, thus doubling the original angular resolution. In this method, each detection area in each coded pattern 100 acts as an independent receiver of detection light when reflecting it, allowing a row of photodiodes 20 to detect two corresponding detection areas in two coded patterns 100, thereby reducing the number of detectors required.

[0042] Reference Figure 5In one embodiment, when n equals 2, the number of subdivisions along the axis of the code disk 10 is 2. Along the axis of the code disk 10, the first pattern 101 and the second pattern 102 in each encoding pattern 100 are arranged parallel to each other, and the edges extending along the axis of the code disk 10 in the first pattern 101 and the second pattern 102 are angled to the axis of the code disk 10. In two adjacent encoding patterns 100, the offset between the starting point A of the first pattern 101 in the preceding encoding pattern 100 and the starting point B of the first pattern in the following encoding pattern 100 is half the circumferential dimension of the first pattern 101 along the code disk. To correspond to the two encoding patterns 100, the detector may include two photodiodes 20, and at least one light source 30 may be provided. Two columns of photodiodes 20 may be arranged side-by-side, each column of photodiodes 20 corresponding to one encoding pattern, and the two columns of photodiodes 20 correspond to the connection portion of the two encoding patterns 100. The light source 30 may be located on the extension line of the column direction of the two columns of photodiodes 20. During detection, the code disk 10 is divided into two encoding patterns 100 along the axis of the code disk 10, that is, the number of subdivisions along the axis (x) of the code disk 10 is 2. At this time, the two corresponding first patterns 101 in the two encoding patterns 100 are on the same straight line, and the phase difference between the two corresponding first patterns 101 in the two encoding patterns 100 is 90 degrees. With the number of photodiodes 20 along the y direction and the number of cycles of the first pattern 101 and the second pattern 102 remaining unchanged, the number of subdivisions is increased by 2 times. The light source 30 emits detection light to the two encoding patterns 100. The two corresponding first patterns 101 in the two encoding patterns 100 can receive the detection light emitted by the light source 30 and reflect the detection light to their respective photodiodes 20, thereby completing the measurement of the rotation angle of the code disk 10. At this time, the angular resolution value of the optical encoder along its circumference is reduced to half of the original value, thereby increasing the angular resolution of the optical encoder to twice the original value.

[0043] Reference Figure 6In one embodiment, when n equals 2, the number of subdivisions along the axis of the code disk 10 is 2. Along the axis of the code disk 10, the first pattern 101 and the second pattern 102 in each coding pattern 100 are arranged parallel to each other, and the edges extending along the axis of the code disk 10 in the first pattern 101 and the second pattern 102 are angled to the axis of the code disk 10. In two adjacent coding patterns 100, the offset between the starting point A of the first pattern 101 in the preceding coding pattern 100 and the starting point B of the first pattern in the following coding pattern 100 is half the circumferential dimension of the first pattern 101 along the code disk. The detector may include two columns of photodiodes 20, spaced apart, with each column of photodiodes 20 corresponding to one coding pattern 100. At least one light source 30 may also be present, or two light sources 30 may be present on either side of the two columns of photodiodes 20 (i.e., the two light sources 30 are spaced apart along the axis of the code disk 10). During specific testing, since the code disk 10 is divided into two encoding patterns 10 along the axis of the code disk 10, that is, the number of subdivisions along the axis (x) of the code disk 10 is 2. At this time, the two corresponding first patterns 101 in the two encoding patterns 100 are on the same straight line, and the phase difference between the two corresponding first patterns 101 in the two corresponding encoding patterns 100 is 90 degrees. With the number of photodiodes 20 along the y direction and the number of cycles of the first pattern 101 and the second pattern 102 remaining unchanged, the number of subdivisions is increased by 2 times. The two light sources 30 can emit detection light to their respective corresponding encoding patterns 100 at the same time. The detection light of the first pattern 101 in the two encoding patterns 100 is reflected to their respective corresponding photodiodes to complete the angle measurement of the optical encoder. At this time, the angle resolution value of the optical encoder rotating along its circumference is reduced to half of the original value, thereby increasing the angle resolution of the optical encoder to twice the original value. A light-blocking plate 40 is provided between two adjacent photodiodes 20 to prevent the detection light reflected from the detection area in the two coding patterns 100 from interfering with the other row of photodiodes 20.

[0044] Reference Figure 7In one embodiment, when n equals 2, the number of subdivisions along the axis of the code disk 10 is 2. Along the axis of the code disk 10, the first pattern 101 and the second pattern 102 in each coding pattern 100 are arranged in parallel, and the edge lines extending along the axis of the code disk 10 in the first pattern 101 and the second pattern 102 are arranged at an angle to the axis of the code disk 10. In two adjacent coding patterns 100, the offset between the first end A point of the first pattern 101 in the previous coding pattern 100 and the first end B point of the first pattern in the next coding pattern 100 is 1 / 2 of the circumferential dimension of the first pattern 101 along the code disk. The detector may include a row of photodiodes 20, which correspond to the connection points of two coding patterns 100. There are two light sources 30 located on either side of the row of photodiodes 20. During detection, the code disk 10 is divided into two coding patterns 10 along its axial direction (x), meaning the number of subdivisions along the x-axis of the code disk 10 is 2. At this time, the two corresponding first patterns 101 in the two coding patterns 100 are on the same straight line, and the phase difference between the two corresponding first patterns 101 is 90 degrees. With the number of photodiodes 20 along the y-axis and the number of cycles of the first and second patterns 101 remaining unchanged, the number of subdivisions is increased by a factor of 2. The two light sources 30 alternately emit detection light to their corresponding coding patterns 100, so that the row of photodiodes 20 can only receive the detection light reflected from the detection area of ​​one coding pattern 100 at any given time, preventing crosstalk between the detection light reflected from the first pattern 101 in the two coding patterns 100 and affecting the detection results. At this point, a row of photodiodes 20 can complete the detection of the two coded patterns 100. Furthermore, the angular resolution of the optical encoder rotating along its circumference is reduced to half of its original value, thereby increasing the angular resolution of the optical encoder to twice its original value.

[0045] In the above embodiments, if n equals 2 and the angle resolution of the optical encoder rotating along its circumference remains unchanged, it is equivalent to widening the size of the first and second patterns along the circumference of the code disk (the number of cycles can be reduced, significantly reducing the difficulty of the processing technology). At this time, the spacing between two adjacent photodiodes along the column direction can also be increased accordingly, thereby improving the signal-to-noise ratio.

[0046] It should be noted that, in the specific implementation process, when the number of subdivisions along the code disk axis increases, the number of photodiodes in each column and the number of subdivisions along the direction perpendicular to the code disk axis can also be adjusted accordingly, so as to reduce the angular resolution of the optical encoder rotating along the circumference of the code disk.

[0047] In addition, when n equals 2, the areas of the two coding patterns can be the same or different (that is, the lengths of the two coding patterns along the axis of the code disk can be the same or different), as long as the detection areas in the two coding patterns correspond to each other, and the size of the two corresponding detection areas being offset is 1 / 2 of the circumferential size of the first pattern along the code disk. No specific restrictions are imposed here.

[0048] Please refer to Figure 8 In one embodiment, n can also be equal to 3, that is, the code disk 10 is provided with three coding patterns 100 distributed along the axial direction of the code disk 10. Along the axial direction of the code disk 10, the edges of the first pattern 101 and the second pattern 102 in each coding pattern 100 extending along the axial direction of the code disk 10 are parallel to the axial direction of the code disk 10. The offset between two corresponding first patterns 101 in two adjacent first patterns 100 is 1 / 3 of the circumferential dimension of the first pattern 101 along the code disk 10. In this case, the detector can include three rows of photodiodes 20, arranged in parallel. There is one light source 30, which can be elongated and located on the extension line of the photodiode rows 20. The light source 30 can be parallel to the axial direction of the code disk 10. When detecting the rotation angle of the optical encoder, at the same time, the detection light emitted by the light source 30 can be simultaneously reflected by the first pattern 101 of the three coding patterns 100 to their respective corresponding photodiodes 20, thereby completing the measurement of the rotation angle of the optical encoder. In order to prevent the three rows of photodiodes 20 from interfering with each other when receiving the reflected light reflected from their respective first patterns 101, a light-blocking plate 40 can be provided between two adjacent rows of photodiodes 20, thereby ensuring the accuracy of detection.

[0049] Reference Figure 9In one embodiment, when n equals 3, the number of subdivisions along the axis of the code disk 10 is 3 (i.e., the code disk is provided with three coding patterns 100 distributed along the axis of the code disk 10). Along the axis of the code disk 10, the first pattern 101 and the second pattern 102 in each coding pattern 100 are arranged in parallel, and the edge lines of the first pattern 101 and the second pattern 102 extending along the axis of the code disk 10 are arranged at an angle to the axis of the code disk 10. The offset between the first end A of the first pattern 101 in the first coding pattern 100 and the first end B of the first pattern in the second coding pattern 100 is 1 / 3 of the circumferential dimension of the first pattern 101 along the code disk, and the offset between the first end B of the first pattern in the second coding pattern 100 and the first end C of the first pattern in the third coding pattern 100 is 1 / 3 of the circumferential dimension of the first pattern 101 along the code disk. At this time, the detector may include three rows of photodiodes 20, arranged in parallel. Each row of photodiodes 20 corresponds to one coding pattern 100. At least one light source 30 is included; each light source 30 may be elongated and located on the extension line of the photodiode row 20, and may be parallel to the axis of the code disk 10. When detecting the rotation angle of the optical encoder, at the same time, the detection light emitted by the light source 30 can be simultaneously reflected by the first pattern 101 of the three coding patterns 100 to its corresponding photodiode 20, thus completing the measurement of the optical encoder's rotation angle. Furthermore, to prevent interference from reflected light from other first patterns 101 while the three rows of photodiodes 20 are receiving reflected light from their respective corresponding first patterns 101, a light-blocking plate 40 can be provided between adjacent rows of photodiodes 20, thereby ensuring detection accuracy.

[0050] It should be noted that when n equals 3, the number of subdivisions along the code disk axis is 3 (i.e., the code disk has three coding patterns distributed along the code disk axis). In the direction perpendicular to the axis, with the number of photodiodes and the number of cycles of the first and second patterns remaining unchanged, the number of subdivisions can be increased by 3 times, thus improving the angular resolution of the optical encoder. If, when n equals 3, the angular resolution of the optical encoder remains unchanged, it is equivalent to widening the dimensions of the first and second patterns along the circumference of the code disk (the number of cycles can be reduced, significantly lowering the manufacturing difficulty). In this case, the spacing between two adjacent photodiodes along the column direction can also be increased accordingly, thereby improving the signal-to-noise ratio.

[0051] In addition, when n equals 3, the areas of the three coding patterns can be the same or different, as long as the first pattern 101 of the three coding patterns corresponds to each other, and the size of the two corresponding first patterns 101 is offset by 1 / 3 of the circumferential size of the first pattern along the code disk. No specific limitation is made here.

[0052] On the other hand, refer to Figure 10 This application also provides an electronic device, including the optical encoder described in any of the above technical solutions. It further includes a processor-to-processor memory, a display screen, sensors, and a communication module; wherein the memory stores program instructions and data required during program execution; the display screen provides a human-machine interface, presents various information to the user, and enables touch input via a touchscreen; the sensors include accelerometers, gyroscopes, ambient light sensors, etc., used to sense the system's environment and its own motion state; the communication module includes wireless communication functions such as WiFi and Bluetooth, used to exchange data with other devices; the optical encoder detects the rotation angle of the electronic device, providing the photoelectric converted electrical signal to the processor for recognition and processing; the processor executes program instructions, acquires the measurement signal from the optical encoder, processes the measurement signal to determine the rotation angle of the electronic device, and then controls changes to the user interface or modifies parameters. Changing the user interface can be done by changing menu items; modifying parameters can be done by adjusting the volume.

[0053] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. An optical encoder, characterized in that, include: A code disk, rotatable about its axis, has n coding patterns distributed along its axis, where n is a positive integer greater than or equal to 2. Each coding pattern includes a first pattern and a second pattern alternately distributed along the circumference of the code disk. Under the illumination of detection light, the intensity of the detection light reflected by the first pattern is different from the intensity of the detection light reflected by the second pattern, and adjacent coding patterns are staggered along the axis of the code disk. At least one light source, the at least one light source being used to emit detection light onto the code disk; A detector, the detector being used to generate an encoded signal based on the detection light reflected from the first pattern and the detection light reflected from the second pattern; The n encoded patterns are the same.

2. The optical encoder according to claim 1, characterized in that, In two adjacent coding patterns, each of the first patterns in one coding pattern corresponds one-to-one with each of the first patterns in the other coding pattern. The two corresponding first patterns are in contact with each other and are staggered along the circumferential direction. The staggered size is 1 / n of the circumferential size of the first pattern along the code disk.

3. The optical encoder according to claim 2, characterized in that, The detector includes at least one row of photodiodes.

4. The optical encoder according to claim 3, characterized in that, The n equals 2, the detector includes a row of photodiodes, the at least one light source is two, the row of photodiodes corresponds to the connection portion of the two coded patterns, and the two light sources are located on both sides of the row of photodiodes; The two light sources alternately emit detection light toward their respective coded patterns, so that the row of photodiodes receives the detection light reflected from one of the coded patterns in the same time period.

5. The optical encoder according to claim 3, characterized in that, The n equals 2, the detector includes two rows of photodiodes arranged side by side, the two rows of photodiodes correspond to two coding patterns, the at least one light source is one, the light source is located on the extension line of the direction of the two rows of photodiodes, the light source emits detection light to the two coding patterns, so that the two rows of photodiodes respectively receive the detection light reflected by their respective coding patterns.

6. The optical encoder according to claim 3, characterized in that, When n equals 2, the detector includes two rows of photodiodes, and there are two light sources, which are arranged on both sides of the two rows of photodiodes. A light-blocking plate is arranged between the two rows of photodiodes, and each row of photodiodes corresponds to one coding pattern. The two light sources emit detection light to the two coding patterns so that the two rows of photodiodes receive the detection light reflected from their respective coding patterns.

7. The optical encoder according to claim 3, characterized in that, The n equals 3, the detector includes three rows of photodiodes, and the at least one light source is one; wherein, a light-blocking plate is provided between each pair of adjacent rows of photodiodes, the light source is located on the extension line of the direction of the photodiode rows, and the light source emits detection light to the three coded patterns so that the three rows of photodiodes respectively receive the detection light reflected by their respective coded patterns.

8. The optical encoder according to any one of claims 1-7, characterized in that, Both the first pattern and the second pattern are rectangular, and the edges of the first pattern and the second pattern extending along the axis of the code disk are parallel to the axis of the code disk.

9. The optical encoder according to any one of claims 1-7, characterized in that, Both the first pattern and the second pattern are parallelograms, and the edges of the first pattern and the second pattern extending along the axis of the code disk are set at an angle to the axis of the code disk.

10. The optical encoder according to any one of claims 1-7, characterized in that, The first pattern in two adjacent coding patterns extends by the same distance along the axis of the code disk.

11. The optical encoder according to any one of claims 1-7, characterized in that, The material of the first pattern is a reflective material, and the material of the second pattern is a light-absorbing material.

12. An electronic device, characterized in that, Includes the optical encoder as described in any one of claims 1-11.

Citation Information

Patent Citations

  • Encoder utilizing a reflective cylindrical surface

    CN1624427A