Joystick and its rocker judgment method
By setting identification marks and optical sensor arrays of cross-arranged lines in the joystick, the problem that traditional optical joysticks cannot accurately judge the rotation direction and position of the joystick, and accurate rocker operation detection is achieved.
Patent Information
- Application Number
- CN202110489986.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-01-19
- Filing Date
- 2021-05-06
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2041-05-06
AI Technical Summary
Traditional optical joysticks cannot correctly judge the rotation direction, movement position and origin position of the control lever, especially when designed as symmetric marks, the direction judgment is inaccurate, and the movement amplitude judgment is inaccurate when asymmetric marks.
The optical sensor in the housing analyzes the identification marks composed of cross-arranged line segments, and the overlapping areas and connection lines in the image are captured and identified through the optical sensor array, and the movement, rotation and pressing changes of the rocker are judged, and image analysis is performed in combination with the storage module and the computing processor.
It realizes the accurate position judgment of the rocker, and can instantly detect changes in the movement, rotation and pressing of the rocker, improving the accuracy and efficiency of the judgment.
Smart Images

Figure CN114797088B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a joystick and a method for judging the joystick, in particular to a joystick that can correctly detect the origin position and a method for judging the joystick. Background Art
[0002] Traditional optical joysticks include an optical sensor, a control lever, and a handle. A part of the control lever protrudes outside the housing of the optical joystick and is connected to the handle for external operation. Another part of the control lever is hidden inside the housing of the optical joystick and has an identification pattern that can be read and analyzed by the optical sensor. The optical sensor analyzes the characteristic changes of the identification pattern to judge the actuation behavior of the handle. The traditional identification patterns of optical joysticks are generally divided into two types: symmetric marks or asymmetric marks. If the identification pattern is designed as a symmetric mark, the optical sensor cannot correctly judge the rotation direction of the control lever; if the identification pattern is designed as an asymmetric mark, when the movement amplitude of the control lever is too large, the optical sensor cannot accurately judge the position of the control lever after movement, nor can it judge the origin position of the control lever. Therefore, how to design an optical joystick that can correctly judge the rotation direction, movement position, and origin position of the control lever has become one of the development goals of the current optoelectronic design industry. Summary of the Invention
[0003] The present invention relates to a joystick that can correctly detect the origin position and a method for judging the joystick.
[0004] The present invention further discloses a joystick, which includes a housing, a joystick, an identification mark, and an optical sensor. The housing has a through hole. The joystick is movably arranged in the housing. The joystick has a first section and a second section. The first section passes through the through hole to protrude from the housing, and the second section is hidden inside the housing. The identification mark is arranged on the second section of the joystick. The identification mark includes a first line segment group and a second line segment group that intersect each other. The first line segment group and the second line segment group are respectively composed of a plurality of line segments with different widths arranged adjacent to each other. The optical sensor is arranged inside the housing to obtain an identification image covering the identification mark and analyze the characteristic changes of the first line segment group and the second line segment group in the identification image to judge the actuation of the joystick. The first line segment group includes a plurality of thick line segments and a plurality of thin line segments. The widths of the thick line segments are the same as each other, the widths of the thin line segments are the same as each other, and one thick line segment is arranged between two thin line segments.
[0005] The present invention also discloses that these thick line segments and these thin line segments are parallel to each other. The second line segment group includes a plurality of thick line segments and a plurality of thin line segments. The thick line segments of the second line segment group have the same width as the thick line segments of the first line segment group, and the thin line segments of the second line segment group have the same width as the thin line segments of the first line segment group. The distance between one thick line segment of the first line segment group in the identification image and its adjacent thin line segment is less than the size of the monitoring range of the optical sensor. This distance is the same as the distance between another thick line segment of the first line segment group and its adjacent thin line segment.
[0006] The present invention also discloses that the optical sensor analyzes the first line segment group in the identification image and a plurality of first overlapping regions on the side of the image, and analyzes the second line segment group in the identification image and a plurality of second overlapping regions on the other side of the image, so as to obtain a first connection line between these first overlapping regions and a second connection line between these second overlapping regions, and obtain the intersection point of the first connection line and the second connection line.
[0007] The present invention also discloses that one line segment of the first line segment group intersects with the sides of the images to form two first overlapping regions, and the two first overlapping regions are used to form the first connection line and the intersection point. Alternatively, two line segments of the first line segment group intersect with the sides of the images to form four first overlapping regions. When two of the four first overlapping regions are derived from the same line segment of the two line segments, connect the two first overlapping regions to form the corresponding first connection line.
[0008] The present invention also discloses that the optical sensor is an array composed of a plurality of sensing units, and each side of the images is defined as an imaging range covered by one or more columns or rows of sensing units.
[0009] The present invention also discloses that the optical sensor analyzes the displacement change of the intersection point to judge the swing direction and swing amplitude of the rocker. In addition, the optical sensor analyzes the displacement change of the first connection line and the second connection line to judge the rotation direction and rotation amplitude of the rocker. In addition, the optical sensor analyzes the brightness change of the identification image to judge the pressing amplitude of the rocker; or the optical sensor analyzes the distance change between two line segments of the first line segment group to judge the pressing amplitude of the rocker. The two line segments of the first line segment group are adjacent to each other, or there are other line segments between the two line segments.
[0010] The present invention also discloses that the joystick further includes a storage module, electrically connected to the optical sensor, for storing the identification image and / or the reference image. The optical sensor has an arithmetic processor for analyzing the identification image, or the optical sensor has a transmission interface for transmitting the identification image to an external information processor for analysis.
[0011] The present invention also discloses a joystick judgment method, which is applied to a gamepad. The gamepad is used to analyze the identification marks of its joystick. The identification marks include a first line segment group and a second line segment group that intersect with each other. The first line segment group and the second line segment group are respectively composed of multiple line segments with different widths arranged adjacent to each other. The joystick judgment method includes obtaining an identification image associated with the identification marks, finding one or more line segments of the first line segment group in the identification image and multiple first overlapping regions on the side of the image, finding one or more line segments of the second line segment group in the identification image and multiple second overlapping regions on the side of other images, and analyzing the first overlapping regions and the second overlapping regions to judge the actuation of the joystick. The first line segment group includes multiple thick line segments and multiple thin line segments. The widths of the thick line segments are the same as each other, and the widths of the thin line segments are the same as each other. Each thick line segment is adjacent to two thin line segments.
[0012] The joystick judgment method of the present invention further analyzes whether the sides of the images overlap one or more line segments of the thick line segments and the thin line segments to find the first overlapping regions. The joystick judgment method further analyzes the size changes of the overlapping regions between the sides of the images and the line segments to judge whether to enlarge or reduce the size of the sides of the images.
[0013] In summary, the gamepad and its joystick judgment method of the present invention can compare the instantaneously obtained identification image with the reference image obtained when the gamepad is started to confirm the total amount of movement, rotation, and pressing changes of the joystick during the start-up and operation of the gamepad. In addition, in certain specific situations, the gamepad may be forced to move, rotate, or press by external forces before it is officially started. Therefore, the joystick judgment method of the present invention can further compare the instantaneously obtained identification image with the pre-recorded reference image to judge the initial position of the joystick, so as to obtain the accurate total amount of movement, rotation, and pressing changes. Description of the Drawings
[0014] Figure 1 It is a schematic diagram of the appearance of the gamepad according to an embodiment of the present invention.
[0015] Figure 2 It is a schematic diagram of a partial structure of the gamepad according to an embodiment of the present invention from other perspectives.
[0016] Figures 3 to 6 It is a schematic diagram of the identification images obtained by the gamepad according to an embodiment of the present invention in different situations.
[0017] Figure 7 It is a flowchart of the joystick judgment method according to an embodiment of the present invention.
[0018] Among them, the reference numerals are explained as follows:
[0019] 10 Joystick
[0020] 12 Housing
[0021] 14 Rocker
[0022] 16 Identification Mark
[0023] 18 Optical Sensor
[0024] 20 Elastic Element
[0025] 22 Hole
[0026] 24 First Section
[0027] 26 Second Section
[0028] 261 Concave Space
[0029] 28 Storage Module
[0030] 30 Arithmetic Processor
[0031] 32 Transmission Interface
[0032] G1 First Line Segment Group
[0033] G2 Second Line Segment Group
[0034] L1a First Thick Line Segment
[0035] L1b First Thin Line Segment
[0036] L2a Second Thick Line Segment
[0037] L2b Second Thin Line Segment
[0038] R1 First Overlap Region
[0039] R2 Second Overlap Region
[0040] I Identification Image
[0041] S Image Side
[0042] C Image Corner
[0043] A Monitoring Range
[0044] H Spacing
[0045] P, P1, P2, P3 Intersection Points
[0046] Steps S100, S102, S104, S106, S108, S110, S112 Detailed Implementation Manner
[0047] Please refer to Figures 1 to 6 ,Figure 1 FIG. 1 is a schematic view of the appearance of the joystick 10 according to an embodiment of the present invention. Figure 2 FIG. 2 is a schematic view of a partial structure of the joystick 10 according to an embodiment of the present invention from another perspective. Figures 3 to 6 FIG. 3 is a schematic view of the identification image I obtained by the joystick 10 in different situations. The joystick 10 may include a housing 12, a joystick 14, an identification mark 16, an optical sensor 18, and an elastic element 20. The shape of the housing 12 is designed according to the required appearance of the joystick 10, so it will not be specifically described here. The joystick 14 movably passes through the through hole 22 of the housing 12. The joystick 14 can be divided into a first section 24 and a second section 26. The first section 24 can pass through the through hole 22 to protrude out of the housing 12 and serve as an operation interface for the user to operate the joystick 10; the second section 26 can be hidden inside the housing 12 and serve as a carrier for the identification mark 16.
[0048] The elastic element 20 can be a compression spring and is arranged between the housing 12 and the joystick 14. When the user applies a force to push or rotate the joystick 14, the elastic element 20 can undergo elastic deformation to store elastic restoring force; when the external force applied by the user to the joystick 14 is removed, the elastic element 20 releases its elastic restoring force to drive the joystick 14 back to its initial position. In addition, the elastic element 20 may also be other types of springs, and its variations depend on the design requirements, so it will not be described in detail here. In the embodiment of the present invention, a concave space 261 can be formed on one side of the second section 26 of the joystick 14 facing the optical sensor 18, and the identification mark 16 is arranged on the bottom surface inside the concave space 261; if the second section 26 does not have a concave space, the identification mark 16 can be arranged on the outer surface of the second section 26 facing the optical sensor 18.
[0049] The optical sensor 18 can be arranged on a circuit board (not shown in the drawings) inside the housing 12. The monitoring range A of the optical sensor 18 is aligned with the identification mark 16 on the joystick 14. The optical sensor 18 can be used to obtain an identification image I covering all or part of the identification mark 16, and the identification image I is a corresponding captured image of the monitoring range A of the optical sensor 18. The joystick 10 can optionally have a storage module 28 electrically connected to the optical sensor 18. The storage module 28 can be a built-in memory of the joystick 10 or other elements with information storage functions. The storage module 28 can store the identification image I and / or a reference image (not shown in the drawings). The identification image I can be captured by the optical sensor 18; the reference image may be captured by the optical sensor 18 or pre-recorded in the storage module 28 according to the characteristics of the identification mark 16.
[0050] In addition, the optical sensor 18 may have an arithmetic processor 30 for analyzing and identifying the image I, and may further selectively compare the identified image I with a reference image as required. The arithmetic processor 30 can be various types of processors, such as an image processor or a thread of a microcontroller, for performing procedures such as image compression, display, and storage. Alternatively, the optical sensor 18 may also have a transmission interface 32, such as a wireless information transceiver or a wired information transceiver. The optical sensor 18 can transmit the identified image I to an external information processor through the transmission interface 32 for analysis and identification; the aforementioned external information processor may be the central processing unit or the graphics processing unit of the computer system connected to the joystick 10.
[0051] The identification mark 16 may include a first line segment group G1 and a second line segment group G2 that intersect each other. The first line segment group G1 may include a plurality of first line segments arranged adjacent to each other and having different widths. The second line segment group G2 may include a plurality of second line segments arranged adjacent to each other and having different widths. Specifically, the first line segment group G1 may include a plurality of first thick line segments L1a and a plurality of first thin line segments L1b. Any one of the plurality of first thick line segments L1a of the plurality of first thick line segments L1a is parallel to any one of the plurality of first thin line segments L1b of the plurality of first thin line segments L1b. The widths of the plurality of first thick line segments L1a are the same as each other, and the widths of the plurality of first thin line segments L1b are the same as each other. Each first thick line segment L1a may be adjacent to two first thin line segments L1b, or each first thin line segment L1b may be adjacent to two first thick line segments L1a. However, the characteristics of the first line segments are not limited to the foregoing embodiments, depending on the design requirements; for example, the first line segments located at the boundary of the first line segment group G1 may not be limited to this characteristic.
[0052] Correspondingly, the second line segment group G2 may include a plurality of second thick line segments L2a and a plurality of second thin line segments L2b. Any one of the plurality of second thick line segments L2a of the plurality of second thick line segments L2a is parallel to any one of the plurality of second thin line segments L2b of the plurality of second thin line segments L2b. The widths of the plurality of second thick line segments L2a are the same as each other, and their widths may be the same as or similar to the widths of the first thick line segments L1a. The widths of the plurality of second thin line segments L2b are the same as each other, and their widths may be the same as or similar to the widths of the first thin line segments L1b. Each second thick line segment L2a may be adjacent to two second thin line segments L2b, or each second thin line segment L2b may be adjacent to two second thick line segments L2a. However, the characteristics of the second line segments are not limited to the foregoing embodiments, depending on the design requirements; for example, the second line segments located at the boundary of the second line segment group G2 may not be limited to this characteristic.
[0053] As Figure 2As shown, the distance H between one of the first thick line segments L1a of the first line segment group G1 and its adjacent first thin line segment L1b will be the same as the distance H between another first thick line segment L1a and its adjacent first thin line segment L1b, and will also be the same as the distance H between any second thick line segment L2a of the second line segment group G2 and its adjacent second thin line segment L2b. The distance H is preferably a block area formed by two adjacent line segments of the first line segment group G1 and two adjacent line segments of the second line segment group G2, and when the distance H is captured by the optical sensor 18, its range can correspond to the monitoring range A; in other words, no matter how the rocker 14 moves or rotates relative to the optical sensor 18, the recognition image I obtained by the optical sensor 18 can at least capture one line segment of the first line segment group G1 and one line segment of the second line segment group G2.
[0054] If the recognition image I has been captured, at least one first line segment (which can be the first thick line segment L1a or the first thin line segment L1b) of the first line segment group G1 and at least one second line segment (which can be the second thick line segment L2a or the second thin line segment L2b) of the second line segment group G2 will appear in the recognition image I. Each first line segment obtained in the recognition image I will generate two first overlapping regions R1, and each first overlapping region R1 belongs to the overlapping range of the captured first line segment and the two side edges S of the recognition image I. Correspondingly, each second line segment obtained in the recognition image I will generate two second overlapping regions R2, and each second overlapping region R2 belongs to the overlapping range of the captured second line segment and the two side edges S of the recognition image I. For example, if the recognition image I captures a second line segment, the second line segment will generate two second overlapping regions R2 with the image side edge S, as Figures 3 to 5 shown; if two second line segments are captured, the two second line segments will generate four second overlapping regions R2 with the image side edge S, as Figure 6 shown.
[0055] The optical sensor 18 can use an array formed by multiple sensing units to generate an identification image I. Therefore, all the sensing units of the optical sensor 18 can completely detect the first line segment (i.e., the first thick line segment L1a or the first thin line segment L1b) and the second line segment (i.e., the second thick line segment L2a or the second thin line segment L2b) covered by the identification image I. However, in order to save power consumption, in other possible variations, the joystick 10 of the present invention can only activate a few sensing unit columns and sensing unit rows of the sensing unit array, so that its imaging range is smaller and may only cover the respective sides S of the identification image I. For example, if the optical sensor 18 is a 100x100 sensing unit array, the joystick 10 can only activate the sensing unit columns and sensing unit rows of the top three rows, the bottom three rows, the leftmost three rows, and the rightmost three rows of the sensing unit array. The three sensing unit columns located at the leftmost and rightmost sides of the sensing unit array, and the three sensing unit rows located at the topmost and bottommost sides of the sensing unit array are sufficient to detect partial sections of the first line segment (i.e., the first thick line segment L1a or the first thin line segment L1b) and the second line segment (i.e., the second thick line segment L2a or the second thin line segment L2b), and thus the aforementioned first overlapping region R1 and second overlapping region R2 can be formed.
[0056] The sizes of the first overlapping region R1 and the second overlapping region R2 in the image captured by the optical sensor 18 (i.e., the identification image I) may increase or decrease as the rocker 14 rotates. If the size of the first overlapping region R1 (or the second overlapping region R2) generated by the overlap of the first line segment (or the second line segment) with one or more sides S of the identification image I is less than the lower limit of a predetermined threshold, the optical sensor 18 can activate a larger number of sensing units corresponding to the side S (such as the sensing unit rows of the top four rows), thereby enlarging the detectable size of the side S to expand the size of the first overlapping region R1 or the second overlapping region R2. If the overlapping range is greater than or equal to the upper limit of the predetermined threshold, the optical sensor 18 may activate a smaller number of sensing units still close to the side S (such as only activating the sensing unit rows of the top two rows), reducing the size of the side S to reduce the size of the first overlapping region R1 or the second overlapping region R2, thereby correspondingly improving the detection accuracy of the optical sensor 18. For example, if the rocker 14 rotates such that the first line segment or the second line segment overlaps with the corner C of the identification image I, at this time, the overlapping region between the left side S and / or the upper side S of the identification image I and the first line segment or the second line segment becomes smaller (i.e., less than the predetermined threshold). Therefore, the joystick 10 can activate the sensing unit rows of the top six rows and the sensing unit columns of the leftmost six rows of the sensing unit array, so as to increase the area range of the first overlapping region R1 or the second overlapping region R2 and effectively improve the detection accuracy.
[0057] If only one first line segment in the first line segment group G1 intersects with the side S of the recognition image I, two first overlapping regions R1 will be formed. A first connecting line can be generated between these two first overlapping regions R1, and the first connecting line can be regarded as a virtual first line segment. If two first line segments in the first line segment group G1 intersect with the side S of the recognition image I, four first overlapping regions R1 will be formed; when two of these four first overlapping regions R1 originate from the same first line segment of the two first line segments, these two first overlapping regions R1 can be connected according to the widths of the four first overlapping regions R1 to generate their corresponding first connecting lines. For example, when the origin corresponds to the intersection of two thin line segments, two first overlapping regions R1 with a wider width can be selected to form the first connecting line. Correspondingly, if the second overlapping region R2 is found, the optical sensor 18 will generate a second connecting line according to the paired two second overlapping regions R2, that is, the second connecting line can be regarded as a virtual second line segment. After obtaining the first connecting line and the second connecting line, the intersection position of these two virtual connecting lines can be found to obtain the intersection point P.
[0058] The joystick 10 of the present invention can accurately obtain the positions of each line segment of the first line segment (i.e., the first thick line segment L1a or the first thin line segment L1b) and the second line segment (i.e., the second thick line segment L2a or the second thin line segment L2b), the relative relationship between the two line segments, and the intersection position by only activating some sensing units of the optical sensor 18, so as to achieve the purpose of saving power consumption and accelerating the operation efficiency.
[0059] Referring to Figure 3 and Figure 4 the recognition image I shown, the joystick 10 of the present invention can analyze the displacement changes of the first connecting line and the second connecting line by using the optical sensor 18 to judge the rotation direction and rotation amplitude of the rocker 14. Another reference is Figure 3 and Figure 5 the recognition image I shown, the joystick 10 can further analyze the displacement changes of the intersection point P by using the optical sensor 18 to judge the swing direction and swing amplitude of the rocker 14. Furthermore, the joystick 10 can further analyze the distance changes between two of the first line segments in the first line segment group G1 or analyze the distance changes between two of the second line segments in the second line segment group G2 by using the optical sensor 18, so as to judge the pressing amplitude of the rocker 14. In particular, the optical sensor 18 can judge the pressing amplitude of the rocker 14 by referring to the distance changes between two adjacent first line segments, such as Figure 6 the first thick line segment L1a and the first thin line segment L1b in the recognition image I shown; or the optical sensor 18 can alternatively judge the pressing amplitude of the rocker 14 by referring to the distance changes between two non-adjacent first line segments, such as Figure 6 the two first thick line segments L1a in the recognition image I shown.
[0060] Furthermore, the joystick 10 can also analyze and identify the brightness change of the image I by using the optical sensor 18 to determine the pressing amplitude of the rocker 14. An increase in the brightness of the identified image I indicates that the rocker 14 is approaching the optical sensor 18, so the rocker 14 has a larger pressing amplitude; a decrease in the brightness of the identified image I indicates that the rocker 14 is moving away from the optical sensor 18, so the rocker 14 has a smaller pressing amplitude. The present invention can use the above situation to change and determine the pressing amplitude of the rocker 14.
[0061] Please refer to Figure 6 , the identification mark 16 of the present invention is constructed by vertical lines with different widths and arranged adjacent to each other (i.e., the first line segment group G1) and horizontal lines with different widths and arranged adjacent to each other (i.e., the second line segment group G2). The first thick line segment L1a and the first thin line segment L1b of the first line segment group G1 can respectively intersect with the second thick line segment L2a and the second thin line segment L2b of the second line segment group G2, thus forming many intersection points, but each intersection point has an identification feature different from other adjacent intersection points. For example, the first thick line segment L1a intersecting with the second thin line segment L2b can generate an intersection point P, the first thick line segment L1a intersecting with the second thick line segment L2a generates an intersection point P1, the first thin line segment L1b intersecting with the second thin line segment L2b generates an intersection point P2, and the first thin line segment L1b intersecting with the second thick line segment L2a generates an intersection point P3.
[0062] If the optical sensor 18 finds multiple intersection points P, P1, P2, and P3 in the identified image I, it can select one of the intersection points as the current positioning standard by itself, such as the intersection point P, and analyze according to the displacement change of the intersection point P to determine the actuation of the rocker 14. When the rocker 14 undergoes behaviors such as large-scale movement and / or rotation, causing the intersection point P to approach the side S of the identified image I, the optical sensor 18 can regard the intersection point P as the previous positioning standard and can select another one as the current positioning standard among other intersection points P1, P2, and P3 according to specific rules; for example, the optical sensor 18 can select the intersection point P2 closest to the center of the identified image I as the current positioning standard. In this way, no matter how large the actuation amplitude of the rocker 14 is, the joystick 10 of the present invention can immediately obtain one of the intersection points of the first line segment group G1 and the second line segment group G2 as the identification reference point, so as to perform automatic calibration of the relative coordinate system.
[0063] Please refer to Figure 7 , Figure 7 is a flowchart of the rocker judgment method according to an embodiment of the present invention. Figure 7 The described rocker judgment method can be applied to Figure 1The joystick 10 shown. First, step S100 is executed, and the optical sensor 18 obtains the identification image I associated with the identification mark 16. Then, steps S102 and S104 are executed to find the first overlapping region R1 between the first line segment group G1 and each side S of the identification image I within the identification image I, and to find the second overlapping region R2 between the second line segment group G2 and each side S of the identification image I. Next, steps S106 and S108 are executed to analyze the first overlapping region R1 and the second overlapping region R to obtain the corresponding first connection line, second connection line, and their intersection point, and to determine whether the actuation amplitude of the rocker 14 exceeds a preset value using the intersection point. If it does not exceed the preset value, step S110 is executed to select a certain intersection point as the current positioning standard, and the actuation of the rocker 14 is judged using these connection lines and / or this intersection point; if it exceeds the preset value, step S112 is executed to reselect another intersection point as the current positioning standard, and then the actuation of the rocker 14 is judged using these connection lines and / or this intersection point.
[0064] Regarding steps S102 and S104, the rocker judgment method of the present invention will find the first overlapping region R1 between the side S of the identification image I and the first thick line segment L1a and / or the first thin line segment L1b of the first line segment group G1, and the second overlapping region R2 between the side S of the identification image I and the second thick line segment L2a and / or the second thin line segment L2b of the second line segment group G2. The number of the first overlapping region R1 and the second overlapping region R2 can correspond to the number of lines of the first line segment group G1 and the second line segment group G2 covered by the identification image I. Regarding step S106, the first overlapping region R1 and the second overlapping region R2 can be used to obtain the corresponding first connection line, second connection line, and their intersection point. The displacement changes of the first connection line and the second connection line can be used to judge the rotation direction and rotation amplitude of the rocker 14; the displacement changes of the intersection point can be used to judge the swing direction and swing amplitude of the rocker 14. In addition, the spacing change between any two line segments of the first line segment group G1 or the second line segment group G2, or the brightness change of the identification image I can be used to judge the pressing amplitude of the rocker 14.
[0065] In summary, the storage module of the joystick can store a reference image. The reference image can be the first image obtained by the optical sensor when the joystick is just started, or an image pre-recorded during the manufacture of the joystick. After the joystick is started, the rocker judgment method of the present invention can compare the immediately obtained identification image with the reference image obtained when the joystick is started to confirm the total amount of movement, rotation, and pressing changes of the rocker during the start-up and operation of the joystick. In addition, in certain specific situations, the joystick may be moved, rotated, or pressed by an external force before it is officially started. Therefore, the rocker judgment method of the present invention can further compare the immediately obtained identification image with the pre-recorded reference image to judge the initial position of the rocker, so as to obtain the accurate total amount of movement, rotation, and pressing changes.
[0066] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. A joystick, characterized in that, The joystick includes: A housing having a perforation; A joystick movably disposed in the housing, the joystick having a first section and a second section, the first section passing through the perforation to protrude from the housing, and the second section hidden inside the housing; An identification mark disposed on the second section of the joystick, the identification mark including a first line segment group and a second line segment group that intersect each other, the first line segment group and the second line segment group being respectively composed of a plurality of line segments of different widths arranged adjacent to each other; and An optical sensor disposed inside the housing for obtaining an identification image covering the identification mark and analyzing the characteristic changes of the first line segment group and the second line segment group in the identification image to determine the actuation of the joystick; Wherein the first line segment group includes a plurality of thick line segments and a plurality of thin line segments, the widths of the thick line segments are the same as each other, the widths of the thin line segments are the same as each other, and one thick line segment is disposed between two thin line segments; The optical sensor analyzes the first line segment group in the identification image and a plurality of first overlapping regions on the side of the image, and analyzes the second line segment group in the identification image and a plurality of second overlapping regions on the side of other images, thereby obtaining a first connection line between the first overlapping regions and a second connection line between the second overlapping regions, and obtaining the intersection of the first connection line and the second connection line; The optical sensor analyzes the displacement change of the intersection point to determine the swing direction and swing amplitude of the joystick; or The optical sensor analyzes the displacement changes of the first connection line and the second connection line to determine the rotation direction and rotation amplitude of the joystick.
2. The joystick according to claim 1, wherein The thick line segments and the thin line segments are parallel to each other.
3. The joystick according to claim 1, characterized in that, The second line segment group includes a plurality of thick line segments and a plurality of thin line segments, the thick line segments of the second line segment group have the same width as the thick line segments of the first line segment group, and the thin line segments of the second line segment group have the same width as the thin line segments of the first line segment group.
4. The joystick according to claim 1, characterized in that, The distance between one thick line segment of the first line segment group in the identification image and its adjacent thin line segment is less than the size of the monitoring range of the optical sensor.
5. The joystick according to claim 4, characterized in that, This distance is the same as the distance between another thick line segment of the first line segment group and its adjacent thin line segment.
6. The joystick according to claim 1, wherein, One line segment of the first line segment group intersects with the sides of the images to form two first overlapping regions, and the two first overlapping regions are used to form the first connection line and the intersection point.
7. The joystick according to claim 1, characterized in that, When two line segments of the first line segment group intersect with the sides of the images to form four first overlapping regions, and two of the four first overlapping regions originate from the same line segment of the two line segments, connect the two first overlapping regions to form the corresponding first connection line.
8. The joystick according to claim 1, characterized in that, The optical sensor is an array composed of a plurality of sensing units, and each side of the images is defined as an imaging range covered by one or more columns or rows of sensing units.
9. The joystick according to claim 1, characterized in that, The optical sensor analyzes the brightness change of the identification image to determine the pressing amplitude of the joystick.
10. The joystick according to claim 1, characterized in that, The optical sensor analyzes the change in the distance between two line segments of the first line segment group to determine the pressing amplitude of the joystick.
11. The joystick according to claim 10, characterized in that, The two line segments of the first line segment group are adjacent to each other, or there are other line segments between the two line segments.
12. The joystick according to claim 1, characterized in that, The joystick further includes a storage module, electrically connected to the optical sensor, for storing the identification image and / or the reference image.
13. The joystick according to claim 1, characterized in that, The optical sensor has an arithmetic processor for analyzing the identification image, or the optical sensor has a transmission interface for transmitting the identification image to an external information processor for analysis.
14. A rocker judgment method is applied to a joystick. The joystick is used to analyze the identification mark of its rocker. The identification mark includes a first line segment group and a second line segment group that intersect each other. The first line segment group and the second line segment group are respectively composed of a plurality of line segments with different widths arranged adjacent to each other. It is characterized in that, The method for judging the joystick includes: Obtaining an identification image associated with the identification mark; Finding one or more line segments of the first line segment group in the identification image and a plurality of first overlapping areas on the side of the image; Finding one or more line segments of the second line segment group in the identification image and a plurality of second overlapping areas on the side of other images; Further obtaining a first connecting line between the first overlapping areas and a second connecting line between the second overlapping areas, obtaining the intersection point of the first connecting line and the second connecting line, and analyzing the displacement change of the intersection point to judge the swinging direction and swinging amplitude of the joystick; or Analyzing the displacement change of the first connecting line and the second connecting line to judge the rotation direction and rotation amplitude of the joystick; Wherein, the first line segment group includes a plurality of thick line segments and a plurality of thin line segments, the widths of the thick line segments are the same as each other, the widths of the thin line segments are the same as each other, and each thick line segment is adjacent to two thin line segments.
15. The rocker judgment method according to claim 14, characterized in that, The method for judging the joystick further analyzes whether the sides of the images overlap one or more line segments of the thick line segments and the thin line segments to find the first overlapping areas.
16. The rocker judgment method according to claim 14, characterized in that, The second line segment group includes a plurality of thick line segments and a plurality of thin line segments, the thick line segments of the second line segment group have the same width as the thick line segments of the first line segment group, and the thin line segments of the second line segment group have the same width as the thin line segments of the first line segment group.
17. The rocker judgment method according to claim 16, characterized in that, The method for judging the joystick further analyzes the positional relationship between the thick line segments and thin line segments of the first line segment group in the identification image relative to the thick line segments and thin line segments of the second line segment group to judge the initial position of the joystick.
18. The rocker judgment method according to claim 14, characterized in that, The method for judging the joystick further analyzes the size change of the overlapping areas of the sides of the images and the line segments to judge whether to enlarge or reduce the size of the sides of the images.
19. The rocker judgment method according to claim 14, characterized in that The method for judging the joystick further analyzes the brightness change of the identification image to judge the pressing amplitude of the joystick.
20. The rocker judgment method according to claim 14, characterized in that, The method for judging the joystick further analyzes the distance change between two line segments of the first line segment group to judge the pressing amplitude of the joystick.
Citation Information
Patent Citations
Joystick and related control method
CN109460159A
Optical position detecting unit and optical coordinate input unit utilizing a sub-portion of a M-sequence pattern
US5499098A