Electronic devices

By using magnetic components and magnetic sensors in electronic devices to generate signals from changes in magnetic fields, the design dependence and assembly error problems of push-button switches are solved, enabling personalized adjustments to button operation and extending their lifespan.

CN122136206APending Publication Date: 2026-06-02CHICONY ELECTRONICS CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
CHICONY ELECTRONICS CO LTD
Filing Date
2025-03-11
Publication Date
2026-06-02

AI Technical Summary

Technical Problem

The design of push-button switches in existing electronic devices means that the tactile feel depends on the switch design, making it difficult to adjust according to user preferences, and assembly errors may lead to abnormal tactile feedback or switch failure.

Method used

The design employs magnetic components and magnetic sensors. Signals are generated by the change in the magnetic fields of the first and second magnetic components. When the button is pressed, the change in the magnetic field causes the magnetic sensor to generate a signal. This allows for adjustments to the shape, size, material, and position of the magnetic components to change the tactile feel of the button and simplifies the assembly process.

Benefits of technology

It improves the lifespan of electronic devices, reduces wear and tear, provides a personalized and diverse button operation experience, and avoids the impact of assembly tolerances on sensing, thus saving costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122136206A_ABST
    Figure CN122136206A_ABST
Patent Text Reader

Abstract

An electronic device includes a substrate, a button, a magnetic component, and a magnetic sensor. The button and the magnetic component are disposed above the substrate, and the button is movable relative to the substrate between an unpressed position and a pressed position. The magnetic component includes a first magnetic element and a second magnetic element, the first magnetic element being connected to the button, and the second magnetic element being adjacent to the first magnetic element. The magnetic sensor is adjacent to the magnetic component. When the button is in the unpressed position, the first and second magnetic elements attract each other, positioning the button. As the button moves from the unpressed position to the pressed position, the first and second magnetic elements move away from each other, generating a change in the magnetic field, and the magnetic sensor generates a signal based on this change in the magnetic field.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to an electronic device, and more particularly to an electronic device having a magnetic sensor. Background Technology

[0002] Many electronic devices use buttons as a signal input method; for example, mice and keyboards are usually equipped with buttons. When a user presses a button, the button triggers a corresponding switch to generate a signal.

[0003] However, most switches used in current electronic devices are micro switches or touch switches. When a user presses a button, the button must contact the switch to generate a signal. Therefore, the button's tactile feel depends entirely on the switch design and is difficult to adjust according to user preferences. Furthermore, errors during the assembly of buttons and switches can lead to problems such as abnormal tactile feedback or switch malfunction. Summary of the Invention

[0004] In view of the above, in one embodiment, an electronic device is provided, including a substrate, a button, a magnetic component, and a magnetic sensor. The button is disposed above the substrate and is selectively movable relative to the substrate between an unpressed position and a pressed position. The magnetic component is disposed above the substrate and includes a first magnetic element and a second magnetic element. The first magnetic element is connected to the button, and the second magnetic element is adjacent to the first magnetic element. The magnetic sensor is disposed above the substrate and adjacent to the magnetic component. When the button is in the unpressed position, the first and second magnetic elements attract each other, positioning the button. As the button moves from the unpressed position to the pressed position, the first and second magnetic elements move away from each other, generating a change in the magnetic field. The magnetic sensor generates a signal based on this change in the magnetic field.

[0005] In summary, when the buttons of the electronic device in this embodiment of the invention are pressed, the magnetic field changes of the first and second magnetic components cause the magnetic sensor to generate a signal. Therefore, the lifespan of the electronic device can be extended, and the shape, size, material, magnetization amount, or placement of the first and second magnetic components can be adjusted according to the user's preferences to freely change the button's tactile feel. Furthermore, the sensing performance of the magnetic sensor is not easily affected by assembly tolerances. Attached Figure Description

[0006] Figure 1 This is a partial perspective view of the first embodiment of the electronic device of the present invention.

[0007] Figure 2 This is a partial exploded perspective view of the first embodiment of the electronic device of the present invention.

[0008] Figure 3 This is a cross-sectional view of the first embodiment of the electronic device of the present invention.

[0009] Figure 4 This is an animation diagram of the first embodiment of the electronic device of the present invention.

[0010] Figure 5 for Figure 1 A sectional view along line segment 5-5.

[0011] Figure 6 for Figure 3 A sectional view along line segment 6-6.

[0012] Figure 7 This is an exploded perspective view of a second embodiment of the electronic device of the present invention.

[0013] Figure 8 This is a cross-sectional view of a third embodiment of the electronic device of the present invention.

[0014] Figure 9 This is an animation diagram of the third embodiment of the electronic device of the present invention.

[0015] Figure 10 This is a perspective view of the fourth embodiment of the electronic device of the present invention.

[0016] Figure 11 for Figure 10 A cross-sectional view along line segment 11-11.

[0017] Figure 12 This is an animation diagram of the fourth embodiment of the electronic device of the present invention.

[0018] Explanation of reference numerals in the attached figures:

[0019] 1, 1a: Electronic devices

[0020] 10, 10a: substrate

[0021] 11: Image display area

[0022] 20, 20a: Keypad

[0023] 21: Keycaps

[0024] 22: Border

[0025] 221: First shaft hole

[0026] 222: Second shaft hole

[0027] 25: Groove

[0028] 30, 30a: Magnetic components

[0029] 31, 31a: First magnetic component

[0030] 32, 32a: Second magnetic component

[0031] 321: Adsorption Block

[0032] 325: Openwork section

[0033] 40, 40a: Magnetic sensor

[0034] 41: Circuit board

[0035] 50, 50a: Frame

[0036] 51: Receiving slot

[0037] 52: First group of receiving packages

[0038] 53: Second set of receiving parts

[0039] 60: Balancing component

[0040] 61: First stabilizer bar

[0041] 611: First pivot

[0042] 612: First side rod

[0043] 613: First shaft

[0044] 62: Second stabilizer bar

[0045] 621: Second pivot

[0046] 622: Second side rod

[0047] 623: Second shaft Detailed Implementation

[0048] It should be noted that in the descriptions of the various embodiments, the terms "first" and "second" are used to describe different elements, and these elements are not limited by such predicates. Furthermore, for ease of explanation and clarity, the thickness or dimensions of each element in the drawings are exaggerated, omitted, or approximated for the understanding and reading of those skilled in the art. The dimensions of each element are not exactly their actual dimensions and are not intended to limit the implementation conditions of the invention; therefore, they have no substantial technical significance. Any modifications to the structure, changes in proportions, or adjustments to size, without affecting the effects and objectives achieved by the invention, should still fall within the scope of the technical content disclosed in this invention.

[0049] Figure 1 This is a partial perspective view of the first embodiment of the electronic device of the present invention. Figure 2 This is a partial exploded perspective view of the first embodiment of the electronic device of the present invention. Figure 1 and Figure 2As shown, the electronic device 1 of this embodiment includes a substrate 10, a button 20, a magnetic component 30, and a magnetic sensor 40. In some embodiments, the electronic device 1 can be various electronic products that input signals via buttons; for example, the electronic device 1 can be a keyboard, mouse, game controller, or other electronic products.

[0050] like Figure 1 and Figure 2 As shown, the electronic device 1 may have one or more buttons 20, magnetic components 30, and magnetic sensors 40, depending on the type or requirements of the actual product. For example, in this embodiment, the electronic device 1 is a keyboard and includes multiple buttons 20. These buttons 20 may include multiple letter keys, multiple number keys, a space key, an enter key, and a Caps Lock key, etc. The electronic device 1 can be applied to various electronic devices (e.g., desktop computers or laptops) for users to input corresponding signals by pressing buttons.

[0051] In some embodiments, the substrate 10 may be a rigid plate made of metal (e.g., aluminum, steel, alloy, etc.) or plastic. Alternatively, the substrate 10 may be a circuit board, such as a printed circuit board (PCB), membrane circuit board, flexible printed circuit board (FPCB), or rigid-flex PCB. Alternatively, the substrate 10 may be a display panel, such as a liquid crystal display panel, LED display panel, or OLED display panel, which can be used to display images. Or, the substrate 10 may be a plate composed of at least two of the above-mentioned rigid plates, circuit boards, and display panels.

[0052] like Figure 1 and Figure 2 As shown, multiple buttons 20 and magnetic components 30 are disposed above the substrate 10. The magnetic component 30 includes a first magnetic element 31 and a second magnetic element 32. The number of first magnetic elements 31 and the number of second magnetic elements 32 can be one or more. One of the first magnetic elements 31 and the second magnetic element 32 can be a permanent magnet (such as a neodymium iron boron magnet or an AlNiCo magnet), and the other can be a magnetic plate made of a magnetically conductive material such as iron, cobalt, nickel, or silicon steel, or a composite material or metal, so that the first magnetic element 31 and the second magnetic element 32 can have a magnetic attraction force. Alternatively, both the first magnetic element 31 and the second magnetic element 32 can be permanent magnets and also have the aforementioned magnetic attraction force.

[0053] like Figure 1and Figure 2 As shown, in this embodiment, the first magnetic element 31 is a permanent magnet, and there are multiple first magnetic elements 31 corresponding to the number of buttons 20. The multiple first magnetic elements 31 are respectively connected to the buttons 20. For example, each first magnetic element 31 can be fixed to the button 20 by means of adhesion, snap-fit, or locking, so that when each button 20 moves relative to the substrate 10, each first magnetic element 31 can move synchronously with each button 20.

[0054] Figure 3 This is a cross-sectional view of the first embodiment of the electronic device of the present invention. Figure 4 This is an animation diagram illustrating the operation of the first embodiment of the electronic device of the present invention. Figure 5 for Figure 1 A sectional view along line segment 5-5. (e.g.) Figures 2 to 5 As shown, in this embodiment, each button 20 includes a keycap 21 and a frame 22 connected around the keycap 21, wherein the keycap 21 and the frame 22 can be integrally formed or assembled. The frame 22 of each button 20 has a groove 25, and each first magnetic element 31 is fixed in the groove 25, so that each first magnetic element 31 is protected and prevents it from easily detaching from each button 20, but the present invention is not limited thereto.

[0055] like Figure 2 As shown, the second magnetic element 32 is fixed above the substrate 10 and adjacent to the first magnetic element 31. In this embodiment, the second magnetic element 32 is a magnetic plate, and the second magnetic element 32 is elongated and covers multiple first magnetic elements 31. For example, all or part of the area of ​​each first magnetic element 31 may be located within the orthographic projection range of the second magnetic element 32. In addition, multiple first magnetic elements 31 are located between the second magnetic element 32 and the substrate 10, thus the multiple first magnetic elements 31 are close to the substrate 10 relative to the second magnetic element 32.

[0056] In some embodiments, the second magnetic element 32 can be directly fixed to the substrate 10, or the second magnetic element 32 can be indirectly connected to the substrate 10 via other components. For example... Figure 1 and Figure 2 As shown, in this embodiment, a frame 50 is also provided on the substrate 10. The frame 50 has a plurality of receiving slots 51. A plurality of buttons 20 are respectively located in the plurality of receiving slots 51 of the frame 50. The second magnetic element 32 is fixed on the frame 50 to be indirectly connected to the substrate 10 through the frame 50.

[0057] like Figures 2 to 5As shown, the magnetic sensor 40 is a sensor capable of sensing magnetic field strength or changes in magnetic field. For example, the magnetic sensor 40 can be a Hall sensor or a magnetoresistive sensor to sense the surrounding magnetic field strength or magnetic flux. The magnetic sensor 40 can be directly or indirectly connected to the substrate 10. The number of magnetic sensors 40 corresponds to the number of buttons 20, and each magnetic sensor 40 is adjacent to the magnetic component 30. In some embodiments, the number of magnetic sensors 40 may be different from the number of buttons 20. For example, a single magnetic sensor 40 can be disposed between two buttons 20 to sense the magnetic field strength or magnetic flux of the first magnetic element 31 on the two buttons 20.

[0058] like Figures 2 to 4 As shown, in this embodiment, each magnetic sensor 40 is connected to one side of the substrate 10. Multiple magnetic sensors 40 can be disposed on a circuit carrier board 41 and spaced apart from each other. For example, the circuit carrier board 41 can be a printed circuit board (PCB), a membrane circuit board, a flexible printed circuit board (FPCB), or a rigid-flex PCB. The circuit carrier board 41 is fixed to the side of the substrate 10, and when the substrate 10 is a circuit board, the circuit carrier board 41 can be electrically connected to the substrate 10. Furthermore, in this embodiment, the distance from each magnetic sensor 40 to each first magnetic element 31 is less than the distance from each magnetic sensor 40 to the second magnetic element 32. However, this invention is not limited to this; each magnetic sensor 40 can also be disposed in other different positions with different distance relationships to the first magnetic element 31 and the second magnetic element 32. For example… Figure 7 As shown, in the second embodiment of the present invention, each magnetic sensor 40 may also be disposed on the surface of the substrate 10 facing the button 20, and each magnetic sensor 40 corresponds to each first magnetic element 31. In addition, in this embodiment, multiple magnetic sensors 40 are disposed on the circuit board 41, and the circuit board 41 is fixed to the surface of the substrate 10 facing the button 20, so that each magnetic sensor 40 is indirectly disposed on the substrate 10 via the circuit board 41.

[0059] like Figure 3 and Figure 4 As shown, each button 20 can move relative to the substrate 10 to an unpressed position (e.g., Figure 3 The location shown) and the pressure location (such as Figure 4The positions shown are between [the specified positions]. When each button 20 is in the unpressed position, each first magnetic element 31 is attracted to the second magnetic element 32, positioning each button 20 in the aforementioned unpressed position. In other words, multiple buttons 20 can share the same second magnetic element 32, achieving advantages such as cost savings and simplified assembly. Figure 3 and Figure 4 As shown, when one of the buttons 20 is pressed by the user and moves from an unpressed position toward the substrate 10 to a pressed position, during the movement of the button 20, the first magnetic element 31 will move toward the substrate 10 simultaneously, causing the first magnetic element 31 and the second magnetic element 32 to gradually move away from each other and generate a change in the magnetic field (for example, the magnetic lines of force of the first magnetic element 31 will increase significantly). The magnetic sensor 40 can then generate a corresponding signal based on the aforementioned change in the magnetic field. For example, in this embodiment, during the process of the button 20 moving from an unpressed position to a pressed position, the first magnetic element 31 moves toward the corresponding magnetic sensor 40 to generate the aforementioned change in the magnetic field.

[0060] Therefore, when each button 20 of the electronic device 1 in this embodiment of the invention is pressed, the magnetic sensor 40 generates a signal based on the change in the magnetic field of the first magnetic element 31 and the second magnetic element 32. Thus, the buttons 20 can reduce wear and tear during operation, thereby extending the service life of the electronic device 1. In addition, the electronic device 1 can adjust the shape, size, material, magnetization amount, or placement of the first magnetic element 31 and the second magnetic element 32 according to the user's preferences to freely change the operating feel of the buttons 20. This allows the electronic device 1 to be customized according to the user's needs, thereby providing a personalized and diverse experience.

[0061] like Figure 3 As shown, when the button 20 is in the unpressed position, there is a first magnetic attraction between each of the first magnetic elements 31 and the second magnetic elements 32, causing the first magnetic elements 31 and the second magnetic elements 32 to attract each other, thereby positioning the button 20. Figure 4 As shown, when button 20 is in the pressed position, there is a second magnetic attraction between each of the first magnetic elements 31 and the second magnetic elements 32, and the second magnetic attraction is less than the first magnetic attraction. That is, when one of the buttons 20 is pressed by the user and moves towards the substrate 10 to the pressed position, there is still a magnetic attraction between the first magnetic element 31 and the second magnetic element 32 (i.e., the aforementioned second magnetic attraction). Therefore, when the user releases button 20, button 20 can rise from the pressed position to the unpressed position through the aforementioned second magnetic attraction. In this way, the magnetic component 30 of this embodiment of the invention, in addition to triggering the magnetic sensor 40 to generate a signal, also has the function of providing button 20 positioning and reset, so that the electronic device 1 does not need to install a reset element (such as a spring, a clip, or rubber) to save costs and simplify the assembly process, and the sensing of the magnetic sensor 40 is not easily affected by assembly tolerances.

[0062] like Figure 2 As shown, in this embodiment, the substrate 10 is a display panel including an image display area 11. The keycaps 21 of each button 20 can be light-transmitting keycaps, and the position of each keycap 21 corresponds to the position of the image display area 11. Therefore, the images displayed in the image display area 11 of the substrate 10 (e.g., letters, numbers, punctuation marks, or text) can be freely selected according to actual needs, and the user can see the images displayed in the image display area 11 from each keycap 21, allowing the electronic device 1 to be customized according to user needs, thereby providing a personalized and diverse experience. However, the foregoing embodiment is merely an example; the keycaps 21 of each button 20 can also be ordinary opaque keycaps, and the substrate 10 can be the aforementioned rigid board or circuit board.

[0063] like Figures 2 to 4 As shown, a balancing assembly 60 can be connected between each button 20 and the base plate 10 to ensure that the button 20 can move smoothly during pressing, thereby providing a better operating feel. The balancing assembly 60 may include at least two balance rods. For example, in this embodiment, the balancing assembly 60 includes a first balance rod 61 and a second balance rod 62. The first balance rod 61 has a first pivot 611 and two first side rods 612, which are respectively connected to opposite ends of the first pivot 611. The second balance rod 62 has a second pivot 621 and two second side rods 622, which are respectively connected to opposite ends of the second pivot 621, and the first pivot 611 is perpendicular to the second pivot 621. Therefore, by means of the first pivot 611 of the first balance bar 61 being perpendicular to the second pivot 621 of the second balance bar 62, when the user presses the button 20, the pressing force can be transmitted to various parts of the button 20 in different directions through the first balance bar 61 and the second balance bar 62, thereby preventing the button 20 from shaking or bending during movement.

[0064] Figure 6 for Figure 3 A sectional view along line segment 6-6. (e.g.) Figures 2 to 4 and Figure 6As shown, in this embodiment, the first pivot 611 of the first balance bar 61 and the second pivot 621 of the second balance bar 62 are rotatably connected to the frame 50 on the base plate 10. Here, the frame 50 has a first connector 52 and a second connector 53. The first pivot 611 of the first balance bar 61 is rotatably connected to the first connector 52, and the second pivot 621 of the second balance bar 62 is rotatably connected to the second connector 53. This achieves the rotatable connection of the first pivot 611 and the second pivot 621 to the frame 50. Furthermore, in this embodiment, the first pivot 611 is perpendicular to the second pivot 621, and the first pivot 611 and the second pivot 621 are respectively arranged along two mutually perpendicular sides of the frame 50. Therefore, when the user presses the button 20, the pressing force can be transmitted along the extension directions of the first pivot 611 and the second pivot 621, ensuring that the button 20 can move downwards stably.

[0065] like Figures 2 to 4 and Figure 6 As shown, in this embodiment, the first side rods 612 of the first balance rod 61 and the second side rods 622 of the second balance rod 62 are oscillatingly connected to the button 20. Here, the frame 22 of the button 20 has two first shaft holes 221 and two second shaft holes 222. The first balance rod 61 has two first shafts 613, each first shaft 613 being perpendicular to each first side rod 612 and connected to the end of each first side rod 612 away from the first rotating shaft 611. The second balance rod 62 has two second shafts 623, each second shaft 623 being perpendicular to each second side rod 622 and connected to the end of each second side rod 622 away from the second rotating shaft 621. The first shafts 613 of the first balance rod 61 and the second shafts 623 of the second balance rod 62 are rotatably connected to the first shaft holes 221 and the second shaft holes 222 of the button 20, respectively. Therefore, when the button 20 is pressed by the user and moves towards the substrate 10, the first pivot 611, the second pivot 621, each first shaft 613, and each second shaft 623 can rotate relative to the substrate 10, allowing each first side rod 612 and each second side rod 622 to swing relative to the substrate 10. However, the above embodiment is only an example. In some embodiments, the connection positions of the first pivot 611 and each first shaft 613 of the first balance rod 61 can also be interchanged, and the connection positions of the second pivot 621 and each second shaft 623 of the second balance rod 62 can also be interchanged. Alternatively, the first pivot 611 and each first shaft 613 of the first balance rod 61 can also be connected to the button 20 and the substrate 10 respectively, and the second pivot 621 and each second shaft 623 of the second balance rod 62 can also be connected to the button 20 and the substrate 10 respectively.

[0066] For example Figures 2 to 4 and Figure 6As shown, when the keycaps 21 of each key 20 are light-transmitting keycaps, the balancing component 60 can avoid the display area of ​​the keycaps 21 to prevent the balancing component 60 from blocking light from shining onto the keycaps 21. For example, in this embodiment, the second balancing rod 62 is connected to the frame 22 of the key 20, and the first pivot 611 of the first balancing rod 61 and each first side rod 612 correspond to the edge of the keycap 21, so that the image displayed on the substrate 10 is not blocked by the first balancing rod 61 and the second balancing rod 62.

[0067] like Figure 2 and Figure 5 As shown, in this embodiment, the second magnetic element 32 has multiple adsorption blocks 321 and multiple hollow portions 325. The position of each adsorption block 321 corresponds to the position of each first magnetic element 31. When the button 20 is in the unpressed position (e.g., Figure 3 As shown, each of the first magnetic elements 31 is attracted to each of the attraction blocks 321 of the second magnetic element 32. Furthermore, each attraction block 321 has a cutout portion 325 on opposite sides; for example, the cutout portion 325 can be a hole or a groove. Therefore, by providing cutout portions 325 on both sides of each attraction block 321, the structural strength of each attraction block 321 can be changed, and different pressing sensations can be generated when the user presses the button 20 and moves it toward the substrate 10.

[0068] Figure 8 This is a cross-sectional view of the third embodiment of the electronic device of the present invention. Figure 9 This is an animation diagram illustrating the operation of a third embodiment of the electronic device of the present invention. Figure 8 and Figure 9 As shown, this embodiment is similar to the one described above. Figure 3 and Figure 4 The difference in this embodiment is that the first magnetic element 31 of the magnetic component 30 is a magnetic plate, and the number of first magnetic elements 31 corresponds to the number of buttons 20. The multiple first magnetic elements 31 are respectively connected to the buttons 20. The second magnetic element 32 of the magnetic component 30 is a permanent magnet, and the number of second magnetic elements 32 corresponds to the number of buttons 20. The multiple second magnetic elements 32 are respectively fixed to the frame 50 above the substrate 10, and the positions of the multiple second magnetic elements 32 correspond to the positions of the multiple first magnetic elements 31. Each magnetic sensor 40 is disposed on one side of the frame 50, and the distance between each magnetic sensor 40 and the substrate 10 is greater than the distance between each magnetic sensor 40 and each second magnetic element 32. When one of the buttons 20 is in an unpressed position (e.g., ... Figure 8 (As shown) Move to the pressure position (e.g.) Figure 9 As shown, during the movement of button 20, the first magnetic element 31 moves away from the magnetic sensor 40 to generate a change in the magnetic field (for example, the magnetic lines of force of the second magnetic element 32 will increase significantly), so that the magnetic sensor 40 can generate a corresponding signal according to the change in the magnetic field.

[0069] Figure 10 This is a perspective view of the fourth embodiment of the electronic device of the present invention. Figure 11 for Figure 10 A sectional view along line segment 11-11. Figure 12 This is an animation diagram illustrating the operation of the fourth embodiment of the electronic device of the present invention. Figures 10 to 12 As shown, the difference between this embodiment and the first embodiment described above is that the electronic device 1a in this embodiment is a mouse. The electronic device 1a includes a substrate 10a, buttons 20a, a magnetic component 30a and a magnetic sensor 40a. The number of buttons 20a can be one or more (e.g., left and right buttons).

[0070] like Figures 10 to 12 As shown, the magnetic component 30a includes a first magnetic element 31a and a second magnetic element 32a. The first magnetic element 31a is connected to the button 20a, and the second magnetic element 32a is fixed above the substrate 10a and adjacent to the first magnetic element 31a. In this embodiment, the substrate 10a has a frame 50a, and the second magnetic element 32a is fixed to the frame 50a to be indirectly connected to the substrate 10a through the frame 50a.

[0071] In some embodiments, one of the first magnetic element 31a and the second magnetic element 32a may be a permanent magnet (such as a neodymium iron boron magnet or an alnico magnet), and the other may be a magnetic plate made of a magnetically conductive material such as iron, cobalt, nickel, or silicon steel, or a composite material or metal, so that there is a magnetic attraction between the first magnetic element 31a and the second magnetic element 32a. Alternatively, both the first magnetic element 31a and the second magnetic element 32a may be permanent magnets and have the aforementioned magnetic attraction. The substrate 10a may be a rigid plate made of metal (e.g., aluminum, steel, alloy, etc.) or plastic, or the substrate 10a may be a circuit board.

[0072] like Figures 10 to 12 As shown, the first magnetic element 31a is located between the second magnetic element 32a and the substrate 10a, thus positioning the first magnetic element 31a closer to the substrate 10a relative to the second magnetic element 32a. A magnetic sensor 40a is disposed on the substrate 10a. Figure 11 As shown, when each button 20a is in the unpressed position, the first magnetic element 31a and the second magnetic element 32a can contact and attract each other, positioning the button 20a in the aforementioned unpressed position. Figure 12As shown, when the button 20a is pressed by the user and moves from the unpressed position to the pressed position on the substrate 10a, during the movement of the button 20a, the first magnetic element 31a will move towards the substrate 10a simultaneously, causing the first magnetic element 31a and the second magnetic element 32a to move away from each other and generate a change in the magnetic field (for example, the first magnetic element 31a can be a magnet, and the magnetic lines of force of the first magnetic element 31a are greatly increased). The magnetic sensor 40a can then generate a corresponding signal based on the aforementioned change in the magnetic field. For example, in this embodiment, during the process of the button 20a moving from the unpressed position to the pressed position, the first magnetic element 31a moves closer to the magnetic sensor 40a on the substrate 10a to generate the aforementioned change in the magnetic field.

[0073] Although the technical content of the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any modifications and refinements made by those skilled in the art without departing from the spirit of the present invention should be included within the scope of the present invention. Therefore, the scope of protection of the present invention shall be determined by the scope defined in the appended claims.

Claims

1. An electronic device, characterized in that, include: substrate; A button is disposed above the substrate, and the button can be selectively moved relative to the substrate between an unpressed position and a pressed position; A magnetic assembly is disposed above the substrate. The magnetic assembly includes a first magnetic element and a second magnetic element, wherein the first magnetic element is connected to the button, and the second magnetic element is adjacent to the first magnetic element; and A magnetic sensor is connected to the substrate and is adjacent to the magnetic component; When the button is in the unpressed position, the first magnetic element and the second magnetic element attract each other, thus positioning the button. As the button moves from the unpressed position to the pressed position, the first magnetic element and the second magnetic element move away from each other, resulting in a change in the magnetic field. The magnetic sensor generates a signal based on the change in the magnetic field.

2. The electronic device as claimed in claim 1, characterized in that, When the button is in the unpressed position, there is a first magnetic attraction between the first magnetic element and the second magnetic element; when the button is in the pressed position, there is a second magnetic attraction between the first magnetic element and the second magnetic element, and the second magnetic attraction is less than the first magnetic attraction.

3. The electronic device as claimed in claim 1, characterized in that, The first magnetic component is a magnet. During the process of the button moving from the unpressed position to the pressed position, the first magnetic component moves toward the magnetic sensor to generate the change in magnetic field.

4. The electronic device as claimed in claim 1, characterized in that, The second magnetic component is a magnet. As the button moves from the unpressed position to the pressed position, the first magnetic component moves away from the magnetic sensor to generate the change in magnetic field.

5. The electronic device as claimed in claim 1, characterized in that, The electronic device also includes a frame disposed on the substrate, and the second magnetic component is fixed to the frame.

6. The electronic device as claimed in claim 5, characterized in that, The frame has a receiving slot, and the button is located in the receiving slot of the frame.

7. The electronic device as claimed in claim 1, characterized in that, The button has a groove, and the first magnetic element is fixed in the groove.

8. The electronic device as claimed in claim 1, characterized in that, The substrate includes an image display area, and the button includes a light-transmitting keycap, the position of which corresponds to the position of the image display area.

9. The electronic device as claimed in claim 1, characterized in that, The electronic device further includes a balancing assembly connected to the button. The balancing assembly includes a first balance bar and a second balance bar. The first balance bar has a first pivot, and the second balance bar has a second pivot. The first pivot is perpendicular to the second pivot.

10. The electronic device as claimed in claim 9, characterized in that, The electronic device also includes a frame disposed on the substrate. The frame has a first connector and a second connector. The first pivot of the first balance bar is rotatably connected to the first connector, and the second pivot of the second balance bar is rotatably connected to the second connector.

11. The electronic device as claimed in claim 9, characterized in that, The button has a first shaft hole and a second shaft hole. The first balance bar has a first side rod and a first shaft. The first side rod is connected between the first rotating shaft and the first shaft. The second balance bar has a second side rod and a second shaft. The second side rod is connected between the second rotating shaft and the second shaft. The first shaft and the second shaft are rotatably connected to the first shaft hole and the second shaft hole of the button, respectively.

12. The electronic device as claimed in claim 1, characterized in that, The first magnetic component is a magnet, and the second magnetic component is a magnetic plate. The second magnetic component has an adsorption block and two hollowed-out portions. The position of the adsorption block corresponds to the position of the first magnetic component, and the two hollowed-out portions are located on opposite sides of the adsorption block.

13. The electronic device as claimed in claim 1, characterized in that, The number of buttons and the number of first magnetic components are multiple. The multiple first magnetic components are respectively connected to the multiple buttons, and when the multiple buttons are in the unpressed position, the multiple first magnetic components are attracted to the second magnetic components.