Electronic equipment, control method thereof and computer readable storage medium

By setting deformation detection components in the bending area of ​​the flexible circuit board, detecting the deformation of the camera module, and controlling the working state of the lifting structure, the problems of high lifting distance detection cost and magnet interference in the prior art are solved, and precise control of the lifting distance of the camera and reducing the manufacturing cost are achieved.

CN119676342APending Publication Date: 2025-03-21GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311228972.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-21
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

In the prior art, the method of detecting the lift distance through Hall sensors and magnets has problems such as high cost, interference of magnets on current circuits and magnetic devices, and large layout area, making it difficult to achieve accurate control of the lift distance of the camera.

Method used

The deformation detection component is provided in the bending area of ​​the flexible circuit board. By detecting the deformation of the flexible circuit board, the working state of the lifting structure is controlled, thereby achieving accurate control of the lifting distance of the camera.

Benefits of technology

Without using Hall sensors, precise control of the camera lifting distance is achieved, reducing the manufacturing cost of electronic devices and avoiding interference from magnets to circuits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119676342A_ABST
    Figure CN119676342A_ABST
Patent Text Reader

Abstract

The invention discloses electronic equipment and a control method thereof and a computer readable storage medium, the electronic equipment comprises a camera module and a lifting structure, the lifting structure is arranged in a shell of the electronic equipment, one end of the lifting structure is fixedly connected with the camera module, and the other end of the lifting structure is electrically connected with the electronic equipment. The lifting structure is used for enabling the camera module to move up and down relative to the electronic equipment, the camera module comprises a camera and a flexible circuit board, one end of the flexible circuit board is electrically connected with the camera, the other end of the flexible circuit board is electrically connected with the electronic equipment, the flexible circuit board is provided with a bending area, and a deformation detection assembly is arranged in the bending area. The deformation detection assembly is used for detecting the deformation quantity of the bending area so that the electronic equipment can control the lifting structure according to the deformation quantity. By adopting the embodiment of the invention, the purposes of accurately controlling the lifting distance of the camera and reducing the manufacturing cost of the electronic equipment can be achieved under the condition that a Hall sensor is not adopted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of terminal technology, and in particular to an electronic device and a control method thereof. Background Art

[0002] At present, electronic devices equipped with lifting camera modules usually determine whether to stop the lifting of the camera by detecting the lifting distance of the camera. In related technologies, a more mature lifting distance detection method is to bind a Hall sensor to the camera module, set a Hall sensor at the motor sliding module, and set magnets at the starting and end points of the motor slide rail. When the motor sliding module reaches the end point, the Hall sensor is triggered by the magnetic field of the magnet and the motor stops working.

[0003] However, the method of detecting the lifting distance by using Hall sensors and magnets in the related art has the following disadvantages: it is necessary to use two magnets and one Hall sensor, or two Hall sensors and one magnet, resulting in a relatively high cost for lifting distance detection; the magnet can easily interfere with the surrounding current circuit and magnetic device circuit, and can also magnetize the surrounding metal devices, causing the Hall sensor to make incorrect judgments and the lifting camera function to fail; the layout area is large, which is not conducive to the stacking of electronic equipment and the weight reduction of the entire machine. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide an electronic device and a control method thereof and a computer-readable storage medium to solve at least one technical problem existing in the above-mentioned background technology.

[0005] In a first aspect, an embodiment of the present invention provides an electronic device, including a camera module and a lifting structure;

[0006] The lifting structure is arranged in the housing of the electronic device, one end of the lifting structure is fixedly connected to the camera module, and the other end is electrically connected to the electronic device, and the lifting structure is used to make the camera module move up and down relative to the electronic device;

[0007] The camera module includes a camera and a flexible circuit board, one end of the flexible circuit board is electrically connected to the camera, and the other end of the flexible circuit board is electrically connected to the electronic device;

[0008] The flexible circuit board has a bending area, and a deformation detection component is arranged in the bending area. The deformation detection component is used to detect the deformation amount of the bending area so that the electronic device can control the lifting structure according to the deformation amount.

[0009] In a second aspect, an embodiment of the present invention provides a control method for an electronic device, wherein the electronic device comprises a camera module and a lifting structure; the lifting structure is arranged in a housing of the electronic device, one end of the lifting structure is fixedly connected to the camera module, and the other end is electrically connected to the electronic device, and the lifting structure is used to lift and move the camera module relative to the electronic device; the camera module comprises a camera and a flexible circuit board, one end of the flexible circuit board is electrically connected to the camera, and the other end is electrically connected to the electronic device; the flexible circuit board has a bending area, a deformation detection component is provided in the bending area, and the deformation detection component is used to detect the deformation amount of the bending area, so that the electronic device can control the lifting structure according to the deformation amount;

[0010] The control method of the electronic device comprises:

[0011] Acquiring a deformation amount detected by the deformation detection component, wherein the deformation amount is used to characterize an expansion and contraction amount of the flexible circuit board in the electronic device;

[0012] The lifting structure is controlled according to the deformation amount and a first length of the flexible circuit board, where the first length is a length of the flexible circuit board in a straightened state.

[0013] In a third aspect, an embodiment of the present invention provides a control device for an electronic device, wherein the electronic device comprises a camera module and a lifting structure; the lifting structure is arranged in a housing of the electronic device, one end of the lifting structure is fixedly connected to the camera module, and the other end is electrically connected to the electronic device, and the lifting structure is used to lift and move the camera module relative to the electronic device; the camera module comprises a camera and a flexible circuit board, one end of the flexible circuit board is electrically connected to the camera, and the other end is electrically connected to the electronic device; the flexible circuit board has a bending area, a deformation detection component is arranged in the bending area, and the deformation detection component is used to detect the deformation amount of the bending area, so that the electronic device can control the lifting structure according to the deformation amount;

[0014] The control device of the electronic equipment comprises:

[0015] An acquisition module, used for acquiring a deformation amount detected by the deformation detection component, wherein the deformation amount is used for representing an expansion and contraction amount of the flexible circuit board in the electronic device;

[0016] A control module is used to control the lifting structure according to the deformation amount and a first length of the flexible circuit board, where the first length is the length of the flexible circuit board in a straightened state.

[0017] In a fourth aspect, an embodiment of the present invention provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in any one of the above-mentioned methods for controlling the electronic device when executing the computer program.

[0018] In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the control method of an electronic device described in any one of the above are implemented.

[0019] The embodiment of the present invention provides an electronic device and a control method thereof and a computer-readable storage medium. The electronic device includes a camera module and a lifting structure. The camera module includes a camera and a flexible circuit board. The flexible circuit board has a bending area. A deformation detection component is provided in the bending area. The deformation detection component is used to detect the deformation amount of the bending area. In this way, the deformation amount of the bending area of ​​the flexible circuit board in the camera module is detected by the deformation detection component, and the expansion and contraction amount of the flexible circuit board can be determined according to the deformation amount, so that when the flexible circuit board reaches a fully straightened state, the lifting structure can be controlled to stop working. In this way, the lifting distance of the camera can be accurately controlled without using a Hall sensor, and the manufacturing cost of the electronic device can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 is a partial schematic diagram of a structure of an electronic device provided by an embodiment of the present invention;

[0021] Figure 2 is a structural schematic diagram of a camera module provided by an embodiment of the present invention;

[0022] Figure 3 This is a structural schematic diagram of the connection between a deformation variable output unit and a resistance strain gauge provided by an embodiment of the present invention;

[0023] Figure 4 This is a flow chart of a control method of an electronic device provided by an embodiment of the present invention;

[0024] Figure 5 is a schematic structural diagram of a control device for an electronic device provided by an embodiment of the present invention;

[0025] Figure 6 is a structural schematic diagram of an electronic device provided by an embodiment of the present invention;

[0026] Figure 7 is another structural schematic diagram of an electronic device provided by an embodiment of the present invention;

[0027] Wherein, the reference numerals in the accompanying drawings are as follows:

[0028] A. Bending zone;

[0029] 100. electronic device; 101. camera module; 102. lifting structure;

[0030] 1011. camera; 1012. flexible circuit board;

[0031] 10121. Deformation detection component. DETAILED DESCRIPTION

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

[0033] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0034] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0035] At present, electronic devices equipped with lifting camera modules usually determine whether to stop the lifting of the camera by detecting the lifting distance of the camera. In related technologies, a more mature lifting distance detection method is to bind a Hall sensor to the camera module, set a Hall sensor at the motor sliding module, and set magnets at the starting and end points of the motor slide rail. When the motor sliding module reaches the end point, the Hall sensor is triggered by the magnetic field of the magnet and the motor stops working.

[0036] However, the method of detecting the lifting distance by using Hall sensors and magnets in the related art has the following disadvantages: it is necessary to use two magnets and one Hall sensor, or two Hall sensors and one magnet, resulting in a relatively high cost for lifting distance detection; the magnet can easily interfere with the surrounding current circuit and magnetic device circuit, and can also magnetize the surrounding metal devices, causing the Hall sensor to make incorrect judgments and the lifting camera function to fail; the layout area is large, which is not conducive to the stacking of electronic equipment and the weight reduction of the entire machine.

[0037] In order to solve the technical problems existing in the related technology, please refer to Figure 1 and Figure 2 , Figure 1 is a partial schematic diagram of a structure of an electronic device provided by an embodiment of the present invention, Figure 2 is a structural schematic diagram of a camera module provided by an embodiment of the present invention, such as Figure 1 and Figure 2 As shown, the electronic device 100 provided in this embodiment includes a camera module 101 and a lifting structure 102;

[0038] The lifting structure 102 is disposed in the housing of the electronic device 100, one end of the lifting structure 102 is fixedly connected to the camera module 101, and the other end is electrically connected to the electronic device 100, and the lifting structure 102 is used to lift and move the camera module 101 relative to the electronic device 100;

[0039] The camera module 101 includes a camera 1011 and a flexible circuit board 1012, one end of the flexible circuit board 1012 is electrically connected to the camera 1011, and the other end is electrically connected to the electronic device 100;

[0040] The flexible circuit board 1012 has a bending area A. A deformation detection component 10121 is disposed in the bending area A. The deformation detection component 10121 is used to detect the deformation amount of the bending area A so that the electronic device 100 can control the lifting structure 102 according to the deformation amount.

[0041] In this embodiment, the flexible circuit board 1012 provided in this embodiment has a bending area A that can be bent, so that when the lifting structure 102 causes the camera module 101 to move up and down, the bending area A of the flexible circuit board 1012 can be bent or straightened to ensure the normal lifting function of the camera module 101. For example, when the camera module 101 moves from inside the electronic device 100 to outside the electronic device 100, the bending area A in the flexible circuit board 1012 in a bent state will straighten as the camera module 101 rises outward; when the camera module 101 shrinks from outside the electronic device 100 to inside the electronic device 100, the bending area A in the flexible circuit board 1012 in a straightened state will bend as the camera module 101 shrinks inward. In this way, the normal lifting function of the camera module 101 can be effectively guaranteed.

[0042] For details, please refer to Figure 2 , Figure 2 The camera module 101 on the left side is the camera module 101 in a fully extended state of the flexible circuit board 1012. Figure 2The camera module 101 on the right side is the camera module 101 in a bent state of the flexible circuit board 1012. When the camera module 101 moves from the inside of the electronic device 100 to the outside of the electronic device 100, that is, Figure 2 The camera module 101 on the middle right side moves upward until a Figure 2 When the camera module 101 is shown on the left side, the deformation amount of the bending area A, that is, the expansion and contraction amount ΔY of the flexible circuit board 1012, can be detected by the deformation detection component 10121, so that the electronic device 100 can determine the current length of the flexible circuit board 1012 according to the expansion and contraction amount ΔY, and whether it reaches the length of the flexible circuit board 1012 in a fully extended state, and when the length of the flexible circuit board 1012 in a fully extended state is reached, the lifting structure 102 is controlled to stop working, thereby realizing precise control of the lifting distance of the camera 1011 without using a Hall sensor, and reducing the manufacturing cost of the electronic device 100.

[0043] In some embodiments, the deformation detection component 10121 provided in this embodiment includes a resistance strain gauge (not shown in the figure) and a deformation output unit (not shown in the figure);

[0044] The resistance strain gauge is attached to the bending area A, and the resistance strain gauge is used to change the resistance value of the resistance strain gauge according to the deformation generated in the bending area A;

[0045] The deformation output unit is electrically connected to the resistance strain gauge and the electronic device 100 respectively, and is used to output the deformation corresponding to the flexible circuit board 1012 according to the relative change of the resistance value of the resistance strain gauge.

[0046] In this embodiment, the resistance strain gauge provided in this embodiment can be mechanically deformed under the action of external force, and its resistance value also changes with the size of the deformation. Therefore, the relative changes of different resistance values ​​and the corresponding deformation of the flexible circuit board 1012 can be obtained in advance, and a mapping relationship table of the relative change of resistance value-the deformation of the flexible circuit board 1012 can be constructed, so that in the actual application process, the deformation corresponding to the flexible circuit board 1012 can be determined directly according to the detected relative change of resistance value and the pre-constructed mapping relationship table of the relative change of resistance value-the deformation of the flexible circuit board 1012. Then, it is possible to determine whether the length of the current flexible circuit board 1012 reaches the length in the fully straightened state according to the deformation, and control the lifting structure 102 to stop working when it reaches the length, so as to achieve precise control of the lifting distance of the camera 1011.

[0047] In one implementation, the resistance strain gauge provided in this embodiment includes a flexible substrate (not shown in the figure) and a resistance strain sensor (not shown in the figure);

[0048] The resistance strain sensor is attached to the first side of the flexible substrate, the second side of the flexible substrate is attached to the bending area A, and the first side and the second side are two opposite sides;

[0049] The resistance strain sensor is used to change the resistance value of the resistance strain gauge according to the deformation of the flexible substrate.

[0050] In this embodiment, the resistance strain sensor provided in this embodiment is attached to a flexible substrate, and can be deformed together with the flexible substrate under the action of an external force, thereby changing the resistance value of the resistance strain sensor. Optionally, the resistance strain gauge provided in this embodiment may also include a protective film (not shown in the figure), which covers the resistance strain sensor and is used to protect the resistance strain sensor, prevent the resistance strain sensor from being damaged by foreign objects, extend the service life of the resistance strain sensor, and also ensure the accuracy of the resistance strain sensor changing the resistance value.

[0051] In another embodiment, see Figure 3 , Figure 3 is a schematic diagram of a structure in which a deformation output unit provided by an embodiment of the present invention is connected to a resistance strain gauge, such as Figure 3 As shown, the deformation output unit provided in this embodiment includes a bridge circuit, a differential amplifier, a voltage detector and a deformation converter;

[0052] The bridge circuit is electrically connected to the resistance strain gauge and the differential amplifier respectively, and the bridge circuit is used to convert the relative change of the resistance value of the resistance strain gauge into the voltage change;

[0053] The differential amplifier is also electrically connected to the voltage detector. The differential amplifier is used to amplify the voltage variation and transmit it to the voltage detector. The voltage detector is used to detect the voltage value of the amplified voltage variation to obtain the relative variation of the voltage value.

[0054] The deformation converter is electrically connected to the voltage detector and is used for converting the relative change of the voltage value into the deformation corresponding to the flexible circuit board.

[0055] Specifically, this embodiment can pre-acquire different relative changes in voltage values ​​and the corresponding deformation amounts of the flexible circuit board, and construct a mapping relationship table of the relative change in voltage value-the deformation amount of the flexible circuit board. Therefore, in the actual application process, the corresponding deformation amount of the flexible circuit board can be determined directly according to the measured relative change in voltage value and the pre-constructed mapping relationship table of the relative change in voltage value-the deformation amount of the flexible circuit board, thereby realizing precise control of the lifting distance of the camera.

[0056] Specifically, the bridge circuit provided in this embodiment may be a half-bridge circuit or a full-bridge circuit. The voltage detector provided in this embodiment may be an ADC analog-to-digital converter.

[0057] As an optional embodiment, the camera module 101 provided in this embodiment further includes a rotating structure (not shown in the figure);

[0058] The camera 1011 is disposed on the rotating structure, and the rotating structure is fixedly connected to the lifting structure 102;

[0059] The rotating structure is used to rotate the camera 1011 to a different position when the camera 1011 is raised outside the electronic device 100.

[0060] Thus, by arranging the camera 1011 on the rotating structure, the camera 1011 can be rotated to different positions when the camera 1011 is raised outside the electronic device 100, for example, the camera 1011 can be rotated to be used as a front camera 1011, or the camera 1011 can be rotated to be used as a rear camera 1011. Thus, only one camera 1011 is needed to realize the functions of the front camera 1011 and the rear camera 1011 as required, which can reduce the number of cameras 1011 and reduce production costs on the one hand, and combine the front camera 1011 and the rear camera 1011 into one, which can reduce the difficulty of processing.

[0061] It should be noted that the rotating structure provided in this embodiment is not limited to rotating the camera 1011 forward or backward to realize the functions of the front camera 1011 and the rear camera 1011, but can also rotate the camera 1011 in any direction and at any angle, without specific limitation here.

[0062] In summary, this embodiment provides an electronic device, which includes a camera module and a lifting structure, the lifting structure is arranged in the housing of the electronic device, one end of the lifting structure is fixedly connected to the camera module, and the other end is electrically connected to the electronic device, the lifting structure is used to lift and move the camera module relative to the electronic device, the camera module includes a camera and a flexible circuit board, one end of the flexible circuit board is electrically connected to the camera, and the other end is electrically connected to the electronic device, the flexible circuit board has a bending area, a deformation detection component is provided in the bending area, and the deformation detection component is used to detect the deformation amount of the bending area, so that the electronic device can control the lifting structure according to the deformation amount. By adopting the embodiment of the present invention, it is possible to achieve precise control of the lifting distance of the camera without using a Hall sensor, and reduce the manufacturing cost of the electronic device.

[0063] In some embodiments, in order to solve the same technical problem, the present invention also provides a control method of an electronic device, please also refer to Figure 1 , Figure 2 as well as Figure 4 , Figure 4 is a flow chart of a control method of an electronic device provided by an embodiment of the present invention. Figure 1 , Figure 2 , Figure 4 As shown, an embodiment of the present invention also provides a control method for an electronic device, wherein the electronic device includes a camera module and a lifting structure; the lifting structure is arranged in a housing of the electronic device, one end of the lifting structure is fixedly connected to the camera module, and the other end is electrically connected to the electronic device, and the lifting structure is used to lift and move the camera module relative to the electronic device; the camera module includes a camera and a flexible circuit board, one end of the flexible circuit board is electrically connected to the camera, and the other end is electrically connected to the electronic device; the flexible circuit board has a bending area, and a deformation detection component is arranged in the bending area, and the deformation detection component is used to detect the deformation amount of the bending area, so that the electronic device can control the lifting structure according to the deformation amount;

[0064] The control method of the electronic device provided in this embodiment includes steps 401 to 402;

[0065] Step 401, obtaining a deformation amount detected by a deformation detection component, where the deformation amount is used to characterize the expansion and contraction amount of a flexible circuit board in an electronic device.

[0066] In this embodiment, the deformation detection component provided in this embodiment includes a resistance strain gauge and a deformation variable output unit; the resistance strain gauge is attached to the bending area, and the resistance strain gauge is used to change the resistance value of the resistance strain gauge according to the deformation generated in the bending area; the deformation variable output unit is electrically connected to the resistance strain gauge and the electronic device respectively, and the deformation variable output unit is used to output the deformation variable corresponding to the flexible circuit board according to the relative change in the resistance value of the resistance strain gauge. Specifically, the steps for obtaining the deformation variable detected by the deformation detection component provided in this embodiment may include: obtaining the current first resistance value and original resistance value of the resistance strain gauge, and the original resistance value is the resistance value of the resistance strain gauge of the flexible circuit board in a fully stretched state; according to the first resistance value and the original resistance value, determining the relative change in the resistance value of the resistance strain gauge; inputting the relative change in the resistance value into the deformation variable output unit to obtain the deformation variable corresponding to the flexible circuit board.

[0067] Specifically, the principle of the deformation variable output unit provided in the present embodiment outputting the deformation variable of the flexible circuit board is as follows: according to the relative change in the resistance value of the resistance strain gauge and the relationship between the resistance value of the resistance strain gauge and the resistance wire in the resistance strain gauge, the relative change in the length of the resistance wire in the resistance strain gauge is determined; according to the relative change in the length of the resistance wire in the resistance strain gauge, the relative change in the voltage value of the resistance strain gauge is measured, and thus the deformation variable corresponding to the flexible circuit board is determined according to the relative change in the voltage value and a preset mapping relationship table of the relative change in the voltage value-the deformation variable of the flexible circuit board.

[0068] In this embodiment, when the resistance strain gauge provided in this embodiment undergoes mechanical deformation, the resistance wire in the resistance strain gauge will also undergo deformation, thereby causing the resistance value of the resistance strain gauge to change. Specifically, the relationship between the resistance value change of the resistance strain gauge provided in this embodiment and the resistance wire change is:

[0069]

[0070] Wherein, ΔR / R is the relative change of the resistance value of the resistance strain gauge, K is the strain sensitivity coefficient of the resistance strain gauge, and ε=Δl / l is the relative change of the resistance wire length.

[0071] It should be noted that the strain sensitivity coefficient of the resistance strain gauge varies with the material of the resistance strain gauge. Specifically, the strain sensitivity coefficient of the same resistance strain gauge is fixed. Optionally, the strain sensitivity coefficient of the resistance strain gauge provided in this embodiment can be 2.

[0072] The deformation output unit provided in this embodiment may include a bridge circuit, and the relative change of the voltage value of the resistance strain gauge can be measured by the bridge circuit. Specifically, the bridge circuit provided in this embodiment measures the voltage value of the resistance strain gauge according to the following formula:

[0073]

[0074] Among them, U is the measured voltage value of the resistance strain gauge, E is the DC power supply voltage of the bridge, and ε is the relative change in the length of the resistance wire.

[0075] The relative change in the voltage value of the resistance strain gauge can be determined through the bridge circuit, and then the deformation amount corresponding to the flexible circuit board can be determined according to the preset mapping relationship table of the relative change in the voltage value-the deformation amount of the flexible circuit board. Specifically, this embodiment can pre-acquire different relative changes in voltage values ​​and the corresponding deformation amount of the flexible circuit board, and construct a mapping relationship table of the relative change in voltage value-the deformation amount of the flexible circuit board, so that in the actual application process, the deformation amount corresponding to the flexible circuit board can be directly determined according to the measured relative change in voltage value and the pre-constructed mapping relationship table of the relative change in voltage value-the deformation amount of the flexible circuit board, so as to achieve precise control of the lifting distance of the camera.

[0076] Compared with the related methods of using Hall sensors and magnets to detect changes in the lifting distance of the camera, this embodiment converts the changes in the lifting distance of the camera into changes in voltage values, which can not only effectively reduce the interference of the magnet on the surrounding current circuits and magnetic device circuits, but also reduce the risk of interference caused by the Hall sensor in the process of detecting the lifting distance of the camera, while greatly reducing the manufacturing cost of the electronic equipment.

[0077] Step 402: Control the lifting structure according to the deformation amount and the first length of the flexible circuit board, where the first length is the length of the flexible circuit board in a straightened state.

[0078] In some embodiments, the step of controlling the lifting structure according to the deformation amount and the first length of the flexible circuit board provided in this embodiment may include: adding the deformation amount to the second length of the flexible circuit board to obtain the current third length of the flexible circuit board, the second length being the length of the flexible circuit board when the lifting structure is fully retracted in the electronic device; when the third length is equal to the first length, controlling the lifting structure to stop working.

[0079] It should be noted that each time the camera module provided in this embodiment is lifted and moved, it is converted from a fully retracted state in which the camera module is fully retracted inside the electronic device to a fully extended state in which the camera module is fully raised outside the electronic device, or from a fully extended state to a fully retracted state. This embodiment is mainly to avoid the situation in which the camera module continues to rise after rising from a fully retracted state to a fully extended state. Therefore, the deformation amount corresponding to the flexible circuit board determined in this embodiment can be the expansion and contraction amount of the flexible circuit board during the process of the camera module rising from a fully retracted state. In this way, the length of the flexible circuit board when the camera module is in a fully retracted state can be added to the determined expansion and contraction amount, and compared with the first length of the flexible circuit board. When they are equal, it can be determined that the current camera module has reached a fully extended state, thereby controlling the lifting structure to stop working and realizing precise control of the camera lifting.

[0080] In summary, this embodiment provides a control method for an electronic device, including: obtaining a deformation amount detected by a deformation detection component, the deformation amount is used to characterize the expansion and contraction amount of a flexible circuit board in an electronic device, and controlling a lifting structure according to the deformation amount and a first length of the flexible circuit board, wherein the first length is the length of the flexible circuit board in a straightened state. This method can achieve precise control of the lifting distance of a camera without using a Hall sensor, and reduce the manufacturing cost of the electronic device.

[0081] According to the method described in the above embodiments, this embodiment will be further described from the perspective of the control device of the electronic device. The control device of the electronic device can be implemented as an independent entity or integrated in an electronic device, such as a terminal. The terminal can include a mobile phone, a tablet computer, etc.

[0082] In order to solve the same technical problem, the present embodiment also provides a control device for an electronic device, the electronic device comprising a camera module and a lifting structure; the lifting structure is arranged in a housing of the electronic device, one end of the lifting structure is fixedly connected to the camera module, and the other end is electrically connected to the electronic device, and the lifting structure is used to lift and move the camera module relative to the electronic device; the camera module comprises a camera and a flexible circuit board, one end of the flexible circuit board is electrically connected to the camera, and the other end is electrically connected to the electronic device; the flexible circuit board has a bending area, and a deformation detection component is arranged in the bending area, and the deformation detection component is used to detect the deformation amount of the bending area, so that the electronic device can control the lifting structure according to the deformation amount, see Figure 5 , Figure 5 is a schematic diagram of a structure of a control device of an electronic device provided by an embodiment of the present invention, such as Figure 5 As shown, the control device 500 of the electronic device provided by the embodiment of the present invention includes: an acquisition module 501 and a control module 502.

[0083] The acquisition module 501 is used to acquire the deformation amount detected by the deformation detection component, and the deformation amount is used to characterize the expansion and contraction amount of the flexible circuit board in the electronic device.

[0084] In this embodiment, the deformation detection component provided in this embodiment includes a resistance strain gauge and a deformation variable output unit; the resistance strain gauge is attached to the bending area, and the resistance strain gauge is used to change the resistance value of the resistance strain gauge according to the deformation generated in the bending area; the deformation variable output unit is electrically connected to the resistance strain gauge and the electronic device respectively, and the deformation variable output unit is used to output the deformation variable corresponding to the flexible circuit board according to the relative change in the resistance value of the resistance strain gauge. Specifically, the acquisition module 501 provided in this embodiment is specifically used to: obtain the current first resistance value and original resistance value of the resistance strain gauge, and the original resistance value is the resistance value of the resistance strain gauge of the flexible circuit board in the fully stretched state; determine the relative change in the resistance value of the resistance strain gauge according to the first resistance value and the original resistance value; input the relative change in the resistance value into the deformation variable output unit to obtain the deformation variable corresponding to the flexible circuit board.

[0085] The control module 502 is used to control the lifting structure according to the deformation amount and the first length of the flexible circuit board.

[0086] The first length is the length of the flexible circuit board in a straightened state.

[0087] In this embodiment, the control module 502 provided in this embodiment is specifically used to: add the deformation amount to the second length of the flexible circuit board to obtain the current third length of the flexible circuit board, the second length is the length of the flexible circuit board when the lifting structure is fully retracted in the electronic device; when the third length is equal to the first length, control the lifting structure to stop working.

[0088] During specific implementation, the above modules and / or units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above modules and / or units can refer to the previous method embodiments. The specific beneficial effects that can be achieved can also refer to the beneficial effects in the previous method embodiments, which will not be repeated here.

[0089] Also, see Figure 6 , Figure 6 1 is a schematic diagram of a structure of an electronic device provided by an embodiment of the present invention, and the electronic device may be a mobile terminal such as a smart phone, a tablet computer, or the like. Figure 6 As shown, the electronic device 600 includes a processor 601 and a memory 602. The processor 601 is electrically connected to the memory 602.

[0090] The processor 601 is the control center of the electronic device 600. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device 600 and processes data by running or loading applications stored in the memory 602 and calling data stored in the memory 602, thereby monitoring the electronic device 600 as a whole.

[0091] In this embodiment, the processor 601 in the electronic device 600 will load the instructions corresponding to the processes of one or more applications into the memory 602 according to the following steps, and the processor 601 will run the application stored in the memory 602, thereby implementing any step in the control method of the electronic device provided in the above embodiment.

[0092] The electronic device 600 can implement the steps in any embodiment of the control method of the electronic device provided in the embodiments of the present invention, and therefore can achieve the beneficial effects that can be achieved by any control method of the electronic device provided in the embodiments of the present invention. Please refer to the previous embodiments for details and will not be repeated here.

[0093] See also Figure 7 , Figure 7 is another structural schematic diagram of an electronic device provided by an embodiment of the present invention, such as Figure 7 As shown, Figure 7 The electronic device 500 is a block diagram of a specific structure of an electronic device provided by an embodiment of the present invention, and the electronic device can be used to implement the control method of the electronic device provided in the above embodiment. The electronic device 500 can be a mobile terminal such as a smart phone or a laptop computer.

[0094] The RF circuit 710 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices. The RF circuit 710 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity module (SIM) cards, memories, etc. The RF circuit 710 can communicate with various networks such as the Internet, corporate intranets, wireless networks, or communicate with other devices through wireless networks. The above-mentioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. The above-mentioned wireless networks can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (such as Institute of Electrical and Electronics Engineers standards IEEE 802.11a, IEEE 802.11b, IEEE802.11g and / or IEEE802.11n), Voice over Internet Protocol (VoIP), Worldwide Interoperability for Microwave Access (Wi-Max), other protocols for email, instant messaging and short messages, and any other suitable communication protocols, even those that have not yet been developed.

[0095] The memory 720 can be used to store software programs and modules, such as program instructions / modules corresponding to the control method of the electronic device in the above-mentioned embodiment. The processor 780 executes various functional applications and controls the camera module by running the software programs and modules stored in the memory 720.

[0096] The memory 720 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 720 may further include a memory remotely arranged relative to the processor 780, and these remote memories may be connected to the electronic device 700 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0097] The input unit 730 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 730 may include a touch-sensitive surface 731 and other input devices 732. The touch-sensitive surface 731, also known as a touch display screen or touch pad, can collect user touch operations on or near it (such as operations performed by users using fingers, styluses, or any other suitable objects or accessories on or near the touch-sensitive surface 731), and drive corresponding connection devices according to a pre-set program. Optionally, the touch-sensitive surface 731 may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 780, and can receive and execute commands sent by the processor 780. In addition, the touch-sensitive surface 731 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 731, the input unit 730 may further include other input devices 732. Specifically, the other input devices 732 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.

[0098] The display unit 740 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device 700, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 740 may include a display panel 741, and optionally, the display panel 741 may be configured in the form of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc. Further, the touch-sensitive surface 731 may cover the display panel 741, and when the touch-sensitive surface 731 detects a touch operation on or near it, it is transmitted to the processor 780 to determine the type of the touch event, and then the processor 780 provides corresponding visual output on the display panel 741 according to the type of the touch event. Although in the figure, the touch-sensitive surface 731 and the display panel 741 are implemented as two independent components to implement input and output functions, in some embodiments, the touch-sensitive surface 731 and the display panel 741 can be integrated to implement input and output functions.

[0099] The electronic device 700 may also include at least one sensor 750, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 741 according to the brightness of the ambient light, and the proximity sensor may generate an interrupt when the flip cover is closed or closed. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can also be configured in the electronic device 700, they will not be repeated here.

[0100] The audio circuit 760, the speaker 761, and the microphone 762 can provide an audio interface between the user and the electronic device 700. The audio circuit 760 can transmit the electrical signal converted from the received audio data to the speaker 761, which is converted into a sound signal for output; on the other hand, the microphone 762 converts the collected sound signal into an electrical signal, which is received by the audio circuit 760 and converted into audio data, and then the audio data is output to the processor 780 for processing, and then sent to another terminal through the RF circuit 710, or the audio data is output to the memory 720 for further processing. The audio circuit 760 may also include an earplug jack to provide communication between an external headset and the electronic device 700.

[0101] The electronic device 700 can help the user receive requests, send information, etc. through the transmission module 770 (such as a Wi-Fi module), which provides the user with wireless broadband Internet access. Although the transmission module 770 is shown in the figure, it is understandable that it is not a necessary component of the electronic device 700 and can be omitted as needed without changing the essence of the invention.

[0102] The processor 780 is the control center of the electronic device 700. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 720, and calling data stored in the memory 720, it executes various functions of the electronic device 700 and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 780 may include one or more processing cores; in some embodiments, the processor 780 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It can be understood that the above-mentioned modem processor may not be integrated into the processor 780.

[0103] The electronic device 700 also includes a power supply 790 (such as a battery) for supplying power to various components. In some embodiments, the power supply can be logically connected to the processor 780 through a power management system, so that the power management system can manage charging, discharging, and power consumption management. The power supply 790 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0104] Although not shown, the electronic device 700 also includes a camera (such as a front camera, a rear camera), a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the display unit of the electronic device is a touch screen display, and the mobile terminal also includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and are configured to be executed by one or more processors to implement any step in the control method of the electronic device provided in the above embodiment.

[0105] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation of the above modules can be found in the previous method embodiments, which will not be repeated here.

[0106] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling related hardware through instructions, and the instructions can be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present invention provides a storage medium, which stores multiple instructions, and the instructions can be executed by the processor to implement any step in the control method of the electronic device provided in the above embodiments.

[0107] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0108] Since the instructions stored in the storage medium can execute the steps in any embodiment of the control method of the electronic device provided in the embodiments of the present invention, the beneficial effects that can be achieved by the control method of any electronic device provided in the embodiments of the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0109] The electronic device and its control method and computer-readable storage medium provided by the embodiment of the present application are introduced in detail above. The principle and implementation method of the present application are explained in this article by using specific examples. The description of the above embodiments is only used to help understand the method and its core idea of ​​the present application. At the same time, for those skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present application. Moreover, for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and modifications can be made, and these improvements and modifications are also regarded as the protection scope of the present invention.

Claims

1. An electronic device, characterized in that: Including camera module and lifting structure; The lifting structure is arranged in the housing of the electronic device, one end of the lifting structure is fixedly connected to the camera module, and the other end is electrically connected to the electronic device, and the lifting structure is used to make the camera module move up and down relative to the electronic device; The camera module includes a camera and a flexible circuit board, one end of the flexible circuit board is electrically connected to the camera, and the other end of the flexible circuit board is electrically connected to the electronic device; The flexible circuit board has a bending area, and a deformation detection component is arranged in the bending area. The deformation detection component is used to detect the deformation amount of the bending area so that the electronic device can control the lifting structure according to the deformation amount.

2. The electronic device according to claim 1, wherein: The deformation detection component includes a resistance strain gauge and a deformation output unit; The resistance strain gauge is attached to the bending area, and the resistance strain gauge is used to change the resistance value of the resistance strain gauge according to the deformation generated in the bending area; The deformation output unit is electrically connected to the resistance strain gauge and the electronic device respectively, and is used to output the deformation corresponding to the flexible circuit board according to the relative change of the resistance value of the resistance strain gauge.

3. The electronic device according to claim 2, characterized in that: The resistance strain gauge includes a flexible substrate and a resistance strain sensor; The resistance strain sensor is attached to a first side surface of the flexible substrate, and a second side surface of the flexible substrate is attached to the bending area, wherein the first side surface and the second side surface are two opposite side surfaces; The resistance strain sensor is used to change the resistance value of the resistance strain gauge according to the deformation of the flexible substrate.

4. The electronic device according to claim 2, characterized in that: The deformation amount output unit includes a bridge circuit, a differential amplifier, a voltage detector and a deformation amount converter; The bridge circuit is electrically connected to the resistance strain gauge and the differential amplifier respectively, and the bridge circuit is used to convert the relative change of the resistance value of the resistance strain gauge into a voltage change; The differential amplifier is also electrically connected to the voltage detector, and the differential amplifier is used to amplify the voltage variation and transmit it to the voltage detector, and the voltage detector is used to detect the voltage value of the amplified voltage variation to obtain the relative variation of the voltage value; The deformation converter is electrically connected to the voltage detector and is used to convert the relative change of the voltage value into a corresponding deformation of the flexible circuit board.

5. The electronic device according to claim 1, wherein: The camera module also includes a rotating structure; The camera is arranged on the rotating structure, and the rotating structure is fixedly connected to the lifting structure; The rotating structure is used to rotate the camera to a different position when the camera is raised outside the electronic device.

6. A method for controlling an electronic device, characterized in that: The electronic device comprises a camera module and a lifting structure; the lifting structure is arranged in a housing of the electronic device, one end of the lifting structure is fixedly connected to the camera module, and the other end is electrically connected to the electronic device, and the lifting structure is used to lift and move the camera module relative to the electronic device; The camera module includes a camera and a flexible circuit board, one end of the flexible circuit board is electrically connected to the camera, and the other end is electrically connected to the electronic device; the flexible circuit board has a bending area, and a deformation detection component is provided in the bending area, and the deformation detection component is used to detect the deformation amount of the bending area, so that the electronic device can control the lifting structure according to the deformation amount; The control method of the electronic device comprises: Acquiring a deformation amount detected by the deformation detection component, wherein the deformation amount is used to characterize an expansion and contraction amount of the flexible circuit board in the electronic device; The lifting structure is controlled according to the deformation amount and a first length of the flexible circuit board, where the first length is a length of the flexible circuit board in a straightened state.

7. The method according to claim 6, characterized in that The deformation detection component includes a resistance strain gauge and a deformation output unit; the resistance strain gauge is attached to the bending area, and the resistance strain gauge is used to change the resistance value of the resistance strain gauge according to the deformation generated in the bending area; the deformation output unit is electrically connected to the resistance strain gauge and the electronic device respectively, and the deformation output unit is used to output the deformation corresponding to the flexible circuit board according to the relative change of the resistance value of the resistance strain gauge; The obtaining of the deformation amount detected by the deformation detection component comprises: Acquire a current first resistance value and an original resistance value of the resistance strain gauge, wherein the original resistance value is the resistance value of the resistance strain gauge when the flexible circuit board is in a fully stretched state; Determining a relative change in the resistance value of the resistance strain gauge according to the first resistance value and the original resistance value; The relative change in the resistance value is input into the deformation output unit to obtain the deformation corresponding to the flexible circuit board.

8. The method according to claim 6, characterized in that The controlling the lifting structure according to the deformation amount and the first length of the flexible circuit board includes: Adding the deformation amount to the second length of the flexible circuit board to obtain a current third length of the flexible circuit board, wherein the second length is the length of the flexible circuit board when the lifting structure is fully retracted in the electronic device; When the third length is equal to the first length, the lifting structure is controlled to stop working.

9. An electronic device, characterized in that: The electronic device comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor implements the steps in the method according to any one of claims 6 to 8 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the method according to any one of claims 6 to 8 are implemented.