Electronic device

By using the combination of button components and ranging sensors in electronic devices, the problems of single function and high space cost in traditional button design are solved, a multi-functional interactive button component is realized, and the internal space and components of the electronic device are saved.

CN223322088UActive Publication Date: 2025-09-09WUXI WINGTECH INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202422604873.5
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-10-25
Publication Date
2025-09-09
Estimated Expiration
2034-10-25

AI Technical Summary

Technical Problem

Traditional button designs in modern electronic devices have a single function, which requires multiple buttons to achieve multiple functions, increasing device space and cost, while also complicating dust and water resistance designs.

Method used

The button assembly is used in conjunction with the distance sensor, and the button assembly is used to block or avoid between the distance sensor and the glass cover to achieve multi-functional interaction, replacing the traditional Dome assembly.

Benefits of technology

Two interactive functions are realized through one button component and ranging sensor, which saves electronic components and internal space, reduces costs and simplifies dustproof and waterproof design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223322088U_ABST
    Figure CN223322088U_ABST
Patent Text Reader

Abstract

The utility model relates to the technical field of electronic equipment, and discloses electronic equipment, which comprises a middle frame; the circuit board is arranged in the middle frame; the glass cover plate is connected to the middle frame and located on one side of the circuit board; the distance measuring sensor is arranged on the circuit board and electrically connected with the circuit board, and a detection window of the distance measuring sensor faces the glass cover plate; and the key assembly is movably arranged in the middle frame, and the key assembly can move relative to the middle frame so as to shield or avoid the distance measuring sensor between the distance measuring sensor and the glass cover plate. By adopting the scheme of the invention, a user can enable the electronic equipment to realize two interaction functions only through one key assembly and one distance measuring sensor, so that electronic components are saved, and meanwhile, the internal space of the electronic equipment is also saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic equipment, and in particular to an electronic equipment. Background Art

[0002] In electronic devices like mobile phones and tablets, buttons are an indispensable component that carry a wide variety of operating instructions. The functions assigned to buttons vary from device to device, but they typically cover basic operations like waking up the screen, managing power, and controlling volume. Furthermore, buttons can be extended to include switching between different context modes, scrolling through pages, and even simulating a mouse scroll wheel.

[0003] Traditional key designs are usually based on the cooperation of a dome (metal dome conductive film or pot conductive film) and an FPC board (flexible printed circuit board). By applying pressure through the keycap, the metal dome on the dome is deformed and contacts the FPC, forming a closed circuit. After the pressure is released, the dome is reset, the circuit is disconnected, and the electronic device function is controlled. However, under this design, each key can often only perform a single task, such as volume adjustment or power management. In modern electronic devices that pursue multi-functional integration, if multiple functions such as screen brightness adjustment and power on / off are required, multiple keys must be set in the electronic device. This not only increases the space required for the electronic device structure, but also increases the cost of configuring a dome assembly for each key, while also increasing the complexity of the dust and water-proof design. Utility Model Content

[0004] An embodiment of the present application discloses an electronic device, which replaces the dome assembly by providing a button assembly and a ranging sensor for use in conjunction. The user can realize two interactive functions with the electronic device by using only one button, saving electronic components and space inside the electronic device.

[0005] To achieve the above objectives, the present invention discloses an electronic device comprising:

[0006] middle frame;

[0007] a circuit board, the circuit board being arranged inside the middle frame;

[0008] a glass cover plate, the glass cover plate being connected to the middle frame and located on one side of the circuit board;

[0009] a distance measuring sensor, the distance measuring sensor being disposed on the circuit board and electrically connected to the circuit board, the detection window of the distance measuring sensor facing the glass cover;

[0010] A button assembly is movably disposed on the middle frame, and the button assembly can move relative to the middle frame to shield or avoid the ranging sensor between the ranging sensor and the glass cover.

[0011] As an optional implementation manner, the middle frame includes a mounting hole, and the button assembly includes:

[0012] a button, the button being movably disposed in the mounting hole;

[0013] A light shielding member is connected to the button and is located on one side of the circuit board. When the light shielding member moves along a first direction to a first position, the light shielding member blocks the distance measuring sensor and the glass cover plate; when the light shielding member moves along a second direction to a second position, the light shielding member moves out from between the distance measuring sensor and the glass cover plate.

[0014] As an optional implementation manner, the electronic device further includes a first limiting member, the first limiting member is provided on the middle frame, and the first limiting member is located on the moving path of the button;

[0015] The button includes an elastic section on the side facing the first limiting member. When the button moves along the first direction and the shading member is located at the first position, the elastic section can abut against the first limiting member and deform. The deformation force of the elastic section can cause the button to move along the second direction.

[0016] As an optional implementation manner, an avoidance groove is formed on the light shielding member, and when the light shielding member moves to the second position, the avoidance groove corresponds to the detection window of the distance measuring sensor along the thickness direction of the electronic device.

[0017] As an optional implementation manner, two ends of the elastic segment along the length direction are connected to the button, and the first limiting member can abut between the two ends of the elastic segment.

[0018] As an optional implementation manner, the electronic device further includes a second limiting member, and when the key moves along the second direction and abuts against the second limiting member, the shading member moves to the second position along with the key.

[0019] As an optional embodiment, the button also includes a hollow groove, and the second limiting member is located in the hollow groove. When the light-shielding member is in the first position, the second limiting member abuts against the first side wall of the hollow groove. When the light-shielding member is in the second position, the second limiting member abuts against the second side wall of the hollow groove, and the second side wall is farther away from the first limiting member than the first side wall.

[0020] As an optional implementation, the second limiting member includes a buckle portion, and the buckle portion is used to stop the button from moving along the thickness direction of the electronic device.

[0021] As an optional implementation manner, the shading member is closer to the glass cover plate than the key along the thickness direction of the electronic device.

[0022] As an optional implementation, the shading member and the button are integrally formed.

[0023] Compared with the prior art, the present invention has the following advantages:

[0024] The electronic device provided in the embodiment of the present application replaces the Dome component by providing a ranging sensor and a button component. The button component can move relative to the middle frame. The button component moves between the ranging sensor and the glass cover to block or avoid the ranging sensor. This enables the user to use the electronic device to achieve two interactive functions using only one button component and ranging sensor, saving electronic components and space inside the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0026] Figure 1 A schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application;

[0027] Figure 2 for Figure 1 A structural diagram of an electronic device (omitted glass cover);

[0028] Figure 3 for Figure 2 A schematic structural diagram of an electronic device from another perspective;

[0029] Figure 4 for Figure 1 A schematic structural diagram of a middle frame in an electronic device;

[0030] Figure 5 for Figure 2 A schematic diagram of a portion of the structure of a key assembly in an electronic device.

[0031] Description of reference numerals:

[0032] 100-electronic device; 1-middle frame; 11-mounting hole; 2-circuit board; 3-glass cover; 4-distance measuring sensor; 5-button assembly; 51-button; 511-elastic section; 512-hollow groove; 5121-first side wall; 5122-second side wall; 52-light shielding member; 521-avoidance groove; 6-first limiting member; 7-second limiting member; 71-clamping part; X-first direction; Y-second direction; A-first position; B-second position. DETAILED DESCRIPTION

[0033] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0034] In this application, terms such as "upper," "lower," "inner," and "vertical" indicate positions or locations based on those shown in the accompanying drawings. These terms are primarily intended to better describe this application and its embodiments and are not intended to limit the devices, elements, or components indicated to specific positions, or to their construction or operation in a specific position.

[0035] Furthermore, some of the above terms may be used to express other meanings besides indicating a position or location. For example, the term "on" may also be used to indicate a dependency or connection in certain circumstances. Those skilled in the art will understand the specific meanings of these terms in this application based on the specific circumstances.

[0036] Furthermore, the terms "disposed," "equipped with," and "connected" should be interpreted broadly. For example, they can refer to fixed connections, removable connections, or integral structures; mechanical connections or electrical connections; direct connections or indirect connections through an intermediary; or internal communication between two devices, elements, or components. Those skilled in the art will understand the specific meanings of these terms in this application based on the specific circumstances.

[0037] Furthermore, the terms "first," "second," etc., are primarily used to distinguish between different devices, elements, or components (which may or may not be of the same type and configuration), and are not intended to indicate or imply the relative importance or quantity of the devices, elements, or components indicated. Unless otherwise specified, "plurality" means two or more.

[0038] Buttons play a core control role in electronic devices like mobile phones and tablets, serving as the physical touchpoints for user interaction with these devices. Based on device characteristics and design intent, buttons are configured to perform basic functions such as wake-up, power control, and volume adjustment. They can also handle more complex tasks, such as intelligently switching between profiles, page navigation, and simulating mouse operations. The presence of buttons not only ensures convenient device operation but also enhances the richness of the interactive experience. They are key hardware components that enable diverse functionality and improve user satisfaction in electronic devices.

[0039] Traditional keys utilize a dome and FPC combination. By applying pressure to the keycap, the dome deforms and contacts the FPC, creating a current path for functional control. When the pressure is released, the dome rebounds, disconnecting the circuit and enabling functional control. However, this design limits keys to a single function, such as volume adjustment or power control. In today's pursuit of multi-functional integration, electronic devices that need to implement multiple functions, such as volume adjustment and power management, require multiple keys. This not only takes up more internal space in the electronic device, but the use of multiple dome components also drives up costs and increases the difficulty of dust and water-resistant designs.

[0040] Based on this, an embodiment of the present application discloses an electronic device that enables a user to realize two interactive functions of the electronic device through only one button assembly and a ranging sensor, thereby saving electronic components and space inside the electronic device.

[0041] The technical solution of the present application will be further described below with reference to the embodiments and drawings.

[0042] See also Figures 1 to 3 , Figure 1 This is a schematic diagram of the structure of the electronic device 100 disclosed in the embodiment of this application. Figure 2 for Figure 1 A structural diagram of the electronic device 100 (omitted glass cover 3), Figure 3 for Figure 2 A structural diagram of the electronic device 100 from another perspective.

[0043] The embodiment of the present application discloses an electronic device 100, specifically comprising:

[0044] Middle frame 1;

[0045] The circuit board 2 is arranged inside the middle frame 1;

[0046] A glass cover plate 3 is connected to the middle frame 1 and is located on one side of the circuit board 2;

[0047] The distance measuring sensor 4 is disposed on the circuit board 2 and electrically connected to the circuit board 2, and the detection window of the distance measuring sensor 4 faces the glass cover 3;

[0048] The button assembly 5 is movably disposed on the middle frame 1 . The button assembly 5 can move relative to the middle frame 1 to shield or avoid the distance measuring sensor 4 between the distance measuring sensor 4 and the glass cover 3 .

[0049] Specifically, the middle frame 1 is the frame of the electronic device 100, which is usually made of metal or high-strength plastic. It is used to protect internal components and provide structural support for the electronic device 100. The middle frame 1 not only fixes internal components such as the circuit board 2 and the battery, but also cooperates with the front panel and the back cover to ensure the structural stability and durability of the electronic device 100.

[0050] The circuit board 2 is a platform that carries electronic components, including microprocessors, memory, sensors, etc. The circuit board 2 connects these components through wiring to achieve signal transmission and processing. Inside the middle frame 1, the circuit board 2 is responsible for controlling the operation of various functions.

[0051] The glass cover 3 refers to the front panel of the electronic device 100, which covers the touch screen, protects the screen and provides a smooth touch interface. The glass cover 3 is made of high-strength glass or similar materials and can withstand wear and tear and slight impacts of daily use.

[0052] The ranging sensor 4, also known as an ambient light sensor or a proximity sensor, is mainly used to detect the intensity of ambient light and the proximity of an object. The detection window of the ranging sensor 4 faces the glass cover 3. The detection window can emit detection light, which passes through the glass cover 3 and reaches the external object. The light reflected by the external object can be fed back to the detection window through the glass cover 3. In this process, the ranging sensor 4 can determine the distance between it and the external object by reflecting the light.

[0053] Optionally, the display screen may be located at the bottom of the glass cover plate 3 , and an opening may be provided on the display screen to allow the detection light emitted by the distance measuring sensor 4 to pass through to the glass cover plate 3 .

[0054] The button assembly 5 is movably disposed on the middle frame 1. The button assembly 5 can be controlled to move relative to the middle frame 1, that is, the button assembly 5 can move relative to the middle frame 1 under the action of pressing force.

[0055] In one embodiment, when the button assembly 5 is stationary relative to the middle frame 1, the detection light emitted by the ranging sensor 4 can pass through the glass cover 3 and be reflected by the external object. Depending on the distance between the external object and the ranging sensor 4, the detection value output by the ranging sensor 4 can be a variable A, which is used to indicate the distance value between the external object and the inspection window of the ranging sensor 4.

[0056] In one embodiment, when the key assembly 5 moves relative to the middle frame 1, the key assembly 5 can move further into the middle frame 1, and at least a portion of the key assembly 5 can block the detection light emitted by the ranging sensor 4. In other words, at least a portion of the key assembly 5 can be located between the ranging sensor 4 and the glass cover 3. In this way, the detection light from the ranging sensor 4 cannot pass through the glass cover 3 and is instead blocked by at least a portion of the key assembly 5. Because the distance between the ranging sensor 4 and the key assembly 5 is fixed along the thickness direction of the electronic device 100, the output value of the ranging sensor 4 can be a fixed value B.

[0057] For example, if the output value of the ranging sensor 4 is variable A, and the variable A is greater than the threshold C, it means that the ranging sensor 4 is not blocked by the button component 5 and is not blocked by external objects (such as the user's hand or head). At this time, the processor of the electronic device 100 can keep the screen of the electronic device 100 always on according to the variable output by the ranging sensor 4 to ensure that the user can use the electronic device 100 normally.

[0058] For example, if the output value of the ranging sensor 4 is variable A, and the variable A is less than the threshold value C, it means that the ranging sensor 4 is not blocked by the button component 5, but is blocked by an external object (such as the user's hand or head). At this time, the electronic device 100 may be in a call or being carried around. The processor of the electronic device 100 can control the display screen to be off to avoid the user accidentally touching the electronic device 100, causing unnecessary erroneous operations, and reducing unnecessary energy loss.

[0059] For example, if the output value of the ranging sensor 4 is a fixed value B, it indicates that the user has pressed the button assembly 5, causing the ranging sensor 4 to be blocked by the button assembly 5. The ranging sensor 4 can output the fixed value B, and the processor of the electronic device 100 can control other components of the electronic device 100 to implement a certain interactive function based on the fixed value B transmitted by the ranging sensor 4, such as turning the device on and off or activating and deactivating a performance mode.

[0060] In the electronic device 100 provided in the embodiment of the present application, the button assembly 5 movably mounted on the middle frame 1 blocks or avoids the ranging sensor 4 between the ranging sensor 4 and the glass cover 3. Without the use of the Dome assembly, the user can enable the electronic device 100 to implement two interactive functions using only one button assembly 5 and the ranging sensor 4. In this way, the electronic device 100 provided in the embodiment of the present application, with only one button assembly 5 and the ranging sensor 4, achieves reuse of the button assembly 5 and the ranging sensor 4, reduces the number of internal components of the electronic device 100, effectively utilizes the internal space, and reduces material costs and assembly complexity.

[0061] For details, please refer to Figures 2 to 4 , Figure 4 for Figure 1 Schematic diagram of the structure of the middle frame 1 in the electronic device 100; the middle frame 1 includes a mounting hole 11, and the button assembly 5 includes: a button 51, which is movably arranged in the mounting hole 11; a light shielding member 52, which is connected to the button 51 and is located on one side of the circuit board 2. When the light shielding member 52 moves to the first position A along the first direction X, the light shielding member 52 blocks the distance measuring sensor 4 and the glass cover 3; when the light shielding member 52 moves to the second position B along the second direction Y, the light shielding member 52 moves out of the distance measuring sensor 4 and the glass cover 3. The first direction X is for pressing the button. The first direction X and the second direction Y are opposite to each other. The first position A is the position of the button 51 and the light shielding member 52 after the button 51 is pressed. At this time, the light shielding member 52 can be located directly above the detection window of the ranging sensor 4. The second position B is the position of the button 51 and the light shielding member 52 after the button 51 is released or when the button 51 and the light shielding member 52 are stationary. At this time, the light shielding member 52 is located on one side of the ranging sensor 4 along the second direction Y.

[0062] It can be understood that when the button 51 is pressed, the button 51 drives the light shielding member 52 to move along the first direction X, and the button 51 and the light shielding member 52 move from the second position B to the first position A. When the button 51 drives the light shielding member 52 to move to the first position A, the light shielding member 52 blocks the distance measuring sensor 4 and the glass cover 3. When the button 51 is released, the button 51 drives the light shielding member 52 to move along the second direction Y, and the button 51 and the light shielding member 52 move from the first position A to the second position B. When the button 51 drives the light shielding member 52 to move to the second position B, the light shielding member 52 moves out from between the distance measuring sensor 4 and the glass cover 3.

[0063] Among them, the movement of the shading member 52 enables the ranging sensor 4 to not only detect the distance to the external device to realize the screen off or on through the processor, but also realize the user's active interaction with the electronic device 100, such as turning on and off or starting the performance mode or Google key, etc., to realize the reuse of the button component 5 and the ranging sensor 4, and the linkage between the shading member 52 and the button 51 simplifies the internal mechanical structure, reduces the friction and wear between moving parts, and extends the service life of the electronic device 100.

[0064] It should be noted that the materials of the button 51 and the shading member 52 can be metal materials, plastic materials, carbon fiber or other materials with high strength and durability. This application does not limit the materials of the button 51 and the shading member 52.

[0065] In some embodiments, see Figures 2 to 4 The electronic device 100 further includes a first limiter 6, which is disposed on the middle frame 1 and is located on the moving path of the button 51; the button 51 includes an elastic section 511 on the side facing the first limiter 6. When the button 51 moves along the first direction X and the light shielding member 52 is located at the first position A, the elastic section 511 can abut against the first limiter 6 and deform. The deformation force of the elastic section 511 can cause the button 51 to move along the second direction Y.

[0066] The first direction X is the direction in which the button 51 and the light shielding member 52 move when the button 51 is pressed. The first direction X is from the outside to the inside of the electronic device 100. The second direction Y is the direction in which the button 51 and the light shielding member 52 return to their original position when the button 51 is released. The first direction X and the second direction Y are opposite directions. That is, the second direction Y is from the inside to the outside of the electronic device 100.

[0067] Specifically, when the button 51 drives the shading member 52 to move along the first direction X, the elastic segment 511 follows the button 51 to move in the first direction X. When the shading member 52 reaches the first position A, the elastic segment 511 abuts against the first limiting member 6. The elastic segment 511 is deformed due to being limited by the first limiting member 6.

[0068] When the button 51 is released, the button 51 and the light shielding member 52 are deformed without external force due to the elastic section 511 , and the elastic section 511 restores and pushes the button 51 and the light shielding member 52 to move to the second position B along the second direction Y.

[0069] When the button 51 and the connected light shielding member 52 move in the first direction X, the elastic segment 511 contacts the first stopper 6 and begins to deform, absorbing excess kinetic energy and preventing excessive movement of the button 51, thereby achieving precise positioning. When the button 51 is released, the elastic restoring force of the elastic segment 511 causes the button 51 and the light shielding member 52 to return to the second position B in the second direction Y, automatically restoring the button 51 and the light shielding member 52.

[0070] Thus, the elastic segment 511 cooperates with the first stopper 6 to provide clear tactile feedback when in contact with the first stopper 6, allowing the user to accurately perceive the operating status. Furthermore, the elastic segment 511 also acts as a buffer, effectively reducing the hard contact between the button 51 and the first stopper 6, thereby reducing wear between the button 51 and the first stopper 6 and extending the service life of the button assembly 5.

[0071] In another possible embodiment, the button and the shading member can be limited by electromagnetic limiting. Specifically, the elastic part of the button is replaced with a magnetic arm, and the button is connected to the first coil. The coil is energized by pressing or releasing the button. When the first coil is energized, a magnetic field is generated to attract the button to move to the first position. When the button reaches the first position, further movement can be stopped by disconnecting the current of the first coil, or a limiting member can be set to prevent the button and the shading member from continuing to move, thereby achieving the limitation of the button and the shading member.

[0072] Among them, on the one hand, by setting up magnetic arms and coils to achieve limitation, physical contact between the limitation mechanism and the key can be avoided, thereby reducing the wear of the key due to friction, improving the durability and reliability of the key assembly, and the electromagnetic limitation can achieve faster action response, because the magnetic arm and coil rely on the change of the electromagnetic field, and the change of the electromagnetic field can be detected very quickly by the magnetic arm; on the other hand, the limitation method of the magnetic arm and coil can be adjusted and programmed through software, that is, the limitation position can be changed as needed without physically adjusting the limitation part on the middle frame, and due to the contactless nature of the electromagnetic limitation, the magnetic arm and coil usually require less maintenance, which helps to reduce the maintenance and operating costs of electronic equipment.

[0073] Optional, see Figures 2 to 5 , Figure 5 for Figure 2 A partial structural diagram of the key assembly 5 in the electronic device 100 is shown in FIG. The width of the light shielding member 52 can be relatively wide, and a relief groove 521 is formed on the light shielding member 52. When the light shielding member 52 moves to the second position B, the relief groove 521 corresponds to the detection window of the distance measuring sensor 4 along the thickness direction of the electronic device 100. It can be inferred that the alignment of the relief groove 521 enables the sensor to accurately detect the external environment, and the relief groove 521 ensures that the detection window of the distance measuring sensor 4 is fully exposed when it does not need to be blocked, without being blocked by the light shielding member 52, thereby ensuring the normal operation of the sensor. In addition, the precise design of the relief groove 521 reduces the risk of accidental blocking of the sensor by the light shielding member 52, reducing the risk of functional failure or malfunction due to blocking.

[0074] It should be noted that the outer perimeter width of the avoidance groove 521 is sufficient to block the detection window of the distance sensor 4. If the avoidance groove 521 is not wide enough, the distance sensor 4 may mistakenly detect the groove wall or other non-target objects, thereby affecting the accuracy and reliability of the distance sensor 4. In addition, the sufficient width helps prevent dust, dirt, or other potentially interfering substances from entering the detection window of the distance sensor 4, maintaining the accuracy of the distance sensor 4. The shielding of dust and dirt by the light shielding member 52 reduces the frequency of cleaning and maintenance of the distance sensor 4, thereby extending the service life of the distance sensor 4.

[0075] In a possible embodiment, the shading member 52 can be set as a shading plate with a width similar to that of the ranging sensor 4. When the shading member 52 moves to the first position A, the shading plate blocks the detection window of the ranging sensor 4 along the thickness direction of the electronic device 100. Among them, a whole shading plate can provide a more comprehensive and strict shading effect, ensuring that in scenarios where shading is required, the detection window of the sensor is completely unaffected by external light. Compared with the slotted design, the design structure of the whole shading plate is simpler, which reduces the complexity of the manufacturing process and reduces the production cost. The absence of the slot means that the structure of the shading member 52 is more complete, less likely to be damaged due to stress concentration, and improved durability.

[0076] In some embodiments, see Figure 2 and Figure 3 The two ends of the elastic section 511 along the length direction are connected to the button 51, and the first limit member 6 can abut between the two ends of the elastic section 511. The two ends of the elastic section 511 along the length direction are connected to the button 51 to ensure that when the button 51 is pressed, the elastic section 511 can respond immediately, generate deformation and transmit force to the center position of the button 51, providing clear tactile feedback. The firm connection between the two ends and the button 51 ensures the structural stability of the button assembly 5, and maintains good operating performance and durability even under frequent use.

[0077] In addition, the first limit member 6 can abut between the two ends of the elastic segment 511 to reduce the disordered swing of the elastic segment 511 during the pressing process, enhance the stability of the button 51 structure, especially in high-frequency usage scenarios, and can effectively prevent the structure from loosening or abnormal noise.

[0078] In some embodiments, see Figures 2 to 4 The electronic device 100 also includes a second limiter 7. When the button 51 moves along the second direction Y and abuts against the second limiter 7, the shading member 52 moves to the second position B with the button 51, wherein the second limiter 7 defines the end point of the button 51 in the second direction Y, ensuring that the stroke of the button 51 is precisely controllable.

[0079] In a possible embodiment, the limiting function can also be achieved by setting an electromagnetic limit, and the second limiting member 7 is set as a second coil, and the elastic part is a magnetic arm. When the above-mentioned first coil is energized, the button 51 and the light-shielding member 52 are attracted to the first position A, and when the second coil is energized, the button 51 and the light-shielding member 52 are attracted to the second position B. The button 51 and the light-shielding member 52 are limited by setting the second limiting member 7.

[0080] Optionally, see Figures 2 to 5The button 51 also includes a hollow groove 512, and the second limiting member 7 is located in the hollow groove 512. When the shading member 52 is in the first position A, the second limiting member 7 abuts against the first side wall 5121 of the hollow groove 512. When the shading member 52 is in the second position B, the second limiting member 7 abuts against the second side wall 5122 of the hollow groove 512. The second side wall 5122 is closer to the first limiting member 6 than the first side wall 5121. The first side wall 5121 is the side wall away from the first limiting member 6, and the second side wall 5122 is the side wall close to the first limiting member 6.

[0081] Specifically, when the shading member 52 moves along the first direction X following the button 51, the first side wall 5121 of the hollow groove 512 abuts against the side of the second limiting member 7 away from the first limiting member 6, and the shading member 52 reaches the first position A to limit the button 51 and the shading member 52. When the button 51 and the shading member 52 move along the second direction Y, the second side wall 5122 of the hollow groove 512 abuts against the side of the second limiting member 7 close to the first limiting member 6, and the shading member 52 reaches the second position B.

[0082] Among them, the cooperation between the side wall of the hollow groove 512 and the second limit member 7 ensures that the travel of the button 51 and the shading member 52 in the first direction X and the second direction Y is controlled, thereby achieving precise positioning. Moreover, through the abutment between the side wall and the limit member, the hollow groove 512 structure enhances the stability of the button 51 and the shading member 52 during movement, thereby reducing shaking or deviation during movement.

[0083] In a possible embodiment, in addition to the hollow groove, the purpose can also be achieved by setting a linear rail slider mechanism. Specifically, a slider is set below the key, and a linear rail with the same length as the key movement distance is set on the middle frame. The length of the linear rail is used to limit the movement distance of the key, thereby achieving positioning. First, by setting a linear rail slider mechanism instead of the hollow groove, sliding friction is replaced by rolling friction, which can achieve more precise and smoother motion control, and can reduce the wear of the key during movement, thereby extending the service life of the key assembly. In addition, the linear rail slider mechanism can ensure the integrity of the key and the rigidity of the key, thereby improving the overall stability of the key assembly. As a standardized component, the linear rail slider is also easy to install and maintain, reducing maintenance time and reducing maintenance costs.

[0084] Optional, see Figure 3The second stopper 7 includes a snap portion 71, which is used to prevent the button 51 from moving along the thickness direction of the electronic device 100. The snap portion 71 precisely controls the position of the button 51 along the thickness direction, ensuring accurate travel and positioning of the button 51. The snap portion 71 secures the button 51, improving the stability of the overall structure and preventing the button 51 from shaking or loosening during use. Furthermore, when the electronic device 100 is subjected to external force or vibration, the snap portion 71 effectively prevents displacement of the button 51 along the thickness direction, ensuring reliable operation.

[0085] In some embodiments, the light shielding member 52 is closer to the glass cover 3 relative to the button 51, that is, the height of the light shielding member 52 from the middle frame 1 in the thickness direction of the electronic device 100 is greater than the button 51. The height of the light shielding member 52 from the middle frame 1 in the thickness direction of the electronic device 100 is greater than the button 51, which can make the distance between the light shielding member 52 and the ranging sensor 4 larger. Sufficient distance can avoid interference between the light shielding member 52 and the ranging sensor 4 when the light shielding member 52 follows the movement of the button 51, ensuring that the detection window of the ranging sensor 4 can detect the signal without interference, thereby providing accurate ranging data. Avoiding interference can improve the reliability and stability of the electronic device 100, and can also reduce unnecessary wear on the ranging sensor 4 and extend the service life of the ranging sensor 4.

[0086] Optionally, the shading member 52 and the button 51 are integrally formed. The integrated design can be completed through a single injection molding step during the production process, reducing the assembly process, improving production efficiency and reducing costs. Since the shading member 52 and the button 51 are made of the same material and process, the connection between the shading member 52 and the button 51 is more secure, thereby improving the overall durability and reliability. The integrated design helps to reduce gaps inside the electronic device 100, improve the waterproof and dustproof performance of the electronic device 100, and extend the service life of the electronic device 100.

[0087] Optionally, the shading member 52 and the button 51 may be split structures. If the button 51 or the shading member 52 fails, the split design makes it easier to replace the damaged component individually without having to replace the entire assembly, which reduces maintenance costs and improves the sustainability of the electronic device 100. The split design can simplify the production process because the split design allows modular production. Each component can be manufactured and tested separately and then assembled into a button assembly 5, which helps to improve production efficiency and quality control. This application does not limit the connection method between the shading member 52 and the button 51.

[0088] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. An electronic device, characterized in that: include: middle frame; a circuit board, the circuit board being arranged inside the middle frame; a glass cover plate, the glass cover plate being connected to the middle frame and located on one side of the circuit board; a distance measuring sensor, the distance measuring sensor being disposed on the circuit board and electrically connected to the circuit board, the detection window of the distance measuring sensor facing the glass cover; A button assembly is movably disposed on the middle frame, and the button assembly can move relative to the middle frame to shield or avoid the ranging sensor between the ranging sensor and the glass cover.

2. The electronic device according to claim 1, wherein The middle frame includes a mounting hole, and the button assembly includes: a button, the button being movably disposed in the mounting hole; A light shielding member is connected to the button and is located on one side of the circuit board. When the light shielding member moves along a first direction to a first position, the light shielding member blocks the distance measuring sensor and the glass cover plate; when the light shielding member moves along a second direction to a second position, the light shielding member moves out from between the distance measuring sensor and the glass cover plate.

3. The electronic device according to claim 2, wherein: The electronic device further includes a first limiting member, which is disposed on the middle frame and is located on a moving path of the button; The button includes an elastic section on the side facing the first limiting member. When the button moves along the first direction and the shading member is located at the first position, the elastic section can abut against the first limiting member and deform. The deformation force of the elastic section can cause the button to move along the second direction.

4. The electronic device according to claim 3, wherein: An escape groove is formed on the light shielding member. When the light shielding member moves to the second position, the escape groove corresponds to the detection window of the distance measuring sensor along the thickness direction of the electronic device.

5. The electronic device according to claim 3, wherein: Two ends of the elastic section along the length direction are connected to the button, and the first limiting member can abut between the two ends of the elastic section.

6. The electronic device according to claim 3, wherein: The electronic device further includes a second limiting member, and when the button moves along the second direction and abuts against the second limiting member, the light shielding member moves to the second position along with the button.

7. The electronic device according to claim 6, wherein: The button also includes a hollow groove, and the second limiting member is located in the hollow groove. When the light-shielding member is in the first position, the second limiting member abuts against the first side wall of the hollow groove. When the light-shielding member is in the second position, the second limiting member abuts against the second side wall of the hollow groove, and the second side wall is farther away from the first limiting member than the first side wall.

8. The electronic device according to claim 7, wherein: The second limiting member includes a buckle portion, and the buckle portion is used to stop the button from moving along the thickness direction of the electronic device.

9. The electronic device according to any one of claims 2 to 8, characterized in that: The shading member is closer to the glass cover plate than the key along the thickness direction of the electronic device.

10. The electronic device according to any one of claims 2 to 8, characterized in that: The shading member and the button are integrally formed.