A rocker calibration method, control device and system
By real-time calibration and adjustment of the target position of the rocker, the signal instability caused by target position deviation is solved, the user experience and equipment quality are improved, and the target position value with smaller offset error is achieved.
Patent Information
- Application Number
- CN202410454434.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-16
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-04-16
AI Technical Summary
During use, the existing rocker is unstable due to the target position deviation, which affects the user experience. The voltage drop of the magnetic rocker will cause signal attenuation, causing the problem of low yield.
By obtaining the real-time target position coordinate value of the rocker, automatically calibrate and adjust the rocker structure until the target position is within the allowable deviation range, precise position calibration is used with a magnetic sensor and a calibrator to reduce the offset error caused by magnet installation. .
It improves the signal stability and user experience of the rocker, extends the service life of the equipment, and enhances the overall quality and yield.
Smart Images

Figure CN118179008B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of joysticks, and in particular to a joystick calibration method, a control device and a system. Background Art
[0002] In the prior art, rockers are basically divided into two categories: one is to use two rocker arm motion mechanisms, with two axes forming a two-dimensional plane, one end of each connected to an angle sensor, and a rocker handle makes a circular motion to drive the two axes to move together. When the axis rotates, it will be linked to the angle sensor, generating an electrical signal change; the other is to replace the double rocker arm structure with a spherical joint, which is linked to a magnet to make the angle sensor generate two-way sensing signals. Regardless of the type of rocker, it basically belongs to a two-dimensional plane position pointing device, and the mechanism of generating electrical signals is similar.
[0003] The position P(X, Y) of any point on the two-dimensional plane is determined by the X-axis and Y-axis components. When the joystick is rotated during use, the cursor will move on the two-dimensional plane. Traditional joysticks use carbon film potentiometers, and the brush of the potentiometer slides on the carbon film to produce changes in resistance. This type of joystick is easily affected by the wear of the carbon film of the potentiometer, causing the resistance value and electrical signal to be affected, generating unstable two-dimensional coordinate signal noise, causing the cursor to jitter or even unable to return to the midpoint during use. The production process of this type of joystick is complex, prone to quality problems, and has a short lifespan, which can only reach a rotation life of about 100,000 times.
[0004] In recent years, magnetic-sensitive joysticks have gradually become the mainstream of high-end joysticks. A permanent magnet is installed at one end of the X-axis and Y-axis, and the magnetosensitive elements such as Hall or magnetoresistive angle sensors are rotated relative to each other. The angle sensor senses the signal change of the magnet movement and outputs it. The advantage of this joystick is that the magnetic-sensitive angle sensor can sense and collect signals without contacting the permanent magnet or any other components. It is a non-contact magnetoelectric joystick that can overcome the problem of unstable electrical signals generated by the wear of the carbon film of the potentiometer in traditional joysticks. However, the existing magnetic-sensitive joystick outputs the collected signal directly to the user end. If there is a deviation in the installation position or posture of any permanent magnet during use, the output signal will also deviate, which will cause quality problems and affect the user experience. In addition, the magnetic sensor will generate a voltage drop when working, and its output signal will be attenuated, so that the output signal amplitude cannot be completely synchronized with the input voltage amplitude, which will also cause the joystick to have a low yield due to large deviation in the target position. Summary of the invention
[0005] The purpose of the present invention is to overcome the shortcomings and deficiencies in the prior art and provide a rocker calibration method.
[0006] The present invention is implemented by the following technical scheme: a rocker calibration method, comprising the following steps:
[0007] S1: Get the coordinate values of multiple real-time target positions of the joystick (X RT , Y RT );
[0008] S2: extracting a plurality of default ideal extreme values and a plurality of pre-collected and stored original extreme values of target position coordinates corresponding to the plurality of real-time target positions of the joystick, and automatically calibrating the acquired plurality of real-time target position coordinate values of the joystick to obtain a calibrated target position;
[0009] S3: Determine whether the calibrated target position is within the allowable deviation range: if the calibrated target position is within the allowable deviation range, then end the calibration, output the calibrated target position and transmit it to the user end; if the calibrated target position is still beyond the allowable range, then adjust the rocker structure; wherein the rocker structure is the main structure of the rocker;
[0010] S4: after adjusting the rocker structure, re-sampling and calibrating the multiple real-time target positions of the rocker until the rocker target position is within the allowable deviation range;
[0011] S5: Output the calibrated target position and transmit it to the user end.
[0012] Compared with the prior art, the joystick calibration method described in the present invention can automatically calibrate the target position of the joystick in real time, and judge whether the real-time target position of the joystick is within the allowable deviation range based on the calibrated target position, and decide whether to adjust the various components of the joystick based on the judgment result to obtain a target position with a smaller deviation, thereby solving the problem of low joystick yield caused by excessive target position deviation, and thus improving the overall quality of the joystick.
[0013] Further, in step S1, the real-time target position includes a middle position and multiple extreme positions, the middle position is a middle dead zone on the display screen corresponding to the joystick, and the extreme positions are extreme position dead zones in the X-axis direction and the Y-axis direction on the display screen corresponding to the joystick.
[0014] Further, in step S2, a plurality of default ideal extreme values are the extreme values of the median dead zone and the extreme position dead zones on the X-axis and the Y-axis, and are set as:
[0015] Ideal X-axis minimum value: X DFMIN =0×2 n ;
[0016] Ideal X-axis extreme median: X DFNEU =2 n / 2;
[0017] Ideal X-axis maximum value: X DFMAX =1×2n ;
[0018] Ideal Y-axis minimum value: Y DFMIN =0×2 n ;
[0019] Ideal Y-axis extreme median: Y DFNEU =2 n / 2;
[0020] Ideal Y-axis maximum value: Y DFMAX =1×2 n ;
[0021] Among them, 2 n is the resolution value, n is a natural number greater than or equal to 1;
[0022] The original extreme values of the plurality of pre-collected and stored target position coordinates are the extreme values of the median and limit positions obtained by performing initial sampling on the actual position of the joystick after the joystick is assembled, and are recorded as:
[0023] Original X-axis minimum value: X ADCMIN ; Original X-axis extreme median: X ADCNEU ; Original X-axis maximum value: X ADCMAX ;
[0024] Original Y-axis minimum value: Y ADCMIN ; Original Y-axis extreme median: Y ADCNEU ; Original Y axis maximum value: Y ADCMAX ;
[0025] The joystick is provided with a control handle capable of two-dimensional movement along the X-axis and the Y-axis. The control handle is rotated once for initial sampling to obtain a plurality of original extreme values of the pre-collected and stored target position coordinates.
[0026] Furthermore, the obtained multiple pre-collected original extreme values are stored in a memory. When multiple target positions need to be calibrated, the original extreme values of the multiple target position coordinates in the memory are transmitted to a calibrator, and the default ideal extreme values of the multiple target position coordinates are called. The calibrator obtains the multiple real-time target position coordinate values (X RT , Y RT ) for calibration; wherein the memory and the calibrator are arranged in the rocker, and the memory is electrically connected to the calibrator;
[0027] The specific calibration steps in the calibrator are as follows:
[0028] The ideal X-axis extreme median value, the original X-axis extreme median value, the ideal Y-axis extreme median value, and the original Y-axis extreme median value are used to automatically calibrate the real-time median position of the joystick, and the calibrated median coordinate value is obtained as follows:
[0029] X OUTNEU =X RT -(X ADCNEU -X DFNEU ),
[0030] Y OUTNEU =Y RT -(Y ADCNEU -Y DFNEU ).
[0031] The ideal X-axis minimum value, the ideal X-axis maximum value, the ideal Y-axis minimum value, the ideal Y-axis maximum value, the original X-axis minimum value, the original X-axis maximum value, the original Y-axis minimum value and the original Y-axis maximum value are used to automatically calibrate the real-time limit position of the joystick to obtain the calibrated limit position coordinate value (X OUT , Y OUT ):
[0032] X OUT :
[0033] When the X-axis real-time value X RT Less than the median dead zone X on the X axis DFNEU hour,
[0034]
[0035] When the X-axis real-time value X RT Greater than the median dead zone X on the X-axis DFNEU hour,
[0036]
[0037] Y OUT :
[0038] When the Y axis real-time value Y RT Less than the median dead zone Y on the Y axis DFNEU hour,
[0039]
[0040] When the Y axis real-time value Y RT Greater than the median dead zone Y on the Y axis DFNEU hour,
[0041]
[0042] Furthermore, in step S1, the specific method for obtaining the real-time median coordinate value is: when the entire joystick is in a stationary state, a certain voltage is applied to the joystick to obtain a real-time median voltage signal of the joystick, and then the obtained median voltage signal is converted into an analog-to-digital format to obtain a real-time median coordinate value represented by a digital signal;
[0043] The specific method for obtaining multiple real-time extreme position coordinate values is: applying a certain voltage to the joystick, rotating the control handle one circle, obtaining the real-time extreme position voltage signal of the joystick, and then performing analog-to-digital conversion on the obtained extreme position voltage signal to obtain the real-time extreme position coordinate value represented by a digital signal.
[0044] The present invention also provides a rocker calibration control device, comprising a real-time position acquisition module, a calibration module, a judgment module, a recalibration module and an output module;
[0045] The real-time position acquisition module is used to obtain multiple real-time target position coordinate values (X RT , Y RT );
[0046] The calibration module is used to extract a plurality of default ideal extreme values and a plurality of pre-collected and stored original extreme values of target position coordinates corresponding to the plurality of real-time target positions of the joystick, and automatically calibrate the acquired plurality of real-time target position coordinate values of the joystick to obtain the calibrated target position;
[0047] The judging module is used to judge whether the calibrated target position is within the allowable deviation range: if the calibrated target position is within the allowable deviation range, the calibration is terminated, the calibrated target position is output and transmitted to the user end; if the calibrated target position exceeds the allowable range, the rocker structure can be adjusted; wherein the rocker structure is the main structure of the rocker;
[0048] The recalibration module is used to resample and calibrate the multiple real-time target positions of the rocker after adjusting the rocker structure, until the rocker target position is within the allowable deviation range;
[0049] The output module is used to output the calibrated target position and transmit it to the user end.
[0050] Furthermore, a plurality of default ideal extreme values are the extreme values of the median dead zone and the extreme dead zone positions on the X-axis and the Y-axis, and are set as:
[0051] Ideal X-axis minimum value: X DFMIN =0×2 n ;
[0052] Ideal X-axis extreme median: X DFNEU =2 n / 2;
[0053] Ideal X-axis maximum value: X DFMAX =1×2 n ;
[0054] Ideal Y-axis minimum value: Y DFMIN =0×2 n ;
[0055] Ideal Y-axis extreme median: Y DFNEU =2 n / 2;
[0056] Ideal Y-axis maximum value: Y DFMAX =1×2 n ;
[0057] Among them, 2 n is the resolution value, n is a natural number greater than or equal to 1;
[0058] The multiple pre-collected and stored original extreme values are the extreme values of the median and limit positions obtained by performing initial sampling on the actual position of the joystick after the joystick is assembled, and are recorded as:
[0059] Original X-axis minimum value: X ADCMIN ; Original X-axis extreme median: X ADCNEU ; Original X-axis maximum value: X ADCMAX ;
[0060] Original Y-axis minimum value: Y ADCMIN ; Original Y-axis extreme median: Y ADCNEU ; Original Y axis maximum value: Y ADCMAX ;
[0061] The joystick is provided with a control handle that can move in the X-axis and Y-axis directions, and the control handle is rotated one circle for initial sampling to obtain the original extreme values of multiple pre-collected and stored target position coordinates;
[0062] The obtained multiple pre-collected original extreme values are stored in a memory. When multiple target positions need to be calibrated, the original extreme values of the multiple target position coordinates in the memory are transmitted to a calibrator, and the default ideal extreme values of the multiple target position coordinates are called. The calibrator obtains the multiple real-time target position coordinate values (X RT , Y RT ) for calibration; wherein the memory and the calibrator are arranged in the rocker, and the memory is electrically connected to the calibrator;
[0063] The specific calibration steps in the calibrator are as follows:
[0064] The ideal X-axis extreme median value, the original X-axis extreme median value, the ideal Y-axis extreme median value, and the original Y-axis extreme median value are used to automatically calibrate the real-time median position of the joystick, and the calibrated median coordinate value is obtained as follows:
[0065] X OUTNEU =X RT -(X ADCNEU -X DFNEU ),
[0066] Y OUTNEU =Y RT -(Y ADCNEU -Y DFNEU );
[0067] The ideal X-axis minimum value, the ideal X-axis maximum value, the ideal Y-axis minimum value, the ideal Y-axis maximum value, the original X-axis minimum value, the original X-axis maximum value, the original Y-axis minimum value and the original Y-axis maximum value are used to automatically calibrate the real-time limit position of the joystick to obtain the calibrated limit position coordinate value (X OUT , Y OUT ):
[0068] X OUT :
[0069] When the X-axis real-time value X RT Less than the median dead zone X on the X axis DFNEU hour,
[0070]
[0071] When the X-axis real-time value X RT Greater than the median dead zone X on the X-axis DFNEU hour,
[0072]
[0073] Y OUT :
[0074] When the Y axis real-time value Y RT Less than the median dead zone Y on the Y axis DFNEU hour,
[0075]
[0076] When the Y axis real-time value Y RT Greater than the median dead zone Y on the Y axis DFNEU hour,
[0077]
[0078] The present invention also provides a rocker calibration system, comprising a rocker structure, a circuit board, a magnetic sensor component and a rocker calibration control device;
[0079] The rocker structure is the main structure of the rocker;
[0080] The rocker structure is fixedly connected to the circuit board, and the magnetic sensor assembly and the rocker calibration control device are both fixedly arranged on the circuit board;
[0081] The magnetic sensing component is connected to the rocker structure by non-contact magnetic induction, and the magnetic sensing component is electrically connected to the rocker calibration control device.
[0082] Furthermore, the rocker structure includes a first magnet and a second magnet, the first magnet and the second magnet are circular radial magnets, and a section of the arc edge of the circular radial magnet is cut into a straight edge, the plane where the straight edge is located is perpendicular to the circular plane, and the center line of the straight edge is used as a dividing line, and the two sides of the circular radial magnet dividing line are N poles and S poles respectively;
[0083] The magnetic sensing assembly includes a first magnetic sensor and a second magnetic sensor, the arcuate surface of the first magnet is spaced opposite to the sensing surface of the first magnetic sensor, and the arcuate surface of the second magnet is spaced opposite to the sensing surface of the second magnetic sensor; or, the circular plane of the first magnet is spaced opposite to the sensing surface of the first magnetic sensor, and the circular plane of the second magnet is spaced opposite to the sensing surface of the second magnetic sensor.
[0084] The rocker calibration system of the present invention reduces the offset error of the target position caused by the installation of the first magnet and the second magnet as much as possible by cutting the first magnet and the second magnet, thereby improving the quality of the rocker from the perspective of the rocker structure. At the same time, the voltage signals output by the first magnetic sensor and the second magnetic sensor are calibrated through a rocker calibration control device to obtain a target position value with a smaller offset error, thereby further improving the quality of the rocker.
[0085] For better understanding and implementation, the present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0086] Figure 1 A schematic diagram of a joystick calibration system provided by an embodiment of the present invention;
[0087] Figure 2 A schematic diagram of the rocker structure provided by an embodiment of the present invention;
[0088] Figure 3 An exploded diagram of a rocker structure provided by an embodiment of the present invention;
[0089] Figure 4A schematic diagram of installing the first magnet or the second magnet provided in an embodiment of the present invention;
[0090] Figure 5 A schematic diagram of the installation of a magnetic sensing assembly, a joystick calibration control device and a circuit board provided in an embodiment of the present invention;
[0091] Figure 6 A bottom view of a circuit board provided in an embodiment of the present invention installed behind a rocker structure;
[0092] Figure 7 The magnetic field distribution diagram of the radially charged magnet after the full circle and cutting process provided by the embodiment of the present invention;
[0093] Figure 8 A diagram showing the relative positions of the first magnet or the second magnet and the first magnetic sensor or the second magnetic sensor provided in an embodiment of the present invention;
[0094] Fig. 9 A schematic diagram of the rotation of the first magnet or the second magnet provided in an embodiment of the present invention;
[0095] Fig.10 A sinusoidal distribution diagram of an induced signal when the first magnet or the second magnet provided in an embodiment of the present invention rotates 360°;
[0096] Fig.11 A distribution diagram of the induced signal when the rotation angle of the first magnet or the second magnet provided in the embodiment of the present invention is ±30°;
[0097] Fig.12 A diagram showing the relative positions of the first magnet or the second magnet and the first magnetic sensor or the second magnetic sensor provided in another embodiment of the present invention;
[0098] Fig.13 A schematic diagram of the rotation of the first magnet or the second magnet provided in another embodiment of the present invention;
[0099] Fig.14 A schematic diagram of a joystick calibration control device provided by an embodiment of the present invention;
[0100] Fig.15 A flow chart of a joystick calibration method provided in an embodiment of the present invention.
[0101] In the figure: 1-rocker structure; 11-base; 111-bottom plate; 111a-disc limiting groove; 112-first shaft seat; 112a-first shaft groove; 113-second shaft seat; 113a-second shaft groove; 12-sliding assembly; 121-first sliding member; 121a-first movable groove; 1211-first rotating shaft; 122-second sliding member; 122a-second movable groove; 1221-second rotating shaft; 13-operating assembly; 131-sliding rod; 132-sliding disc; 133-reset spring; 134-control handle; 14-magnet assembly; 14 1-first magnet; 142-second magnet; 143-first magnet seat; 143a-first magnet clamping hole; 144-second magnet seat; 144a-second magnet clamping hole; 145-first magnet protective cover; 146-second magnet protective cover; 1451-connecting pin; 15-housing; 2-circuit board; 2a-slot; 3-magnetic sensing assembly; 31-first magnetic sensor; 32-second magnetic sensor; 4-joystick calibration control device; 41-real-time position acquisition module; 42-calibration module; 43-judgment module; 44-recalibration module; 45-output module. DETAILED DESCRIPTION
[0102] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0103] In the description of the present invention, it should be noted that the terms "vertical direction", "up", "down", "horizontal", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, "first", "second", "third", and "fourth" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0104] In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection, it can be a mechanical connection, it can be an electrical connection, it can be a direct connection, it can be connected through an intermediate medium, and it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0105] The joystick is a pointing device widely used in games, drones, engineering equipment control and other fields. Users mainly control the position and movement of the cursor on the display screen by controlling the movement of the joystick's control handle. The sensitivity of the control handle during movement and the accuracy of the control handle corresponding to the display screen cursor position are the main criteria for evaluating the quality of the entire joystick system. The main methods to improve the accuracy of the control handle corresponding to the screen cursor position are: the first method is to design and optimize the joystick mechanical structure; the second method is to continuously calibrate multiple target positions of the joystick before leaving the factory, especially the calibration of the dead zone positions of the display screen. The deviation between the actual position and the ideal position of each dead zone should be minimized as much as possible, so that the joystick cursor can reach the edge to edge and corner to corner of the display screen, thereby improving the production yield of the joystick; at the same time, the user calibrates the target position in real time during use, so that the on-the-spot performance of the joystick control is always optimized to obtain a better user experience.
[0106] Based on this, the present invention proposes a rocker calibration method and device, and combines a rocker structure and a magnetic sensitive sensor component to form a rocker calibration system.
[0107] Please also see Figures 1 to 3 The rocker calibration system includes: a rocker structure 1, a circuit board 2, a magnetic sensor component 3 and a rocker calibration control device 4. The rocker structure 1 is the main structure of the rocker, the rocker structure 1 is fixedly connected to the circuit board 2, the magnetic sensor component 3 and the rocker calibration control device 4 are fixedly arranged on the circuit board 2, the magnetic sensor component 3 is connected to the rocker structure 1 by non-contact magnetic induction, and at the same time, the magnetic sensor component 3 is electrically connected to the rocker calibration control device 4.
[0108] Specifically, the rocker structure 1 includes a base 11, a sliding assembly 12, an operating assembly 13 and a magnet assembly 14. The sliding assembly 12 is provided with a rotating shaft, which can be rotatably arranged on the base 11, the operating assembly 13 can be slidably arranged in the sliding assembly 12, and the magnet assembly 14 is fixed on the rotating shaft so that the magnet assembly 14 rotates with the rotation of the rotating shaft.
[0109] In this embodiment, the base 11 includes a bottom plate 111, a first shaft seat 112 and a second shaft seat 113. There are two first shaft seats 112, one end of the two first shaft seats 112 is fixedly arranged on both sides of the bottom plate 111 respectively, and the other end is provided with a first shaft groove 112a, the first shaft groove 112a is open at one end away from the bottom plate 111 and its inner side wall is a circular arc, and the central axes of the two first shaft grooves 112a are parallel or coincident. There is at least one second shaft seat 113, one end of the second shaft seat 113 is fixedly arranged on a side of the bottom plate 111 where the first shaft seat 112 is not arranged, and the other end is provided with a second shaft groove 113a, the second shaft groove 113a is open at one end away from the bottom plate 111 and its inner side wall is a circular arc, and the central axis of the second shaft groove 113a is orthogonal to the central axis of the first shaft groove 112a. In another embodiment, the first shaft groove 112a and the second shaft groove 113a are a circular hole.
[0110] The sliding assembly 12 includes a first sliding member 121 and a second sliding member 122. The first sliding member 121 is provided with a first movable groove 121a, and the first sliding member 121 is provided with a first rotating shaft 1211 at both ends of the length direction of the first movable groove 121a, respectively. The first rotating shaft 1211 is clamped in the first shaft groove 112a so that the first rotating shaft 1211 can rotate around the central axis of the first shaft groove 112a. The second sliding member 122 is provided with a second movable groove 122a, and the second sliding member 122 is provided with a second rotating shaft 1221 at one end of the length direction of the second movable groove 122a, and the second rotating shaft 1221 is clamped in the second shaft groove 113a so that the second rotating shaft 1221 can rotate around the central axis of the second shaft groove 113a.
[0111] The operating assembly 13 includes a sliding rod 131, a sliding disc 132, a return spring 133 and a control handle 134. The sliding disc 132 is fixedly arranged at one end of the sliding rod 131, and a disc limiting groove 111a is arranged on the bottom plate 111. The inner diameter of the disc limiting groove 111a is equal to or greater than the outer diameter of the sliding disc 132. The disc limiting groove 111a supports the operating assembly 13 and movably sets the sliding disc 132 in the disc limiting groove 111a; the return spring 133 is sleeved on the sliding rod 131 from one end of the sliding rod 131 away from the sliding disc 132, and the control handle 134 is a hollow structure with an opening at one end, and the open end of the control handle 134 is sleeved outside the sliding rod 131 from one end of the sliding rod 131 away from the sliding disc 132. At the same time, the control handle 134 is inserted into the first movable groove 121 a and the second movable groove 122 a , and one end of the control handle 134 away from the sliding disc 132 is exposed to the outside, so that the user can grasp and operate it easily. In addition, an opening is provided on both sides of the second sliding member 122 along a direction perpendicular to the second rotating axis 1221, and the two openings are arranged in parallel and opposite to each other. Two connecting columns are provided on the side wall of the control handle 134, and the size and position of the two connecting columns match the two openings. The ends of the two connecting columns away from the control handle 134 are inserted into the openings to rotatably connect the control handle 134 with the second sliding member 122 through the two connecting columns. As a result, the control handle 134 can swing freely along the first movable groove 121a and the second movable groove 122a. After the swinging stops, when the control handle 134 is in an inclined state, due to the elastic force of the return spring 133, the sliding rod 131 is driven to extend and retract in and out of the inner cavity of the control handle 134, so that the sliding disk 132 at the bottom of the sliding rod 131 maintains tangential elastic contact with the disk limit groove 111a, so that the control handle 134 can automatically restore to a vertical state.
[0112] The magnet assembly 14 includes a first magnet 141 and a second magnet 142, and the first magnet 141 and the second magnet 142 are both permanent magnets. In the present embodiment, the first magnet 141 and the second magnet 142 are both one, and the first magnet 141 is fixedly arranged at one end of the first sliding member 121 provided with a first rotating shaft 1211, so that the first rotating shaft 1211 rotates and drives the first magnet 141 to rotate. The second magnet 142 is fixedly arranged at one end of the second sliding member 122 provided with a second rotating shaft 1221, so that the second rotating shaft 1221 rotates and drives the second rotating shaft 1221 to rotate. In other embodiments, the first magnet 141 and the second magnet 142 are both two or any combination of one and two.
[0113] In order to better fix the first magnet 141 and the second magnet 142, in the present embodiment, a first magnet seat 143 is provided at one end of one of the first rotating shafts 1211 away from the center of the first sliding member, a first magnet clamping hole 143a matching the first magnet 141 is opened on the first magnet seat 143, and the first magnet 141 is fixed in the first magnet clamping hole 143a; a second magnet seat 144 is provided at one end of the second rotating shaft 1221 away from the center of the second sliding member 122, a second magnet clamping hole 144a matching the second magnet 142 is opened on the second magnet seat 144, and the second magnet 142 is fixed in the second magnet clamping hole 144a.
[0114] See also Figure 4 As a further embodiment, the inner walls of the first magnet clamping hole 143a and the second magnet clamping hole 144a are provided with a plurality of splines, and the peripheries of the first magnet 141 and the second magnet 142 are provided with grooves that are clamped with the splines. When the first magnet 141 and the second magnet 142 are pressed into the first magnet clamping hole 143a and the second magnet clamping hole 144a respectively, the splines are tightly clamped with the first magnet 141 and the second magnet 142. The first magnet seat 143 and the second magnet seat 144 can also be made of elastic material, and use its elasticity to form an interference fit with the first magnet 141 and the second magnet 142, so that the first magnet 141 and the second magnet 142 are accurately and firmly pressed into the first magnet clamping hole 143a and the second magnet clamping hole 144a. By clamping the first magnet 141 and the second magnet 142 in the first magnet clamping hole 143a and the second magnet clamping hole 144a in these ways, it is convenient for the subsequent maintenance and replacement of the first magnet 141 and the second magnet 142. In another embodiment, a suitable adhesive may be applied to the first magnet clamping hole 143a and the second magnet clamping hole 144a at the joints with the first magnet 141 and the second magnet 142 to further ensure that the first magnet 141 and the second magnet 142 will not fall off even when subjected to a large external force. The shape of the first magnet 141 and the second magnet 142 may be square, circular, oval or any other shape. In this embodiment, a circular shape is used. The circular plane of the first magnet 141 is perpendicular to the axial direction of the first rotating shaft 1211, and the circular plane of the second magnet 142 is perpendicular to the axial direction of the second rotating shaft 1221.
[0115] Furthermore, in order to protect the base 11, the sliding assembly 12, the operating assembly 13 and the magnet assembly 14 and fix the components into a whole, the rocker structure 1 also includes a shell 15. The base 11, the sliding assembly 12, the operating assembly 13 and the magnet assembly 14 are arranged in the shell 15. A plurality of grooves are arranged at the edge of the base 11, and the shell 15 is provided with a plurality of protrusions matching the grooves. When the sliding assembly 12, the operating assembly 13 and the magnet assembly 14 are assembled and installed on the base 11, the plurality of protrusions are fixed in the corresponding grooves, so that the assembled installation between the base 11, the sliding assembly 12, the operating assembly 13, the magnet assembly 14 and the shell 15 is realized.
[0116] Furthermore, in order to facilitate the installation or maintenance of the first magnet 141 and the second magnet 142, and to electrically connect the sliding assembly 12, a plurality of openings are provided on the side of the housing 15. While facilitating the installation or maintenance of the first magnet 141 and the second magnet 142, in order to protect the first magnet 141 and the second magnet 142, a first magnet cover 145 and a second magnet cover 146 are provided at the openings opposite to the first magnet 141 and the second magnet 142. A magnet stopper groove matching the first magnet 141 and the second magnet 142 is provided on one side of the first magnet cover 145 and the second magnet cover 146, and during installation, the first magnet 141 and the second magnet 142 are snapped into the magnet stopper groove. At the same time, in order to further strengthen the stability of the connection between the first magnet cover 145 and the second magnet cover 146 and the housing 15, a plurality of barbs are provided on the first magnet cover 145 and the second magnet cover 146, one end of the barbs is fixed to the side of the first magnet cover 145 and the second magnet cover 146, and the other end protrudes from one side of the magnet limiting groove. The housing 15 is provided with a notch matching the barbs. When installing, the first magnet 141 and the second magnet 142 are snapped into the magnet limiting groove, and the barbs are inserted into the matching notches. The first magnet cover 145 and the second magnet cover 146 are fixedly connected to the first magnet 141, the second magnet 142 and the housing 15 by these snap connections, which facilitates the subsequent maintenance or replacement of the first magnet 141 and the second magnet 142.
[0117] Please also see Figure 3 , Figure 5 and Figure 6 The circuit board 2 is fixedly arranged on a side of the bottom plate 111 away from the disc limiting groove 111a. Specifically, the circuit board 2 is provided with a plurality of through holes, and the bottom plate 111 is provided with a plurality of columns matching the through holes. In the installed state, the columns are inserted into the through holes.
[0118] Furthermore, a plurality of connecting pins 1451 are provided at one end of the first magnet cover 145 and the second magnet cover 146 close to the circuit board 2, and the connecting pins 1451 are perpendicular to the plane of the circuit board 2. A plurality of positioning slots 2a are provided on the side of the circuit board 2 opposite to the connecting pins 1451, and when the first magnet cover 145 and the second magnet cover 146 are installed, the plurality of connecting pins 1451 are inserted into the positioning slots 2a to achieve electrical connection between the connecting pins 1451 and the circuit board 2.
[0119] See also Figure 5 The magnetic sensor assembly 3 includes a first magnetic sensor 31 and a second magnetic sensor 32. The first magnetic sensor 31 and the second magnetic sensor 32 are fixedly arranged on a side of the circuit board 2 opposite to the bottom plate 111, and a gap is set between the first magnetic sensor 31 and the first magnet 141, and a gap is set between the second magnetic sensor 32 and the second magnet 142.
[0120] See also Figure 7 In this embodiment, the first magnet 141 and the second magnet 142 are radial magnet blocks. When the radial magnet block is a perfect circle, half of the perfect circle radial magnet block is an S pole and the other half is an N pole. The zero magnetic point is where the S pole and the N pole meet, i.e., the middle of the perfect circle. When the zero magnetic point of the radial magnet block is directly opposite to the center point of the first magnetic sensor 31 and the second magnetic sensor 32, it is exactly the middle position of the rocker. However, when actually installed on the first magnet seat 143 and the second magnet seat 144, they must be accurately installed in the correct position to obtain an accurate middle position signal. During the production process, a slight deflection of the radial magnet block will lead to a rocker middle position output error. Assuming that the offset error is 3°, the swing angle between the control handle 134 and the center line in the length direction of the first active slot 121a and the second active slot 122a is 30°, then the 3° offset error will lead to a rocker middle position output value (3° / 60°×%)=5% of the middle position error. Therefore, in order to minimize the offset error caused by installation, in this embodiment, before magnetizing the radial magnet block, the radial magnet block is cut. Specifically, a section of the arc edge of the radial magnet block is cut into a straight edge, the plane where the straight edge is located is perpendicular to the circular plane, and the center line of the straight edge is used as a dividing line, and radial magnetization is performed on both sides of the dividing line, and the two sides of the radial magnetizing magnet dividing line are respectively N pole and S pole. Correspondingly, the shape design of the first magnet clamping hole 143a and the second magnet clamping hole 144a matches the formation of the first magnet 141 and the second magnet 142 after cutting, which is helpful for the accurate positioning of the magnet. Preferably, cutting is performed at 2 / 3 to 3 / 4 of the circular magnet block to be magnetized, which not only ensures the accurate positioning of the magnet, but also ensures that the first magnet 141 and the second magnet 142 can obtain sufficient magnetic field strength, so that the first magnetic sensor 31 and the second magnetic sensor 32 can more easily sense the change of magnetic field strength.
[0121] See also Figure 8 The arc surface of the first magnet 141 faces the sensing surface of the first magnetic sensor 31, and the arc surface of the second magnet 142 faces the sensing surface of the second magnetic sensor 32. The first magnetic sensor 31 and the second magnetic sensor 32 are preferably linear Hall sensors, which output continuous signals as the magnetic field strength changes when the radial magnets are in motion.
[0122] Please also see Figures 9 to 11 The sliding of the control handle 134 links the first magnet 141 and the second magnet 142 to make an approximately circular motion, generating a change in the magnetic field strength, so that the first magnetic sensor 31 and the second magnetic sensor 32 generate an induction signal, and the induction signal is sinusoidally distributed as the rotation angle of the first magnet 141 and the second magnet 142 changes. Since in the actual production of the rocker, the angle between the control handle 134 and the center line in the length direction of the first active groove 121a and the second active groove 122a is generally not more than 30°, therefore, the actual swing range of the control handle 134 is ±30°, the rotation angle range of the first magnet 141 and the second magnet 142 is ±30°, and the output signal should be an output signal within the range of 60° centered on the sine wave, from Fig.11 It can be seen that the first magnetic sensor 31 and the second magnetic sensor 32 generate the best straight line output signal within the range of 60° centered on the sine wave. It can be seen that this design can obtain good linear smoothness and an effective electrical signal with maximum amplitude.
[0123] Please also see Fig.12 and Fig.13 In another embodiment, the first magnet 141 is arranged with a gap between it and the first magnetic sensor 31, and the circular plane of the first magnet 141 faces the sensing surface of the first magnetic sensor 31, and the second magnet 142 is arranged with a gap between it and the second magnetic sensor 32, and the circular plane of the second magnet 142 faces the sensing surface of the second magnetic sensor 32. It can be understood that this distribution arrangement will also cause the sliding of the control handle 134 to link the first magnet 141 and the second magnet 142 to make an approximately circular motion, so that the sensing signals generated by the first magnetic sensor 31 and the second magnetic sensor 32 have similar characteristics to those of the present embodiment.
[0124] See also Fig.14 and Fig.15 The joystick calibration control device 4 includes a real-time position acquisition module 41, a calibration module 42, a judgment module 43, a recalibration module 44 and an output module 45.
[0125] The real-time position acquisition module 41 is used to execute step S1: obtain multiple real-time target position coordinate values (X RT , Y RT ).
[0126] Specifically, the multiple real-time target positions include a middle position and multiple extreme positions. Assuming that the length direction of the first movable slot 121a is the X-axis direction, and the length direction of the second movable slot 122a is the Y-axis direction, correspondingly, when the control handle 134 swings along the X-axis direction, the cursor movement direction on the corresponding display screen is the X-axis direction, and when the control handle 134 swings along the Y-axis direction, the cursor movement direction on the corresponding display screen is the Y-axis direction. The middle position is the middle dead zone on the display screen corresponding to the joystick, and the extreme positions are the extreme position dead zones in the X-axis direction and the Y-axis direction on the display screen corresponding to the joystick.
[0127] The specific method for obtaining the real-time median coordinate value is as follows: when the entire joystick is in a stationary state, a certain voltage is applied to the first magnetic sensor 31 and the second magnetic sensor 32, the first magnetic sensor 31 and the second magnetic sensor 32 are electrically connected to the analog-to-digital converter, the analog-to-digital converter obtains the median voltage signal of the joystick in the stationary state, and converts the obtained median voltage signal into a digital signal, thereby obtaining the real-time median coordinate value represented by the digital signal;
[0128] The specific method for obtaining multiple real-time extreme position coordinate values is: applying a certain voltage to the first magnetic sensor 31 and the second magnetic sensor 32, and rotating the control handle 134 one circle, the first magnetic sensor 31 and the second magnetic sensor 32 are electrically connected to the analog-to-digital converter, the analog-to-digital converter obtains multiple real-time extreme position voltage signals of the joystick, and converts the obtained extreme position voltage signals into digital signals, thereby obtaining multiple real-time extreme position coordinate values represented by digital signals.
[0129] Wherein, the analog-to-digital converter is arranged in the rocker calibration control device 4 .
[0130] The calibration module 42 is used to execute step S2: extract multiple default ideal extreme values corresponding to the multiple real-time target positions of the joystick and the pre-collected and stored original extreme values of the target position coordinates, automatically calibrate the acquired multiple real-time target position coordinate values of the joystick, and obtain the calibrated target position.
[0131] Specifically, a plurality of default ideal extreme values are the extreme values of the median dead zone and the extreme dead zone positions on the X-axis and the Y-axis, which are set as:
[0132] Ideal X-axis minimum value: X DFMIN =0×2 n ;
[0133] Ideal X-axis extreme median: X DFNEU =2 n / 2;
[0134] Ideal X-axis maximum value: X DFMAX=1×2 n ;
[0135] Ideal Y-axis minimum value: Y DFMIN =0×2 n ;
[0136] Ideal Y-axis extreme median: Y DFNEU =2 n / 2;
[0137] Ideal Y-axis maximum value: Y DFMAX =1×2 n ;
[0138] Among them, 2 n is the resolution value, n is a natural number greater than or equal to 1;
[0139] The multiple pre-collected and stored original extreme values are the extreme values of the median and limit positions obtained by performing initial sampling on the actual position of the rocker after the rocker structure 1, the circuit board 2 and the magnetic sensor assembly 3 are assembled, and are recorded as:
[0140] Original X-axis minimum value: X ADCMIN ; Original X-axis extreme median: X ADCNEU ; Original X-axis maximum value: X ADCMAX ;
[0141] Original Y-axis minimum value: Y ADCMIN ; Original Y-axis extreme median: Y ADCNEU ; Original Y axis maximum value: Y ADCMAX ;
[0142] The joystick is provided with a control handle 134 that can freely move in two dimensions along the X-axis and the Y-axis. The control handle 134 is rotated once for initial sampling to obtain a plurality of original extreme values.
[0143] The above multiple pre-collected original extreme values are stored in a memory. When multiple target positions need to be calibrated, the original extreme values of the multiple target position coordinates in the memory are transmitted to the calibrator, and the default ideal extreme values of the multiple target position coordinates are called. The calibrator performs calibration on the multiple real-time target position coordinate values (X RT , Y RT ) for calibration; wherein, the memory and the calibrator are arranged in the rocker calibration control device 4, and the memory is electrically connected to the calibrator.
[0144] The specific calibration steps in the calibrator are as follows:
[0145] First, the real-time median position of the joystick is automatically calibrated using the default ideal X-axis median value, the original X-axis median value, the ideal Y-axis median value, and the original Y-axis median value, and the calibrated median coordinate value is obtained as follows:
[0146] X OUTNEU =X RT -(X ADCNEU -X DFNEU ),
[0147] Y OUTNEU =Y RT -(Y ADCNEU -Y DFNEU ).
[0148] At the same time, the ideal X-axis minimum value, the ideal X-axis maximum value, the ideal Y-axis minimum value, the ideal Y-axis maximum value, the original X-axis minimum value, the original X-axis maximum value, the original Y-axis minimum value and the original Y-axis maximum value are used to automatically calibrate the real-time limit position of the joystick to obtain the calibrated limit position coordinate value (X OUT , Y OUT ):
[0149] X OUT :
[0150] When the X-axis real-time value X RT Less than the median dead zone X on the X axis DFNEU hour,
[0151]
[0152] When the X-axis real-time value X RT Greater than the median dead zone X on the X-axis DFNEU hour,
[0153]
[0154] Y OUT :
[0155] When the Y axis real-time value Y RT Less than the median dead zone Y on the Y axis DFNEU hour,
[0156]
[0157] When the Y axis real-time value Y RT Greater than the median dead zone Y on the Y axis DFNEU hour,
[0158]
[0159] The judgment module 43 is used to execute step S3: judge whether the calibrated target position is within the allowable range: if the calibrated target position is within the allowable range, the calibration is terminated, the calibrated target position is output and transmitted to the user end; if the calibrated target position exceeds the allowable range, the rocker structure is adjusted.
[0160] Specifically, in this embodiment, a judge is provided in the rocker calibration control device 4, and the judge has a maximum deviation value pre-stored. The target position value after calibration in step S2 is transmitted to the judge, and the deviation value of the calibrated target position value is compared with the maximum deviation value pre-stored in the judge. If the calibrated target position value is within the maximum deviation value range, it means that the deviation of the rocker within the range is within the acceptable range for the user, and the rocker structure 1 does not need to be adjusted, and the calibration is terminated at the same time. If the calibrated target position value is greater than the maximum deviation value range, it means that the cursor displacement deviation of the display screen corresponding to the rocker is large, which will affect the normal use of the user. At this time, it is necessary to adjust the various components of the rocker structure 1, especially the installation position adjustment of the first magnet 141 and the second magnet 142, and the magnetic strength test. The judge can be electrically connected to an alarm, and the alarm is used to remind the calibration personnel whether the calibrated target position value is within the allowable deviation range. If so, no alarm is issued, and if not, an alarm is issued to remind the calibration personnel to perform further calibration. The alarm is set in the rocker calibration control device 4.
[0161] In another embodiment, the calibrated target position value can also be directly transmitted to the host computer at the user end. At this time, the display screen of the host computer is in the calibration interface and displays the calibrated target position value, which is convenient for the user to calibrate in subsequent use. Among them, the digital signal obtained by the rocker calibration control device 4 can be directly output to the host computer at the user end, or the digital signal can be converted into a voltage signal through a digital-to-analog converter and output to the host computer. The digital-to-analog converter is arranged in the rocker calibration control device 4.
[0162] The recalibration module 44 is used to execute step S4: after adjusting the rocker structure, re-sample and recalibrate the multiple real-time target positions of the rocker until the rocker target position is within the allowable range.
[0163] After adjusting the rocker structure 1, the multiple real-time target positions of the rocker are sampled and calibrated again, and the deviation range of the recalibrated target position value is judged in the judger until the rocker target position value is within the allowable deviation range.
[0164] The output module 45 is used to execute step S5: output the calibrated target position value and transmit it to the user end.
[0165] The output calibrated target position value can be a coordinate value within the allowable deviation range, or a coordinate value outside the allowable deviation range, depending on user needs. The user can further process and process the output calibrated target position value in the processor so that the display screen can obtain a better display effect and thus a better user experience.
[0166] It is understandable that before leaving the factory, process personnel can use the joystick calibration method of the present application to calibrate and correct the target position to obtain the smallest target position deviation as much as possible, and ensure the yield and overall quality of the joystick when leaving the factory; after leaving the factory, the user can calibrate the target position at any time as needed during use, especially when the electronic device equipped with the joystick is subjected to a large external force causing a large deviation in the target position of the cursor on the display screen, the user can first calibrate the joystick, or the user can calibrate the calibrated target position transmitted to the processor using a user-set program to obtain a display effect within the allowable deviation range of the display screen.
[0167] Compared with the prior art, the joystick calibration method described in the present invention can calibrate the target position of the joystick in real time, and judge whether the real-time target position of the joystick is within the allowable deviation range based on the calibrated target position, and decide whether to adjust the joystick structure 1 based on the judgment result to obtain a target position with a smaller deviation, thereby solving the problem of low joystick yield caused by excessive target position deviation, thereby improving the overall quality of the joystick and enhancing the user experience.
[0168] Based on the same inventive concept, the present application also provides an electronic device, which may be a terminal device such as a server, a desktop computing device or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). The device includes one or more processors and a memory, wherein the processor is used to execute a program to implement the joystick calibration method of an embodiment of the present invention; and the memory is used to store a computer program executable by the processor.
[0169] Based on the same inventive concept, the present application also provides a computer-readable storage medium, corresponding to the embodiments of the aforementioned joystick calibration method, wherein the computer-readable storage medium stores a computer program thereon, and when the program is executed by a processor, the steps of the joystick calibration method recorded in any of the aforementioned embodiments are implemented.
[0170] The present application may take the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program code. Computer-usable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be achieved by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
[0171] The above-mentioned embodiments only express several implementation methods of the present invention, and the description is relatively specific and detailed, but it cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, and the present invention is also intended to include these modifications and modifications.
Claims
1. A joystick calibration method, Features: Includes the following step: S1: Get the coordinate values of multiple real-time target positions of the joystick (X RT , Y RT ); S2: extracting a plurality of default ideal extreme values and a plurality of pre-collected and stored original extreme values of target position coordinates corresponding to the plurality of real-time target positions of the joystick, and automatically calibrating the acquired plurality of real-time target position coordinate values of the joystick to obtain a calibrated target position; S3: Determine whether the calibrated target position is within the allowable deviation range: if the calibrated target position is within the allowable deviation range, then end the calibration, output the calibrated target position and transmit it to the user end; if the calibrated target position is still beyond the allowable range, then adjust the rocker structure; wherein the rocker structure is the main structure of the rocker; S4: after adjusting the rocker structure, re-sampling and calibrating the multiple real-time target positions of the rocker until the rocker target position is within the allowable deviation range; S5: Output the calibrated target position and transmit it to the user end; In step S2, a plurality of default ideal extreme values are the extreme values of the median dead zone and the extreme position dead zones on the X-axis and the Y-axis, and are set as: Ideal X-axis minimum value: X DFMIN =0×2 n ; Ideal X-axis extreme median: X DFNEU =2 n / 2; Ideal X-axis maximum value: X DFMAX =1×2 n ; Ideal Y-axis minimum value: Y DFMIN =0×2 n ; Ideal Y-axis extreme median: Y DFNEU =2 n / 2; Ideal Y-axis maximum value: Y DFMAX =1×2 n ; Among them, 2 n is the resolution value, n is a natural number greater than or equal to 1; The original extreme values of the plurality of pre-collected and stored target position coordinates are the extreme values of the median and limit positions obtained by performing initial sampling on the actual position of the joystick after the joystick is assembled, and are recorded as: Original X-axis minimum value: X ADCMIN ; Original X-axis extreme median: X ADCNEU ; Original X-axis maximum value: X ADCMAX ; Original Y-axis minimum value: Y ADCMIN ; Original Y-axis extreme median: Y ADCNEU ; Original Y axis maximum value: Y ADCMAX ; The joystick is provided with a control handle capable of two-dimensional movement along the X-axis and the Y-axis, and the control handle is rotated once for initial sampling to obtain the original extreme values of the target position coordinates that are pre-collected and stored; The obtained multiple pre-collected original extreme values are stored in a memory. When multiple target positions need to be calibrated, the original extreme values of the multiple target position coordinates in the memory are transmitted to a calibrator, and the default ideal extreme values of the multiple target position coordinates are called. The calibrator performs calibration on the multiple real-time target position coordinate values (X RT , Y RT ) for calibration; wherein the memory and the calibrator are arranged in the rocker, and the memory is electrically connected to the calibrator; The specific calibration steps in the calibrator are as follows: The ideal X-axis extreme median value, the ideal Y-axis extreme median value, and the original Y-axis extreme median value are used to automatically calibrate the real-time median position of the joystick, and the median coordinate value after calibration is obtained as follows: X OUTNEU =X RT -(X ADCNEU -X DFNEU ), AND OUTNEU =And RT -(AND ADCNEU -AND DFNEU ); The ideal X-axis minimum value, the ideal X-axis maximum value, the ideal Y-axis minimum value, the ideal Y-axis maximum value, the original X-axis minimum value, the original X-axis maximum value, the original Y-axis minimum value and the original Y-axis maximum value are used to automatically calibrate the real-time limit position of the joystick to obtain the calibrated limit position coordinate value (X OUT , Y OUT ): X OUT : When the X-axis real-time value X RT Less than the median dead zone X on the X axis DFNEU hour, When the X-axis real-time value X RT Greater than the median dead zone X on the X-axis DFNEU hour, Y OUT : When the Y axis real-time value Y RT Less than the median dead zone Y on the Y axis DFNEU hour, When the Y axis real-time value Y RT Greater than the median dead zone Y on the Y axis DFNEU hour, 2. The rocker calibration method according to claim 1, Features: In step S1, the real-time target position includes a middle position and multiple extreme positions, the middle position is the middle dead zone on the display screen corresponding to the joystick, and the extreme positions are the extreme position dead zones in the X-axis direction and the Y-axis direction on the display screen corresponding to the joystick.
3. The rocker calibration method according to claim 2, Features: In step S1, the specific method for obtaining the real-time median coordinate value is: when the entire joystick is in a stationary state, a certain voltage is applied to the joystick to obtain a real-time median voltage signal of the joystick, and then the obtained median voltage signal is converted into an analog-to-digital format to obtain a real-time median coordinate value represented by a digital signal; The specific method for obtaining multiple real-time extreme position coordinate values is: applying a certain voltage to the joystick, rotating the control handle one circle, obtaining the real-time extreme position voltage signal of the joystick, and then performing analog-to-digital conversion on the obtained extreme position voltage signal to obtain the real-time extreme position coordinate value represented by a digital signal.
4. A joystick calibration control device, Features: It includes a real-time position acquisition module, a calibration module, a judgment module, a recalibration module and an output module; The real-time position acquisition module is used to obtain multiple real-time target position coordinate values (X RT , Y RT ); The calibration module is used to extract a plurality of default ideal extreme values and a plurality of pre-collected and stored original extreme values of target position coordinates corresponding to the plurality of real-time target positions of the joystick, and automatically calibrate the acquired plurality of real-time target position coordinate values of the joystick to obtain the calibrated target position; The judging module is used to judge whether the calibrated target position is within the allowable deviation range: if the calibrated target position is within the allowable deviation range, the calibration is terminated, the calibrated target position is output and transmitted to the user end; if the calibrated target position exceeds the allowable range, the rocker structure can be adjusted; wherein the rocker structure is the main structure of the rocker; The recalibration module is used to resample and calibrate the multiple real-time target positions of the rocker after adjusting the rocker structure, until the rocker target position is within the allowable deviation range; The output module is used to output the calibrated target position and transmit it to the user end; Multiple default ideal extremes are the extremes of the median dead zone and the extreme dead zone positions on the X-axis and Y-axis, set as: Ideal X-axis minimum value: X DFMIN =0×2 n ; Ideal X-axis extreme median: X DFNEU =2 n / 2; Ideal X-axis maximum value: X DFMAX =1×2 n ; Ideal Y-axis minimum value: Y DFMIN =0×2 n ; Ideal Y-axis extreme median: Y DFNEU =2 n / 2; Ideal Y-axis maximum value: Y DFMAX =1×2 n ; Among them, 2 n is the resolution value, n is a natural number greater than or equal to 1; The multiple pre-collected and stored original extreme values are the extreme values of the median and limit positions obtained by performing initial sampling on the actual position of the joystick after the joystick is assembled, and are recorded as: Original X-axis minimum value: X ADCMIN ; Original X-axis extreme median: X ADCNEU ; Original X-axis maximum value: X ADCMAX ; Original Y-axis minimum value: Y ADCMIN ; Original Y-axis extreme median: Y ADCNEU ; Original Y axis maximum value: Y ADCMAX ; The joystick is provided with a control handle that can move in the X-axis and Y-axis directions, and the control handle is rotated one circle for initial sampling to obtain the original extreme values of multiple pre-collected and stored target position coordinates; The obtained multiple pre-collected original extreme values are stored in a memory. When multiple target positions need to be calibrated, the original extreme values of the multiple target position coordinates in the memory are transmitted to a calibrator, and the default ideal extreme values of the multiple target position coordinates are called. The calibrator obtains the multiple real-time target position coordinate values (X RT , Y RT ) for calibration; wherein the memory and the calibrator are arranged in the rocker, and the memory is electrically connected to the calibrator; The specific calibration steps in the calibrator are as follows: The real-time median position of the joystick is automatically calibrated using the default ideal X-axis median value, the original X-axis median value, the ideal Y-axis median value, and the original Y-axis median value, and the calibrated median coordinate value is obtained as follows: X OUTNEU =X RT -(X ADCNEU -X DFNEU ), AND OUTNEU =And RT -(AND ADCNEU -AND DFNEU ); The ideal X-axis minimum value, the ideal X-axis maximum value, the ideal Y-axis minimum value, the ideal Y-axis maximum value, the original X-axis minimum value, the original X-axis maximum value, the original Y-axis minimum value and the original Y-axis maximum value are used to automatically calibrate the real-time limit position of the joystick to obtain the calibrated limit position coordinate value (X OUT , Y OUT ): X OUT : When the X-axis real-time value X RT Less than the median dead zone X on the X axis DFNEU hour, When the X-axis real-time value X RT Greater than the median dead zone X on the X-axis DFNEU hour, Y OUT : When the Y axis real-time value Y RT Less than the median dead zone Y on the Y axis DFNEU hour, When the Y axis real-time value Y RT Greater than the median dead zone Y on the Y axis DFNEU hour, 5. A joystick calibration system, used to implement a joystick calibration method according to any one of claims 1 to 3, Features: It includes a rocker structure, a circuit board, a magnetic sensor component and a rocker calibration control device; The rocker structure is the main structure of the rocker; The rocker structure is fixedly connected to the circuit board, and the magnetic sensor assembly and the rocker calibration control device are both fixedly arranged on the circuit board; The magnetic sensing component is connected to the rocker structure by non-contact magnetic induction, and the magnetic sensing component is electrically connected to the rocker calibration control device; The rocker structure comprises a first magnet and a second magnet, wherein the first magnet and the second magnet are circular radial magnets, and a section of the arc edge of the circular radial magnet is cut into a straight edge, the plane where the straight edge is located is perpendicular to the circular plane, and the center line of the straight edge is used as a dividing line, and the two sides of the circular radial magnet dividing line are N poles and S poles respectively; The magnetic sensing assembly includes a first magnetic sensor and a second magnetic sensor, the arcuate surface of the first magnet is spaced opposite to the sensing surface of the first magnetic sensor, and the arcuate surface of the second magnet is spaced opposite to the sensing surface of the second magnetic sensor; or, the circular plane of the first magnet is spaced opposite to the sensing surface of the first magnetic sensor, and the circular plane of the second magnet is spaced opposite to the sensing surface of the second magnetic sensor.
