Rocker device and electronic equipment
By setting up plates in the rocker device to form a capacitor, and using the change in capacitance value to detect the rotation direction and angle of the rocker, the problem of low rocker accuracy is solved, and higher measurement accuracy is achieved.
Patent Information
- Application Number
- CN202423120606.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-11-14
- Estimated Expiration
- 2034-12-17
AI Technical Summary
The existing joystick device has low angle measurement accuracy, which cannot meet users' demand for high accuracy. The sensor detection is also subject to external interference and wear.
A target capacitor is formed by setting a first plate and a second plate in a rocker device. The area of the plates changes by rotating the rocker, and the processor obtains the capacitance value to determine the direction and angle of rotation.
The accuracy of angle measurement of the joystick device has been improved. The rotation direction and angle of the joystick are accurately determined by capacitive detection, avoiding external interference and wear problems of the sensor.
Smart Images

Figure CN223552044U_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of angle measurement technology, and in particular to a rocker arm device and electronic device. Background Technology
[0002] Currently, joysticks are widely used in medical devices, drone controllers, and game controllers. For example, they are used for position control in medical devices, orientation control in drone controllers, and position control in game controllers. At present, higher requirements are also being placed on the accuracy of joystick rotation angle measurement.
[0003] In related technologies, the rotation angle of the joystick is mainly detected by sensors, such as Hall effect sensors and carbon film sensors. Hall effect sensors are susceptible to external magnetic interference and have a non-linear relationship between signal and distance. Carbon film sensors suffer from contact wear and low detection accuracy. Therefore, the technical solution of measuring the joystick angle through sensor detection has low accuracy and cannot meet users' increasingly higher demands for the precision of joystick angle measurement. Utility Model Content
[0004] The purpose of this application is to provide a joystick device and electronic device, thereby improving the accuracy of the joystick device angle measurement.
[0005] To address the aforementioned technical problems, embodiments of this application provide a rocker arm device, comprising: a rocker arm, a rocker structure, a processor, and a circuit board. The rocker structure is disposed on the circuit board, and one end of the rocker arm is connected to the rocker structure. The rocker structure has multiple rotating shafts, and at least one of the rotating shafts has a rotating portion disposed along a direction close to the circuit board. A bracket corresponding to each rotating portion is disposed on a first surface of the circuit board near the rocker structure. A groove is formed at the end of the bracket away from the circuit board, and the corresponding rotating shaft is disposed in the groove. A first electrode plate is disposed on the surface of the rotating portion near the bracket, and a second electrode plate is disposed on the surface of the bracket near the first electrode plate, opposite to the first electrode plate. The processor is connected to the circuit board. When the first electrode plate rotates with the rocker arm, the relative area of the first electrode plate and the second electrode plate changes. The first electrode plate and the second electrode plate form a target capacitor. The processor is used to obtain the capacitance value of the target capacitor and determine the rotation direction and angle of the rocker arm based on the capacitance value.
[0006] Embodiments of this application also provide an electronic device, including the aforementioned joystick device.
[0007] In some embodiments, the bracket has a groove at the end away from the circuit board, and the corresponding rotating shaft is disposed in the groove.
[0008] In some embodiments, the rocker arm structure includes a lower rocker arm and an upper rocker arm covering the lower rocker arm. The upper rocker arm rotates along a first axis following the rocker arm, and the lower rocker arm rotates along a second axis following the rocker arm. The first axis and the second axis are perpendicular to each other. The upper rocker arm has two rotating shafts along the first axis, and the lower rocker arm has two rotating shafts along the second axis. The upper rocker arm has a first sliding opening, and the lower rocker arm has a second sliding opening. Positioning holes are provided on both sides of the lower rocker arm perpendicular to the first surface. One end of the rocker arm connected to the rocker arm structure is provided with a positioning element that matches the positioning hole. The rocker arm passes through the first sliding opening and the second sliding opening in sequence so that the positioning element is assembled in the positioning hole.
[0009] In some embodiments, the number of second plates disposed opposite to the first plate on the surface of the bracket near the first plate is multiple. When the first plate rotates with the rocker arm, the relative area of the first plate and each second plate changes; the first plate and each second plate form a target capacitor; the processor is used to obtain the capacitance values of the multiple target capacitors and determine the rotation direction and angle of the rocker arm based on the multiple capacitance values.
[0010] In some embodiments, the number of second electrode plates disposed opposite to the first electrode plate on the surface of the bracket near the first electrode plate is two, and the two second electrode plates are symmetrically arranged along the central axis of the first electrode plate, the central axis of the first electrode plate being perpendicular to the first surface of the circuit board.
[0011] In some embodiments, both the first electrode plate and the second electrode plate are fan-shaped structures.
[0012] In some embodiments, the rocker arm has a hollow region, and a reset rod connected to the circuit board is disposed in the hollow region; a spring is sleeved on the reset rod, one end of the spring abuts against the bottom of the reset rod connected to the circuit board, and a limiting member is provided along the interior of the hollow region to form a limiting groove, and the other end of the spring abuts against the limiting groove.
[0013] In some embodiments, the number of rotating shafts having the rotating part is two, and the two rotating shafts rotate in different directions.
[0014] In some embodiments, each of the plurality of rotating shafts is provided with a rotating portion along a direction close to the circuit board.
[0015] In some embodiments, the rocker device further includes a button, and a dome switch is provided on the side of the button near the circuit board; the first surface of the circuit board is provided with a button area corresponding to and connected to the dome switch.
[0016] The technical solution provided in this application has at least the following advantages:
[0017] This embodiment forms a target capacitor by setting a first electrode plate and a second electrode plate in the rocker arm device. When the rocker arm rotates, it drives the first electrode plate to rotate through the rotating shaft, causing the relative area of the first electrode plate and the second electrode plate to change. As a result, the capacitance value of the target capacitor formed by the first electrode plate and the second electrode plate changes. That is, the capacitance value of the target capacitor is different at different rotation angles. Therefore, the rotation direction and angle of the rocker arm can be detected by the change in the capacitance value of the target capacitor. Compared with the sensor method of related technologies, this embodiment realizes the angle measurement of the rocker arm device by capacitance detection. The rotation direction and angle of the rocker arm can be accurately determined by the change in the target capacitance, thus improving the accuracy of the angle measurement of the rocker arm device. Attached Figure Description
[0018] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.
[0019] Figure 1 This is a schematic diagram of the structure of a rocker device according to an embodiment of this application;
[0020] Figure 2 This is a cross-sectional structural schematic diagram of a rocker arm device according to an embodiment of this application;
[0021] Figure 3 This is an exploded structural diagram of a rocker arm device according to an embodiment of this application;
[0022] Figure 4 This is a partial structural schematic diagram of a rocker device according to an embodiment of this application.
[0023] Figure 5 This is a schematic diagram of the planar structure of the first electrode plate on the rotating part according to an embodiment of this application;
[0024] Figure 6 This is a schematic diagram of the planar structure of the second electrode plate on the support according to an embodiment of this application. Detailed Implementation
[0025] As can be seen from the background technology, the accuracy of the joysticks in the relevant technologies is relatively low, which cannot meet users' increasingly higher demand for joystick accuracy.
[0026] To address the issue of low accuracy in related technologies, one embodiment of this application relates to a joystick device, comprising: a joystick, a rocker arm structure, a processor, and a circuit board; the rocker arm structure is mounted on the circuit board, and one end of the joystick is connected to the rocker arm structure;
[0027] The rocker arm structure has multiple rotating shafts, at least one of which has a rotating part along the direction close to the circuit board. A bracket corresponding to each rotating part is provided on a first surface of the circuit board near the rocker arm structure. A groove is formed at the end of the bracket furthest from the circuit board, and the corresponding rotating shaft is disposed within the groove. A first electrode plate is provided on the surface of the rotating part near the bracket, and a second electrode plate is provided on the surface of the bracket near the first electrode plate, opposite to the first electrode plate. A processor is connected to the circuit board. When the first electrode plate rotates with the rocker arm, the relative area of the first electrode plate and the second electrode plate changes. The first and second electrode plates form a target capacitor. The processor is used to obtain the capacitance value of the target capacitor and determine the rotation direction and angle of the rocker arm based on the capacitance value.
[0028] This embodiment of the application forms a target capacitor by setting a first electrode plate and a second electrode plate in the rocker device. When the rocker rotates, the rocker drives the first electrode plate to rotate through the rotating shaft, causing the relative area of the first electrode plate and the second electrode plate to change. As a result, the capacitance value of the target capacitor formed by the first electrode plate and the second electrode plate changes. That is, the capacitance value of the target capacitor is different at different rotation angles. Therefore, the rotation direction and angle of the rocker can be detected by the change in the capacitance value of the target capacitor. Compared with the sensor method of related technologies, this embodiment realizes the angle measurement of the rocker device by capacitance detection. The rotation direction and angle of the rocker can be accurately determined by the change in the target capacitance, thereby improving the accuracy of the angle measurement of the rocker device.
[0029] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the various embodiments of this application will be described in detail below with reference to the accompanying drawings. However, those skilled in the art will understand that many technical details have been provided in the various embodiments of this application to help readers better understand this application. However, the technical solutions claimed in this application can be implemented even without these technical details and various changes and modifications based on the following embodiments. The division of the various embodiments below is for the convenience of description and should not constitute any limitation on the specific implementation of this application. The various embodiments can be combined with and referenced by each other without contradiction.
[0030] This application relates to a rocker arm device, such as... Figure 1 The diagram shown is a structural schematic of the rocker arm device in this embodiment. Figure 2 The diagram shown is a cross-sectional view of the rocker arm device in this embodiment. Figure 3The diagram shown is an exploded view of the rocker arm device in this embodiment. Figure 4 The diagram shown is a partially enlarged schematic of the joystick device in this embodiment. The joystick device in this embodiment includes: a joystick 10, a rocker arm structure (not shown), a processor (not shown), and a circuit board 20.
[0031] Specifically, the rocker arm structure (including an upper rocker arm 301 and a lower rocker arm 302) is mounted on the circuit board 20, and one end of the rocker arm structure is connected to the rocker arm structure. The rocker arm structure has multiple rotating shafts 303, and at least one rotating shaft 303 has a rotating part 304 arranged along the direction close to the circuit board 20. A bracket 305 corresponding to the rotating part 304 is provided on the first surface of the circuit board 20 close to the rocker arm structure. The bracket 305 has a groove at the end away from the circuit board 20, and the corresponding rotating shaft 303 is disposed in the groove. A first electrode plate 3041 is provided on the surface of the rotating part 304 close to the bracket. A second electrode 3051 is disposed opposite to the first electrode 3041 on the surface of the first electrode 3041; the processor is connected to the circuit board 20; when the first electrode 3041 rotates with the rocker arm 10, the relative area of the first electrode 3041 and the second electrode 3051 changes; the first electrode 3041 and the second electrode 3051 form a target capacitor; the circuit board 20 is also provided with multiple pins 201, so as to transmit the signal of the target capacitor received by the circuit board 20 to the processor, the processor is used to obtain the capacitance value of the target capacitor, and determine the rotation direction and angle of the rocker arm 10 according to the capacitance value.
[0032] Continue to refer to Figure 1 , Figure 2 , Figure 3 The rocker arm structure of this embodiment includes a lower rocker arm 302 and an upper rocker arm 301 covering the lower rocker arm 302. The upper rocker arm 301 rotates along a first axis following the rocker arm 10, and the lower rocker arm 302 rotates along a second axis following the rocker arm 10. The first axis and the second axis are perpendicular to each other. The upper rocker arm 301 has two rotating shafts 303 along the first axis, which are located on both sides of the upper rocker arm 301. The lower rocker arm 302 has two rotating shafts 303 along the second axis, which are located on both sides of the lower rocker arm 302. The upper rocker arm 301 is provided with a first... The lower rocker arm 302 has a first sliding opening and a second sliding opening. The first and second sliding openings face the same direction. The lower rocker arm 302 has two sidewalls that are symmetrical along the second axis and perpendicular to the first surface. Both sidewalls of the lower rocker arm 302 are provided with positioning holes 306. The end of the rocker arm 10 connected to the rocker arm structure is provided with positioning elements 103 that match the positioning holes 306 one by one, specifically two positioning elements 103. The end of the rocker arm 10 connected to the rocker arm structure passes through the first sliding opening and the second sliding opening in sequence so that the positioning elements 103 are assembled in the positioning holes 306.
[0033] Specifically, during rotation, the rocker arm 10 can rotate in the first sliding opening and drive the lower rocker arm 302 to rotate along the second axis, while the upper rocker arm 301 does not rotate. The rocker arm 10 can also rotate in the second sliding opening and drive the upper rocker arm 301 to rotate along the first axis, while the lower rocker arm 302 does not rotate. This method achieves the movement of the rocker arm 10. The first electrode plate 3041 and the second electrode plate 3051 corresponding to the rotating part 304 of the rotating shaft 303 of the upper rocker arm 301 are used to detect the rotation angle of the rocker arm 10 on the first axis. The first electrode plate 3041 and the second electrode plate 3051 corresponding to the rotating part 304 of the rotating shaft 303 of the lower rocker arm 302 are used to detect the rotation angle of the rocker arm 10 on the second axis. This enables the detection of the rotation angle of the rocker arm 10 in various directions, and then determines the rotation direction of the rocker arm 10 and the rotation angle of the rocker arm 10 in the rotation direction based on the rotation angle in each direction.
[0034] Specifically, a base 50 is provided on the side of the circuit board 20 away from the rocker arm 10, that is, the circuit board 20 is placed on the base 50, and the base 50 provides support and protection for the circuit board 20, thereby improving the stability of the circuit board 20 during operation.
[0035] Specifically, in this embodiment, the rocker arm 10 has a hollow region, within which a reset rod 101 connected to the circuit board 20 is disposed. The bottom of the reset rod 101 is connected to the circuit board 20, and a spring 102 is also sleeved on the reset rod 101. One end of the spring 102 abuts against the bottom of the reset rod 101 connected to the circuit board 20. A limiting member 104 is provided inside the hollow region of the rocker arm 10 to form a limiting groove, and the other end of the spring 102 abuts against the limiting groove. That is, the top of the spring 102 is disposed inside the limiting groove, realizing the elastic connection between the rocker arm 10 and the reset rod 101 through the spring 102. In this embodiment, by setting the reset rod 101, the rocker arm 10 can be reset. The reset rod 101 is also sleeved with the spring 102. By sleeved with the spring 102, the reset speed of the rocker arm 10 is improved, and the reset delay is minimized.
[0036] Specifically, the joystick device in this embodiment also includes a button 401, and a dome switch 402 is provided on the side of the button 401 near the circuit board 20; the first surface of the circuit board 20 is provided with a button area 202 corresponding to and connected to the dome switch 402.
[0037] The button 401 has a U-shaped structure, with a groove on the side away from the circuit board 20. One of the pivots 303 of the rocker arm structure is located in the groove of the U-shaped structure. When the rocker arm 10 is pressed, the rocker arm structure presses the button 501 through the pivot 303. After the button 401 is pressed, the button 401 presses the dome switch 402. The dome switch 402 is equivalent to a switch, which triggers the button area 202 in the circuit board 20, thereby triggering the corresponding function. In practical applications, when users play games with a gamepad equipped with a joystick 10, some scenarios require the use of button 401 for selection. For example, if a user needs to select a character using button 401, the user first moves the joystick 10 left or right to select a character from a row of characters, and then presses the joystick 10 down, which presses button 401. Button 401 then presses the dome switch 402, triggering the corresponding area of button 401 on the circuit board 20, thus selecting the character.
[0038] Continue to refer to Figure 3 In this embodiment, the number of second electrode plates 3051 disposed opposite to the first electrode plate 3041 on the surface of the bracket 305 near the first electrode plate 3041 is multiple; Figure 3 The example given is two second electrode plates 3051. However, to achieve better detection accuracy, the number of second electrode plates 3051 can also be set to three, four, etc.
[0039] Specifically, when the rotating part 304 rotates with the rocker arm 10, the relative areas of the first electrode plate 3041 and each of the second electrode plates 3051 change; the first electrode plate 3041 and each of the second electrode plates 3051 form a target capacitor; the processor is used to obtain the capacitance values of multiple target capacitors and determine the rotation direction and angle of the rocker arm based on the multiple capacitance values. In this embodiment, the first electrode plate 3041 and each of the second electrode plates 3051 form a target capacitor. By utilizing the relationship between the capacitance values of multiple target capacitors, the algorithm can cleverly eliminate the influence of factors such as changes in the gap between the electrodes and changes in the dielectric constant on the rotation angle, achieving better detection results. The more second electrode plates 3051 there are, the higher the detection accuracy.
[0040] It should be noted that in this embodiment, the first electrode plate 3041 is the transmitting electrode plate and the second electrode plate 3051 is the receiving electrode plate; in other embodiments, the first electrode plate 3041 may also be the receiving electrode plate and the second electrode plate 3051 may also be the transmitting electrode plate.
[0041] In one embodiment, the number of second electrode plates 3051 disposed opposite to the first electrode plate 3041 on the surface of the support 305 near the first electrode plate 3041 is two. The two second electrode plates 3051 are symmetrically disposed along the central axis of the first electrode plate 3041, and the central axis of the first electrode plate 3041 is perpendicular to the first surface of the circuit board 20.
[0042] Specifically, when the rocker arm 10 rotates, it drives the first electrode plate 3041 to rotate. Specifically, during the rotation of the first electrode plate 3041, the overlapping area of the first electrode plate 3041 and the two second electrode plates 3051 changes. Within a certain angle range, the overlapping area and the rotation angle are linearly related. When the rotation angle of the rocker arm 10 is 0, the overlapping area of the first electrode plate 3041 and one second electrode plate 3051 is recorded as S1, and the overlapping area of the first electrode plate 3041 and the other second electrode plate 3051 is recorded as S2. Since the rotation angle of the rocker arm 10 is 0 at this time, the relative areas of the first electrode plate 3041 and the two second electrode plates 3051 are the same, so S1 and S2 are the same. The target capacitor formed by the first electrode plate 3041 and one second electrode plate 3051 is recorded as C1, and the target capacitor formed by the first electrode plate 3041 and the other second electrode plate 3051 is recorded as C2. Based on the circuit structure and the driving and detection principles of the chip, the relationship between capacitors C1 and C2 and the rocker arm rotation angle θ can be obtained as follows: C1 = ε(S1-kθ) / d, C2 = ε(S2+kθ) / d, where ε is the dielectric constant, k is a structural parameter, and d is the distance between the first and second plates. In order to eliminate the influence of the dielectric constant ε and the distance d between the plates, the data of C1 and C2 can be effectively processed. For example, a Para value can be obtained through differential operation: Para = (C1-C2) / (C1+C2) = -kθ / S1. It can be seen from the final calculated Para value that the influence of the dielectric constant ε and the distance d between the plates has been eliminated.
[0043] like Figure 3 , Figure 4 As shown, the first electrode 3041 and the second electrode 3051 are illustrated using a rectangular structure as an example. To improve the linearity of the target capacitor and the joystick's rotation angle, both the first electrode 3041 and the second electrode 3051 can be designed as a fan-shaped structure, such as... Figure 5 As shown, this is a schematic diagram of the planar structure of the first electrode plate on the rotating part in this embodiment. Figure 6The diagram shows the planar structure of the second electrode plate on the support in this embodiment. Since both the first electrode plate 3041 and the second electrode plate 3051 are fan-shaped structures, during the rotation of the first electrode plate 3041 with the rocker arm 10, the relative area of the first electrode plate 3041 and each second electrode plate 3051 is linearly related to the rotation angle of the rocker arm 10. The Para value calculated by the differential operation is more accurate, further improving the accuracy of the angle measurement of the rocker arm device. It should be noted that in this embodiment, the surface area of the rotating part 304 on which the first electrode plate 3041 is disposed is larger than the surface area of the first electrode plate 3041. In other embodiments, the surface area of the rotating part 304 on which the first electrode plate 3041 is disposed can also be equal to the surface area of the first electrode plate 3041.
[0044] It should be noted that the surface of the rotating part 304 where the first electrode plate 3041 is disposed can also be a fan-shaped structure. In the case of multiple second electrode plates 3015, all multiple second electrode plates 3051 are fan-shaped structures. The circles of multiple fan-shaped structures overlap, thereby further improving the linearity of the rotation angle between the target capacitor and the rocker arm through this arrangement.
[0045] In one embodiment, two of the plurality of rotating shafts 303 are provided with rotating parts 304, and the two rotating shafts 303 rotate in different directions. (Continue to refer to...) Figure 1 , Figure 2 , Figure 3 The rocker arm device has four rotating shafts 303. Two rotating shafts 303 are provided by the upper rocker arm 301, and the other two rotating shafts 303 are provided by the lower rocker arm 302. The four rotating shafts 303 are respectively arranged around the rocker arm structure. In this embodiment, one of the rotating shafts 303 of the upper rocker arm 301 is provided with a rotating part 304, and one of the rotating shafts 303 of the lower rocker arm 302 is provided with a rotating part 304. These two rotating parts 304 are arranged on two adjacent rotating shafts 303. That is to say, in this embodiment, a rotating part 304 is provided on one rotating shaft 303 of the upper rocker arm 301 to detect the rotation angle of the rocker arm 10 on the first axis, and a rotating part 304 is provided on one rotating shaft 303 of the lower rocker arm 302 to detect the rotation angle of the rocker arm 10 on the second axis. Thus, based on the rotation angle of the rocker arm 10 in each direction, not only the rotation direction of the rocker arm 10 can be determined, but also the rotation angle of the rocker arm 10 in the rotation direction can be determined.
[0046] Since this embodiment only sets up a capacitor structure formed by two sets of first electrode plates 3041 and second electrode plates 3051, a button 501 can also be set at the rotating shaft 303 where the rotating part 304 is not set, such as... Figure 1 , Figure 3As shown, one pivot 303 of the lower rocker arm 302 is provided with a rotating part 303, and the other pivot 303 is provided in the groove of the "U" structure of the button 501; in other embodiments, the button 501 can be provided at one pivot 303 of the upper rocker arm 301, that is, one pivot 303 of the upper rocker arm 301 is provided with a rotating part 303, and the other pivot 303 is provided in the groove of the "U" structure of the button 501, thereby achieving the same function.
[0047] In other embodiments, for multiple rotating shafts 303, one rotating shaft 303 can be disposed within the recess of the "U"-shaped structure of the button 501, while the other rotating shafts 303 are provided with corresponding supports 305. All supports 305 may be provided with rotating portions 304, or only some supports 305 may be provided with rotating portions 304. For example, a rocker arm structure may have four rotating shafts 303, each disposed within the recess of the "U"-shaped structure of the button 501. The other three rotating shafts 303 each have a rotating portion 304. All three supports 305 are provided with corresponding second pole plates 3051. Alternatively, among the other three rotating shafts 303, two rotating shafts 303 are provided with rotating parts 304, and the corresponding two supports 305 are provided with corresponding second pole plates 3051. The remaining rotating shaft 303 is not provided with a rotating part 304, and the corresponding support 305 is not provided with a second pole plate 3051. This support 305 has a groove, and the remaining rotating shaft 303 can be set in the groove, so that each rotating shaft of the rocker arm structure has a corresponding support or button support, thereby improving the stability of the rocker arm structure.
[0048] In one embodiment, each of the plurality of rotating shafts 303 has a first electrode plate 3041 disposed along the direction close to the circuit board 20. For example... Figure 1 , Figure 3 As shown, the rocker arm device has four rotating shafts 303. Two rotating shafts 303 are provided by the upper rocker arm 301, and the other two rotating shafts 303 are provided by the lower rocker arm 302. The four rotating shafts 303 are respectively arranged around the rocker arm structure. In this embodiment, each rotating shaft 303 is provided with a rotating part 304. Correspondingly, four brackets 305 are provided on the circuit board 20. That is to say, in this embodiment, the two rotating shafts 303 of the upper rocker arm 301 are provided with rotating parts 304 to detect the rotation angle of the rocker arm 10 on the first axis, and the two rotating shafts 303 of the lower rocker arm 302 are provided with rotating parts 304 to detect the rotation angle of the rocker arm 10 on the second axis. Thus, based on the rotation angle of the rocker arm 10 in each direction, not only the rotation direction of the rocker arm 10 can be determined, but also the rotation angle of the rocker arm 10 in the rotation direction can be determined. At the same time, since this embodiment forms four target capacitors, the accuracy of the angle measurement of the rocker arm 10 can be further improved.
[0049] This embodiment of the application forms a target capacitor by setting a first electrode plate 3041 and a second electrode plate 3051 in the rocker device. When the rocker 10 rotates, the rocker 10 drives the first electrode plate 3041 to rotate through the rotating shaft, causing the relative area of the first electrode plate 3041 and the second electrode plate 3051 to change. The capacitance value of the target capacitor formed by the first electrode plate 3041 and the second electrode plate 3051 changes. That is, the capacitance value of the target capacitor is different at different rotation angles. Thus, the rotation direction and angle of the rocker 10 can be detected by the change in the capacitance value of the target capacitor. Compared with the sensor method of related technologies, this embodiment realizes the angle measurement of the rocker device by capacitance detection. The rotation direction and angle of the rocker 10 can be accurately determined by the change in the target capacitance, improving the accuracy of the angle measurement of the rocker device. At the same time, this embodiment does not require additional sensors, saving the volume of the rocker device and making it more conducive to the miniaturization design of the rocker device.
[0050] Another aspect of this application provides an electronic device, including the aforementioned joystick device.
[0051] The electronic device in this embodiment can be a game controller, keyboard, medical device, drone, or other similar device.
[0052] The electronic device provided in this embodiment includes the joystick device of the above embodiment, and therefore also has the technical effects provided by the above embodiment, which will not be described in detail here.
[0053] The above division of various components is only for clarity of description. In implementation, they can be merged into one component or some components can be split into multiple components. As long as they include the same logical relationship, they are all within the protection scope of this embodiment.
[0054] Those skilled in the art will understand that the above embodiments are specific embodiments for implementing this application, and in practical applications, various changes can be made to them in form and detail without departing from the spirit and scope of this application.
Claims
1. A rocker arm device, characterized in that, include: Joystick, rocker arm structure, processor, circuit board; The rocker arm structure is mounted on the circuit board, and one end of the rocker arm is connected to the rocker arm structure. The rocker arm structure has multiple rotating shafts, and at least one of the rotating shafts has a rotating part arranged in the direction close to the circuit board; the first surface of the circuit board close to the rocker arm structure is provided with a bracket corresponding to each rotating part, and the bracket has a groove at the end away from the circuit board, and the corresponding rotating shaft is disposed in the groove; the surface of the rotating part close to the bracket is provided with a first electrode plate, and the surface of the bracket close to the first electrode plate is provided with a second electrode plate disposed opposite to the first electrode plate; The processor is connected to the circuit board; when the first electrode plate rotates with the rocker arm, the relative areas of the first electrode plate and the second electrode plate change; The first electrode plate and the second electrode plate form a target capacitor; the processor is used to obtain the capacitance value of the target capacitor and determine the rotation direction and angle of the joystick based on the capacitance value.
2. The rocker arm device according to claim 1, characterized in that, The rocker arm structure includes a lower rocker arm and an upper rocker arm covering the lower rocker arm. The upper rocker arm rotates along a first axis following the rocker arm, and the lower rocker arm rotates along a second axis following the rocker arm. The first axis and the second axis are perpendicular to each other. The upper rocker arm is provided with two rotating shafts along the first axis direction, and the lower rocker arm is provided with two rotating shafts along the second axis direction; The upper rocker arm is provided with a first sliding opening, the lower rocker arm is provided with a second sliding opening, and both sides of the lower rocker arm perpendicular to the first surface are provided with positioning holes. The end of the rocker arm connected to the rocker arm structure is provided with a positioning component that matches the positioning holes one by one. The rocker arm passes through the first sliding opening and the second sliding opening in sequence, so that the positioning element is assembled in the positioning hole.
3. The rocker arm device according to claim 1, characterized in that, The bracket has multiple second pole plates disposed opposite to the first pole plate on its surface near the first pole plate. When the first pole plate rotates with the rocker arm, the relative area between the first pole plate and each second pole plate changes. The first electrode plate and each of the second electrode plates form a target capacitor; The processor is used to acquire the capacitance values of multiple target capacitors and determine the rotation direction and angle of the joystick based on the multiple capacitance values.
4. The rocker arm device according to claim 3, characterized in that, The bracket has two second electrode plates disposed opposite to the first electrode plate on its surface near the first electrode plate. The two second electrode plates are symmetrically arranged along the central axis of the first electrode plate, and the central axis of the first electrode plate is perpendicular to the first surface of the circuit board.
5. The rocker arm device according to any one of claims 1 to 4, characterized in that, Both the first electrode plate and the second electrode plate have a fan-shaped structure.
6. The rocker arm device according to any one of claims 1 to 4, characterized in that, The rocker arm has a hollow area, and a reset rod connected to the circuit board is provided in the hollow area; a spring is sleeved on the reset rod, one end of the spring abuts against the bottom of the reset rod connected to the circuit board, and a limiting member is provided along the inside of the hollow area to form a limiting groove, and the other end of the spring abuts against the limiting groove.
7. The rocker arm device according to any one of claims 1 to 4, characterized in that, The number of rotating shafts having the rotating part is two, and the two rotating shafts rotate in different directions.
8. The rocker arm device according to any one of claims 1 to 4, characterized in that, Each of the plurality of rotating shafts has a rotating portion arranged in a direction close to the circuit board.
9. The rocker arm device according to any one of claims 1 to 4, characterized in that, The joystick device also includes a button, and a dome switch is provided on the side of the button near the circuit board; the first surface of the circuit board is provided with a button area corresponding to and connected to the dome switch.
10. An electronic device, characterized in that, Includes the rocker arm device as described in any one of claims 1 to 9.