Electronic device and control method of movable camera
Through the combination of infrared signals and signal processing devices, the moving distance of the mobile camera is precisely controlled, which solves the problem of hitting the structural bracket during movement and extends the service life of the camera.
Patent Information
- Application Number
- CN202110369328.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-06
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2041-04-06
AI Technical Summary
Existing mobile cameras are prone to hitting structural supports during movement, resulting in shortened service life, and there is a lack of effective control methods to solve this problem.
The infrared transmitting module and the infrared receiving module are used to transmit and receive infrared signals, combined with the signal processing device and the driving device, to accurately control the moving distance of the camera to ensure that the camera does not hit the structural support during movement.
By precisely controlling the moving distance of the camera, the phenomenon of hitting the structural bracket is avoided, the service life of the camera is extended and the stability of the moving process is improved.
Smart Images

Figure CN115190222B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of terminal electronic equipment, and in particular to an electronic equipment and a control method for a movable camera. Background Art
[0002] With the continuous development of manufacturing technology, more and more electronic devices, such as commercial integrated display machines, smart TVs and other display devices, have begun to use mobile cameras. However, the current mobile cameras, whether extended forward and backward or up and down, will cause the structural support to hit each time they reach the top, often making a knocking sound, and may reduce the service life of the mobile camera.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present invention provide an electronic device and a control method for a movable camera, so as to at least solve the technical problem that the moving camera collides with a structural support during movement due to the inability to accurately control the moving distance of the mobile camera.
[0005] According to one aspect of an embodiment of the present invention, a movable electronic device is provided, comprising: a movable camera; an infrared transmitting module, used to transmit an infrared signal to the movable camera; an infrared receiving module, used to receive a feedback signal corresponding to the infrared signal reflected by the movable camera, and convert the feedback signal into an electrical signal; a control circuit, connected to the infrared receiving module, used to determine the movement state of the movable camera during the movement process based on the electrical signal, wherein the movement state includes: continue moving and stop moving.
[0006] Optionally, the control circuit includes: a signal processing device, used to determine data used to characterize the moving distance based on the electrical signal, wherein the moving distance is the distance between the initial position and the current moving position of the movable camera; a driving device, connected to the signal processing device, used to drive the movable camera to move based on the data, and control the movable camera to stop moving when the moving distance represented by the data reaches a target value.
[0007] Optionally, the target value includes: a first target value and a second target value, the first target value being the distance between the initial position and the target moving position when the movable camera moves from the initial position to the target moving position; the second target value being the minimum allowable distance between the movable camera and the first structural member in the backward moving direction of the movable camera when the movable camera returns to the initial position.
[0008] Optionally, the first target value is smaller than the distance between the initial position and a second structural member in the electronic device, and the second structural member is a structural member of the movable camera in a forward moving direction.
[0009] Optionally, the signal processing device includes: a signal amplification circuit for receiving an electrical signal and amplifying the signal strength of the electrical signal; a first signal conversion circuit for receiving the amplified electrical signal and converting the electrical signal into a digital signal; and a second signal conversion circuit for converting the digital signal into data representing the moving distance.
[0010] Optionally, the driving device includes: a control chip, which is used to control the transmission motor to work according to the data, and control the transmission motor to stop working when the moving distance represented by the data reaches a target value; a transmission motor, which is connected to the control chip and is used to provide power during the movement of the movable camera.
[0011] Optionally, the electronic device also includes: a cover plate, the plane where the cover plate is located is perpendicular to the moving trajectory of the movable camera, and is a component of the movable camera housing, and is used to protect the movable camera, wherein the distance between the cover plate and the initial position is greater than the distance between the structural member and the initial position, and the infrared transmitting module and the infrared receiving module are installed on the cover plate.
[0012] According to another aspect of an embodiment of the present invention, a method for controlling a movable camera is also provided, comprising: controlling an infrared transmitting module in an electronic device to transmit an infrared signal to the movable camera; determining a moving state of the movable camera during movement based on a feedback signal reflected by the infrared signal, wherein the moving state includes: continuing to move and stopping moving.
[0013] Optionally, the reflected signal of the infrared signal determines the moving state of the movable camera during the moving process, including: converting the reflected signal into data representing the moving distance, wherein the moving distance is the distance between the initial position and the current moving position of the movable camera; determining the moving state of the movable camera during the moving process based on the data, and controlling the movable camera to stop moving when the moving distance represented by the data reaches a target value.
[0014] Optionally, determining data for characterizing the moving distance based on the reflected signal includes: transmitting an infrared signal to the camera during the movement of the movable camera; receiving a feedback signal reflected by the movable camera, and determining data for characterizing the moving distance based on the feedback signal.
[0015] Optionally, determining data for characterizing the moving distance based on the feedback signal includes: converting the reflected feedback signal into an electrical signal; amplifying the electrical signal and converting the amplified electrical signal into a digital signal; and converting the digital signal into data characterizing the moving distance.
[0016] Optionally, the target value includes: a first target value and a second target value, the first target value being the distance between the initial position and the target moving position when the movable camera moves from the initial position to the target moving position; the second target value being the minimum allowable distance between the movable camera and the first structural member in the backward moving direction of the movable camera when the movable camera returns to the initial position.
[0017] An embodiment of the present invention further provides a non-volatile storage medium, the non-volatile storage medium including a stored program, wherein when the program is running, a device where the non-volatile storage medium is located is controlled to execute a control method for a movable camera.
[0018] In an embodiment of the present invention, a method is adopted in which a moving distance of a camera during movement is obtained; and whether the movable camera continues to move is controlled according to the moving distance. By obtaining the moving distance of the camera during movement, the purpose of accurately controlling the movement process of the camera is achieved, thereby achieving the technical effect of avoiding the mobile camera from colliding with the structural frame during movement, and further solving the technical problem of the mobile camera colliding with the structural support during movement due to the inability to accurately control the moving distance of the mobile camera. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0020] Figure 1a , Figure 1b and Figure 1c is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
[0021] Figure 2 is a structural schematic diagram of a signal processing device according to an embodiment of the present invention;
[0022] Figure 3 is a flow chart of a movable camera control method according to an embodiment of the present invention;
[0023] Figure 4 is a structural schematic diagram of a movable camera control device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0024] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present invention.
[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0026] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following explanations:
[0027] Electrical signal: Electrical signal refers to voltage or current that changes with time, so it can be expressed as a function of time in mathematical description, and its waveform can be drawn. Since non-electrical physical quantities can be easily converted into electrical signals through various sensors, and electrical signals are easy to transmit and control, they have become the most widely used signals.
[0028] Digital signal: A digital signal is a signal that is described by a set of special states. The typical example is a signal represented by the most common binary digits. The fundamental reason for using binary digits to represent signals is that the circuit can only represent two states, namely, the on and off state of the circuit. In actual digital signal transmission, a certain range of information changes are usually classified as state 0 or state 1. This state setting greatly improves the digital signal's ability to resist noise.
[0029] Example 1
[0030] According to an embodiment of the present invention, a structural embodiment of an electronic device is provided.
[0031] Figure 1a , Figure 1b and Figure 1c is an electronic device according to an embodiment of the present invention, such as Figure 1a , Figure 1b and Figure 1c As shown, the device includes:
[0032] Movable camera 01; infrared transmitting module, namely infrared transmitting sensor 03, used to transmit infrared signal to movable camera 01; infrared receiving module, namely infrared receiving sensor 04, used to receive feedback signal corresponding to infrared signal reflected by movable camera 01 and convert the feedback signal into electric signal; control circuit 05, connected with infrared receiving sensor 04, used to determine the moving state of movable camera 01 during moving according to electric signal, wherein the moving state includes: continue moving and stop moving. Cover plate 02, the plane where cover plate 02 is located is perpendicular to the moving track of movable camera 01, is a component of the outer shell of movable camera 01, used to protect movable camera 01, wherein the distance between cover plate 02 and initial position is greater than the distance between structural member and initial position, and infrared transmitting sensor 03 and infrared receiving sensor 04 are installed on cover plate. Transmission motor 08, used to provide power during the moving process of movable camera 01.
[0033] Among them, Figure 2 As shown, the control circuit 05 may also include: a signal processing device 06, used to convert the electrical signal into data representing a moving distance, wherein the moving distance is the distance between the initial position and the current moving position of the movable camera 01; a driving device 07, connected to the signal processing device 06, used to drive the movable camera 01 to move according to the data, and control the movable camera to stop moving when the moving distance represented by the data reaches a target value.
[0034] It should be noted that, in the embodiment of the present application, the movement of the camera includes movement in the horizontal direction and movement in the vertical direction relative to the frame of the electronic device.
[0035] In addition, when the moving process of the movable camera 01 is different, the target value is also different. The target value includes: a first target value and a second target value, the first target value is the distance between the initial position and the target moving position when the movable camera 01 moves from the initial position to the target moving position; the second target value is the minimum allowable distance between the movable camera 01 and the first structural member in the backward moving direction of the movable camera 01 when the movable camera 01 returns to the initial position. And the first target value is smaller than the distance between the initial position and the second structural member in the electronic device, wherein the second structural member is the structural member of the movable camera 01 in the forward moving direction.
[0036] Specifically, when the movable camera 01 moves in a direction away from the cover plate 02, the target value is the farthest distance to ensure that the camera 01 does not collide with the structural member 14, and the infrared reflection signal received by the infrared receiving sensor 04 is the weakest at this time; when the movable camera 01 moves in a direction close to the cover plate 02, the target value is the shortest distance to ensure that the movable camera 01 does not collide with the structural member 14, and the infrared reflection signal received by the infrared receiving sensor 04 is the strongest at this time. It can be understood that when the infrared receiving sensor 04 receives reflection signals of different intensities, it will generate electrical signals corresponding to the reflection signals of different intensities.
[0037] In some embodiments of the present application, the infrared emission sensor 03 may also be connected to a control circuit. The control circuit may generate an electrical signal based on the time difference between the emission of the infrared signal and the reception of the feedback signal reflected by the emission of the infrared signal. It is understandable that different moving distances will produce different time differences, and different time differences correspond to different electrical signals. Specifically, the shortest distance corresponds to the minimum time difference, and the longest distance corresponds to the maximum time difference.
[0038] In some embodiments of the present application, the signal processing device 06 includes: a signal acquisition and amplification module 10, which is used to receive the electrical signal and amplify the signal strength of the electrical signal; a first signal conversion module 11, which is used to receive the electrical signal after the signal is amplified separately and convert the electrical signal into a digital signal; a second signal conversion module 12, which is used to convert the digital signal into a distance signal, that is, data representing the moving distance.
[0039] In some embodiments of the present application, the structure diagram of the control circuit 05 is as follows: Figure 2 shown. Figure 2It is a circuit diagram of a mobile electronic device according to an embodiment of the present application. The meanings of the numbers in the figure are as follows: 01 is a movable camera; 13 is a screen; 14 is a structural member; 10 is a signal amplification circuit, which is used to receive the electrical signal and amplify the signal strength of the electrical signal; 11 is a first signal conversion circuit, which is used to receive the amplified electrical signal and convert the electrical signal into a digital signal; 12 is a second signal conversion circuit, which is used to determine the data used to characterize the moving distance according to the digital signal; 09 is a control chip of a drive device 07, and the control chip 09 is used to control the transmission motor 08 to work according to the data, and control the transmission motor 08 to stop working when the moving distance represented by the data reaches the target value; 08 is a transmission motor of the drive device 07, and the transmission motor 08 is connected to the control chip 09, and is used to provide power during the movement of the movable camera 01. Among them, the signal acquisition and amplification module 10, the signal conversion module 11, and the second signal conversion module 12 can be used as a part of the signal processing device 06, and the control chip 09 and the transmission motor 08 are components of the drive device 07.
[0040] like Figure 2 The process of the signal processing device 06 shown converting the electrical signal into data representing the moving distance is as follows: after the signal acquisition and amplification module 10 receives the current signal from the infrared receiving sensor 04, it will amplify the current signal and then pass the amplified electrical signal to the first signal conversion module 11. The first signal conversion module 11 will convert the amplified current signal into a voltage signal, and then convert the voltage signal into a digital signal through the AD interface, and pass the digital signal to the second signal conversion module 12. The second signal conversion module 12 will convert the digital signal into data representing the moving distance, and pass the data to the control chip 09 of the drive device 07 through UART (Universal Asynchronous Receiver / Transmitter).
[0041] Specifically, Figure 1a , Figure 1b and Figure 1cThe specific implementation method of the movable electronic device shown in the figure to prevent the movable camera 01 from colliding with the structural member during the movement of the movable camera 01 is as follows: when the movable camera 01 is in the initial position, that is, when it is not extended, the signal received by the infrared receiving sensor 04 is the strongest. Because the infrared wave signal emitted by the infrared emitting sensor 03 is immediately reflected back to the infrared receiving sensor 04 by the back cover of the movable camera 01, the infrared receiving sensor 04 converts the received infrared light signal into a current signal and sends the electrical signal to the signal processing device 06, which converts the electrical signal into data representing the moving distance and sends the moving distance to the control chip 09 of the camera driving board 07, and the control chip 09 controls the working state of the transmission motor 08 according to the data representing the moving distance. When the movable camera 01 is about to touch the structural member, the moving distance at this time is taken as the longest target value, and the moving distance at this time is the target value during the extension process of the movable camera 01. In this way, during the extension process of the movable camera 01, as long as the extension distance reaches the target value, the control chip will immediately control the motor to stop rotating to prevent the movable camera 01 from colliding with the structural member. When the movable camera 01 is retracted, the target value is the minimum allowable distance between the first structural members in the backward moving direction of the movable camera 01.
[0042] Example 2
[0043] According to an embodiment of the present invention, a method embodiment of a mobile electronic device anti-collision method is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0044] Figure 3 is a flowchart of a method for collision avoidance of a mobile electronic device according to an embodiment of the present invention. Figure 3 As shown, the method includes:
[0045] Step S302, controlling the infrared transmitting module in the electronic device to transmit an infrared signal to the movable camera;
[0046] Step S304: determining the moving state of the movable camera during the moving process according to the reflection signal of the infrared signal.
[0047] In some embodiments of the present application, the moving state of the movable camera during the moving process is determined based on the reflection signal of the infrared signal, including: converting the reflection signal into data representing the moving distance, wherein the moving distance is the distance between the initial position and the current moving position of the movable camera; determining the moving state of the movable camera during the moving process based on the data, and controlling the movable camera to stop moving when the moving distance represented by the data reaches a target value.
[0048] In some embodiments of the present application, determining the data used to characterize the moving distance based on the reflected signal includes: transmitting an infrared signal to the movable camera during the movement of the movable camera; receiving a feedback signal reflected by the movable camera, and determining the data used to characterize the moving distance based on the feedback signal.
[0049] In some embodiments of the present application, converting the reflected infrared signal into the moving distance includes: converting the reflected infrared signal into an electrical signal; amplifying the electrical signal and converting the amplified electrical signal into a digital signal; converting the digital signal into data for characterizing the moving distance.
[0050] It should be noted that, in the embodiment of the present application, the movement of the movable camera includes movement in the horizontal direction and movement in the vertical direction relative to the frame of the electronic device.
[0051] In addition, when the moving process of the movable camera is different, the target value is also different. The target value includes: a first target value and a second target value, the first target value is the distance between the initial position and the target moving position when the movable camera moves from the initial position to the target moving position; the second target value is the minimum allowable distance between the movable camera and the first structural member in the backward moving direction of the movable camera when the movable camera returns to the initial position. The first target value is smaller than the distance between the initial position and the second structural member in the electronic device, and the second structural member is the structural member of the movable camera in the forward moving direction.
[0052] Specifically, when the movable camera 01 moves in a direction away from the cover plate 02, the target value is the farthest distance to ensure that the movable camera 01 does not collide with the structural member 14, and at this time, the infrared reflection signal intensity received by the infrared receiving sensor 04 is the weakest; when the movable camera 01 moves in a direction close to the cover plate 02, the target value is the shortest distance to ensure that the movable camera 01 does not collide with the structural member 14, and at this time, the infrared reflection signal intensity received by the infrared receiving sensor 04 is the strongest.
[0053] In order to facilitate understanding of the above embodiment, the above embodiment will be further explained below in conjunction with a specific example in the process of camera movement:
[0054] When the movable camera 01 is in the initial position, that is, when it is not extended, the signal received by the infrared sensor is the strongest. Because the infrared wave signal emitted by the infrared emission sensor 03 is immediately reflected back by the back cover of the movable camera 01 to the infrared receiving sensor 04, the infrared receiving sensor 04 converts the received infrared light signal into a current signal, and sends the electrical signal to the signal processing device 05, the signal processing device 05 converts the electrical signal into a moving distance, and sends the moving distance to the control chip of the camera driving board 06, and the control chip controls the rotation of the motor according to the moving distance. When the movable camera 01 is about to touch the structural member 14, the moving distance at this time is taken as the longest target value, and the moving distance at this time is the target value during the extension process of the movable camera 01. In this way, during the extension process of the movable camera 01, as long as the extension distance reaches the target value, the control chip will immediately control the motor to stop rotating to prevent the movable camera 01 from colliding with the structural member. When the movable camera 01 shrinks, the target value is the minimum allowable distance between the first structural members in the backward moving direction of the movable camera 01.
[0055] Specifically, Figure 2 The process of the signal processing device 06 shown converting the electrical signal into data representing the moving distance is as follows: after the signal acquisition and amplification module 10 receives the current signal from the infrared receiving sensor 04, it will amplify the current signal and then pass the amplified electrical signal to the first signal conversion module 11. The first signal conversion module 11 will convert the amplified current signal into a voltage signal, and then convert the voltage signal into a digital signal through the AD interface, and pass the digital signal to the second signal conversion module 12. The second signal conversion module 12 will convert the digital signal into data representing the moving distance, and pass the moving distance to the control chip 09 of the drive device 07 through UART (Universal Asynchronous Receiver / Transmitter).
[0056] Example 3
[0057] According to an embodiment of the present invention, a device embodiment of a mobile electronic device anti-collision device is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0058] Figure 4 is a schematic diagram of the structure of a mobile electronic device anti-collision device according to an embodiment of the present invention. Figure 4As shown, the device includes: an acquisition module 40, used for acquiring the moving distance of the movable camera 01 during the movement process; and a driving module 42, used for determining whether the movable camera 01 continues to move according to the moving distance.
[0059] It should be noted that, in the embodiment of the present application, the movement of the camera includes movement in the horizontal direction and movement in the vertical direction relative to the frame of the electronic device.
[0060] In addition, when the moving process of the movable camera 01 is different, the target value is also different. The target value includes: a first target value and a second target value, the first target value is the distance between the initial position and the target moving position when the movable camera 01 moves from the initial position to the target moving position; the second target value is the minimum allowable distance between the movable camera 01 and the first structural member in the backward moving direction of the movable camera 01 when the movable camera 01 returns to the initial position. And the first target value is smaller than the distance between the initial position and the second structural member in the electronic device, wherein the second structural member is the structural member of the movable camera 01 in the forward moving direction.
[0061] Specifically, when the movable camera 01 moves in a direction away from the cover plate 02, the target value is the farthest distance to ensure that the movable camera 01 does not collide with the structural member 14, and the infrared reflection signal received by the infrared receiving sensor 04 is the weakest at this time; when the movable camera 01 moves in a direction close to the cover plate 02, the target value is the shortest distance to ensure that the movable camera 01 does not collide with the structural member 14, and the infrared reflection signal received by the infrared receiving sensor 04 is the strongest at this time. It can be understood that when the infrared receiving sensor 04 receives reflection signals of different intensities, it will generate electrical signals corresponding to the reflection signals of different intensities.
[0062] In some embodiments of the present application, the acquisition module 40 acquires the moving distance of the movable camera 01 during the movement process, including: transmitting an infrared signal to the movable camera 01 during the movement of the movable camera 01; receiving the infrared signal reflected by the movable camera 01, and converting the reflected infrared signal into the moving distance.
[0063] In some embodiments of the present application, converting the reflected infrared signal into the moving distance includes: converting the reflected infrared signal into an electrical signal; amplifying the electrical signal and converting the amplified electrical signal into a digital signal; and converting the digital signal into the moving distance.
[0064] like Figure 2The process of the signal processing device 06 shown converting the electrical signal into data representing the moving distance is as follows: after the signal acquisition and amplification module 10 receives the current signal from the infrared receiving sensor 04, it will amplify the current signal and then pass the amplified electrical signal to the first signal conversion module 11. The first signal conversion module 11 will convert the amplified current signal into a voltage signal, and then convert the voltage signal into a digital signal through the AD interface, and pass the digital signal to the second signal conversion module 12. The second signal conversion module 12 will convert the digital signal into data representing the moving distance, and pass the data to the control chip 09 of the drive device 07 through UART (Universal Asynchronous Receiver / Transmitter).
[0065] In some embodiments of the present application, the driving module 42 determines whether the movable camera 01 continues to move based on the moving distance, including: judging whether the moving distance reaches the travel reference point, and when the moving distance reaches the travel reference point, controlling the movable camera 01 to stop moving.
[0066] When the movable camera 01 is in the initial position, that is, when it is not extended, the signal received by the infrared sensor is the strongest. Because the infrared wave signal emitted by the infrared emission sensor 03 is immediately reflected back by the back cover of the movable camera 01 to the infrared receiving sensor 04, the infrared receiving sensor 04 converts the received infrared light signal into a current signal, and sends the electrical signal to the signal processing device 05, the signal processing device 05 converts the electrical signal into a moving distance, and sends the moving distance to the control chip of the camera driving board 06, and the control chip controls the rotation of the motor according to the moving distance. When the movable camera 01 is about to touch the structural member, the moving distance at this time is taken as the longest target value, and the moving distance at this time is the target value during the extension process of the camera 01. In this way, during the extension process of the movable camera 01, as long as the extension distance reaches the target value, the control chip will immediately control the motor to stop rotating to prevent the movable camera 01 from colliding with the structural member. When the movable camera 01 shrinks, the target value is the minimum allowable distance between the first structural members in the backward moving direction of the movable camera 01.
[0067] Example 4
[0068] The embodiment of the present application further provides a storage medium. Optionally, in this embodiment, the storage medium can be used to store the program code executed by the image rendering method provided in the first embodiment.
[0069] Optionally, in this embodiment, the above storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
[0070] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps: obtaining a moving distance of the camera during movement; and controlling whether the camera continues to move according to the moving distance.
[0071] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0072] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0073] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0074] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0075] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0076] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0077] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. An electronic device, characterized in that: include: A movable camera, wherein the movement of the movable camera includes movement in a horizontal direction and movement in a vertical direction relative to the frame of the electronic device; An infrared transmitting module, used for transmitting infrared signals to the movable camera; an infrared receiving module, configured to receive a feedback signal corresponding to the infrared signal reflected by the movable camera, and convert the feedback signal into an electrical signal, wherein converting the feedback signal into the electrical signal comprises: generating the electrical signal corresponding to the feedback signal according to the moving direction of the movable camera and the signal strength of the feedback signal; The control circuit is connected to at least the infrared receiving module and is used to determine the moving state of the movable camera during the moving process according to the electrical signal, wherein the moving state includes: continuing to move and stopping moving.
2. The electronic device according to claim 1, characterized in that: The control circuit comprises: A signal processing device, used to determine data for representing a moving distance based on the electrical signal, wherein the moving distance is a distance between an initial position and a current moving position of the movable camera; A driving device is connected to the signal processing device, and is used to drive the movable camera to move according to the data, and control the movable camera to stop moving when the moving distance represented by the data reaches a target value.
3. The electronic device according to claim 2, characterized in that: The target value includes: a first target value and a second target value, the first target value being the distance between the initial position and the target moving position when the movable camera moves from the initial position to the target moving position; the second target value being the minimum allowable distance between the movable camera and the first structural member in the backward moving direction of the movable camera when the movable camera returns to the initial position.
4. The electronic device according to claim 3, characterized in that: The first target value is smaller than the distance between the initial position and a second structural component in the electronic device, where the second structural component is a structural component of the movable camera in a forward moving direction.
5. The electronic device according to claim 2, characterized in that: The signal processing device comprises: A signal amplifying circuit, used for receiving the electrical signal and amplifying the signal strength of the electrical signal; A first signal conversion circuit, used for receiving the amplified electrical signal and converting the electrical signal into a digital signal; The second signal conversion circuit is used to convert the digital signal into data representing the moving distance.
6. The electronic device according to claim 2, characterized in that: The driving device comprises: A control chip, wherein the control chip is used to control the transmission motor to work according to the data, and to control the transmission motor to stop working when the moving distance represented by the data reaches the target value; A transmission motor is connected to the control chip and is used to provide power during the movement of the movable camera.
7. The electronic device according to claim 1, characterized in that: The electronic device further comprises: A cover plate, wherein the plane where the cover plate is located is perpendicular to the moving trajectory of the movable camera, and is a component of the movable camera housing, and is used to protect the movable camera, wherein the distance between the cover plate and the initial position is greater than the distance between the structural member and the initial position, and the infrared transmitting module and the infrared receiving module are installed on the cover plate.
8. A method for controlling a movable camera, characterized in that: include: Controlling an infrared transmitting module in the electronic device to transmit an infrared signal to the movable camera, wherein the movement of the movable camera includes movement in a horizontal direction and in a vertical direction relative to a frame of the electronic device; The moving state of the movable camera during the moving process is determined according to the feedback signal reflected by the infrared signal, wherein the moving state includes: continuing to move and stopping moving. The moving state of the movable camera during the moving process is determined according to the feedback signal reflected by the infrared signal, including: generating an electrical signal corresponding to the feedback signal according to the moving direction of the movable camera and the signal strength of the feedback signal; and determining the moving state according to the electrical signal.
9. The method according to claim 8, characterized in that Determining the moving state of the movable camera during the moving process according to the reflection signal of the infrared signal includes: Determining data for representing a moving distance according to the feedback signal, wherein the moving distance is a distance between an initial position and a current moving position of the movable camera; The moving state of the movable camera during the moving process is determined according to the data, and the movable camera is controlled to stop moving when the moving distance represented by the data reaches a target value.
10. The method according to claim 9, characterized in that The data used to characterize the moving distance determined according to the feedback signal includes: During the movement of the movable camera, transmitting an infrared signal to the movable camera; A feedback signal reflected by the movable camera is received, and the data used to characterize the moving distance is determined according to the feedback signal.
11. The method according to claim 10, characterized in that Determining the data used to characterize the moving distance according to the feedback signal includes: amplifying the electrical signal and converting the amplified electrical signal into a digital signal; The digital signal is converted into the data representing the moving distance.
12. The method according to claim 9, characterized in that The target value includes: a first target value and a second target value, the first target value being the distance between the initial position and the target moving position when the movable camera moves from the initial position to the target moving position; the second target value being the minimum allowable distance between the movable camera and the first structural member in the backward moving direction of the movable camera when the movable camera returns to the initial position.
13. A non-volatile storage medium, characterized in that: The non-volatile storage medium includes a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the control method of the movable camera described in any one of claims 8 to 12.
