Electronic device

By incorporating permanent magnets and electromagnets into foldable electronic devices and adjusting the magnetic field environment of the electronic compass, the problem of large magnetic field changes in both unfolded and folded states is solved, improving the compensation effect and working accuracy of the electronic compass and enhancing the user experience.

CN116182820BActive Publication Date: 2026-01-09VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310229261.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-10
Publication Date
2026-01-09
Estimated Expiration
2043-03-10

AI Technical Summary

Technical Problem

The magnetic field environment of the electronic compass in existing foldable electronic devices changes significantly when the device is unfolded and folded, resulting in poor compensation and reduced accuracy.

Method used

By incorporating magnetic components, including permanent magnets and electromagnets, into the electronic device, the magnetic field environment of the electronic compass is adjusted as the states of the first and second bodies switch, ensuring that the variation is within a preset range, thereby reducing magnetic field differences and improving the compensation effect.

Benefits of technology

It effectively reduces the magnetic field differences of the electronic compass under different conditions, improves the working accuracy of the electronic compass, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116182820B_ABST
    Figure CN116182820B_ABST
Patent Text Reader

Abstract

The application discloses an electronic device, which comprises a first body, a second body, an electronic compass and a magnetic assembly; the second body is movably connected with the first body, and the first body and the second body can rotate or slide relative to each other, so that the electronic device can be switched between a first state and a second state; the electronic compass is arranged in the first body, and a functional device is arranged in the second body, wherein the functional device comprises an electromagnetic structure; the magnetic assembly is connected with the first body or the second body, and when the electronic device is switched from the first state to the second state, the magnetic assembly is switched from a third state to a fourth state, so that the change amount of a magnetic field environment in which the electronic compass is located is within a preset range.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of electronic equipment technology, and specifically relates to an electronic device. Background Technology

[0002] In related technologies, foldable screen electronic devices include a foldable first body and a second body. The first body houses a motherboard, and the electronic compass of the electronic device is mounted on the motherboard. During the use of the electronic compass, the magnetic field generated by the internal components of the electronic device can interfere with the electronic compass. To reduce this interference, compensation is performed to improve the accuracy of the electronic compass during operation. However, because the magnetic field generated by the internal components of the electronic device is located at different positions on the electronic compass when the first and second bodies are in unfolded and folded states, the compensation effect is poor, thus reducing the accuracy of the electronic compass during operation. Summary of the Invention

[0003] This application aims to provide an electronic device that at least solves one of the problems of poor compensation effect of electronic compasses, thereby reducing the accuracy of electronic compasses during operation.

[0004] To solve the above-mentioned technical problems, this application is implemented as follows:

[0005] In a first aspect, embodiments of this application propose an electronic device, including a first body, a second body, an electronic compass, and a magnetic component; the second body is movably connected to the first body, and the first and second bodies are capable of rotating or sliding relative to each other, so that the electronic device switches between a first state and a second state; the electronic compass is disposed in the first body, and a functional device, including an electromagnetic structure, is disposed in the second body; the magnetic component is connected to the first body or the second body, and when the electronic device switches from the first state to the second state, the magnetic component switches from a third state to a fourth state, so that the change in the magnetic field environment of the electronic compass is within a preset range.

[0006] In embodiments of this application, the electronic device includes a first body and a second body, the second body being movably connected to the first body, and the first body and the second body being able to switch between a first state and a second state. When the first body and the second body are in the first state, the first body and the second body are engaged, and when the first body and the second body are in the second state, the first body and the second body are disengaged, so that the electronic device can switch states according to the user's needs to increase the size of the electronic device's display screen.

[0007] The electronic device also includes an electronic compass, which is disposed within the first body. When the first and second bodies switch between a first state and a second state, the distance between the device on the second body capable of generating a magnetic field and the electronic compass changes, thereby altering the magnetic field distribution and intensity at the electronic compass. The electronic device also includes a magnetic component connected to either the first or second body. This magnetic component can change the magnetic field at the electronic compass as the first and second bodies switch between the first and second states. This allows the magnetic component to adjust the magnetic field at the location of the electronic compass, reducing the difference in magnetic field between the first and second bodies in their respective states. This minimizes the change in magnetic field at the location of the electronic compass during relative rotation of the first and second bodies, facilitating compensation for the electronic compass, improving the compensation effect, and ultimately enhancing the accuracy of the electronic compass during operation.

[0008] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description

[0009] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:

[0010] Figure 1 This is one of the schematic diagrams of an electronic device according to an embodiment of this application;

[0011] Figure 2 This is a second schematic diagram of an electronic device according to an embodiment of this application;

[0012] Figure 3 This is one of the partial schematic diagrams of an electronic device according to an embodiment of this application;

[0013] Figure 4 This is one of the schematic diagrams of a magnetic component according to an embodiment of this application;

[0014] Figure 5 This is a second schematic diagram of a magnetic component according to an embodiment of this application;

[0015] Figure 6 This is a second partial schematic diagram of an electronic device according to an embodiment of this application;

[0016] Figure 7 This is a schematic diagram of an electronic device in a folded state according to an embodiment of this application;

[0017] Figure 8 This is a schematic diagram of an electromagnet according to an embodiment of this application;

[0018] Figure 9 This is a schematic diagram of an electronic device in an unfolded state according to an embodiment of this application;

[0019] Figure 10 This is a schematic diagram of an electronic device in a semi-deployed state according to an embodiment of this application;

[0020] Figure 11 This is a third schematic diagram of an electronic device according to an embodiment of this application;

[0021] Figure 12 This is a schematic diagram illustrating the relationship between magnetic induction intensity and angle according to an embodiment of this application, without the presence of a magnetic component.

[0022] Figure 13 This is a fourth schematic diagram of an electronic device according to an embodiment of this application;

[0023] Figure 14 This is one of the schematic diagrams illustrating the relationship between magnetic induction intensity and angle according to an embodiment of this application;

[0024] Figure 15 This is a second schematic diagram showing the relationship between magnetic induction intensity and angle in an embodiment of this application.

[0025] Figure label:

[0026] 100 First body, 200 Second body, 300 Circuit board, 400 Electronic compass, 500 Magnetic component, 510 First permanent magnet, 520 First housing, 530 Elastic component, 540 Electromagnet, 542 First spindle, 544 First coil, 546 Second spindle, 548 Second coil, 550 Second housing, 600 Second permanent magnet, 700 Angle detection component, 710 First weight sensor, 720 Second weight sensor, 810 Third magnetic component, 820 Fourth magnetic component, 830 Speaker. Detailed Implementation

[0027] The embodiments of this application will now be described in detail. Examples of these embodiments are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0028] The terms "first" and "second" in the specification and claims of this application may explicitly or implicitly include one or more of the features. In the description of this application, unless otherwise stated, "multiple" means two or more. Furthermore, "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0029] In the description of this application, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc., indicating the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this application.

[0030] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection between two components. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.

[0031] The following is combined Figures 1 to 15 This application describes an electronic device according to an embodiment of the present application.

[0032] like Figure 1 and Figure 2 As shown, an electronic device according to some embodiments of this application includes a first body 100, a second body 200, an electronic compass 400, and a magnetic component 500. The second body 200 is movably connected to the first body 100, and the first body 100 and the second body 200 can rotate or slide relative to each other to allow the electronic device to switch between a first state and a second state. The electronic compass 400 is disposed within the first body 100, and a functional device, including an electromagnetic structure, is disposed within the second body 200. The magnetic component 500 is connected to either the first body 100 or the second body 200, and when the electronic device switches from the first state to the second state, the magnetic component 500 switches from the third state to the fourth state to ensure that the change in the magnetic field environment of the electronic compass 400 is within a preset range.

[0033] In this embodiment, the electronic device includes a first body 100 and a second body 200, the second body 200 being movably connected to the first body 100. The first body 100 and the second body 200 can switch between a first state and a second state. When the first body 100 and the second body 200 are in the first state, the first body 100 and the second body 200 are engaged. When the first body 100 and the second body 200 are in the second state, the first body 100 and the second body 200 are unfolded, so that the electronic device can be unfolded or folded according to the user's needs to increase the size of the electronic device's display screen.

[0034] The electronic device also includes an electronic compass 400, which is disposed inside the first body 100. When the first body 100 and the second body 200 switch between the first state and the second state, the distance between the device on the second body 200 that can generate a magnetic field and the electronic compass 400 will change, which will cause the magnetic field distribution and magnetic field strength at the electronic compass 400 to change. The electronic device also includes a magnetic component 500, which can be connected to the first body 100 and the second body 200. The magnetic component 500 can change the magnetic field at the electronic compass 400 as the first body 100 and the second body 200 switch between a first state and a second state. This allows the magnetic component 500 to adjust the magnetic field at the location of the electronic compass 400, reducing the difference in the magnetic field between the first and second states of the first and second bodies 100. This minimizes the change in the magnetic field at the location of the electronic compass 400 during relative rotation of the first and second bodies 100, facilitating compensation for the electronic compass 400, improving the compensation effect, and ultimately enhancing the accuracy of the electronic compass 400 during operation.

[0035] Specifically, when the electronic device is in the first state, the device on the second body 200 that can generate a magnetic field is closer to the electronic compass 400. When the electronic device is in the second state, the device on the second body 200 that can generate a magnetic field is farther from the electronic compass 400, resulting in a significant difference in the magnetic field at the electronic compass 400 between the two states.

[0036] If the operation of the electronic compass 400 is compensated and controlled based on the magnetic field strength at the electronic compass 400 when the electronic device is in the first state and the second state, the operation accuracy of the electronic compass 400 will be lower when the electronic device is in the first state.

[0037] If the operation of the electronic compass 400 is compensated and controlled based on the magnetic field strength at the electronic compass 400 when the electronic device is in the first state and the second state, the operating accuracy of the electronic compass 400 will be lower when the electronic device is in the second state.

[0038] By setting a magnetic component 500 on the first body 100, the magnetic component 500 can change the magnetic field at the electronic compass 400 as the first body 100 and the second body 200 switch between the first state and the second state. This reduces the difference in the magnetic field at the electronic compass 400 when the electronic device is in the second state and the electronic device is in the first state. Therefore, whether the operation of the electronic compass 400 is compensated and controlled according to the magnetic field strength at the electronic device when the electronic device is in the first state or according to the magnetic field strength at the electronic compass 400 when the electronic device is in the second state, the electronic compass 400 can maintain a certain working accuracy, improve the compensation effect of the electronic compass 400, and thus improve the accuracy of the electronic compass 400 in operation.

[0039] Specifically, when the electronic device is a foldable screen electronic device, the first state of the electronic device is the unfolded state, and the second state of the electronic device is the folded state.

[0040] When the electronic device is a retractable screen electronic device, the first state of the electronic device is the unfolded state, and the second state of the electronic device is the retracted state.

[0041] Specifically, the electronic device is a mobile phone or a tablet computer.

[0042] Specifically, the electronic compass 400 determines the angle between the current position and the geomagnetic field by detecting the components of the geomagnetic field on the XYZ axes, and then determines the angle of the electronic device.

[0043] Specifically, the electronic device also includes a circuit board 300, which is disposed on the first body 100 to control various components on the electronic device.

[0044] Specifically, functional devices are the various components in an electronic device, and electromagnetic structures are the structures or parts in functional devices that generate magnetic fields.

[0045] According to some embodiments of this application, the magnetic component 500 includes a first permanent magnet 510 disposed on the periphery of the electronic compass 400. The first permanent magnet is movably connected to the first body. When the magnetic component is in a third state, the first permanent magnet 510 is located in a first position. When the magnetic component is in a fourth state, the first permanent magnet 510 is located in a second position.

[0046] In this embodiment, by switching the position of the first permanent magnet 510 during the switching state of the electronic device, the magnetic field at the location of the electronic compass 400 is adjusted, reducing the difference between the first body 100 and the second body 200 in their first and second states. This makes the change in the magnetic field at the location of the electronic compass 400 smaller during the relative rotation of the first body 100 and the second body 200, facilitating compensation for the electronic compass 400, improving the compensation effect of the electronic compass 400, and thus improving the accuracy of the electronic compass 400 during operation.

[0047] According to some embodiments of this application, such as Figure 3 and Figure 5 As shown, the magnetic component 500 also includes a first housing 520 and an elastic member 530; the first housing 520 is disposed on the first body 100; the first end of the elastic member 530 is connected to the first housing 520, and the second end is connected to the first permanent magnet 510; wherein, when the first permanent magnet 510 is in the first position, the elastic member 530 is in a compressed state.

[0048] In this embodiment, the magnetic component 500 further includes a first housing 520, which is disposed on the first body 100 to realize the installation and fixation of the magnetic component 500 and improve the stability of the magnetic component 500 during the operation of the electronic device. The magnetic component 500 also includes an elastic element 530. The first end of the elastic element 530 is connected to the first housing 520, and the second end is connected to the first permanent magnet 510. The first permanent magnet 510 is in a first position, and the elastic element 530 is in a compressed state. That is, when the first body 100 and the second body 200 are in the first state, the attraction between the second permanent magnet 600 and the first permanent magnet 510 fixes the first permanent magnet 510 in the first position, and the elastic element 530 is in a compressed state. After the first body 100 and the second body 200 gradually unfold, the distance between the second permanent magnet 600 and the first permanent magnet 510 increases, and the attraction decreases. After the attraction is less than the elastic force of the elastic element 530, the first permanent magnet 510 moves to the second position, thereby realizing the driving of the first permanent magnet 510 and further improving the convenience of the electronic device during use.

[0049] like Figure 4 As shown, the first permanent magnet 510 is in the second position, and the elastic element 530 is in the extended state.

[0050] like Figure 5 As shown, the first permanent magnet 510 is in the first position, and the elastic element 530 is in a compressed state.

[0051] Specifically, the elastic element 530 is a spring or a sheet spring.

[0052] According to some embodiments of this application, such as Figure 3 and Figure 4 As shown, the electronic device also includes a second permanent magnet 600, which is disposed in the second body 200; wherein, when the electronic device switches from the first state to the second state, the second permanent magnet 600 drives the first permanent magnet 510 to move from the first position to the second position; when the electronic device switches from the second state to the first state, the elastic member 630 drives the first permanent magnet 510 to move from the second position to the first position.

[0053] In this embodiment, the electronic device further includes a second permanent magnet 600, which is disposed in the second body 200. When the first body 100 and the second body 200 are in a first state, the first permanent magnet 510 is in a first position and attracts the second permanent magnet 600, thereby fixing the first body 100 and the second body 200 and maintaining the first body 100 and the second body 200 in the first state.

[0054] Both the first permanent magnet 510 and the electronic compass 400 are disposed on the first body 100. When the first body 100 and the second body 200 are in the first state, the first permanent magnet 510 is in the first position. When the first body 100 and the second body 200 are in the second state, the first permanent magnet 510 can move to the second position. By switching between the first position and the second position, the distance between the first permanent magnet 510 and the electronic compass 400 is changed. In this way, the magnetic field at the location of the electronic compass 400 can be adjusted by the first permanent magnet 510, reducing the difference in the magnetic field at the electronic compass 400 when the electronic device is in the second state and when the electronic device is in the first state, improving the compensation effect of the electronic compass 400, and improving the accuracy of the electronic compass 400 in operation.

[0055] When the first body 100 and the second body 200 are in the first state, the first permanent magnet 510 attracts the second permanent magnet 600, and the second permanent magnet 600 can drive the first permanent magnet 510 to move to the first position, thereby driving the first permanent magnet 510 so that the first permanent magnet 510 can automatically move from the first position after the first body 100 and the second body 200 are in the first state, improving the convenience of using the electronic device.

[0056] Specifically, by changing the position of the first permanent magnet 510, the hard magnetic interference of the electronic compass 400 is kept below the threshold value in any state of the folded electronic device. The closed-loop electronic compass 400 actively calibrates, improving the user experience.

[0057] Specifically, both the second permanent magnet 600 and the first permanent magnet 510 are permanent magnets.

[0058] Specifically, when the first body 100 and the second body 200 switch between the first state and the second state, the influence of the magnetic field generated by the second permanent magnet 600 on the magnetic field of the area where the electronic compass 400 is located will change.

[0059] According to some embodiments of this application, such as Figure 2 and Figure 3 As shown, the first permanent magnet 510 is closer to the edge of the first body 100 in the first direction relative to the electronic compass 400; the elastic member 530 is arranged along the first direction and can drive the first permanent magnet 510 to move in the first direction so that the first permanent magnet 510 switches between a first position away from the electronic compass 400 and a second position close to the electronic compass 400.

[0060] In this embodiment, the first permanent magnet 510 is closer to the edge of the first body 100 in the first direction relative to the electronic compass 400. The elastic member 530 is arranged along the first direction and can drive the first permanent magnet 510 to move in the first direction, so that the first permanent magnet 510 can effectively adjust the magnetic field at the electronic compass 400. The first permanent magnet 510 adjusts the magnetic field at the electronic compass 400.

[0061] Specifically, the first direction is the direction of the X-axis.

[0062] According to some embodiments of this application, such as Figure 2 and Figure 3 As shown, the first permanent magnet 510 is closer to the edge of the first body 100 in the second direction relative to the electronic compass 400, and there is an angle between the first direction and the second direction.

[0063] In this embodiment, the first permanent magnet 510 is closer to the edge of the first body 100 in the second direction relative to the electronic compass 400. There is an angle between the first direction and the second direction, so that the line connecting the first permanent magnet 510 and the electronic compass 400 has a certain angle relative to both the first direction and the second direction. This allows the first permanent magnet 510 to adjust the magnetic field at the location of the electronic compass 400 in multiple directions, further improving the adjustment effect of the first permanent magnet 510 on the magnetic field at the location of the electronic compass 400.

[0064] Specifically, the first direction is the direction of the Y-axis.

[0065] According to some embodiments of this application, such as Figure 6 and Figure 7 As shown, the magnetic component 500 includes an electromagnet 540. When the magnetic component 500 is in the third state, the electromagnet 540 is supplied with a first current. When the magnetic component is in the fourth state, the electromagnet 540 is supplied with a second current. The current values ​​of the first current and the second current are different.

[0066] In this embodiment, the magnetic component 500 includes an electromagnet 540. When the magnetic component 500 is in the third state, a first current is supplied to the electromagnet 540; when the magnetic component is in the fourth state, a second current is supplied to the electromagnet 540. Because the values ​​of the first and second currents are different, the electromagnet 540 can adjust the strength of the magnetic field it generates according to the state between the first body 100 and the second body 200. This allows for the adjustment of the magnetic field at the location of the electronic compass 400 by the electromagnet 540, reducing the difference in the magnetic field at the electronic compass 400 between the second and first states, improving the compensation effect of the electronic compass 400, and increasing the accuracy of the electronic compass 400 during operation. Controlling the current to the electromagnet 540 allows for control of the magnetic field direction and strength, making the adjustment of the magnetic field at the location of the electronic compass 400 more precise and facilitating control of the magnetic field strength, further enhancing the compensation effect of the electronic compass 400.

[0067] Specifically, by introducing electromagnet 540 compensation, the hard magnetic interference of the electronic compass 400 is ensured to be below the threshold value in any state of the folded electronic device. The closed-loop electronic compass 400 actively calibrates, improving the user experience.

[0068] According to some embodiments of this application, such as Figure 6 and Figure 7 As shown, the magnetic component 500 also includes a second housing 550, which is connected to the first body 100, and the electromagnet 540 is disposed inside the second housing 550.

[0069] In this embodiment, the magnetic component 500 further includes a second housing 550, which is connected to the first body 100 to install and fix the magnetic component 500, thereby improving the stability of the magnetic component 500 during the operation of the electronic device. An electromagnet 540 is disposed within the second housing 550, which protects the electromagnet 540, further enhancing the stability of the magnetic component 500 during the operation of the electronic device.

[0070] According to some embodiments of this application, such as Figure 8 As shown, the electromagnet 540 includes a first spindle 542, a first coil 544, a second spindle 546, and a second coil 548. The first spindle 542 is disposed inside the second housing 550; the first coil 544 is wound around the first spindle 542; the second spindle 546 is disposed inside the second housing 550; and the second coil 548 is wound around the second spindle 546. The magnetic fields generated by the first coil 544 and the second coil 548 form an angle at the electronic compass 400.

[0071] In this embodiment, the electromagnet 540 includes a first spindle 542 and a first coil 544. The first coil 544 is wound around the first spindle 542. By controlling the current flowing through the first coil 544, the magnetic field at the location of the electronic compass 400 can be adjusted. The electromagnet 540 also includes a second spindle 546 and a second coil 548. The second coil 548 is wound around the second spindle 546. By controlling the current flowing through the second coil 548, the magnetic field at the location of the electronic compass 400 can be adjusted. The magnetic fields generated by the first coil 544 and the second coil 548 form an angle at the electronic compass 400, allowing the magnetic component 500 to adjust the magnetic field at the location of the electronic compass 400 in multiple directions, further improving the adjustment effect of the magnetic component 500 on the magnetic field at the location of the electronic compass 400.

[0072] Specifically, the electromagnet 540 is a two-axis electromagnet 540 coil, which can generate Z-axis and Y-axis, and control the magnetic field strength and direction according to the magnitude and direction of its two currents.

[0073] According to some embodiments of this application, the electronic device is a foldable electronic device, with a first body and a second body rotatably connected, a first state being an unfolded state, and a second state being a folded state; or the electronic device is a telescopic electronic device, with a first body and a second body slidably connected, a first state being an unfolded state, and a second state being a retracted state.

[0074] According to some embodiments of this application, such as Figure 9 and Figure 10 As shown, the electronic device also includes an angle detection component 700, which is disposed on the first body 100 and / or the second body 200 and is capable of detecting the angle between the first body 100 and the second body 200.

[0075] In this embodiment, the electronic device further includes an angle detection component 700, which is disposed on the first body 100 and / or the second body 200. The angle detection component 700 can detect the angle between the first body 100 and the second body 200, and then control the current flowing through the first coil 544 and the second coil 548 according to the angle between the first body 100 and the second body 200, so as to control the magnetic field at the location of the electronic compass 400.

[0076] Since the magnetic field at the location of the electronic compass 400 can be controlled according to the angle between the first body 100 and the second body 200, the electronic device can adjust the magnetic field at the location of the electronic compass 400 as the first body 100 and the second body 200 rotate relative to each other, thereby further improving the adjustment accuracy of the electronic device on the magnetic field at the location of the electronic compass 400.

[0077] According to some embodiments of this application, such as Figure 9 and Figure 10 As shown, the angle detection component 700 includes a first weight sensor 710 and a second weight sensor 720; the first weight sensor 710 is disposed on the first body 100; and the second weight sensor 720 is disposed on the second body 200.

[0078] In this embodiment, the angle detection component 700 includes a first weight sensor 710 and a second weight sensor 720. The first weight sensor 710 is disposed on the first body 100 and can detect a first angle difference between the first body 100 and the direction of gravity. The second weight sensor 720 is disposed on the second body 200 and can detect a second angle difference between the second body 200 and the direction of gravity. Based on the first angle difference and the second angle difference, the angle between the first body 100 and the second body 200 can be detected, so that the electronic device can control the magnetic field at the location of the electronic compass 400 according to the angle between the first body 100 and the second body 200, further improving the adjustment accuracy of the electronic device on the magnetic field at the location of the electronic compass 400.

[0079] Furthermore, the angle detection component 700 may also be an angle sensor or other device capable of detecting the angle between the first body 100 and the second body 200.

[0080] According to some embodiments of this application, such as Figure 2 As shown, the electronic device also includes at least one third magnetic element 810 and at least one fourth magnetic element 820; at least one third magnetic element 810 is disposed on the first body 100; at least one fourth magnetic element 820 is disposed on the second body 200, respectively opposite to at least one third magnetic element 810.

[0081] In this technical solution, at least one third magnetic element 810 is disposed on the first body 100; at least one fourth magnetic element 820 is disposed on the second body 200, respectively opposite to at least one third magnetic element 810. The opposing third magnetic element 810 and fourth magnetic element 820 can attract each other, thereby fixing the first body 100 and the second body 200 when they are in the first state, thus improving the stability of the electronic device in the first state.

[0082] Specifically, when the first body 100 and the second body 200 switch between the first state and the second state, the influence of the magnetic field generated by the multiple fourth magnetic components 820 on the magnetic field of the area where the electronic compass 400 is located will change.

[0083] Specifically, at least one third magnetic element 810 and at least one fourth magnetic element 820 are permanent magnets.

[0084] Furthermore, the electronic device also includes a speaker 830, which is disposed on the second body 200. When the first body 100 and the second body 200 switch between the first state and the second state, the influence of the magnetic field generated by the speaker 830 on the magnetic field of the area where the electronic compass 400 is located will change.

[0085] According to some embodiments of this application, the preset range is 0 to 150 μT.

[0086] The electronic device described in this application is subject to both soft and hard magnetic fields in its environment. Hard magnetic fields are objects that are inherently magnetic, such as magnets in the environment, speakers, and magnets inside motors. Soft magnetic fields are magnetic fields caused by electric current, such as high-current traces on the motherboard, and the coils of speakers and motors. When the change in the overall magnetic field exceeds a certain threshold, such as 150 microtesla (μT), recalibration is required.

[0087] Because of their small size and the large number of magnets (which cause a lot of hard magnetic interference), the magnetic field environment of folding machines changes significantly when they are open or closed.

[0088] In the first and second states of the electronic device, the magnetic elements around the electronic compass 400 are increased or decreased, and the magnet and speaker 830 are increased or decreased, resulting in an increment greater than a specified threshold.

[0089] like Figure 11 As shown, the electronic device is in its first state. Arrow A represents the magnetic field vector (combined in the X, Y, and Z directions) generated by the first permanent magnet 510 at the electronic compass 400. Arrow B represents the magnetic field vector generated by the third magnetic component 810 at the electronic compass 400. The magnetic field effect mainly influences the composite magnetic field along the Y and Z axes. Figure 12 In the relationship between magnetic induction intensity and angle shown, the horizontal axis is at 180°.

[0090] exist Figure 12 In the diagram, curve L1 represents the change in magnetic field strength along the X-axis at the compass location as a function of angle; curve L2 represents the change in magnetic field strength along the Z-axis at the compass location as a function of angle; and curve L3 represents the change in magnetic field strength along the Y-axis at the compass location as a function of angle.

[0091] like Figure 13As shown, the electronic device is in the second state. Arrow C is the magnetic field vector (combined in the X, Y, and Z directions) generated by the first permanent magnet 510 at the electronic compass 400. Arrow D is the magnetic field vector generated by the third magnetic element 810 at the electronic compass 400. Arrow E is the magnetic field vector generated by the fourth magnetic element 820 at the electronic compass 400. Arrow F is the magnetic field vector generated by the speaker 830 at the electronic compass 400. Arrow G is the magnetic field vector generated by the second permanent magnet 600 at the electronic compass 400.

[0092] The electronic device is in its first state, increasing the magnetic field generated by the second permanent magnet 600, the fourth magnetic element 820, and the speaker 830. After overlapping, the magnetic field strength increases in the positive Z-axis direction and the negative Y-axis direction (by 500 microteslas and 800 microteslas, respectively). Figure 12 The horizontal axis is shown as 0°.

[0093] The strength compensation of the first permanent magnet 510 at the electronic compass 400 is adjusted in both the folded and unfolded states of the electronic device. In the first state, the distance between the first permanent magnet 510 and the electronic compass 400 is increased, reducing its magnetic field strength in the negative Y-axis and positive Z-axis directions, so that its fluctuation range is within a specified variation, such as 150 microteslas.

[0094] like Figure 14 As shown, the electronic device is in the second state. The magnetic elements surrounding the electronic compass 400 are the first permanent magnet 510 and the third magnetic element 810, which generate a magnetic field strength of B0 at the position of the electronic compass 400. Figure 14 As shown, the magnetic field strength at the location of the electronic compass 400 on the Z-axis is -200 microteslas, and the magnetic field strength at the location of the electronic compass 400 on the Y-axis is 300 microteslas.

[0095] exist Figure 14 In the diagram, curve L4 represents the change in magnetic field strength along the Y-axis of the compass location as a function of angle after the first magnetic component is installed on the electronic device; curve L5 represents the change in magnetic field strength along the X-axis of the compass location as a function of angle; curve L6 represents the change in magnetic field strength along the Z-axis of the compass location as a function of angle after the first magnetic component is installed on the electronic device; curve L7 represents the change in magnetic field strength along the Z-axis of the compass location as a function of angle; and curve L8 represents the change in magnetic field strength along the Y-axis of the compass location as a function of angle.

[0096] When the phone is in its first state, the magnetic components surrounding the electronic compass 400 include a second permanent magnet 600, a fourth magnetic component 820, and a speaker 830, which continuously move closer to the electronic compass 400. The first permanent magnet 510 is attracted by the second permanent magnet 600 and gradually moves away from the electronic compass 400. Its magnetic field strength along the Y and X axes decreases, thus compensating for the increase in magnetic field strength. Figure 14 As shown, after the electronic device is equipped with the second permanent magnet 600, the magnetic field intensity of the magnetic field at the location of the electronic compass 400 on the Y-axis changes by less than 150 microteslas between the two positions of 0 degrees and 180 degrees, and the magnetic field intensity of the magnetic field at the location of the electronic compass 400 on the Z-axis changes by less than 150 microteslas between the two positions of 0 degrees and 180 degrees.

[0097] like Figure 15 As shown, the electronic device is in the second state. The magnetic elements around the electronic compass 400 are two magnetic components used to attract the first body 100 and the second body 200. They generate a magnetic field strength of B0 at the position of the electronic compass 400. Figure 14 As shown, the magnetic field strength at the location of the electronic compass 400 on the Z-axis is -200 microteslas, and the magnetic field strength at the location of the electronic compass 400 on the Y-axis is 300 microteslas. The electromagnet 540 is not working.

[0098] like Figure 10 As shown, when the electronic device is in a semi-second state, the distance between the two magnetic components used to attract the first body 100 and the second body 200 and the electronic compass 400 remains unchanged. The second permanent magnet 600, the fourth magnetic component 820, and the speaker 830 are close to the electronic compass 400, and the electromagnet 540 is not working. Figure 15 As shown, the magnetic field strength at the location of electronic compass 400 is -250 microtesla along the Z-axis and 150 microtesla along the Y-axis. By applying appropriate current to the two coils of electromagnet 540, opposing magnetic fields are generated at the compass location along the Z and Y axes to cancel each other out. After compensation, there are virtually no significant fluctuations in the Z and Y axes of electronic compass 400.

[0099] exist Figure 15 In the diagram, curve L9 represents the change in magnetic field strength along the Y-axis of the compass location as a function of angle after the first magnetic component is installed on the electronic device; curve L10 represents the change in magnetic field strength along the X-axis of the compass location as a function of angle; curve L11 represents the change in magnetic field strength along the Z-axis of the compass location as a function of angle after the first magnetic component is installed on the electronic device; curve L12 represents the change in magnetic field strength along the Z-axis of the compass location as a function of angle; and curve L13 represents the change in magnetic field strength along the Y-axis of the compass location as a function of angle.

[0100] The electronic device is in its first state. The magnetic components surrounding the electronic compass 400 include two magnetic elements for attracting the first body 100 and the second body 200, a second permanent magnet 600, a fourth magnetic element 820, and a speaker 830. The electromagnet 540 is not operating. The magnetic field strength at the location of the electronic compass 400 is 300 microtesla along the Z-axis and -500 microtesla along the Y-axis. Appropriate currents are applied to the two coils of the electromagnet 540, generating opposing magnetic fields at the compass location along the Z-axis and Y-axis to cancel each other out. After compensation, the electronic compass 400 exhibits virtually no significant fluctuations along the Z-axis and Y-axis.

[0101] The relationship between the angle between the first body 100 and the second body 200 and the driving current of the electromagnet 540 can be obtained in advance and a reference table can be prepared.

[0102] Throughout the entire deployment process, the electromagnet 540 provides dynamic compensation to ensure that the magnetic field strength at the location of the electronic compass 400 remains within a certain range.

[0103] During the unfolding and closing of foldable screen electronic devices, compensation by introducing externally varying magnetic components can ensure that the electronic compass's 400 magnetic environment variable does not exceed the threshold, avoiding user calibration actions and fundamentally improving the user experience of related applications.

[0104] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0105] Although embodiments of this application have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of this application, the scope of which is defined by the claims and their equivalents.

Claims

1. An electronic device, characterized in that, include: A first body and a second body, wherein the second body is movably connected to the first body, and the first body and the second body are capable of rotating or sliding relative to each other, so that the electronic device switches between a first state and a second state; An electronic compass is disposed in the first body, and a functional device is disposed in the second body, the functional device including an electromagnetic structure; A magnetic component, connected to either the first or second body, switches from a third to a fourth state when the electronic device switches from the first state to the second state, so that the change in the magnetic field environment of the electronic compass is within a preset range.

2. The electronic device according to claim 1, characterized in that, The magnetic component includes: A first permanent magnet is disposed on the periphery of the electronic compass. The first permanent magnet is movably connected to the first body. When the magnetic component is in the third state, the first permanent magnet is located in the first position. When the magnetic component is in the fourth state, the first permanent magnet is located in the second position.

3. The electronic device according to claim 2, characterized in that, The magnetic component also includes: A first housing, wherein the first housing is disposed on the first body; An elastic element, wherein a first end of the elastic element is connected to the first housing and a second end is connected to the first permanent magnet; When the first permanent magnet is in the first position, the elastic element is in a compressed state.

4. The electronic device according to claim 3, characterized in that, The electronic device also includes: The second permanent magnet is disposed in the second body; When the electronic device switches from the first state to the second state, the second permanent magnet drives the first permanent magnet to move from the first position to the second position. When the electronic device switches from the second state to the first state, the elastic element drives the first permanent magnet to move from the second position to the first position.

5. The electronic device according to claim 4, characterized in that, The first permanent magnet is closer to the edge of the first body in a first direction relative to the electronic compass; The elastic element is arranged along the first direction and can drive the first permanent magnet to move in the first direction, so that the first permanent magnet can switch between a first position away from the electronic compass and a second position close to the electronic compass. and / or The first permanent magnet is closer to the edge of the first body in the second direction relative to the electronic compass, and there is an angle between the first direction and the second direction.

6. The electronic device according to claim 1, characterized in that, The magnetic component includes: When the magnetic component of the electromagnet is in the third state, a first current is supplied to the electromagnet; when the magnetic component is in the fourth state, a second current is supplied to the electromagnet. The values ​​of the first current and the second current are different.

7. The electronic device according to claim 6, characterized in that, The magnetic component also includes: The second housing is connected to the first body, and the electromagnet is disposed inside the second housing.

8. The electronic device according to claim 7, characterized in that, The electromagnet includes: A first mandrel is disposed within the second housing; A first coil, the first coil being wound around the first mandrel; The second mandrel is disposed inside the second housing; The second coil is wound around the second mandrel; The magnetic fields generated by the first coil and the second coil are at an angle to each other at the electronic compass.

9. The electronic device according to claim 1, characterized in that: The electronic device is a foldable electronic device, with the first body and the second body rotatably connected. The first state is an unfolded state, and the second state is a folded state; or... The electronic device is a telescopic electronic device, with the first body and the second body slidably connected. The first state is the unfolded state, and the second state is the retracted state.

10. The electronic device according to any one of claims 1 to 9, characterized in that, The preset range is 0 to 150 μT.

Citation Information

Patent Citations

  • Data calibration method and data calibration device for magnetometer

    CN110426057A

  • Compass precision optimization method and device, storage medium and electronic equipment

    CN112762915A