Joystick apparatus and electronic device
By setting a metal sheet and electrode assembly in the rocker device to form a capacitor, and using the change in capacitance value to detect the rocker angle, the problem of low rocker accuracy is solved, and high-precision angle measurement and miniaturized design are achieved.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- CHIPSEMI SEMICON (NINGBO) CO LTD
- Filing Date
- 2025-11-26
- Publication Date
- 2026-06-25
AI Technical Summary
The existing joystick device has low angle measurement accuracy, which cannot meet users' demand for high precision. The sensor detection is also subject to external interference and wear.
The target capacitor is formed by a metal sheet and an electrode assembly. The angle of the rocker is detected by the change in the relative area of the metal sheet and the electrode when the rocker is rotated. The processor obtains the capacitance value and determines the direction and angle of rotation.
It improves the angle measurement accuracy of the joystick device, reduces the use of sensors, saves space, and supports miniaturized design.
Smart Images

Figure CN2025137654_25062026_PF_FP_ABST
Abstract
Description
Joystick mechanism and electronic equipment Cross-reference to related applications
[0001] This application is based on and claims priority to Chinese Patent Application No. 2024118617194, filed on December 17, 2024, the entire contents of which are hereby incorporated herein by reference. Technical Field
[0002] This application relates to the field of angle measurement technology, and in particular to a rocker arm device and electronic device. Background Technology
[0003] 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.
[0004] 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. Summary of the Invention
[0005] The purpose of this application is to provide a joystick device and electronic device, thereby improving the accuracy of the joystick device angle measurement.
[0006] To address the aforementioned technical problems, embodiments of this application provide a rocker arm device, comprising: a rocker arm, a rocker arm structure, a processor, a circuit board, and a cover covering the circuit board; a mounting cavity is formed between the cover and the circuit board, and a limiting hole is formed on the side of the cover away from the circuit board; the rocker arm structure is disposed inside the mounting cavity, one end of the rocker arm is connected to the rocker arm structure, and the other end of the rocker arm extends out of the cover through the limiting hole; the rocker arm structure has multiple rotating shafts, at least one of the rotating shafts has a rotating part disposed along the direction close to the circuit board, and a metal sheet is disposed on the surface of the rotating part close to the circuit board; a first surface of the circuit board is disposed with an electrode assembly disposed opposite to the metal sheet, the first surface being the surface of the circuit board close to the rocker arm structure; the processor is connected to the circuit board; the electrode assembly includes a first electrode plate and a second electrode plate; when the rotating part rotates with the rocker arm, the relative area of the metal sheet and the second electrode plate changes; the first electrode plate, the metal sheet, 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.
[0007] Embodiments of this application also provide an electronic device, including the aforementioned joystick device.
[0008] In some embodiments, the rotating part includes an extension member and a slider; the extension member is arranged along the direction perpendicular to the first surface of the circuit board, and a groove is formed on the side of the slider near the corresponding rotating shaft, and the extension member is disposed in the groove.
[0009] In some embodiments, the surface of the rotating part near the circuit board is an arc surface.
[0010] 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 is perpendicular to the second axis. 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 on the side near the upper cover, and the lower rocker arm has a second sliding opening on the side near the upper cover. Positioning holes are provided on both sides of the lower rocker arm perpendicular to the first surface. A positioning element matching the positioning hole is provided at the end of the rocker arm connected to the rocker arm structure. 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.
[0011] In some embodiments, the electrode assembly includes a plurality of second electrode plates; when the rotating part rotates with the rocker arm, the relative area of the metal sheet and each second electrode plate changes; the first electrode plate, the metal sheet and each second electrode plate form a target capacitor; the processor is used to acquire the capacitance values of the plurality of target capacitors and determine the rotation direction and angle of the rocker arm based on the plurality of capacitance values.
[0012] In some embodiments, the electrode assembly further includes a ground plane disposed between the first electrode and the second electrode.
[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 away from the top cover; 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 incorporates a metal sheet and an electrode assembly within the rocker arm device. The electrode assembly, coupled with the metal sheet, forms a target capacitor. When the rocker arm rotates, it drives the rotating part to rotate via a shaft, causing a change in the relative area between the metal sheet and the second electrode. This results in a change in the capacitance value of the target capacitor formed by the metal sheet, the first electrode, and the second electrode. In other words, the capacitance value of the target capacitor differs at different rotation angles. Therefore, the rotation direction and angle of the rocker arm can be detected by observing the change in the target capacitor's capacitance value. Compared to sensor-based methods in related technologies, this embodiment achieves angle measurement of the rocker arm device through capacitance detection. It can accurately determine the rotation direction and angle of the rocker arm by observing changes in the target capacitance, thus improving the accuracy of angle measurement in 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 is a schematic diagram of a rocker device according to an embodiment of the present application;
[0020] Figure 2 is a cross-sectional structural schematic diagram of a rocker device according to an embodiment of the present application;
[0021] Figure 3 is an exploded structural diagram of a rocker device according to an embodiment of this application;
[0022] Figure 4 is a schematic diagram of the structure of a circuit board according to an embodiment of this application;
[0023] Figure 5 is a schematic diagram of the structure of an electrode assembly according to an embodiment of this application;
[0024] Figure 6 is a partially enlarged schematic diagram of a rotating part according to an embodiment of the present application;
[0025] Figure 7 is a second partially enlarged schematic diagram of the rotating part according to an embodiment of this application;
[0026] Figure 8 is a schematic diagram of the structure of a slider according to an embodiment of this application;
[0027] Figure 9 is a schematic diagram of the structure between a metal sheet and an electrode assembly according to an embodiment of this application;
[0028] Figure 10 is a diagram showing the electric field lines between a metal sheet and an electrode assembly according to an embodiment of this application.
[0029] Figure 11 is a schematic diagram of the structure of a circuit board according to an embodiment of this application;
[0030] Figure 12 is an exploded structural diagram of a rocker device according to an embodiment of this application;
[0031] Figure 13 is a partial structural schematic diagram of a rocker device according to an embodiment of the present application. Detailed Implementation
[0032] 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.
[0033] 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, a circuit board, and a cover over the circuit board; a mounting cavity is formed between the cover and the circuit board, and a limiting hole is formed on the side of the cover away from the circuit board; the rocker arm structure is disposed inside the mounting cavity, one end of the joystick is connected to the rocker arm structure, and the other end of the joystick extends out of the cover through the limiting hole; the rocker arm structure has multiple rotating shafts, at least one rotating shaft has a rotating part arranged along the direction close to the circuit board, and a metal sheet is disposed on the surface of the rotating part close to the circuit board; an electrode assembly is disposed on a first surface of the circuit board close to the rocker arm structure, which is opposite to the metal sheet; the processor is connected to the circuit board; the electrode assembly includes a first electrode plate and a second electrode plate; when the rotating part rotates with the joystick, the relative area of the metal sheet and the second electrode plate changes; the first electrode plate, the metal sheet, 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.
[0034] This embodiment of the application sets a metal sheet and an electrode assembly in the rocker device. The electrode assembly forms a capacitor through coupling with the metal sheet. When the rocker rotates, the rocker drives the rotating part to rotate through the rotating shaft, causing the relative area between the metal sheet and the second electrode to change. The target capacitance formed by the metal sheet, the first electrode, and the second electrode changes. That is, the capacitance value of the target capacitance is different at different rotation angles. Thus, the rotation angle of the rocker can be detected by the change in the capacitance value of the target capacitance. Compared with the sensor method of related technologies, this embodiment realizes the angle measurement of the rocker device through 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.
[0035] 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.
[0036] This application relates to a rocker device. As shown in FIG1, it is a structural schematic diagram of a rocker device according to an embodiment of this application. As shown in FIG2, it is a cross-sectional structural schematic diagram of a rocker device according to an embodiment of this application. As shown in FIG3, it is an exploded structural schematic diagram of a rocker device according to an embodiment of this application. The rocker device of this embodiment includes: a rocker 10, a rocker arm structure (not shown in the figure), a processor (not shown in the figure), a circuit board 20, and a cover 30 covering the circuit board 20.
[0037] Specifically, an installation cavity is formed between the upper cover 30 and the circuit board 20, and a limiting hole 301 is provided on the side of the upper cover 30 away from the circuit board 20; a rocker arm structure (including an upper rocker arm 401 and a lower rocker arm 402) is disposed inside the installation cavity, one end of the rocker arm 10 is connected to the rocker arm structure, and the other end of the rocker arm 10 extends out of the upper cover 30 through the limiting hole 301; the rocker arm structure has a plurality of rotating shafts 403, and at least one rotating shaft 403 is provided with a rotating part (including an extension 404 and a slider 405) in the direction close to the circuit board 20, and a metal sheet 406 is provided on the surface of the rotating part close to the circuit board 20.
[0038] Figure 4 shows a schematic diagram of the circuit board structure according to an embodiment of this application. A plate assembly 201, opposite to the metal sheet 406, is provided on the first surface of the circuit board 20. Figure 5 shows a schematic diagram of the plate assembly structure according to an embodiment of this application. The first surface is the surface of the circuit board 20 near the rocker arm structure. The processor is connected to the circuit board 20. The plate assembly 201 includes a first plate 2011 and a second plate 2012. When the rotating part rotates with the rocker arm 10, the relative area of the metal sheet 406 and the second plate 2012 changes, and the first plate 2011, the metal sheet 406, and the second plate 2012 form a target capacitor. The circuit board 20 also has multiple pins 203, which transmit the target capacitor signal received by the circuit board 20 to the processor. The processor obtains the capacitance value of the target capacitor from the circuit board 20 and determines the rotation direction and angle of the rocker arm 10 based on the capacitance value. This embodiment, through the detection and data processing of the target capacitor's capacitance value, can provide feedback on the rotation angle state of the rocker arm 10. The processor calculates the rotation direction and angle of the rocker arm 10 according to an algorithm.
[0039] Specifically, the electrode assembly 201 further includes a ground plane 2013, which is disposed between the first electrode 2011 and the second electrode 2012. In this embodiment, by providing the ground plane 2013 between the first electrode 2011 and the second electrode 2012, the first electrode 2011 and the second electrode 2012 can be isolated, preventing mutual interference of electrical signals between them and thus improving the accuracy of detection.
[0040] Specifically, the first electrode plate 2011 is closer to the edge of the circuit board 20, the ground plane 2013 is disposed on the side of the first electrode plate 2011 away from the edge of the circuit board 20, and the second electrode plate 2012 is disposed on the side of the ground plane 2013 away from the first electrode plate 2011. The distance between the ground plane 2013 and one of the second electrode plates 2012 and the distance between the ground plane 2013 and the other second electrode plate 2012 are the same.
[0041] Referring again to Figures 1, 2, and 3, the rocker arm structure of this embodiment includes a lower rocker arm 402 and an upper rocker arm 401 covering the lower rocker arm 402. The upper rocker arm 401 rotates along a first axis following the rocker arm 10, and the lower rocker arm 402 rotates along a second axis following the rocker arm 10. The first and second axes are perpendicular to each other. The upper rocker arm 401 has two rotating shafts 403 along the first axis, which are located on both sides of the upper rocker arm 401. The lower rocker arm 402 has two rotating shafts 403 along the second axis, which are located on both sides of the lower rocker arm 402. A first sliding joint is provided on the side of the upper rocker arm 401 near the upper cover 30. The lower rocker arm 402 has a second sliding opening 409 on the side near the upper cover 30, and the first sliding opening 408 and the second sliding opening 409 have the same orientation. The lower rocker arm 402 has two side walls that are symmetrical along the second axis and perpendicular to the first surface. Both side walls of the lower rocker arm 402 are provided with positioning holes 407. The end of the rocker arm 10 connected to the rocker arm structure is provided with positioning elements 103 that match the positioning holes 407 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 408 and the second sliding opening 409 in sequence so that the positioning elements 103 are assembled in the positioning holes 407.
[0042] Specifically, during rotation, the rocker arm 10 can rotate within the first sliding opening 408, causing the lower rocker arm 402 to rotate along the second axis, while the upper rocker arm 401 remains stationary. Alternatively, the rocker arm 10 can rotate within the second sliding opening 409, causing the upper rocker arm 401 to rotate along the first axis, while the lower rocker arm 402 remains stationary. This method achieves the movement of the rocker arm 10. The electrode assembly 201 corresponding to the rotating part of the shaft 403 of the upper rocker arm 401 is used to detect the rotation angle of the rocker arm 10 on the first axis, and the electrode assembly 201 corresponding to the rotating part of the shaft 403 of the lower rocker arm 402 is 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 further determines the rotation direction and rotation angle of the rocker arm 10 in each direction based on the rotation angle.
[0043] Specifically, a base 60 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 60, and the base 60 provides support and protection for the circuit board 20, thereby improving the stability of the circuit board 20 during operation.
[0044] Specifically, in this embodiment, the rocker arm 10 has a hollow area, inside which a reset rod 101 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. The bottom of the spring 102 is connected to the bottom of the reset rod 101, and the bottom of the spring 102 abuts against the bottom of the reset rod 101. A limiting member 104 is provided inside the hollow area of the rocker arm 10 to form a limiting groove, and the top of the spring 102 is disposed inside the limiting groove, so that the rocker arm 10 and the reset rod 101 are elastically connected 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 increased, and the reset delay is minimized.
[0045] Specifically, as shown in Figure 4, the rocker device in this embodiment also includes a button 501, and a dome switch 502 is provided on the side of the button 501 away from the top cover 30; the first surface of the circuit board 20 is provided with a button area 202 corresponding to and connected to the dome switch 502.
[0046] The button 501 has a U-shaped structure, meaning that the side of the button 501 away from the circuit board 20 has a groove. One of the pivots 403 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 403. After the button 501 is pressed, the button 501 presses the dome switch 502. The dome switch 502 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 501 for selection. For example, if a user needs to select a character using button 501, 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 causes button 501 to be pressed. Button 501 then presses the dome switch 502, which triggers the corresponding button area 202 on the circuit board 20, thus selecting the character.
[0047] Referring again to Figures 4 and 5, the electrode assembly 201 in this embodiment includes a plurality of second electrode plates 2012. Figures 4 and 5 illustrate the example of two second electrode plates 2012. In order to obtain better detection accuracy, the number of second electrode plates 2012 can also be set to three, four, etc.
[0048] Specifically, when the rotating part rotates with the rocker arm 10, the relative areas of the metal sheet 406 and each second electrode plate 2012 change; the first electrode plate 2011, the metal sheet 406, and each second electrode plate 2012 all 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 10 based on the multiple capacitance values. In this embodiment, the first electrode plate 2011 forms a target capacitor with each second electrode plate 2012 through the metal sheet 406. By utilizing the relationship between the capacitance values of multiple target capacitors, the algorithm can cleverly eliminate the influence of factors such as the gap change between the electrode assembly 201 and the metal sheet 406 and the dielectric constant change on the rotation angle, achieving better detection results. The more second electrode plates 2012 there are, the higher the detection accuracy.
[0049] It should be noted that in this embodiment, the relative area between the first electrode plate 2011 and the metal sheet 406 remains fixed. Even when the rotating part rotates with the rocker arm 10, the relative area between the first electrode plate 2011 and the metal sheet 406 does not change. This ensures that the change in target capacitance is only related to the relative area between the metal sheet 406 and the second electrode plate 2012, further improving the accuracy of detection. In this embodiment, the first electrode plate 2011 is the emitting electrode plate, and the second electrode plate 2012 is the receiving electrode plate. In other embodiments, the first electrode plate 2011 can also be the receiving electrode plate, and the second electrode plate 2012 can also be the emitting electrode plate.
[0050] Figure 6 shows one of the partially enlarged schematic diagrams of the rotating part according to an embodiment of this application, and Figure 7 shows another partially enlarged schematic diagram of the rotating part according to an embodiment of this application. The rotating part of this embodiment includes an extension member 404 and a slider 405. The extension member 404 is provided along the direction perpendicular to the circuit board 20 along the rotating shaft 403. A groove 4051 is formed on the side of the slider 405 near the corresponding rotating shaft 403, and the extension member 404 is disposed in the groove 4051. The figures illustrate the rotating part with the upper rocker arm 401 as an example. The structure of the rotating part with the lower rocker arm 402 is similar, and will not be described again here to avoid repetition.
[0051] Specifically, the extension member 404 has a "V" shaped structure, and the groove in the slider 405 is also "V" shaped. However, the angle of the "V" shape in the groove is greater than the angle of the "V" shape in the extension member 404, allowing the extension member 404 to have a certain amount of room to move within the groove, ensuring that the slider 405 moves linearly. Taking the rotating part located in the upper rocker arm 401 as an example, when the rocker arm 10 drives the rotating part to rotate, the extension member 404 rotates along the first axis. Since the extension member 404 is located in the groove of the slider 405, the slider 405 moves linearly following the extension member 404. The distance between the metal plate 406 at the bottom of the slider 405 and the electrode assembly 201 remains unchanged. Only the relative area between the metal plate 406 and the second electrode 2012 changes, thereby reducing the influence of distance on the target capacitance and improving the accuracy of detection. The rotation principle of the rotating part located in the lower rocker arm 402 is similar, and will not be described again in this embodiment to avoid repetition.
[0052] Specifically, when the rocker arm 10 is rocked, it drives the slider 405 to move linearly, which in turn drives the metal plate 406 to move linearly. Specifically, during the movement of the metal plate 406, the relative area between the metal plate 406 and the first electrode plate 2011 remains unchanged, while the relative area between the metal plate 406 and the two second electrode plates 2012 changes, and the area has a linear relationship with the displacement. The relative area between one second electrode plate 2012 and the metal plate 406 is denoted as S1, and the relative area between the other second electrode plate 2012 and the metal plate 406 is denoted as S2. The target capacitor formed by the first electrode plate 2011 and the second electrode plate 2012 is denoted as C1, and the target capacitor formed by the first electrode plate 2011 and the other second electrode plate 2012 is denoted as C2. Based on the circuit structure and the driving and detection principles of the chip, C1 / C2 = S1 / S2 can be obtained, or (C1-C2) / (C1+C2) can be obtained through differential calculation. Thus, based on the obtained target capacitances C1 and C2, the relationship between S1 and S2 can be obtained, thereby obtaining the rotation direction and angle of the rocker arm 10. Through this method, not only can the uncertainty of the distance between the metal sheet 406 and the electrode assembly 201 and the uncertainty of the dielectric constant be eliminated, but the accuracy of the position detection of the rocker arm 10 can also be improved.
[0053] Figure 8 shows a schematic diagram of the slider structure according to an embodiment of this application, wherein the metal sheet 406 located at the bottom of the slider 405 has a "convex" shaped structure; Figure 9 shows a schematic diagram of the structure between the metal sheet and the electrode assembly according to an embodiment of this application. In the figure, the "convex" shaped structure in the metal sheet 406 has a wider first region and a narrower second region along the direction of movement of the slider 405. The wider first region is used to cover the first electrode 2011, so that the relative area between the first electrode 2011 and the metal sheet 406 remains unchanged during the rotation of the rocker arm 10. The narrower second region in the metal sheet 406 is arranged opposite to the second electrode 2012, so that the relative area between the metal sheet 406 and each second electrode 2012 changes during the rotation of the rocker arm 10, thereby determining the rotation direction and angle of the rocker arm 10 according to the change of the capacitance value of the target capacitor.
[0054] Figure 10 shows the electric field line trend between the metal sheet and the electrode assembly according to an embodiment of this application. Taking the first electrode 2011 as the emitting electrode and the second electrode 2012 as the receiving electrode as an example, the metal sheet 406 is in a floating state. The electrical signal travels from the first electrode 2011 to the metal sheet 406 and then to the second electrode 2012, thereby forming a target capacitance between the first electrode 2011, the metal sheet 406, and the second electrode 2012 under the action of the metal sheet 406.
[0055] In one embodiment, two of the multiple rotating shafts 403 are provided with rotating parts, and the two rotating shafts 403 rotate in different directions. Referring again to Figures 1, 2, and 3, the rocker device has four rotating shafts 403. Two rotating shafts 403 are provided by the upper rocker arm 401, and the other two rotating shafts 403 are provided by the lower rocker arm 402. The four rotating shafts 403 are respectively arranged around the rocker arm structure. In this embodiment, one of the rotating shafts 403 of the upper rocker arm 401 is provided with a rotating part, and one of the rotating shafts 403 of the lower rocker arm 402 is provided with a rotating part. These two rotating parts are arranged on two adjacent rotating shafts 403. Correspondingly, two corresponding electrode plate assemblies 201 are provided on the circuit board 20. As shown in Figure 4, which is a structural schematic diagram of the circuit board 20 in this embodiment, two electrode plate assemblies 201 are provided on the first surface of the circuit board 20. The two electrode plate assemblies 201 are arranged on adjacent sides of the first surface. In other words, in this embodiment, a rotating part is provided on one rotating shaft 403 of the upper rocker arm 401 to detect the rotation angle of the rocker arm 10 on the first axis, and a rotating part is provided on one rotating shaft 403 of the lower rocker arm 402 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.
[0056] Since this embodiment only has two rotating parts, a button 501 can also be set at the rotating shaft 403 where no rotating part is set, as shown in Figures 1, 2, and 3. One rotating shaft 403 of the lower rocker arm 402 is provided with a rotating part, and the other rotating shaft 403 is set in the groove of the "U"-shaped structure of the button 501. In other embodiments, the button 501 can be set at one rotating shaft 403 of the upper rocker arm 401, that is, one rotating shaft 403 of the upper rocker arm 401 is provided with a rotating part, and the other rotating shaft 403 is set in the groove of the "U"-shaped structure of the button 501, thereby achieving the same function.
[0057] In one embodiment, each of the plurality of rotating shafts 403 has a rotating part arranged in the direction close to the circuit board 20. As shown in Figures 1, 2, and 3, the rocker device has four rotating shafts 403, of which two rotating shafts 403 are provided by the upper rocker arm 401 and the other two rotating shafts 403 are provided by the lower rocker arm 402. The four rotating shafts 403 are respectively arranged around the rocker arm structure. In this embodiment, each rotating shaft 403 is provided with a rotating part. Correspondingly, the circuit board 20 is provided with four corresponding electrode plate assemblies 201. As shown in Figure 11, which is a schematic diagram of the circuit board structure of an embodiment of this application, the first surface of the circuit board 20 is provided with four electrode plate assemblies 201, and the positions of the four electrode plate assemblies 201 correspond to the positions of the four metal plates 406. In other words, in this embodiment, both shafts 403 of the upper rocker arm 401 are provided with rotating parts to detect the rotation angle of the rocker arm 10 on the first axis, and both shafts 403 of the lower rocker arm 402 are provided with rotating parts 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.
[0058] This embodiment of the application sets a metal sheet 406 and an electrode assembly 201 in the rocker device. The electrode assembly 201 is coupled with the metal sheet 406 to form a target capacitor. When the rocker 10 rotates, the rocker 10 drives the rotating part to rotate through the rotating shaft 403, which changes the relative area between the metal sheet 406 and the second electrode assembly 2012. The capacitance value of the target capacitor formed by the metal sheet 406 and the electrode assembly 201 changes, that is, the capacitance value 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 obtains and detects the rotation direction and angle of the rocker 10 by capacitance detection. The rotation direction and angle of the rocker 10 can be accurately determined by the change in the capacitance value of the target capacitor, which improves the accuracy of the angle measurement of the rocker device. At the same time, this embodiment does not require additional sensors, saves the volume of the rocker device, and is more conducive to the miniaturization design of the rocker device.
[0059] Another embodiment of this application relates to a rocker device. As shown in FIG12, it is an exploded structural diagram of a rocker device according to an embodiment of this application. As shown in FIG13, it is a partial structural diagram of a rocker device according to an embodiment of this application. The rocker device of this embodiment includes: a rocker 10, a rocker arm structure (not shown in the figure), a processor (not shown in the figure), a circuit board 20, and a cover 30 covering the circuit board 20.
[0060] Specifically, an installation cavity is formed between the upper cover 30 and the circuit board 20, and a limiting hole 301 is provided on the side of the upper cover 30 away from the circuit board 20; a rocker arm structure (including an upper rocker arm 401 and a lower rocker arm 402) is disposed inside the installation cavity, one end of the rocker arm 10 is connected to the rocker arm structure, and the other end of the rocker arm 10 extends out of the upper cover 30 through the limiting hole 301; the rocker arm structure has a plurality of rotating shafts 403, and at least one rotating shaft 403 is provided with a rotating part 410 in the direction close to the circuit board 20, and a metal sheet 406 is provided on the surface of the rotating part 410 close to the circuit board 20; referring to Figures 4 and 11, an electrode assembly 201 is provided on the first surface of the circuit board 20 close to the rocker arm structure, which is opposite to the metal sheet 406; the electrode assembly 201 includes a first electrode 2011 and a second electrode 2012; when the rotating part 410 rotates with the rocker arm 10, the relative area of the metal sheet 406 and the second electrode 2012 changes.
[0061] The difference between the rocker device in this embodiment and the rocker device in the previous embodiment is that the rotating part 410 in the previous embodiment includes an extension 404 and a slider 405, while the rotating part 410 in this embodiment is an integral structure. Other structures are roughly the same, and will not be described again here to avoid repetition.
[0062] Specifically, in this embodiment, the surface of the rotating part 410 near the circuit board 20 is arc-shaped. In practical applications, taking the rotating part 410 located on the upper rocker arm 401 as an example, when the rocker arm 10 drives the rotating part 410 to rotate, the rotating part 410 rotates along the first axis. Because the bottom surface of the rotating part 410 has an arc-shaped structure, the equivalent distance between the metal sheet 406 on the bottom surface of the rotating part 410 and the electrode assembly 201 remains almost unchanged when the rotating part 410 rotates. Only the relative area between the metal sheet 406 and the second electrode 2012 changes, thereby reducing the influence of distance on the target capacitance and improving the accuracy of detection. The rotation principle of the rotating part 410 located on the lower rocker arm 402 is similar, and will not be described again in this embodiment to avoid repetition.
[0063] In this embodiment, when the rotating part 410 rotates with the rocker arm 10, the equivalent distance between the metal sheet 406 and the electrode assembly 201 remains almost constant regardless of how the rotation angle of the rocker arm 10 changes. This makes the change in the capacitance value of the target capacitor only related to the relative area of the metal sheet 406 and the electrode assembly 201, thereby improving the accuracy of the rocker arm 10 detection.
[0064] In this design, the overlapping area of the metal sheet 406 and the first electrode plate 2011 remains unchanged, while the relative area of the metal sheet 406 and the two second electrode plates 2012 changes, and the area has a linear relationship with the displacement of the metal sheet 406. The relative area of one second electrode plate 2012 and the metal sheet 406 is denoted as S1, and the relative area of the other second electrode plate 2012 and the metal sheet 406 is denoted as S2. The target capacitor formed by the first electrode plate 2011 and the second electrode plate 2012 is denoted as C1, and the target capacitor formed by the first electrode plate 2011 and the other second electrode plate 2012 is denoted as C2. Based on the circuit structure and the driving and detection principles of the chip, C1 / C2 = S1 / S2 can be obtained, or (C1-C2) / (C1+C2) can be obtained through differential calculation. Thus, based on the obtained target capacitances C1 and C2, the relationship between S1 and S2 can be obtained, and the rotation direction and angle of the rocker arm 10 can be calculated. In this way, not only can the uncertainty of the distance between the metal sheet 406 and the electrode assembly 201 and the uncertainty of the dielectric constant be eliminated, but the accuracy of the angle measurement of the rocker arm 10 can also be further improved.
[0065] Another aspect of this application provides an electronic device, including the aforementioned joystick device.
[0066] The electronic device in this embodiment can be a game controller, keyboard, medical device, drone, or other similar device.
[0067] The electronic device provided in this embodiment of the present invention includes the joystick device of the above embodiment. Therefore, it also has the technical effects provided by the above embodiment, and will not be described in detail here.
[0068] 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.
[0069] 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 device, comprising: Joystick, rocker arm structure, processor, circuit board, and top cover covering the circuit board; An installation cavity is formed between the top cover and the circuit board, and a limiting hole is provided on the side of the top cover away from the circuit board; the rocker arm structure is disposed inside the installation cavity, one end of the rocker arm is connected to the rocker arm structure, and the other end of the rocker arm extends out of the top cover through the limiting hole; The rocker arm structure has multiple rotating shafts, and at least one of the rotating shafts has a rotating part arranged along the direction close to the circuit board. A metal sheet is disposed on the surface of the rotating part close to the circuit board. An electrode plate assembly is disposed on a first surface of the circuit board opposite to the metal sheet. The first surface is the surface of the circuit board close to the rocker arm structure. The processor is connected to the circuit board. The electrode plate assembly includes a first electrode plate and a second electrode plate. When the rotating part rotates with the rocker arm, the relative area between the metal sheet and the second electrode plate changes. The first electrode plate, the metal sheet, 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.
2. The rocker device of claim 1, wherein, The rotating part includes an extension and a slider; The extension member is arranged along the direction perpendicular to the first surface of the circuit board, and a groove is formed on the side of the slider near the corresponding rotating shaft, and the extension member is disposed in the groove.
3. The rocker device of claim 1, wherein, The surface of the rotating part near the circuit board is curved.
4. The rocker device of any one of claims 1 to 3, wherein, 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 is perpendicular to the second axis. 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 has a first sliding opening on the side near the upper cover, and the lower rocker arm has a second sliding opening on the side near the upper cover. The two side walls of the lower rocker arm perpendicular to the first surface are provided with positioning holes, and 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.
5. The rocker device of any one of claims 1 to 4, wherein, The electrode assembly includes a plurality of second electrode plates; when the rotating part rotates in accordance with the rocker arm, the relative area of the metal sheet and each second electrode plate changes. The first electrode plate, the metal sheet, and each of the second electrode plates together 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.
6. The rocker device of any one of claims 1 to 5, wherein, The electrode assembly further includes a ground plane, which is disposed between the first electrode and the second electrode.
7. The rocker device of any one of claims 1 to 6, wherein, The number of rotating shafts having the rotating part is two, and the two rotating shafts rotate in different directions.
8. The rocker device of any one of claims 1 to 7, wherein, Each of the plurality of rotating shafts has a rotating portion arranged in a direction close to the circuit board.
9. The rocker device of any one of claims 1 to 8, wherein, The rocker arm also includes a button, and a dome switch is provided on the side of the button away from the top cover; 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 comprising a joystick device as claimed in any one of claims 1 to 9.