Electronic device including camera and operating method thereof

By employing a dual-camera system in the electronic device, combined with pulse width modulation and linear drive methods, efficient optical image stabilization and autofocus of the camera module are achieved, solving the image blurring problem when handheld and improving the stability and clarity of image capture.

CN121533030APending Publication Date: 2026-02-13SAMSUNG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202480046633.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-09-11
Filing Date
2024-07-29
Publication Date
2026-02-13

AI Technical Summary

Technical Problem

In the prior art, camera modules in electronic devices are prone to image blurring due to shaking when handheld, and image stabilization functions are difficult to effectively compensate for this, especially in multi-camera systems where the driving method suffers from inefficiency.

Method used

A dual-camera system is adopted, using pulse width modulation (PWM) and linear drive methods to drive the drive units of the first and second cameras respectively. Combined with an image stabilizer, the system compensates for shaking by moving the lens assembly and image sensor, thereby achieving optical image stabilization (OIS) and autofocus (AF) functions.

Benefits of technology

It improves the efficiency of image stabilization and autofocus in multi-camera systems, reduces power consumption, enhances the stability and sharpness of image capture, and is suitable for various shooting scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121533030A_ABST
    Figure CN121533030A_ABST
Patent Text Reader

Abstract

According to one embodiment, an electronic device includes: a display; a first camera including a first lens assembly and a first driving unit; a second camera including a second lens assembly and a second driving unit; and a processor wherein the processor may be configured to: display, by means of the display, a preview image acquired by using the second camera, based on a request to run a camera function; driving the first driving unit by using a pulse width modulation (PWM) driving method such that the first camera moves during at least a portion of a time interval in which the preview image is acquired by means of the second camera; and moving the second camera by driving the second driving unit using a linear driving method. Various other embodiments are possible.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the disclosure relate to an electronic device including a camera and an operating method thereof. BACKGROUND

[0002] As technology for manufacturing digital cameras has developed, electronic devices equipped with smaller and lighter cameras have been commercialized. The camera mounted in the electronic device enables a user to easily utilize various functions such as a video call or augmented reality, as well as to take a photo or a video.

[0003] The camera can perform an image stabilization function for image correction in response to a disturbance. Here, the disturbance can indicate the occurrence of various artifacts such as blurring of an image obtained by the camera module due to a slight shaking of a user's hand while taking a photo or recording a video. The image stabilization function (e.g., a shake (or hand-shake) correction function) can move a lens assembly included in the camera module on a plane perpendicular to an optical axis to compensate for limited movement of the electronic device due to a jig or a user's grip, thereby preventing or mitigating shaking in a captured image or video. For this purpose, the camera can include a coil and a magnet. The coil supplied with a current can generate an electromagnetic force through electromagnetic interaction with the magnet, and the camera can use the generated electromagnetic force to perform a shake correction function. As a method of correcting shaking using an electromagnetic force, various methods such as lens shift in which a lens assembly is moved, prism shift in which a prism is moved, and module tilt in which the camera is tilted can be applied.

[0004] The above information is presented as background information only to assist with an understanding of the disclosure. No determination has been made, and no assertion is made, as to whether any of the above might be applicable as prior art with regard to the disclosure. SUMMARY

[0005] According to an embodiment, an electronic device can include a display, a first camera including a first lens assembly and a first driving unit, a second camera including a second lens assembly and a second driving unit, at least one processor, and a memory storing instructions.

[0006] According to an embodiment, based on a request to run a camera function, the electronic device can display, through the display, a preview image obtained using the second camera.

[0007] According to an embodiment, the electronic device can drive the first driving unit using a pulse width modulation (PWM) driving method during at least a portion of a time period in which the preview image is obtained through the second camera.

[0008] According to an embodiment, the electronic device can drive the second driving unit using a linear driving method during at least a portion of a time period in which the preview image is obtained through the second camera.

[0009] According to an embodiment, a method of operating an electronic device can include displaying, based on a request to execute a camera function, a preview image obtained using a second camera included in the electronic device through a display included in the electronic device.

[0010] According to an embodiment, the method of operating an electronic device can include driving the first driving unit using a pulse width modulation (PWM) driving method during at least a portion of a time period in which the preview image is obtained through the second camera.

[0011] According to an embodiment, the method of operating an electronic device can include driving the second driving unit using a linear driving method during at least a portion of a time period in which the preview image is obtained through the second camera.

[0012] According to an embodiment, a non-transitory recording medium can store instructions capable of executing operations of displaying, based on a request to execute a camera function, a preview image obtained using a second camera included in an electronic device through a display included in the electronic device.

[0013] According to an embodiment, the non-transitory recording medium can store instructions capable of executing operations of driving a first driving unit included in an electronic device using a pulse width modulation (PWM) driving method during at least a portion of a time period in which a preview image is obtained through a second camera included in the electronic device.

[0014] According to an embodiment, the non-transitory recording medium can store instructions capable of executing operations of driving a second driving unit included in an electronic device using a linear driving method during at least a portion of a time period in which a preview image is obtained through a second camera included in the electronic device. BRIEF DESCRIPTION OF DRAWINGS

[0015] Figure 1 is a block diagram of an electronic device in a network environment according to various embodiments.

[0016] Figure 2 is a block diagram illustrating a camera module according to an embodiment.

[0017] Figure 3a is a schematic block diagram illustrating an electronic device according to an embodiment.

[0018] Figure 3b is a diagram illustrating a back of an electronic device according to an embodiment.

[0019] Figure 4a is a diagram illustrating a first camera according to an embodiment.

[0020] Figure 4b is a diagram illustrating a driving circuit representing a portion of a first driving unit and a value of a current consumed by the first driving unit according to an embodiment.

[0021] Figure 4c is a diagram illustrating a driving circuit representing a portion of a first driving unit and a value of a current consumed by the first driving unit according to an embodiment.

[0022] Figure 5a is a diagram illustrating a state in which an electronic device displays an image on a display according to an embodiment.

[0023] Figure 5b is a diagram illustrating a state in which an electronic device displays an image on a display according to an embodiment.

[0024] Figure 6 is a flowchart illustrating an operation of an electronic device driving a first camera and a second camera according to an embodiment.

[0025] Figure 7 is a flowchart illustrating an operation of an electronic device moving a first camera based on a current consumed by a first driving unit according to an embodiment.

[0026] Figure 8 is a flowchart illustrating an operation of an electronic device moving a first camera based on a current consumed by a first driving unit according to an embodiment.

[0027] Figure 9a is a flowchart illustrating an operation of an electronic device moving a first camera based on an angle with a ground according to an embodiment.

[0028] Figure 9b is a diagram illustrating an angle between an electronic device and a ground according to an embodiment.

[0029] Figure 9c is a diagram illustrating a curve graph of a position of a first magnet and a value of a current consumed by a first driving unit corresponding to the position of the first magnet according to an embodiment.

[0030] Figure 10 is a flowchart illustrating an operation of an electronic device moving a first camera based on a position of a first magnet confirmed in a state in which the first camera does not move according to an embodiment.

[0031] Figure 11 is a flowchart illustrating an operation of an electronic device driving a first camera in a case in which a magnification of the first camera is adjusted according to an embodiment.

[0032] Figure 12 is a flowchart illustrating an operation of an electronic device driving a second camera according to an embodiment.

[0033] Figure 13 is a flowchart illustrating an operation of an electronic device driving a third camera according to an embodiment.

[0034] Figure 14 is a flowchart illustrating an operation of an electronic device driving a first camera, a second camera, and a third camera according to an embodiment. DETAILED DESCRIPTION

[0035] Hereinafter, embodiments of the disclosure will be described in detail with reference to the accompanying drawings so as to be easily practiced by one of ordinary skill in the art to which the disclosure pertains. The disclosure may, however, be implemented in several different forms and is not limited to the embodiments described herein. Identical or similar reference numerals can be used to designate identical or similar elements throughout the drawings and their descriptions. In addition, descriptions of well-known functions and configurations incorporated herein can be omitted from the description for clarity and conciseness.

[0036] Figure 1 is a block diagram illustrating an electronic device 101 in a network environment 100 according to various embodiments. Referring to Figure 1 , the electronic device 101 in the network environment 100 can communicate with an electronic device 102 via a first network 198 (e.g., a short-range wireless communication network), or an electronic device 104 or a server 108 via a second network 199 (e.g., a long-range wireless communication network). According to an embodiment, the electronic device 101 can communicate with the electronic device 104 via the server 108. According to an embodiment, the electronic device 101 can include a processor 120, a memory 130, an input module 150, a sound output module 155, a display module 160, an audio module 170, a sensor module 176, an interface 177, a connection terminal 178, a haptic module 179, a camera module 180, a power management module 188, a battery 189, a communication module 190, a subscriber identification module (SIM) 196, or an antenna module 197. In some embodiments, at least one (e.g., the connection terminal 178) of the above components can be omitted from the electronic device 101, or one or more other components can be added in the electronic device 101. In some embodiments, some of the above components (e.g., the sensor module 176, the camera module 180, or the antenna module 197) can be implemented as a single component (e.g., the display module 160).

[0037] The processor 120 can execute, for example, software (e.g., a program 140) to control at least one other component (e.g., a hardware or software component) of the electronic device 101 coupled with the processor 120 and can perform various data processing or computation. According to an embodiment, as at least part of the data processing or computation, the processor 120 can store a command or data received from another component (e.g., the sensor module 176 or the communication module 190) in the volatile memory 132, process the command or data stored in the volatile memory 132, and store processed data in the non-volatile memory 134. According to an embodiment, the processor 120 can include a main processor 121 (e.g., a central processing unit (CPU) or an application processor (AP)), or an auxiliary processor 123 (e.g., a graphics processing unit (GPU), a neural processing unit (NPU), an image signal processor (ISP), a sensor hub processor, or a communication processor (CP)) that is operable independently from, or in conjunction with, the main processor 121. For example, when the electronic device 101 includes the main processor 121 and the auxiliary processor 123, the auxiliary processor 123 can be adapted to consume less power than the main processor 121, or to be dedicated to a specific function. The auxiliary processor 123 can be implemented as separate from, or as part of, the main processor 121.

[0038] The auxiliary processor 123, rather than the main processor 121, can control at least some of functions or status related to at least one component (for example, the display module 160, the sensor module 176, or the communication module 190) among the components of the electronic device 101, while the main processor 121 is in an inactive (for example, sleep) state, or the auxiliary processor 123 can control at least some of the functions or status related to at least one component (for example, the display module 160, the sensor module 176, or the communication module 190) among the components of the electronic device 101, together with the main processor 121, while the main processor 121 is in an active state (for example, executing an application). According to an embodiment, the auxiliary processor 123 (for example, an image signal processor or a communication processor) can be implemented as a part of another component (for example, the camera module 180 or the communication module 190) functionally related to the auxiliary processor 123. According to an embodiment, the auxiliary processor 123 (for example, a neural processing unit) can include a hardware structure dedicated to processing of an artificial intelligence model. The artificial intelligence model can be generated through machine learning. For example, such learning can be performed by the electronic device 101 where the artificial intelligence model is executed, or via a separate server (for example, the server 108). The learning algorithm can include, but is not limited to, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning. The artificial intelligence model can include multiple artificial neural network layers. The artificial neural network can be a deep neural network (DNN), a convolutional neural network (CNN), a recurrent neural network (RNN), a restricted Boltzmann machine (RBM), a deep belief network (DBN), a bidirectional recurrent deep neural network (BRDNN), or a deep Q-network, or a combination of two or more thereof, but is not limited thereto. Additionally or alternatively, the artificial intelligence model can include a software structure other than the hardware structure.

[0039] The memory 130 can store various data used by at least one component (for example, the processor 120 or the sensor module 176) of the electronic device 101. The various data can include, for example, software (for example, a program 140) and input data or output data for commands related thereto. The memory 130 can include the volatile memory 132 or the non-volatile memory 134.

[0040] The program 140 can be stored in the memory 130 as software, and can include, for example, an operating system (OS) 142, middleware 144, or an application 146.

[0041] The input module 150 can receive a command or data to be used by another component (for example, the processor 120) of the electronic device 101, from the outside (for example, a user) of the electronic device 101. The input module 150 can include, for example, a microphone, a mouse, a keyboard, a key (for example, a button), or a digital pen (for example, a stylus pen).

[0042] The sound output module 155 can output sound signals to the outside of the electronic device 101. The sound output module 155 can include, for example, a speaker or a receiver. The speaker can be used for general purposes, such as playing multimedia or playing record. The receiver can be used to receive an incoming call. According to an embodiment, the receiver can be implemented as separate from the speaker, or can be implemented as part of the speaker.

[0043] The display module 160 can visually provide information to the outside (e.g., a user) of the electronic device 101. The display module 160 can include, for example, a display, a hologram device, or a projector and a control circuit for controlling a corresponding one of them. According to an embodiment, the display module 160 can include a touch sensor adapted to detect a touch, or a pressure sensor adapted to measure the intensity of force incurred by the touch.

[0044] The audio module 170 can convert a sound into an electrical signal and vice versa. According to an embodiment, the audio module 170 can obtain sound through the input module 150, or output sound through the sound output module 155 or a headphone of an external electronic device (e.g., an electronic device 102) directly (e.g., wiredly) or wirelessly coupled with the electronic device 101.

[0045] The sensor module 176 can detect an operational state (e.g., power or temperature) of the electronic device 101 or an environmental state (e.g., a state of a user) external to the electronic device 101, and then generate an electrical signal or data value corresponding to the detected state. According to an embodiment, the sensor module 176 can include, for example, a gesture sensor, a gyro sensor, an atmospheric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an infrared (IR) sensor, a biometric sensor, a temperature sensor, a humidity sensor, or an illuminance sensor.

[0046] The interface 177 can support one or more specified protocols to be coupled with the external electronic device (e.g., the electronic device 102) directly (e.g., wiredly) or wirelessly. According to an embodiment, the interface 177 can include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, a secure digital (SD) card interface, or an audio interface.

[0047] The connection terminal 178 can include a connector through which the electronic device 101 can be physically connected with the external electronic device (e.g., the electronic device 102). According to an embodiment, the connection terminal 178 can include, for example, a HDMI connector, a USB connector, a SD card connector, or an audio connector (e.g., a headphone connector).

[0048] The haptic module 179 can convert electrical signal into a mechanical stimulus (e.g., vibration or movement) or electrical stimulus that can be recognized by a user via his tactile sensation or kinesthetic sensation. According to an embodiment, the haptic module 179 can include, for example, a motor, a piezoelectric element, or an electrical stimuluser.

[0049] The camera module 180 can capture still images or moving images. According to an embodiment, the camera module 180 can include one or more lenses, image sensors, image signal processors, or flashes.

[0050] The power management module 188 can manage power supplied to the electronic device 101. According to one embodiment, the power management module 188 can be implemented as at least part of, for example, a power management integrated circuit (PMIC).

[0051] The battery 189 can supply power to at least one component of the electronic device 101. According to an embodiment, the battery 189 can include, for example, a primary cell which is not rechargeable, a secondary cell which is rechargeable, or a fuel cell.

[0052] The communication module 190 can support establishing a direct (e.g., wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (e.g., the electronic device 102, the electronic device 104, or the server 108) and performing communication via the established communication channel. The communication module 190 can include one or more communication processors that are operable independently from the processor 120 (e.g., an application processor (AP)) and supports a direct (e.g., wired) communication or a wireless communication. According to an embodiment, the communication module 190 can include a wireless communication module 192 (e.g., a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (e.g., a local area network (LAN) communication module or a power line communication (PLC) module). A corresponding one of these communication modules can communicate with the external electronic device via the first network 198 (e.g., a short-range communication network, such as BluetoothTM, wireless-fidelity (Wi-Fi) direct, or infrared data association (IrDA)) or the second network 199 (e.g., a long-range communication network, such as a conventional cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (e.g., LAN or wide area network (WAN)). These various types of communication modules can be implemented as a single component (e.g., a single chip) or can be implemented as separate components (e.g., separate chips) from each other. The wireless communication module 192 can identify and authenticate the electronic device 101 in a communication network, such as the first network 198 or the second network 199, using subscriber information (e.g., an international mobile subscriber identity (IMSI)) stored in the subscriber identification module 196.

[0053] The wireless communication module 192 can support 5G networks and next-generation communication technologies (e.g., new radio (NR) access technology) after 4G networks. The NR access technology can support enhanced mobile broadband (eMBB), massive machine type communications (mMTC), or ultra-reliable low-latency communications (URLLC). The wireless communication module 192 can support a high frequency band (e.g., a millimeter wave band) to achieve, for example, high data transmission rates. The wireless communication module 192 can support various technologies for securing performance on a high frequency band, such as, for example, beamforming, massive multiple-input multiple-output (massive MIMO), full dimensional MIMO (FD-MIMO), array antenna, analog beamforming, or large scale antenna. The wireless communication module 192 can support various requirements designated in the electronic device 101, an external electronic device (e.g., the electronic device 104), or a network system (e.g., the second network 199). According to an embodiment, the wireless communication module 192 can support a peak data rate (e.g., 20 Gbps or more) for implementing eMBB, a loss coverage (e.g., 164 dB or less) for implementing mMTC, or a U-plane latency (e.g., 0.5 ms or less for each of downlink (DL) and uplink (UL), or 1 ms or less of round trip) for implementing URLLC.

[0054] The antenna module 197 can transmit or receive a signal or power to or from the outside (e.g., an external electronic device) of the electronic device 101. According to an embodiment, the antenna module 197 can include an antenna including a radiating element composed of a conductive material or a conductive pattern formed in or on a substrate (e.g., a printed circuit board (PCB)). According to an embodiment, the antenna module 197 can include a plurality of antennas (e.g., array antennas). In this case, at least one antenna suitable for a communication scheme used in a communication network, such as the first network 198 or the second network 199, can be selected from the plurality of antennas by, for example, the communication module 190 (e.g., the wireless communication module 192). The signal or power can then be transmitted or received between the communication module 190 and an external electronic device via the selected at least one antenna. According to an embodiment, another component (e.g., a radio frequency integrated circuit (RFIC)) other than the radiating element can additionally be formed as part of the antenna module 197.

[0055] According to various embodiments, the antenna module 197 can form a millimeter wave antenna module. According to an embodiment, the millimeter wave antenna module can include a printed circuit board, an RFIC, and a plurality of antennas (e.g., array antennas), in which the RFIC is disposed on a first surface (e.g., a bottom surface) of the printed circuit board, or adjacent to the first surface and capable of supporting a designated high frequency band (e.g., a millimeter wave band), and the plurality of antennas is disposed on a second surface (e.g., a top surface or a side surface) of the printed circuit board, or adjacent to the second surface and capable of transmitting or receiving a signal of the designated high frequency band.

[0056] At least some of the above-described components can be coupled mutually via an inter-peripheral communication scheme (e.g., a bus, a general purpose input output (GPIO), a serial peripheral interface (SPI), or a mobile industry processor interface (MIPI)) and communicate signals (e.g., commands or data) between them.

[0057] According to an embodiment, commands or data can be transmitted or received between the electronic device 101 and an external electronic device 104 via the server 108 coupled with the second network 199. Each of the electronic devices 102 and 104 can be the same type as or different from the electronic device 101. According to an embodiment, all or some of the operations to be executed at the electronic device 101 can be executed at one or more of the external electronic devices 102, 104, or server 108. For example, if the electronic device 101 is to automatically perform a function or a service or is to request a function or a service in response to a request from a user or another device, the electronic device 101, instead of, or in addition to, executing the function or the service, can request one or more external electronic devices to execute at least part of the function or the service. The one or more external electronic devices receiving the request can execute at least part of the function or the service requested or an additional function or an additional service related to the request and transfer an execution result to the electronic device 101. The electronic device 101 can provide the execution result as a part of a reply to the request, with or without further processing of the execution result. To this end, a cloud computing technology, a distributed computing technology, a mobile edge computing (MEC) technology, or a client-server computing technology can be used, for example. The electronic device 101 can use, for example, distributed computing or mobile edge computing to provide an ultra-low latency service. In another embodiment, the external electronic devices 104 can include an Internet of Things (IoT) device. The server 108 can be an intelligent server using machine learning and / or a neural network. According to an embodiment, the external electronic devices 104 or the server 108 can be included in the second network 199. The electronic device 101 can be applied to a smart service (for example, a smart home, a smart city, a smart car, or a health care) based on a 5G communication technology or an IoT-related technology.

[0058] Figure 2 is a block diagram 200 illustrating a camera module 180 according to an embodiment.

[0059] Referring to Figure 2The camera module 180 can include a lens assembly 210, a flash 220, an image sensor 230, an image stabilizer 240, a memory 250 (e.g., a buffer memory), or an image signal processor 260. The lens assembly 210 can collect light emitted or reflected from an object of an image to be photographed. The lens assembly 210 can include one or more lenses. According to an embodiment, the camera module 180 can include a plurality of lens assemblies 210. In this case, the camera module 180 can form, for example, a dual camera, a 360-degree camera, or a spherical camera. Some of the plurality of lens assemblies 210 can have the same lens properties (e.g., angle of view, focal length, auto focus, f number, or optical zoom), or at least one lens assembly can have one or more lens properties different from the lens properties of another lens assembly. The lens assembly 210 can include, for example, a wide-angle lens or a telephoto lens.

[0060] The flash 220 can emit light, in which the emitted light is used to enhance light reflected from the object. According to an embodiment, the flash 220 can include one or more light emitting diodes (LEDs) (e.g., a red green blue (RGB) LED, a white LED, an infrared (IR) LED, or an ultraviolet (UV) LED) or a xenon lamp. The image sensor 230 can obtain an image corresponding to the object by converting light emitted or reflected from the object and transmitted via the lens assembly 210 into an electrical signal. According to an embodiment, the image sensor 230 can include one image sensor selected from a plurality of image sensors having different properties (e.g., an RGB sensor, a black white (BW) sensor, an IR sensor, or a UV sensor), a plurality of image sensors having the same properties, or a plurality of image sensors having different properties. Each of the image sensors included in the image sensor 230 can be implemented using, for example, a charge-coupled device (CCD) sensor or a complementary metal-oxide semiconductor (CMOS) sensor.

[0061] The image stabilizer 240 can move the image sensor 230 or at least one lens included in the lens assembly 210 in a certain direction or control an operable attribute of the image sensor 230 (e.g., adjust a readout timing) in response to a movement of the camera module 180 or the electronic device 101 including the camera module 180. This allows to compensate at least a portion of a negative effect (e.g., image blur) due to a movement of an image being captured. According to an embodiment, the image stabilizer 240 can use a gyro sensor (not shown) or an acceleration sensor (not shown) arranged inside or outside the camera module 180 to sense such a movement of the camera module 180 or the electronic device 101. According to an embodiment, the image stabilizer 240 can be implemented as, for example, an optical image stabilizer. The memory 250 can at least temporarily store at least a portion of an image obtained via the image sensor 230 for a subsequent image processing task. For example, if a plurality of images is captured rapidly or an image capture is delayed due to a shutter lag, an obtained raw image (e.g., a Bayer pattern image, a high resolution image) can be stored in the memory 250, and a corresponding copy image (e.g., a low resolution image) thereof can be previewed via the display module 160. Then, if a specified condition (e.g., by a user’s input or a system command) is satisfied, at least a portion of the raw image stored in the memory 250 can be obtained and processed by, for example, the image signal processor 260. According to an embodiment, the memory 250 can be configured as at least a portion of the memory 130, or the memory 250 can be configured as a separate memory operating independently of the memory 130.

[0062] The image signal processor 260 can perform one or more image processes on an image obtained via the image sensor 230 or an image stored in the memory 250. The one or more image processes can include, for example, depth map generation, three-dimensional (3D) modeling, panorama generation, feature point extraction, image synthesis, or image compensation (e.g., noise reduction, resolution adjustment, brightness adjustment, blurring, sharpening, or softening). Additionally or alternatively, the image signal processor 260 can perform control (e.g., exposure time control or readout timing control) on at least one of the components included in the camera module 180 (e.g., the image sensor 230). An image processed by the image signal processor 260 can be stored back to the memory 250 for further processing, or can be provided to an external component (e.g., the memory 130, the display module 160, the electronic device 102, the electronic device 104, or the server 108) outside the camera module 180. According to an embodiment, the image signal processor 260 can be configured as at least part of the processor 120, or can be configured as a separate processor operating independently of the processor 120. If the image signal processor 260 is configured as a processor separate from the processor 120, at least one image processed by the image signal processor 260 can be displayed as it is by the processor 120 via the display module 160, or can be displayed after being further processed.

[0063] According to an embodiment, the electronic device 101 can include a plurality of camera modules 180 having different attributes or functions. In this case, at least one of the plurality of camera modules 180 can form, for example, a wide-angle camera, and at least another of the plurality of camera modules 180 can form a telephoto camera. Similarly, at least one of the plurality of camera modules 180 can form, for example, a front camera, and at least another of the plurality of camera modules 180 can form a rear camera.

[0064] Figure 3a is a schematic block diagram illustrating an electronic device according to an embodiment.

[0065] Referring to Figure 3a According to an embodiment, the electronic device 301 can include a first camera 310, a second camera 330, a processor 320, a memory 350, and a display 360.

[0066] According to an embodiment, the processor 320 can control overall operations of the electronic device 301. For example, the processor 320 can be implemented identically or similarly to the processor 120 in Figure 1 .

[0067] According to an embodiment, the electronic device 301 can include a plurality of cameras. For example, the plurality of cameras can include a first camera 310 and a second camera 330. According to an embodiment, the first camera 310 and the second camera 330 can be implemented the same as or similar to the camera module 180 in FIG. 13A. Figure 2 According to an embodiment, a viewing angle of the first camera 310 can be different from a viewing angle of the second camera 330. According to an embodiment, the first camera 310 and the second camera 330 can be disposed on a back of the electronic device 301.

[0068] According to an embodiment, the first camera 310 can include a first lens assembly 311, a first driving unit 312, a first sensor 313, and a first image sensor 316. According to an embodiment, the second camera 330 can include a second lens assembly 331, a second driving unit 332, a second sensor 333, and a second image sensor 336.

[0069] According to an embodiment, the first driving unit 312 can include a first coil 314 and a first magnet 315. According to an embodiment, the second driving unit 332 can include a second coil 334 and a second magnet 335.

[0070] According to an embodiment, a driving method of the first camera 310 and a driving method of the second camera 330 can be variously configured. According to an embodiment, the processor 320 can drive the first camera 310 or the second camera 330 using a pulse width modulation (PWM) driving method or a linear driving method. According to an embodiment, an operation of driving the first camera 310 or the second camera 330 can include an operation of driving the first driving unit 312 or the second driving unit 332. According to an embodiment, the operation of driving the first driving unit 312 or the second driving unit 332 can include an operation of moving a position of the first driving unit 312 or the second driving unit 332.

[0071] According to an embodiment, the operation of moving the position of the first driving unit 312 can include an operation of moving a position of the first coil 314 or the first magnet 315. According to an embodiment, a position of the first lens assembly 311 can be moved based on the position movement of the first coil 314 or the first magnet 315. According to an embodiment, the operation of moving the position of the second driving unit 332 can include an operation of moving a position of the second coil 334 or the second magnet 335. According to an embodiment, a position of the second lens assembly 331 can be moved based on the position movement of the second coil 334 or the second magnet 335.

[0072] According to an embodiment, the first coil 314 and the first image sensor 316 can be implemented as one module. According to an embodiment, the operation of moving the position of the first driving unit 312 can include an operation of moving the position of the first coil 314 and the position of the first image sensor 316. According to an embodiment, the first magnet 315 and the first image sensor 316 can be implemented as one module. According to an embodiment, the operation of moving the position of the first driving unit 312 can include an operation of moving the position of the module including the first magnet 315 and the first image sensor 316.

[0073] According to an embodiment, the second coil 334 and the second image sensor 336 can be implemented as one module. According to an embodiment, the operation of moving the position of the second driving unit 332 can include an operation of moving the position of the second coil 334 and the position of the second image sensor 336. According to an embodiment, the second magnet 335 and the second image sensor 336 can be implemented as one module. According to an embodiment, the operation of moving the position of the second driving unit 332 can include an operation of moving the position of the module including the second magnet 335 and the second image sensor 336. For example, the processor 320 can perform a sensor shift operation.

[0074] According to an embodiment, the first coil 314, the first image sensor 316, and the first lens assembly 311 can be implemented as one module. According to an embodiment, the operation of moving the position of the first driving unit 312 can include an operation of moving the position of the module including the first coil 314, the first image sensor 316, and the first lens assembly 311. According to an embodiment, the second magnet 335, the second image sensor 336, and the second lens assembly 331 can be implemented as one module. According to an embodiment, the operation of moving the position of the second driving unit 332 can include an operation of moving the position of the module including the second magnet 335, the second image sensor 336, and the second lens assembly 331. For example, the processor 320 can perform a module shift operation.

[0075] According to an embodiment, the PWM driving method can include a method in which the processor 320 performs control to adjust a duty ratio in which a driving power source is turned on or off and applies a voltage or a current output from the driving power source to a driving unit (e.g., a coil). For example, a current applied to a driving unit through the PWM driving method can include a pulsed wave. According to an embodiment, the linear driving method can include a method in which the processor 320 adjusts a magnitude of a voltage or a current output from a driving power source and applies the same to a driving unit.

[0076] According to an embodiment, the processor 320 can confirm a request for running a camera function. According to an embodiment, the request for running the camera function can include a request for displaying an image obtained by using the first camera 310 or the second camera 330 through the display 360. According to an embodiment, if the image is obtained based on a running of an application related to a camera, the processor 320 can confirm that there is a request for running the camera function.

[0077] According to an embodiment, the processor 320 can display an image obtained by using the first camera 310 or the second camera 330 on the display 360 based on the request for running the camera function. According to an embodiment, the image can include a preview image.

[0078] According to an embodiment, if the image being displayed on the display 360 is confirmed to be not obtained by the first camera 310, the processor 320 can apply the first current to the first driving unit 312 so as to drive the first camera 310 using a pulse width modulation (PWM) driving method while the image is being displayed on the display 360. According to an embodiment, the processor 320 can obtain an image using the first camera 310 and drive the first camera 310 using the pulse width modulation (PWM) driving method when the image is not displayed on the display 360. According to an embodiment, the processor 320 can perform an image processing operation such as generating a depth map for an image or a high dynamic range (HDR) process. According to an embodiment, the processor 320 can drive the first camera 310 using the pulse width modulation (PWM) driving method when the first camera 310 is in an inactive state in which the first camera 310 does not operate.

[0079] According to an embodiment, if the image is confirmed to be obtained by the second camera 330, the processor 320 can apply the second current to the second driving unit 332 so as to drive the second camera 330 using a linear driving method while the image is being displayed on the display 360.

[0080] According to an embodiment, the processor 320 can perform an optical image stabilization (OIS) function to apply the first current to the first driving unit 312, thereby moving the first camera 310 in a direction perpendicular to an optical axis. According to an embodiment, the processor 320 can perform the optical image stabilization (OIS) function to apply the second current to the second driving unit 332, thereby moving the second camera 330 in a direction perpendicular to the optical axis. For example, the processor 320 can apply the second current to the second coil 334 to move the second coil 334 or the second magnet 335 in a direction perpendicular to the optical axis. For example, the processor 320 can move the second lens assembly 331 in a direction perpendicular to the optical axis based on the movement of the second coil 334 or the second magnet 335. According to an embodiment, the OIS function can include moving the first camera 310 in a direction perpendicular to the optical axis by the first driving unit 312 based on a movement of the first coil 314 or the first magnet 315. Figure 2The OIS function can include a function of moving the first lens assembly 311 or controlling an operational characteristic (e.g., adjusting a readout timing) of the first image sensor 316 of the first camera 310. According to an embodiment, the OIS function can include a function of moving the second lens assembly 331 or controlling an operational characteristic (e.g., adjusting a readout timing) of the second image sensor 336 of the second camera 330.

[0081] According to an embodiment, the processor 320 can perform an auto focus (AF) function to apply a first current to the first driving unit 312, thereby moving the first camera 310 in the optical axis direction. According to an embodiment, the processor 320 can apply a first current to the first coil 314 to move the first coil 314 or the first magnet 315 in the optical axis direction. For example, the processor 320 can move the first lens assembly 311 in the optical axis direction based on the movement of the first coil 314 or the first magnet 315. According to an embodiment, the processor 320 can perform an auto focus (AF) function to apply a second current to the second driving unit 332, thereby moving the first camera 310 and the second camera 330 in the optical axis direction. For example, the processor 320 can apply a second current to the second coil 334 to move the second coil 334 or the second magnet 335 in the optical axis direction. For example, the processor 320 can move the second lens assembly 331 in the optical axis direction based on the movement of the second coil 334 or the second magnet 335.

[0082] According to an embodiment, the first driving unit 312 can include a driving unit for performing an optical image stabilization (OIS) function. According to an embodiment, the first driving unit 312 can include a driving unit for performing an auto focus (AF) function.

[0083] According to an embodiment, the first magnet 315 can include a plurality of magnets. According to an embodiment, the first magnet 315 can include a first x-axis magnet 315a (e.g., the first x-axis magnet 315a in FIG. 2) and a first y-axis magnet 315b (e.g., the first y-axis magnet 315b in FIG. 2) that move in a direction perpendicular to the optical axis direction. According to an embodiment, the first magnet 315 can include a first z-axis magnet 315c (e.g., the first z-axis magnet 315c in FIG. 2) that moves in the optical axis direction. Figure 4a Figure 4a According to an embodiment, the first magnet 315 can include a plurality of magnets. According to an embodiment, the first magnet 315 can include a first x-axis magnet 315a (e.g., the first x-axis magnet 315a in FIG. 2) and a first y-axis magnet 315b (e.g., the first y-axis magnet 315b in FIG. 2) that move in a direction perpendicular to the optical axis direction. According to an embodiment, the first magnet 315 can include a first z-axis magnet 315c (e.g., the first z-axis magnet 315c in FIG. 2) that moves in the optical axis direction. Figure 4a Figure 4a According to an embodiment, the first magnet 315 can include a plurality of magnets. According to an embodiment, the first magnet 315 can include a first x-axis magnet 315a (e.g., the first x-axis magnet 315a in FIG. 2) and a first y-axis magnet 315b (e.g., the first y-axis magnet 315b in FIG. 2) that move in a direction perpendicular to the optical axis direction. According to an embodiment, the first magnet 315 can include a first z-axis magnet 315c (e.g., the first z-axis magnet 315c in FIG. 2) that moves in the optical axis direction. Figure 4a ​​a first z-axis coil 314c electromagnetically interacting with the first z-axis magnet 315c (e.g., Figure 4a The first z-axis coil 314c in the first magnet 315). According to an embodiment, the processor 320 can apply a first current to the first coil 314 so that the magnet 315 moves to a first designated position. According to an embodiment, the processor 320 can move the first magnet 315 to the first designated position based on applying the first current to the first coil 314. According to an embodiment, the processor 320 can confirm a plurality of positions corresponding to a movable range of the first magnet 315 through the first sensor 313. According to an embodiment, the first sensor 313 can be implemented as a Hall sensor. According to an embodiment, the first designated position can include a center position among the plurality of positions. According to an embodiment, the processor 320 can move the first magnet 315 to the center position among the plurality of positions corresponding to the movable range of the first magnet 315. According to an embodiment, the plurality of positions corresponding to the movable range of the first magnet 315 and the center position among the plurality of positions corresponding to the movable range of the first magnet 315 can be pre-stored in the memory 350.

[0084] According to an embodiment, the processor 320 can confirm a value of a current consumed by the first driving unit 312 when the first magnet 315 moves between the plurality of positions. According to an embodiment, the processor 320 can determine a position based on the value of the current consumed by the first driving unit 312 (e.g., the first magnet 315 or the first coil 314). According to an embodiment, the processor 320 can move the first magnet 315 based on the determined position. According to an embodiment, the processor 320 can confirm a position in which the value of the current consumed by the first driving unit 312 is minimized among the plurality of positions. According to an embodiment, the first designated position can include a position of the first magnet 315 in which the consumed current value becomes a certain value. According to an embodiment, the first designated position can include a position of the first magnet 315 in which the consumed current value is a minimum value among the consumed current values. According to an embodiment, the processor 320 can move the first magnet 315 to a position in which the consumed current value is minimized. According to an embodiment, the processor 320 can move the first magnet 315 to a certain position in which the consumed current value has a certain value.

[0085] According to an embodiment, a lookup table representing a relationship between a plurality of positions corresponding to a movable range of the first magnet 315 and consumption current values can be stored in the storage 350. According to an embodiment, the processor 320 can confirm the position of the first magnet 315 based on the plurality of consumption current values using the lookup table. According to an embodiment, the processor 320 can confirm the position of the first magnet 315 when the consumption current value is a minimum value among the consumption current values using the lookup table. According to an embodiment, the processor 320 can move the first magnet 315 to the confirmed position. According to an embodiment, the processor 320 can confirm an angle formed between the electronic device 301 and the ground through a sensor (not shown). For example, the sensor can be implemented as an inertial sensor. However, this is only an example and can not be limited thereto.

[0086] According to an embodiment, a lookup table representing a relationship between an angle between the electronic device 301 and the ground, a value of a current consumed by the first driving unit 312, and a plurality of positions can be pre-stored in the storage 350. For example, the plurality of positions can include positions of the first magnet 315. According to an embodiment, the first designated position can include a position of the first magnet 315 among the plurality of positions when a consumption current value is minimized at an angle formed between the electronic device 301 and the ground. According to an embodiment, the first designated position can include a position of the first magnet 315 among the plurality of positions when a consumption current value is a certain value at an angle formed between the electronic device 301 and the ground. According to an embodiment, the processor 320 can move the first magnet 315 to a position determined based on a consumption current value at an angle between the electronic device 301 and the ground confirmed through a sensor using the lookup table. According to an embodiment, the processor 320 can move the first magnet 315 to a position in which a consumption current value of the first current is minimized at an angle between the electronic device 301 and the ground confirmed through a sensor using the lookup table.

[0087] According to an embodiment, the processor 320 can confirm whether an angle formed between the electronic device 301 and the ground is equal to or greater than about 45 degrees. According to an embodiment, if the angle formed between the electronic device 301 and the ground is confirmed to be equal to or greater than about 45 degrees, the processor 320 can confirm a plurality of consumption current values of the first driving unit 312 confirmed when the angle between the electronic device 301 and the ground is about 90 degrees. According to an embodiment, the processor 320 can move the first magnet 315 based on the plurality of consumption current values. According to an embodiment, the first magnet 315 can move to a position in which a consumption current value is minimized among the plurality of consumption current values confirmed when the angle between the electronic device 301 and the ground is about 90 degrees. According to an embodiment, if the angle formed between the electronic device 301 and the ground is less than about 45 degrees, the processor 320 can confirm a plurality of consumption current values of the first driving unit 312 confirmed when the angle between the electronic device 301 and the ground is about 0 degrees. According to an embodiment, the processor 320 can move the first magnet 315 based on the plurality of consumption current values. According to an embodiment, the first magnet 315 can move to a position in which a consumption current value is minimized among the plurality of consumption current values confirmed when the angle between the electronic device 301 and the ground is about 0 degrees. 45 degrees, 90 degrees, and 0 degrees are examples, and embodiments of the disclosure can not be limited to the above angles.

[0088] According to an embodiment, the first designated position can include a position of the first magnet 315 confirmed in a state in which the first camera 310 does not move. According to an embodiment, if the movement of the first camera 310 is confirmed according to the movement of the electronic device 301, the processor 320 can confirm a first position of the first magnet 315 through the first sensor 313. According to an embodiment, the processor 320 can determine the movement of the electronic device 301 obtained through a sensor (not shown) (e.g., a gyro sensor or an acceleration sensor) as the movement of the first camera 310 included in the electronic device 301. According to an embodiment, the processor 320 can confirm a second position of the first magnet 315 confirmed in a state in which the first camera 310 does not move. According to an embodiment, the processor 320 can move the first magnet 315 from the first position to the second position. For example, the second position can include a position designated in advance. For example, the second position can include a position obtained through the first sensor 313 before the first camera 310 starts to move.

[0089] According to an embodiment, the processor 320 can confirm an input of the user for adjusting the magnification of the first camera 310. According to an embodiment, the processor 320 can switch a method of driving the first camera 310 based on the input of the user for adjusting the magnification of the first camera 310. According to an embodiment, the processor 320 can switch the driving method of the first camera 310 from the PWM driving method to the linear driving method. According to an embodiment, the processor 320 can drive the first camera 310 using the linear driving method. According to an embodiment, the processor 320 can apply a second current to the second coil 334 so that the second magnet 335 moves to a second designated position. According to an embodiment, the processor 320 can move the second magnet 335 to the second designated position based on applying the second current to the second coil 334. According to an embodiment, the second designated position can include a position of the second magnet 335 confirmed in a state in which the second camera 330 does not move. According to an embodiment, if the movement of the second camera 330 is confirmed, the processor 320 can move the second magnet 335 to the position of the second magnet 335 confirmed in the state in which the second camera 330 does not move. For example, the position of the second magnet 335 confirmed in the state in which the second camera 330 does not move can include a pre-designated position. For example, the position of the second magnet 335 confirmed in the state in which the second camera 330 does not move can include a position obtained through the second sensor 333 before the second camera 330 starts to move.

[0090] According to an embodiment, the second designated position can include a center position among a plurality of positions corresponding to a movable range of the second magnet 335. According to an embodiment, the second designated position can include a position determined based on a value of a current consumed by the second driving unit 332. According to an embodiment, the second designated position can include a position in which a value of a current consumed by the second driving unit 332 is minimized. According to an embodiment, the second designated position can include a position in which a value of a current consumed by the second driving circuit 332 is minimized at an angle formed between the electronic device 301 and the ground using a lookup table. The second designated position can include a consumption current value of the second current confirmed when the angle formed between the electronic device 301 and the ground is about 90 degrees or a consumption current value of the second current confirmed when the angle is about 0 degrees. According to an embodiment, the second designated position can include a position in which a consumption current value of the second current confirmed when the angle formed between the electronic device 301 and the ground is about 90 degrees is minimized or a position in which a consumption current value of the second current confirmed when the angle formed between the electronic device 301 and the ground is about 0 degrees is minimized. According to an embodiment, if the angle between the electronic device 301 and the ground is equal to or greater than 45 degrees, the processor 320 can move the second magnet 335 to a position in which a consumption current value of the second current confirmed when the angle formed between the electronic device 301 and the ground is about 90 degrees is minimized. According to an embodiment, if the angle between the electronic device 301 and the ground is less than about 45 degrees, the processor 320 can move the second magnet 335 to a position in which a consumption current value of the second current confirmed when the angle formed between the electronic device 301 and the ground is about 0 degrees is minimized. However, these are merely examples, and embodiments of the disclosure can not be limited to the above angles.

[0091] According to an embodiment, the electronic device 301 can further include a third camera 340. According to an embodiment, the third camera 340 can be disposed on a back of the electronic device 301. According to an embodiment, the third camera 340 can include a third lens assembly 341, a third driving unit 342, a third sensor 343, and a third image sensor 346. According to an embodiment, a viewing angle of the third camera 340 can be different from a viewing angle of the first camera 310 and a viewing angle of the second camera 330. According to an embodiment, the third driving unit 342 can include a third magnet 345 and a third coil 344. According to an embodiment, the third sensor 343 can include a Hall sensor. According to an embodiment, the third camera 340 can be implemented to be the same as or similar to the camera module 180 in FIG. 1. Figure 2

[0092] ​According to an embodiment, if the image is confirmed not to be obtained by the third camera 340, the processor 320 can apply a third current to the third driving unit 342 so as to drive the third camera 340 using a PWM driving method while the image is being displayed on the display 360. According to an embodiment, the processor 320 can obtain an image using the third camera 340 and drive the third camera 340 using a pulse width modulation (PWM) driving method when the image is not displayed on the display 360. According to an embodiment, the processor 320 can drive the third camera 340 using a pulse width modulation (PWM) driving method when the third camera 340 is in an inactive state in which the third camera 340 does not operate. According to an embodiment, the operation of driving the third camera 340 can include applying a third current to the third driving unit 342 to move the third magnet 345 or the third coil 344.

[0093] According to an embodiment, the processor 320 can perform an optical image stabilization (OIS) function to apply a third current to the third driving unit 342, thereby moving the third camera 340 in a direction perpendicular to an optical axis. According to an embodiment, the OIS function can include operations performed by the image stabilizer 240 in FIG. 13A. Figure 2 According to an embodiment, the OIS function can include a function of moving the third lens assembly 341 or controlling an operational characteristic (e.g., adjusting a readout timing) of the third image sensor 346 of the third camera 340. According to an embodiment, the processor 320 can perform an auto focus (AF) function to apply a third current to the third driving unit 342, thereby moving the third camera 340 in a direction of an optical axis.

[0094] According to an embodiment, the processor 320 can apply a current to the third coil 344 so that the third magnet 345 moves to a third designated position. According to an embodiment, the processor 320 can move the third magnet 345 to the third designated position based on applying a third current to the third coil 344. According to an embodiment, the third designated position can include a center position among a plurality of positions corresponding to a movable range of the third magnet 345. According to an embodiment, the third designated position can include a specific position determined based on a value of a current consumed by the third driving unit 342. According to an embodiment, the third designated position can include a position in which a consumed current value of the third current of the third driving unit 342 is minimized. According to an embodiment, the third designated position can include a position determined using a lookup table representing a relationship of an angle (e.g., about 0 degrees or about 90 degrees) formed between the electronic device 301 and the ground, a plurality of positions, and a plurality of values of a current consumed by the third driving unit 342. According to an embodiment, the third designated position can include a position in which the consumed current value of the third current of the third driving unit 342 is minimized when the angle formed between the electronic device 301 and the ground is about 90 degrees or a position in which the consumed current value of the third current of the third driving unit 342 is minimized when the angle formed between the electronic device 301 and the ground is about 0 degrees.

[0095] According to an embodiment, the description of the first camera 310 can be equally applied to the third camera 340.

[0096] According to an embodiment, the processor 320 can set a method of moving the first driving unit 312 and a method of moving the third driving unit 342 to be different.

[0097] For example, the processor 320 can move the first magnet 315 to a position of the first magnet 315 confirmed in a state in which the electronic device 301 is not moved. At this time, the processor 320 can move the third magnet 335 to a position of the third magnet 335 in which consumption of the third current of the third driving unit 342 is minimized. However, this is an example, and embodiments of the disclosure can not be limited thereto.

[0098] According to an embodiment, if it is confirmed that the input of the function of the user for switching a photographing mode, the function of applying a filter, or the function of adjusting a timer for photographing, the processor 320 can not drive the first camera 310 or the third camera 340 driven using the PWM driving method. For example, the function of switching a photographing mode can include switching from a front camera photographing mode to a rear camera photographing mode or switching from a rear camera photographing mode to a front camera photographing mode. For example, the function of switching a photographing mode can include switching from an image photographing mode to a video photographing mode or switching from a video photographing mode to an image photographing mode. According to an embodiment, when the first camera 310 is not driven, the processor 320 can not move the first magnet 315 to the first designated position. According to an embodiment, when the third camera 340 is not driven, the processor 320 can not move the third magnet 345 to the third designated position. According to an embodiment, the description of the first designated position of the first magnet 315 can be applied to the first coil 314 in the same manner. According to an embodiment, the description of the second designated position of the second magnet 335 can be applied to the second coil 334 in the same manner. According to an embodiment, the description of the third designated position of the third magnet 345 can be applied to the third coil 344 in the same manner.

[0099] Figure 3b FIG. 1B is a diagram illustrating a back of an electronic device according to an embodiment.

[0100] Referring to Figure 3b , the electronic device 301 (e.g., the electronic device 301 in Figure 3a ) can include a plurality of cameras. The electronic device 301 can include a first camera 310 and a second camera 330. Depending on implementation, the electronic device 301 can further include a third camera 340. However, these are examples, and the number of cameras can not be limited thereto. According to an embodiment, the first camera 310, the second camera 330, and the third camera 340 can be disposed on the back of the electronic device 301.

[0101] According to an embodiment, the angle of view of the first camera 310, the angle of view of the second camera 330, and the angle of view of the third camera 340 can be different from each other. For example, the first camera 310 can be a telephoto camera. For example, the second camera 330 can be a wide-angle camera. For example, the third camera 340 can be an ultra-wide-angle camera. However, in an embodiment of the disclosure, the angle of view of the first camera 310, the angle of view of the second camera 330, and the angle of view of the third camera 340 can not be limited to the above examples.

[0102] Figure 4a FIG. 2A is a diagram illustrating a first camera according to an embodiment.

[0103] Referring to Figure 4aAccording to an embodiment, the first camera 310 can include a first lens assembly 311, a first sensor 313, and a first driving unit 312. According to an embodiment, the first driving unit 312 can include a first magnet 315 and a first coil 314.

[0104] According to an embodiment, the first driving unit 312 can include a driving unit for performing an optical image stabilization (OIS) function to move the first camera 310 in a direction perpendicular to an optical axis. According to an embodiment, the first driving unit 312 can include a driving unit for performing an auto focus (AF) function to move the first camera 310 in an optical axis direction.

[0105] According to an embodiment, the optical axis direction can indicate a z-axis direction. According to an embodiment, the direction perpendicular to the optical axis can indicate an x-axis direction and a y-axis direction.

[0106] According to an embodiment, the first magnet 315 can include at least one of a first x-axis magnet 315a, a first y-axis magnet 315b, or a first z-axis magnet 315c. According to an embodiment, the first x-axis magnet 315a can indicate a magnet moving in an x-axis direction, the first y-axis magnet 315b can indicate a magnet moving in a y-axis direction, and the first z-axis magnet 315c can indicate a magnet moving in a z-axis direction.

[0107] According to an embodiment, the first coil 314 can include at least one of a first x-axis coil 314a, a first y-axis coil 314b, or a first z-axis coil 314c. According to an embodiment, the first x-axis coil 314a can indicate a coil to which a current is applied to provide a driving force to move the first x-axis magnet 315a, the first y-axis coil 314b can indicate a coil to which a current is applied to provide a driving force to move the first y-axis magnet 315b, and the first z-axis coil 314c can indicate a coil to which a current is applied to provide a driving force to move the first z-axis magnet 315c. For example, the processor 320 (e.g., the processor 320 in Figure 3a , the processor 320) can move the first x-axis magnet 315a based on an electromagnetic force generated through electromagnetic interaction between the first x-axis coil 314a and the first x-axis magnet 315a. For example, the processor 320 (e.g., the processor 320 in Figure 3a , the processor 320) can move the first y-axis magnet 315b based on an electromagnetic force generated through electromagnetic interaction between the first y-axis coil 314b and the first y-axis magnet 315b. For example, the processor 320 (e.g., the processor 320 in Figure 3a , the processor 320) can move the first z-axis magnet 315c based on an electromagnetic force generated through electromagnetic interaction between the first z-axis coil 314c and the first z-axis magnet 315c.

[0108] According to an embodiment, the first sensor 313 may include at least one of a first x-axis sensor 313a, a first y-axis sensor 313b, or a first z-axis sensor 313c. According to an embodiment, the first x-axis sensor 313a can sense the position of the first x-axis magnet 315a. According to an embodiment, the first y-axis sensor 313b can sense the position of the first y-axis magnet 315b. According to an embodiment, the z-axis sensor 313c can sense the position of the z-axis magnet 315c.

[0109] Although not shown, according to an embodiment, the second camera 330 (e.g., Figure 3a The second camera 330 may include at least one of a second x-axis magnet, a second y-axis magnet, or a second z-axis magnet. According to an embodiment, the second camera 330 (e.g., Figure 3a The second camera 330 may include at least one of a second x-axis coil, a second y-axis coil, and a second z-axis coil. According to an embodiment, the second x-axis magnet may indicate a magnet moving in the x-axis direction, the second y-axis magnet may indicate a magnet moving in the y-axis direction, and the second z-axis magnet may indicate a magnet moving in the z-axis direction. According to an embodiment, the second x-axis coil may indicate a coil to which current is applied to provide a driving force to move the second x-axis magnet, the second y-axis coil may indicate a coil to which a driving force is provided to move the second y-axis magnet, and the second z-axis coil may indicate a coil to which current is applied to provide a driving force to move the second z-axis magnet.

[0110] According to an embodiment, the third camera 340 (e.g., Figure 3a The third camera 340 may include at least one of a third x-axis magnet, a third y-axis magnet, or a third z-axis magnet. According to an embodiment, the third camera 340 (e.g., Figure 3a The third camera 340 may include at least one of a third x-axis coil, a third y-axis coil, and a third z-axis coil. According to an embodiment, the third x-axis magnet may indicate a magnet moving in the x-axis direction, the third y-axis magnet may indicate a magnet moving in the y-axis direction, and the third z-axis magnet may indicate a magnet moving in the z-axis direction. According to an embodiment, the third x-axis coil may indicate a coil to which current is applied to provide a driving force to move the third x-axis magnet, the third y-axis coil may indicate a coil to which a driving force is provided to move the third y-axis magnet, and the third z-axis coil may indicate a coil to which current is applied to provide a driving force to move the third z-axis magnet.

[0111] Figure 4b This is a diagram illustrating a drive circuit representing a portion of a first drive unit according to an embodiment, and the value of the current consumed by the first drive unit.

[0112] ReferenceFigure 4b The first driving unit 312 in (a) of FIG. 11 can include a driving circuit, a first coil 314, and a first magnet 315. According to an embodiment, the driving circuit can include a plurality of first p-channel metal oxide semiconductor (PMOS) transistors P1, a plurality of second PMOS transistors P2, and a plurality of first n-channel metal oxide semiconductor (NMOS) transistors N1 and a plurality of second NMOS transistors N2. Figure 3a The first driving unit 312 in (a) of FIG. 11 can include a driving circuit, a first coil 314, and a first magnet 315. According to an embodiment, the driving circuit can include a plurality of first p-channel metal oxide semiconductor (PMOS) transistors P1, a plurality of second PMOS transistors P2, and a plurality of first n-channel metal oxide semiconductor (NMOS) transistors N1 and a plurality of second NMOS transistors N2.

[0113] According to an embodiment, the first PMOS transistors P1, the second PMOS transistors P2, the first NMOS transistors N1, and the second NMOS transistors N2 can be implemented as field effect transistor (FET) elements or bipolar junction transistor (BJT) elements. According to an embodiment, the first driving unit 312 can be implemented as only a plurality of NMOS transistors, instead of a plurality of PMOS transistors. However, these are examples, and embodiments of the disclosure can not be limited thereto.

[0114] According to an embodiment, the first PMOS transistors P1, the second PMOS transistors P2, the first NMOS transistors N1, and the second NMOS transistors N2 can be elements for controlling the direction of current applied to the first x-axis coil 314a. The first PMOS transistors P1, the second PMOS transistors P2, the first NMOS transistors N1, and the second NMOS transistors N2 can be elements for controlling the direction of current applied to the first y-axis coil 314b. According to an embodiment, the first PMOS transistors P1, the second PMOS transistors P2, the first NMOS transistors N1, and the second NMOS transistors N2 can be elements for controlling the direction of current applied to the first z-axis coil 314c.

[0115] According to an embodiment, the first PMOS transistors P1, the second PMOS transistors P2, the first NMOS transistors N1, and the second NMOS transistors N2 can form an H-bridge.

[0116] According to an embodiment, the first PMOS transistors P1 can be disposed between a driving power source Vm and one end of the first x-axis coil 314a. According to an embodiment, the second NMOS transistors N2 can be disposed between the one end of the first x-axis coil 314a (for example, the first x-axis coil 314a in (a) of FIG. 11) and a ground. Figure 4a

[0117] ​According to an embodiment, the second PMOS transistor P2 can be disposed between the driving power source Vm and the other end of the first x-axis coil 314a. According to an embodiment, the first NMOS transistor N1 can be disposed between the other end of the first x-axis coil 314a and the ground. According to an embodiment, the processor 320 can turn on the first PMOS transistor P1 and the first NMOS transistor N1, and turn off the second PMOS transistor P2 and the second NMOS transistor N2.

[0118] According to an embodiment, the current applied to the first coil 314 can flow in a first direction.

[0119] According to an embodiment, the processor 320 can turn on the second PMOS transistor P2 and the second NMOS transistor N2, and turn off the first PMOS transistor P1 and the first NMOS transistor N1. According to an embodiment, the current applied to the first coil 314 can flow in a second direction opposite to the first direction.

[0120] According to an embodiment, the processor 320 can control a direction in which the first x-axis magnet 315a moves, based on the direction in which the current flows.

[0121] According to an embodiment, the processor 320 can apply a voltage 470 to the driving circuit. The voltage 470 can indicate a voltage output from the driving power source Vm. According to an embodiment, based on the voltage 470 being applied to the driving circuit, a current or a voltage can be applied to the first x-axis coil 314a. According to an embodiment, the processor 320 can apply a current or a voltage to the first x-axis coil 314a using a linear driving method. For example, the linear driving method can include a method in which the processor 320 adjusts a magnitude of a voltage or a current output from the driving power source Vm and applies the same to a driving unit (e.g., a coil).

[0122] Although not shown, according to an embodiment, the first PMOS transistor P1, the second PMOS transistor P2, the first NMOS transistor N1, and the second NMOS transistor N2 can be disposed in an area in which the first y-axis coil 314b is disposed. According to an embodiment, the first PMOS transistor P1, the second PMOS transistor P2, the first NMOS transistor N1, and the second NMOS transistor N2 can be disposed in an area in which the first z-axis coil 314c is disposed.

[0123] According to an embodiment, the above description can be equally applied to the second driving unit 332 and the third driving unit 342.

[0124] Referring to Figure 4bIn embodiment (b), the processor 320 can determine the movement of the first x-axis magnet 315a based on the movement of the first camera 310. According to the embodiment, the processor 320 can drive the first x-axis coil 314a to move the first x-axis magnet 315a to a designated position.

[0125] According to an embodiment, the first x-axis magnet 315a can be moved to a position corresponding to a designated position based on the current or voltage applied to the first x-axis coil 314a. According to an embodiment, the processor 320 can confirm the current value 471 (I1) consumed by the first drive unit 312 to move the first x-axis magnet 315a to the position corresponding to the designated position.

[0126] Depending on the implementation, according to an embodiment, the processor 320 can determine the first x-axis coil 314a based on the movement of the first camera 310 (e.g., Figure 3a The processor 320 can drive the first x-axis coil 314a to move it to a designated position. According to an embodiment, the processor 320 can move the first x-axis coil 314a to a position corresponding to the designated position based on the current or voltage applied to it. According to an embodiment, the processor 320 can confirm the current value 471 (I1) consumed by the first drive unit 312 to move the first x-axis coil 314a to the position corresponding to the designated position.

[0127] Figure 4c This is a circuit diagram showing a portion of the first drive unit according to an embodiment and a graph showing the value of the current consumed by the first drive unit.

[0128] Reference Figure 4c In (a) of the embodiment, processor 320 (e.g., Figure 3a The processor 320 in the process can apply a voltage 480 to the drive circuit. Voltage 480 can represent the voltage output from the drive power supply Vm. According to an embodiment, based on the voltage 480 applied to the drive circuit, the first x-axis coil 314a (e.g., ...) can be driven... Figure 4a The first x-axis coil 314a) is subjected to current or voltage.

[0129] According to an embodiment, processor 320 may use a pulse width modulation (PWM) driving method to apply current or voltage to the first x-axis coil 314a. For example, the PWM driving method may include a method in which processor 320 controls the duty cycle to turn the drive power supply Vm on and off and applies the voltage or current output from the drive power supply Vm to the drive unit (e.g., the coil). For example, the voltage applied to the drive unit by the PWM driving method may include a pulse wave.

[0130] Referring to Figure 4c According to an embodiment, the processor 320 can confirm the current value 481 (I2) consumed by the first driving unit 312 to move the first x-axis magnet 315a to a position corresponding to the designated position.

[0131] According to an embodiment, the processor 320 can confirm the current value 481 (I2) consumed when the first driving unit 312 is driven using a pulse width modulation (PWM) driving method.

[0132] According to an embodiment, the current value 481 consumed when the first driving unit 312 is driven using the PWM driving method can be less than the current value 471 consumed when the first driving unit 312 is driven using a linear driving method.

[0133] According to an embodiment, if there is movement of the first camera 310 that is not obtaining an image, the electronic device 301 (e.g., the electronic device 301 in Figure 3a ) can operate an OIS function or an AF function to move the position of the first magnet 315. According to an embodiment, if there is movement of the first camera 310 that obtained an image but is not displaying the image on the display 360, the electronic device 301 can operate an OIS function or an AF function to move the position of the first magnet 315.

[0134] According to an embodiment, if there is movement of the first camera 310 that is not obtaining an image, the electronic device 301 can operate an OIS function or an AF function to move the position of the first coil 314 (e.g., the first coil 314 in Figure 3a ). According to an embodiment, if there is movement of the first camera 310 that obtained an image but is not displaying the image on the display 360, the electronic device 301 can operate an OIS function or an AF function to move the position of the first coil 314.

[0135] According to an embodiment, when a camera is driven by a PMW driving method, there can be much noise in an image obtained by the camera. Accordingly, the electronic device 301 can drive a camera that obtains an image to be displayed on the display 360 in a linear driving manner so as to obtain a clear image.

[0136] A conventional electronic device including a plurality of cameras can drive both a camera that acquires an image to be displayed on a display and another camera that does not acquire an image to be displayed on the display using a linear driving method. This is caused by the fact that, for an OIS function (or an AF function) of the plurality of cameras, all the cameras are kept in a standby state. However, if the other camera that does not acquire an image to be displayed on the display is driven in a linear manner, excessive power consumption can occur.

[0137] According to an embodiment, the electronic device 301 can drive the first camera 310 that is not acquiring an image using a PWM driving method that consumes less power than a linear driving method, thereby reducing current consumption of the camera.

[0138] The following operations of the electronic device 301 described in the accompanying drawings can be performed by the processor 320. However, for convenience of explanation, the operations performed by the processor 320 will be described as being performed by the electronic device 301.

[0139] Figure 5a FIG. 1 is a diagram illustrating a state in which an electronic device according to an embodiment displays an image on a display.

[0140] Referring to Figure 5a , according to an embodiment, the electronic device 301 (e.g., the electronic device 301 in Figure 3a ) can provide a live preview mode that acquires a preview image of a subject in real time using at least one of the first camera 310 (e.g., the first camera 310 in Figure 3a ) or the second camera 330 (e.g., the second camera 330 in Figure 3a ) and displays the preview image through the display 360 (e.g., the display 360 in Figure 3a ).

[0141] According to an embodiment, the electronic device 301 can display a user interface that provides at least one of a function of adjusting a magnification of the first camera 310 or the second camera 330, a function of adjusting a focus thereof, or a function of selecting an object to adjust a focus on a subject or a background included in the preview image, while displaying the preview image through the display 360. For example, the user interface can be displayed in a region of the display 360 in which the preview image is displayed, or can be displayed in a remaining region of the display 360. For example, the electronic device 301 can obtain a first image using the first camera 310. For example, the electronic device 301 can obtain a second image using the second camera 330. According to an embodiment, the first image and the second image can include the preview image. According to an embodiment, the electronic device 301 can display the second image obtained through the second camera 330 on a first region 510 of the display 360. For example, the electronic device 301 can not display the first image (e.g., an image captured through the first camera 310) on the display 360. At this time, the electronic device 301 can not capture an image through the first camera 310 or can discard (or can not display) the image captured through the first camera 310 on the display 360.

[0142] According to an embodiment, the electronic device 301 can drive the first camera 310 using a pulse width modulation (PWM) driving method while the second image is being displayed on the display 360. For example, the electronic device 301 can apply a first current to the first driving unit 312 (e.g., the first driving unit 312 in Figure 3a ), using a pulse width modulation (PWM) driving method such that the first magnet 315 moves to a designated position to implement an OIS function (or an AF function) of the first camera 310.

[0143] According to an embodiment, the electronic device 301 can drive the second camera 330 using a linear driving method while the second image is being displayed on the display 360. For example, the electronic device 301 can apply a second current to the second driving unit 332 using a linear driving method such that the second driving unit 332 (e.g., the second driving unit 332 in Figure 3a ) moves to implement an OIS function (or an AF function) of the second camera 330.

[0144] Figure 5b is a diagram illustrating a state in which an electronic device according to an embodiment displays an image on a display.

[0145] Referring to Figure 5b , according to an embodiment, the electronic device 301 (e.g., the electronic device 301 in Figure 3a ) can obtain a third image using the first camera 310 (e.g., the first camera 310 in Figure 3a ). According to an embodiment, the electronic device 301 can obtain a fourth image using the second camera 330 (e.g., the second camera 330 in Figure 3a ). According to an embodiment, the electronic device 301 can obtain a fifth image using the third camera 340 (e.g., the third camera 340 in Figure 3a ). According to an embodiment, a viewing angle of the first camera 310, a viewing angle of the second camera 330, and a viewing angle of the third camera 340 can be different from each other. According to an embodiment, the third image, the fourth image, and the fifth image can include a preview image.

[0146] According to an embodiment, the electronic device 301 can display the third image, the fourth image, and the fifth image on the display 360 (e.g., the display 360 in Figure 3aThe electronic device 301 can display a plurality of images obtained by the first camera 310, the second camera 330, and the third camera 340 in a plurality of regions 520, 530, and 540 of the display 360. According to an embodiment, the electronic device 301 can display at least a portion of the third image in the second region 520. According to an embodiment, the electronic device 301 can display at least a portion of the fourth image in the third region 530. According to an embodiment, the electronic device 301 can display at least a portion of the fifth image in the fourth region 540. For example, the second region 520 can include an upper region among the plurality of regions. For example, the fourth region 540 can include a lower region among the plurality of regions. For example, the third region 530 can include a central region among the plurality of regions.

[0147] According to an embodiment, while at least a portion of the third image is being displayed in the second region 520 of the display 360, the electronic device 301 can apply a first current to the first driving unit 312 (e.g., the first driving unit 312 in the electronic device 301) using a pulse width modulation (PWM) driving method so that the first camera 310 moves. Figure 3a

[0148] According to an embodiment, while at least a portion of the fourth image is being displayed in the third region 530 of the display 360, the electronic device 301 can apply a second current to the second driving unit 332 (e.g., the second driving unit 332 in the electronic device 301) using a linear driving method so that the second camera 330 moves. Figure 3a

[0149] According to an embodiment, while at least a portion of the fifth image is being displayed in the fourth region 540 of the display 360, the electronic device 301 can apply a third current to the third driving unit 342 (e.g., the third driving unit 342 in the electronic device 301) using a pulse width modulation (PWM) driving method so that the third camera 340 moves. Figure 3a

[0150] According to an embodiment, the electronic device 301 can display at least a portion of the fourth image in the third region 530 and display at least a portion of the third image in the second region 520 and the fourth region 540. According to an embodiment, the electronic device 301 can display at least a portion of the fourth image in the third region 530 and display at least a portion of the fifth image in the second region 520 and the fourth region 540.

[0151] Figure 6 is a flowchart illustrating an operation of the electronic device to drive a first camera and a second camera according to an embodiment.

[0152] ​​​In the following embodiments, the operations may be executed sequentially, but not necessarily sequentially. For example, the order of the operations may vary, and at least two operations may be executed in parallel.

[0153] According to the embodiments, operations 611 to 621 can be understood as being performed by an electronic device (e.g., Figure 3a The processor of the electronic device 301 in the middle (e.g., Figure 3a The processor 320 in the middle executes.

[0154] Reference Figure 6 According to an embodiment, in operation 611, electronic device 301 (e.g., Figure 3a The electronic device 301 in the middle can confirm the request to operate the camera function. According to an embodiment, the request to operate the camera function may include wanting to use the first camera 310 (e.g., Figure 3a The first camera 310) or the second camera 330 (e.g., Figure 3a The second camera 330 in the middle) is used to acquire images and the images are displayed on the display 360 (e.g., Figure 3a The electronic device 301 can confirm the existence of a request to run camera functions if a camera-related application is running and if an image is captured. (The display 360 in the image is shown in the image.)

[0155] According to an embodiment, in operation 613, the electronic device 301 can acquire an image. For example, the image may include a preview image.

[0156] According to an embodiment, in operation 615, the electronic device 301 can be accessed via a display 360 (e.g., Figure 3a The image is displayed on the monitor (360°).

[0157] According to an embodiment, in operation 617, the electronic device 301 can confirm whether the first camera 310 has been passed (e.g., Figure 3a The first camera (310) in the middle obtains the image.

[0158] According to an embodiment, if the image is confirmed to have been obtained through the first camera 310 ("Yes" in operation 617), then in operation 619, the electronic device 301 can drive the first camera 310 using a linear drive method and drive the second camera 330 using a pulse width modulation (PWM) drive method (e.g., Figure 3a The second camera 330 in the middle). According to an embodiment, the operation of the electronic device 301 driving the first camera 310 may include wherein the electronic device 301 moves the first driving unit 312 (e.g., the second camera 330 in the middle). Figure 3a The operation of the position of the first driving unit 312 in the electronic device 301. For example, the electronic device 301 can move the first magnet 315 (e.g., Figure 3athe first magnet 315 in the first camera 310) or the first coil 314 (e.g., Figure 3a According to an embodiment, the operation in which the electronic device 301 drives the second camera 330 can include an operation in which the electronic device 301 moves the position of the second driving unit 332 (e.g., Figure 3a According to an embodiment, the operation in which the electronic device 301 drives the second camera 330 can include an operation in which the electronic device 301 moves the position of the second driving unit 332 (e.g., Figure 3a According to an embodiment, the operation in which the electronic device 301 drives the second camera 330 can include an operation in which the electronic device 301 moves the position of the second driving unit 332 (e.g., According to an embodiment, the operation in which the electronic device 301 drives the second camera 330 can include an operation in which the electronic device 301 moves the position of the second driving unit 332 (e.g.,

[0159] According to an embodiment, if the image is confirmed to be obtained by the second camera 330 (NO in operation 617), the electronic device 301 can drive the first camera 310 using a PWM driving method and drive the second camera 330 using a linear driving method in operation 621.

[0160] According to an embodiment, the electronic device 301 can apply a first current to the first driving unit 312 included in the first camera 310 (e.g., Figure 3a According to an embodiment, the electronic device 301 can apply a second current to the second driving unit 332 included in the second camera 330 (e.g., Figure 3a According to an embodiment, the electronic device 301 can apply a second current to the second driving unit 332 included in the second camera 330 (e.g., Figure 3a According to an embodiment, the electronic device 301 can perform an optical image stabilization (OIS) function to apply the first current to the first driving unit 312, thereby moving the first camera 310 in a direction perpendicular to the optical axis. According to an embodiment, the electronic device 301 can perform an optical image stabilization (OIS) function to apply the second current to the second driving unit 332, thereby moving the second camera 330 in a direction perpendicular to the optical axis. According to an embodiment, the electronic device 301 can perform an auto focus (AF) function to apply the first current to the first driving unit 312, thereby moving the first lens assembly 311 (e.g., Figure 3athe second lens assembly 331 in the first lens module 330 in the optical axis direction.

[0161] Figure 7 is a flowchart illustrating an operation of moving the first camera by the electronic device based on a current consumed by the first driving unit according to an embodiment.

[0162] In the following embodiments, each operation can be performed sequentially, but is not necessarily performed sequentially. For example, the order of each operation can be changed, and at least two operations can be performed in parallel.

[0163] According to an embodiment, operations 711 to 715 can be understood as being performed by a processor (e.g., the processor 320 in the electronic device 301) of the electronic device (e.g., the electronic device 301). Figure 3a Figure 3a According to an embodiment, operations 711 to 715 can be understood as being performed by a processor (e.g., the processor 320 in the electronic device 301) of the electronic device (e.g., the electronic device 301).

[0164] Referring to Figure 7 , according to an embodiment, in operation 711, the electronic device 301 (e.g., the electronic device 301 in Figure 3a ) can drive the first camera 310 (e.g., the first camera 310 in Figure 3a ) using a pulse width modulation (PWM) driving method. According to an embodiment, the electronic device 301 can apply a first current to the first coil 314 (e.g., the first coil 314 in Figure 3a ) to drive the first camera 310.

[0165] According to an embodiment, in operation 713, the electronic device 301 can confirm a plurality of positions corresponding to a movable range of the first magnet 315 (e.g., the first magnet 315 in Figure 3a ) using the first sensor 313 (e.g., the first sensor 313 in Figure 3a ). According to an embodiment, the electronic device 301 can confirm a plurality of positions corresponding to the movable range of the first magnet 315, which are pre-stored in the memory 350 (e.g., the memory 350 in Figure 3a ). Depending on implementation, the electronic device 301 can also confirm a plurality of positions corresponding to a movable range of the first coil 314 using the first sensor 313. According to an embodiment, the electronic device 301 can confirm a plurality of pre-stored positions corresponding to the movable range of the first coil 314.

[0166] ​According to an embodiment, in operation 715, the electronic device 301 can move the first magnet 315 based on information about a center position among a plurality of positions corresponding to a movable range of the first magnet 315. According to an embodiment, the electronic device 301 can move the first magnet 315 to the center position among the plurality of positions. According to an embodiment, the electronic device 301 can move the first lens assembly 311 (e.g., the first lens assembly 311 in Figure 3a ) based on the movement of the first magnet 315. According to an implementation, the electronic device 301 can move the first coil 314 based on information about a center position among a plurality of positions corresponding to a movable range of the first coil 314. According to an embodiment, the electronic device 301 can move the first coil 314 to the center position among the plurality of positions.

[0167] Figure 8 is a flowchart illustrating an operation of an electronic device moving a first camera based on a current consumed by a first driving unit according to an embodiment.

[0168] In the following embodiments, the respective operations can be performed sequentially, but are not necessarily performed sequentially. For example, the order of the respective operations can be changed, and at least two operations can be performed in parallel.

[0169] According to an embodiment, operations 811 to 819 can be understood as being performed by a processor (e.g., the processor 320 in Figure 3a ) of an electronic device (e.g., the electronic device 301 in Figure 3a ).

[0170] Referring to Figure 8 , according to an embodiment, in operation 811, the electronic device 301 (e.g., the electronic device 301 in Figure 3a ) can drive the first camera 310 (e.g., the first camera 310 in Figure 3a ) using a pulse width modulation (PWM) driving method. According to an embodiment, the electronic device 301 can apply a first current to the first coil 314 (e.g., the first coil 314 in Figure 3a ) to drive the first camera 310.

[0171] According to an embodiment, in operation 813, the electronic device 301 can confirm a plurality of positions corresponding to a movable range of the first magnet 315 (e.g., the first magnet 315 in Figure 3a ) using the first sensor 313 (e.g., the first sensor 313 in Figure 3a ). According to an embodiment, the electronic device 301 can also confirm a plurality of positions corresponding to a movable range of the first coil 314 using the first sensor 313.

[0172] According to an embodiment, in operation 815, the electronic device 301 can confirm multiple values ​​of the current consumed by the first drive unit 312 when the first magnet 315 moves between multiple positions. According to an embodiment, the electronic device 301 can confirm multiple values ​​of the current consumed by the first drive unit 312 when the first coil 314 moves between multiple positions.

[0173] According to an embodiment, in operation 817, the electronic device 301 can determine the location to which the first magnet 315 will be moved based on the current consumption value. For example, the electronic device 301 can determine the location of the first magnet 315 where the current consumption value is the smallest among a plurality of current consumption values ​​as the location to which the first magnet 315 will be moved. For example, the electronic device 301 can determine the location corresponding to a specific current consumption value among a plurality of current consumption values ​​as the location to which the first magnet 315 will be moved.

[0174] According to an embodiment, the electronic device 301 can determine the position to which the first coil 314 will be moved based on the current consumption value. For example, the electronic device 301 can determine the position where the current consumption value is minimized as the position to which the first coil 314 will be moved. For example, the electronic device 301 can determine the position corresponding to a specific current consumption value among a plurality of current consumption values ​​as the position to which the first coil 314 will be moved.

[0175] According to an embodiment, in operation 819, the electronic device 301 can move the first magnet 315 to a predetermined position, thereby moving the first lens assembly 311 (e.g., Figure 3a (The first lens assembly 311 in the middle). According to an embodiment, the electronic device 301 can move the first coil 314 to a determined position, thereby moving the first lens assembly 311.

[0176] Depending on the implementation method, according to the embodiment, a lookup table representing the relationship between multiple positions of the first magnet 315 and the consumed current value can be pre-stored in the memory 350 (e.g., Figure 3a The electronic device 301 can use a lookup table to move the first magnet 315 to a position corresponding to a specific current consumption value among a plurality of current consumption values. According to an embodiment, the electronic device 301 can use a lookup table to move the first magnet 315 to a position that minimizes the current consumption value. According to an embodiment, the lookup table representing the relationship between the plurality of positions of the first coil 314 and the current consumption values ​​can be pre-stored in the memory 350 (e.g., memory 350). Figure 9athe memory 350 in the electronic device 301) can be used to move the first coil 314 to a position corresponding to a specific consumption current value among the plurality of consumption current values. According to an embodiment, the lookup table can be used by the electronic device 301 to move the first coil 314 to a position in which the consumption current value is minimized.

[0177] Figure 3a is a flowchart illustrating an operation of an electronic device moving a first camera based on an angle with a ground according to an embodiment.

[0178] In the following embodiments, the respective operations can be executed in sequence, but are not necessarily executed in sequence. For example, the order of the respective operations can be changed, and at least two operations can be executed in parallel.

[0179] According to an embodiment, operations 913 to 923 can be understood as being executed by a processor (e.g., the processor 320 in the electronic device 301) of an electronic device (e.g., the electronic device 301 in Figure 3a ). Figure 9a

[0180] Referring to Figure 3a , according to an embodiment, in operation 913, the electronic device 301 (e.g., the electronic device 301 in Figure 3a ) can drive the first camera 310 (e.g., the first camera 310 in Figure 3a ) using a pulse width modulation (PWM) driving method. According to an embodiment, the electronic device 301 can apply a first current to the first coil 314 (e.g., the first coil 314 in Figure 3a ) to drive the first camera 310.

[0181] According to an embodiment, in operation 915, the electronic device 301 can confirm an angle formed between the electronic device 301 and the ground, and confirm whether the angle formed between the electronic device 301 and the ground is equal to or greater than about 45 degrees. For example, the electronic device 301 can confirm the angle formed between the electronic device 301 and the ground through a sensor (not shown). For example, the sensor can include an inertial sensor.

[0182] According to an embodiment, if the angle formed between the electronic device 301 and the ground is confirmed to be equal to or greater than about 45 degrees (YES in operation 915), in operation 917, the electronic device 301 can confirm whether the angle formed between the electronic device 301 and the ground is about 90 degrees. According to an embodiment, the electronic device 301 can confirm whether the angle formed between the electronic device 301 and the ground is about 90 degrees using a lookup table stored in the memory 350 in the electronic device 301. According to an embodiment, the lookup table can be used by the electronic device 301 to move the first coil 314 to a position in which the consumption current value is minimized. Figure 3a ​the first magnet 315 when the value of the current consumed by the first driving unit 312 is minimized. According to an embodiment, a look-up table representing a relationship of the angle formed between the electronic device 301 and the ground, the value of the current consumed, and a plurality of positions of the first magnet 315 can be pre-stored in the memory (e.g., the memory 350) in the electronic device 301. According to an embodiment, if the angle formed between the electronic device 301 and the ground is about 90 degrees, the electronic device 301 can confirm the position of the first magnet 315 when the value of the current consumed by the first driving unit 312 is minimized using the look-up table. Figure 9b

[0183] According to an embodiment, the electronic device 301 can confirm the position of the first coil 314 when the value of the current consumed by the first driving unit 312 is minimized.

[0184] According to an embodiment, in operation 919, the electronic device 301 can move the first magnet 315 based on the confirmed position. According to an embodiment, the electronic device 301 can move the first magnet 315 to a position at which the current is minimized when the angle formed between the electronic device 301 and the ground is about 90 degrees. According to an embodiment, the electronic device 301 can move the first lens assembly 311 based on the movement of the first magnet 315. According to an embodiment, the electronic device 301 can move the first coil 314 to a position at which the current is minimized when the angle formed between the electronic device 301 and the ground is about 90 degrees. According to an embodiment, the electronic device 301 can move the first lens assembly 311 based on the movement of the first coil 314.

[0185] According to an embodiment, if the angle formed between the electronic device 301 and the ground is confirmed to be not equal to or greater than about 45 degrees (NO in operation 915), in operation 921, the electronic device 301 can confirm the position of the first magnet 315 when the current consumed by the first driving unit 312 is minimized at the angle of about 0 degrees formed between the electronic device 301 and the ground. According to an embodiment, the electronic device 301 can confirm the position of the first magnet 315 at which the current is minimized when the angle formed between the electronic device 301 and the ground is 0 degrees using a look-up table. According to an embodiment, the electronic device 301 can confirm the position of the first coil 314 when the current consumed by the first driving unit 312 is minimized at the angle of about 0 degrees formed between the electronic device 301 and the ground. According to an embodiment, the electronic device 301 can confirm the position of the first coil 314 at which the current is minimized when the angle formed between the electronic device 301 and the ground is 0 degrees using a look-up table.

[0186] ​According to an embodiment, in operation 923, electronic device 301 can move the first magnet 315 based on a confirmed position. According to an embodiment, electronic device 301 can move the first magnet 315 to a position where the consumption of the first current is minimized when the angle formed between electronic device 301 and the ground is approximately 0 degrees. According to an embodiment, electronic device 301 can move the first lens assembly 311 based on the movement of the first magnet 315. According to an embodiment, electronic device 301 can move the first coil 314 to a position where the consumption of the first current is minimized when the angle formed between electronic device 301 and the ground is approximately 0 degrees. According to an embodiment, electronic device 301 can move the first lens assembly 311 based on the movement of the first coil 314.

[0187] Figure 9b This is a diagram showing the angle between the electronic device and the ground according to an embodiment.

[0188] Reference Figure 3a In (a), according to an embodiment, electronic device 301 (e.g., Figure 9b The electronic device 301 can determine the angle formed between the ground 900 and the electronic device 301. According to an embodiment, the electronic device 301 can determine that the angle formed between the ground 900 and the electronic device 301 is approximately 0 degrees.

[0189] Reference Figure 9c In embodiment (b), the electronic device 301 can confirm that the angle formed between the ground 900 and the electronic device 301 is approximately 90 degrees.

[0190] Figure 9c It is a graph showing the position of the first magnet according to an embodiment and the value of the current consumed by the first drive unit corresponding to the position of the first magnet.

[0191] Reference Figure 3a According to an embodiment, the x-axis of the graph can indicate the first magnet 315 (e.g., Figure 3a The position of the first magnet 315 in the graph, and the y-axis of the graph can indicate the position of the first drive unit 312 (e.g., Figure 3a The value of the current consumed by the first drive unit 312 in the middle.

[0192] According to an embodiment, the electronic device 301 can move the position of the first magnet 315 and determine the current consumption value 940 based on the movement of the first magnet 315. According to an embodiment, the current consumption value 940 based on the movement of the first magnet 315 can be pre-stored in a memory 350 (e.g., ...). Figure 9b In the memory 350). For example, the current consumption value 940 based on the movement of the first magnet 315 can indicate when the electronic device 301 is in contact with the ground (Figure 3a the angle formed between the electronic device 301 and the ground 900 is approximately 90 degrees.

[0193] According to an embodiment, when the first camera 310 is driven by the PWM driving method, the electronic device 301 can move the first magnet 315 to a position corresponding to a specific value among the consumption current values 940 according to the movement of the first magnet 315. For example, the electronic device 301 can move the first magnet 315 to a position P1 at which the consumption current value is the minimum value I1 among the consumption current values 940 according to the movement of the first magnet 315. Figure 3a

[0194] For example, the consumption current values 950 according to the movement of the first magnet 315 can represent consumption current values when the angle formed between the electronic device 301 and the ground 900 is approximately 0 degrees.

[0195] According to an embodiment, when the first camera 310 is driven by the PWM driving method, the electronic device 301 can move the first magnet 315 to a position corresponding to a specific value among the consumption current values 950 according to the movement of the first magnet 315. For example, the electronic device 301 can move the first magnet 315 to a position P2 at which the consumption current value is the minimum value I2 among the consumption current values 950 according to the movement of the first magnet 315.

[0196] However, these are examples, and the electronic device 301 can also confirm the consumption current values according to the movement of the first coil 314 (e.g., the first coil 314 in Figure 10 and the positions of the first coil 314 based on the consumption current values. According to an embodiment, the electronic device 301 can move the first coil 314 based on the confirmed first coil 314.

[0197] Figure 3a is a flowchart illustrating an operation of an electronic device moving a first camera based on a position of a first magnet confirmed in a state in which the first camera does not move, according to an embodiment.

[0198] In the following embodiments, the respective operations can be performed sequentially, but are not necessarily performed sequentially. For example, the order of the respective operations can be changed, and at least two operations can be performed in parallel.

[0199] According to an embodiment, operations 1011 to 1017 can be understood as being performed by a processor (e.g., the processor 320 in Figure 3a ) of an electronic device (e.g., the electronic device 301 in Figure 10 ).

[0200] Referring to Figure 3a ​In operation 1011, electronic device 301 (e.g., Figure 3a The electronic device 301 in the middle can use a pulse width modulation (PWM) driving method to drive the first camera 310 (e.g., Figure 3a The first camera in the series (310).

[0201] According to an embodiment, in operation 1013, the electronic device 301 may use the first sensor 313 (e.g., Figure 3a The first sensor 313 in the middle confirms the movement of the first magnet 315 (e.g., based on the movement of the electronic device 301). Figure 3a The first position of the first magnet 315 in the first coil. According to an embodiment, the electronic device 301 can confirm the second position of the first coil 314.

[0202] According to an embodiment, in operation 1015, the electronic device 301 can confirm a reference position of the first magnet 315. For example, the reference position may include a pre-specified position. For example, the reference position of the first magnet 315 may include the position of the first magnet 315 confirmed when the electronic device 301 is not moving.

[0203] For example, the reference position of the first magnet 315 may include when the first lens assembly 311 (e.g., Figure 3a The first lens assembly 311) and the first image sensor 316 (e.g., Figure 4a The first image sensor 316 in the image is positioned around the optical axis that indicates the central axis of the first lens assembly 311 (e.g., Figure 3a The position of the first magnet 315 is confirmed when aligned with the z-axis. According to an embodiment, the electronic device 301 can perform an OIS function to move the first camera 310 in a direction perpendicular to the optical axis. However, this is an example, and the function of the first camera 310 may not be limited to this.

[0204] For example, the reference position of the first magnet 315 may include a position determined based on the focal length of the first lens assembly 311 (e.g., approximately 2m or greater). According to an embodiment, the electronic device 301 may perform an AF function to move the first camera 310 in the optical axis direction. However, this is an example, and the functionality of the first camera 310 may not be limited to this.

[0205] According to an embodiment, the electronic device 301 can also confirm the reference position of the first coil 314. For example, the reference position of the first coil 314 may include the position of the first coil 314 confirmed when the electronic device 301 is not moving. For example, the reference position of the first coil 314 may include the position when the first lens assembly 311 and the first image sensor 316 (e.g., Figure 4a The first image sensor 316 in the image is positioned around the optical axis that indicates the central axis of the first lens assembly 311 (e.g.,Figure 11 The reference position of the first coil 314 can include a position determined based on a focal length (e.g., about 2 m or more) of the first lens assembly 311.

[0206] According to an embodiment, the electronic device 301 can move the first magnet 315 to the reference position in operation 1017. According to an embodiment, the electronic device 301 can move the first magnet 315 from the first position to the reference position of the first magnet 315. According to an embodiment, the electronic device 301 can move the first coil 314 from the second position to the reference position of the first coil 314. Figure 3a FIG. 11 is a flowchart illustrating operations of an electronic device according to an embodiment, in which the electronic device drives a second camera.

[0207] In the following embodiments, the respective operations can be performed sequentially, but are not necessarily performed sequentially. For example, the order of the respective operations can be changed, and at least two operations can be performed in parallel.

[0208] According to an embodiment, operations 1111 to 1115 can be understood as being performed by a processor (e.g., the processor 320 in the electronic device 301 of FIG. 1A) of an electronic device (e.g., the electronic device 301 of FIG. 1A). Figure 3a Figure 11 According to an embodiment, operations 1111 to 1115 can be understood as being performed by a processor (e.g., the processor 320 in the electronic device 301 of FIG. 1A) of an electronic device (e.g., the electronic device 301 of FIG. 1A).

[0209] Referring to FIG. 11, Figure 3a According to an embodiment, the electronic device 301 (e.g., the electronic device 301 of FIG. 1A) can drive the first camera 310 (e.g., the first camera 310 of FIG. 1A) using a pulse width modulation (PWM) driving method in operation 1111. Figure 3a Figure 12 According to an embodiment, the electronic device 301 can confirm an input of a user for adjusting a magnification of the first camera 310 in operation 1113. According to an embodiment, the electronic device 301 can confirm an input of a user for increasing or decreasing a magnification of the first camera 310.

[0210] According to an embodiment, the electronic device 301 can drive the first camera 310 using a linear driving method in operation 1115. According to an embodiment, the electronic device 301 can switch a driving method of the first camera 310 from a pulse width modulation (PWM) driving method to a linear driving method based on an input of a user.

[0211] FIG. 12 is a flowchart illustrating operations of an electronic device according to an embodiment, in which the electronic device drives a second camera.

[0212] Figure 3a FIG. 12 is a flowchart illustrating operations of an electronic device according to an embodiment, in which the electronic device drives a second camera.

[0213] ​​In the following embodiments, respective operations can be executed in sequence, but are not necessarily executed in sequence. For example, the order of the respective operations can be changed, and at least two operations can be executed in parallel.

[0214] According to an embodiment, operations 1211 to 1217 can be understood as being executed by a processor (e.g., a processor 320 in the electronic device 301 of FIG. 13A) of the electronic device 301. Figure 3a Figure 12 According to an embodiment, operations 1211 to 1217 can be understood as being executed by a processor (e.g., a processor 320 in the electronic device 301 of FIG. 13A) of the electronic device 301.

[0215] Referring to FIG. 13A, Figure 3a According to an embodiment, in operation 1211, the electronic device 301 (e.g., the electronic device 301 of FIG. 13A) can drive the second camera 330 (e.g., the second camera 330 of FIG. 13B) using a linear driving method. According to an embodiment, the electronic device 301 can apply a second current to the second coil 334 (e.g., the second coil 334 of FIG. 13B) to drive the second camera 330. Figure 3a Figure 3a Figure 3a

[0216] According to an embodiment, in operation 1213, the electronic device 301 can confirm a movement of the electronic device 301 through the second sensor 333 (e.g., the second sensor 333 of FIG. 13B) and confirm a third position of the second magnet 335 (e.g., the second magnet 335 of FIG. 13B) according to the movement of the electronic device 301. Figure 3a Figure 3a

[0217] According to an embodiment, in operation 1215, the electronic device 301 can confirm a reference position of the second magnet 335. For example, the reference position of the second magnet 335 can include a position of the second magnet 335 confirmed through the second sensor 333 when the electronic device 301 is not moved.

[0218] For example, the reference position of the second magnet 335 can include a position of the second magnet 335 confirmed when the second lens assembly 331 (e.g., the second lens assembly 331 of FIG. 13B) and the second image sensor 336 (e.g., the second image sensor 336 of FIG. 13B) are aligned about an optical axis (e.g., a z-axis of FIG. 13B) indicating a central axis of the second lens assembly 331. According to an embodiment, the electronic device 301 can perform an OIS function to move the second camera 330 in a direction perpendicular to the optical axis. However, this is an example, and the function of the second camera 330 can not be limited thereto. Figure 3a Figure 4a Figure 3a

[0219] ​​​​​​​​​For example, the reference position of the second magnet 335 can include a position determined based on a focal length (e.g., about 2 m or more) of the second lens assembly 331. According to an embodiment, the electronic device 301 can perform an AF function to move the second camera 330 in the optical axis direction. However, this is an example, and the function of the second camera 330 can not be limited thereto.

[0220] According to an embodiment, in operation 1217, the electronic device 301 can move the second magnet 335 to the reference position.

[0221] However, this is an example, and in an embodiment of the disclosure, the electronic device 301 can move the second coil 334 (e.g., Figure 11 in the electronic device 301) to the reference position of the second coil 334. Referring to Figure 13 The description made to the first coil 314 can be applied in the same way to the reference position of the second coil 334.

[0222] Figure 3a is a flowchart illustrating an operation of the electronic device driving a third camera according to an embodiment.

[0223] In the following embodiments, the respective operations can be sequentially performed, but are not necessarily sequentially performed. For example, the order of the respective operations can be changed, and at least two operations can be performed in parallel.

[0224] According to an embodiment, operations 1311 to 1317 can be understood as being performed by a processor (e.g., Figure 3a in the electronic device 301) of the electronic device (e.g., Figure 13 in the electronic device 301).

[0225] Referring to Figure 3a , according to an embodiment, in operation 1311, the electronic device 301 (e.g., Figure 3a in the electronic device 301) can drive the first camera 310 (e.g., Figure 3a in the electronic device 301) using a pulse width modulation (PWM) driving method.

[0226] According to an embodiment, in operation 1313, the electronic device 301 can drive the third camera 340 (e.g., Figure 3a in the electronic device 301) using a pulse width modulation (PWM) driving method. According to an embodiment, the angle of view of the first camera 310 can be different from the angle of view of the third camera 340. For example, the angle of view of the third camera 340 can be greater than the angle of view of the first camera 310.

[0227] According to an embodiment, in operation 1315, the electronic device 301 can move the first magnet 315 (e.g., Figure 3aThe first magnet 315 in the electronic device 301 is moved to a reference position. For example, the reference position may include the position of the first magnet 315 before the electronic device 301 begins to move. For example, the reference position may include the position of the first magnet 315 before the electronic device 301 begins to move, as indicated by the first sensor 313 (e.g., ...). Figure 3a The position is obtained by the first sensor 313 in the middle.

[0228] For example, the reference position of the first magnet 315 may include when the first lens assembly 311 (e.g., Figure 3a The first lens assembly 311) and the first image sensor 316 (e.g., Figure 4a The first image sensor 316 in the image is positioned around the optical axis that indicates the central axis of the first lens assembly 311 (e.g., Figure 3a The position of the first magnet 315 is confirmed when aligned with the z-axis. According to an embodiment, the electronic device 301 can perform an OIS function to move the first camera 310 in a direction perpendicular to the optical axis. However, this is an example, and the function of the first camera 310 may not be limited to this.

[0229] For example, the reference position of the first magnet 315 may include a position determined based on the focal length of the first lens assembly 311 (e.g., approximately 2m or greater). According to an embodiment, the electronic device 301 may perform an AF function to move the first camera 310 in the optical axis direction. However, this is an example, and the functionality of the first camera 310 may not be limited to this. According to an embodiment, in operation 1317, the electronic device 301 may move the third magnet 345 (e.g., Figure 3a The third magnet 345 in the middle moves based on the third drive unit 342 (e.g., Figure 3a The position is determined by the value of the current consumed by the third drive unit 342. For example, the electronic device 301 can move the third magnet 345 to the position where the value of the current consumed by the third drive unit 342 is minimized among a plurality of positions corresponding to the movable range of the third magnet 345. For example, the electronic device 301 can move the third magnet 345 to the position where the value of the current consumed by the third drive unit 342 is minimized at a specific angle (e.g., approximately 0 degrees or approximately 90 degrees) formed between the electronic device 301 and the ground.

[0230] However, this is just an example, and in embodiments of this disclosure, electronic device 301 can move the first coil 314 (e.g., Figure 3a The first coil 314) and the third coil 344 (e.g., Figure 14 The third coil 344 in the middle.

[0231] Figure 14is a flowchart illustrating an operation of an electronic device driving a first camera, a second camera, and a third camera according to an embodiment.

[0232] Referring to Figure 3a , according to an embodiment, a view angle of the first camera 310 (e.g., the first camera 310 in Figure 3a ), a view angle of the second camera 330 (e.g., the second camera 330 in Figure 3a ), and a view angle of the third camera 340 (e.g., the third camera 340 in Figure 3a ) can be different from each other. For example, the first camera 310 can be a telephoto camera. For example, the second camera 330 can be a wide-angle camera. For example, the third camera 340 can be an ultra-wide-angle camera. However, these are examples, and embodiments of the disclosure can not be limited thereto.

[0233] In the following embodiments, the respective operations can be performed in sequence, but are not necessarily performed in sequence. For example, the order of the respective operations can be changed, and at least two operations can be performed in parallel.

[0234] According to an embodiment, in operation 1411, the electronic device 301 (e.g., the electronic device 301 in Figure 3a ) can confirm whether an image being displayed on the display 360 (e.g., the display 360 in Figure 3a ) is an image obtained through the first camera 310. According to an embodiment, the electronic device 301 can drive the first camera 310 using a linear driving method.

[0235] According to an embodiment, in operation 1413, the electronic device 301 can drive the second camera 330 using a pulse width modulation (PWM) driving method.

[0236] According to an embodiment, in operation 1415, the electronic device 301 can drive the third camera 340 using a pulse width modulation (PWM) driving method.

[0237] According to an embodiment, in operation 1417, based on a position of the second magnet 335 (e.g., the second magnet 335 in Figure 3a ) according to movement of the electronic device 301, the electronic device 301 can move the second magnet 335.

[0238] According to an embodiment, the electronic device 301 can confirm the position of the second magnet 335 according to movement of the electronic device 301. According to an embodiment, the electronic device 301 can confirm the position of the second coil 334 according to movement of the electronic device 301.

[0239] According to an embodiment, the electronic device 301 can determine the reference position of the second magnet 335. According to an embodiment, the electronic device 301 can determine the position of the second coil 334.

[0240] For example, the reference position of the second magnet 335 may include the position of the second magnet 335 when the electronic device 301 is not moved. For example, the reference position of the second coil 334 may include the position of the second coil 334 when the electronic device 301 is not moved.

[0241] According to an embodiment, in operation 1419, electronic device 301 can move a third magnet 345 (e.g., Figure 3a The third magnet 345 in the middle) is transmitted through the third sensor 343 (e.g., Figure 3a The third sensor (343) confirms the current position and moves to the predetermined position.

[0242] According to an embodiment, electronic device 301 can use a third sensor 343 to confirm the presence of a third magnet 345 or a third coil 344 (e.g., Figure 3a The movable range of the third magnet 345 (or the third coil 344) corresponds to multiple positions. According to an embodiment, the electronic device 301 can confirm the movement of the third magnet 345 or the third coil 344 between multiple positions by the third drive unit 342 (e.g., ...). Figure 3a The third drive unit 342 in the middle consumes multiple values ​​of current. According to an embodiment, the electronic device 301 can move the third magnet 345 or the third coil 344 based on multiple current consumption values.

[0243] According to an embodiment, the electronic device 301 can determine the position where the current consumption value is minimized as the position where the third coil 344 or the third magnet 345 will be moved.

[0244] According to an embodiment, the electronic device 301 can confirm information about the center position among a plurality of positions corresponding to the movable range of the third magnet 345. According to an embodiment, the electronic device 301 can move the third magnet 345 to the center position. According to an embodiment, the electronic device 301 can confirm information about the center position among a plurality of positions corresponding to the movable range of the third coil 344. According to an embodiment, the electronic device 301 can move the third coil 344 to the center position.

[0245] According to an embodiment, electronic device 301 can confirm when the third image sensor 346 (e.g., Figure 3a The third image sensor 346 and the third lens assembly 341 (e.g., Figure 3a Figure 3athe third magnet 345 when the third image sensor 346 and the third lens assembly 341 are aligned about the optical axis. According to an embodiment, the electronic device 301 can move the third magnet 345 to the confirmed position of the third magnet 345. According to an embodiment, the electronic device 301 can confirm a position of the third coil 344 when the third image sensor 346 and the third lens assembly 341 are aligned about the optical axis. According to an embodiment, the electronic device 301 can move the third coil 344 to the confirmed position of the third coil 344.

[0246] According to an embodiment, the electronic device 301 can include a display 360, a first camera 310 including a first lens assembly 311 and a first driving unit 312, a second camera 330 including a second lens assembly 331 and a second driving unit 332, at least one processor 320, and a memory 350 storing instructions.

[0247] According to an embodiment, based on a request to operate a camera function, the electronic device 301 can display, through the display 360, a preview image obtained using the second camera 330.

[0248] According to an embodiment, the electronic device 301 can drive the first driving unit using a pulse width modulation (PWM) driving method during at least a portion of a time period in which a preview image is obtained through the second camera.

[0249] According to an embodiment, the electronic device 301 can drive the second driving unit 332 using a linear driving method during at least a portion of a time period in which a preview image is obtained through the second camera.

[0250] According to an embodiment, in the electronic device 301, the first driving unit 312 can include a first magnet 315 and a first coil 314.

[0251] According to an embodiment, the electronic device 301 can apply a first current to the first coil 314 to move any one of the first magnet 315 or the first coil 314, which is set to move, to a first designated position, so that the first lens assembly 311 moves to the first designated position.

[0252] According to an embodiment, the electronic device 301 can confirm a plurality of positions corresponding to a movable range of any one of the first magnet 315 or the first coil 314, which is set to move.

[0253] According to an embodiment, the electronic device 301 can move any one to a central position among the plurality of positions.

[0254] According to an embodiment, the electronic device 301 can confirm a current consumption value of the first driving unit 312 when any one of the first magnet 315 or the first coil 314, which is set to move, moves between the plurality of positions.

[0255] According to an embodiment, the electronic device 301 can confirm the position to which any one of the first magnet 315 or the first coil 314 is to move, based on the current consumption value.

[0256] According to an embodiment, the electronic device 301 can confirm the first position in which the current consumption value is minimized among the plurality of values of the current consumed by the first driving unit 312.

[0257] According to an embodiment, the electronic device 301 can move any one to the first position.

[0258] According to an embodiment, the electronic device 301 can confirm an angle formed between the electronic device 301 and the ground.

[0259] According to an embodiment, based on the angle, the electronic device 301 can confirm the position to which any one of the first magnet 315 or the first coil 314 set to move is to move.

[0260] According to an embodiment, if an input of the user to adjust the magnification of the first camera 310 is confirmed, the electronic device 301 can drive the first driving unit using a linear driving method.

[0261] According to an embodiment, if movement of the electronic device 301 is confirmed, the electronic device 301 can confirm the first position of any one of the first magnet 315 or the first coil 314 set to move.

[0262] According to an embodiment, the electronic device 301 can move any one from the first position of one of the first magnet or the first coil to a second position that has been confirmed when the electronic device does not move.

[0263] According to an embodiment, the electronic device 301 can include a third camera 330 including a third lens assembly 341 and a third driving unit 342.

[0264] According to an embodiment, the angle of view of the third camera 330 of the electronic device 301 can be different from the angle of view of the first camera 310.

[0265] According to an embodiment, the third driving unit 342 of the electronic device 301 can include a third magnet 345 and a third coil 344.

[0266] According to an embodiment, based on confirming the image to be an image obtained by the second camera 330, the electronic device 301 can drive the third driving unit 342 using a pulse width modulation (PWM) driving method during at least a part of a time period in which the image is displayed on the display 360.

[0267] According to an embodiment, the electronic device 301 can move the third magnet 345 so that the third lens assembly 341 moves to a third designated position.

[0268] According to an embodiment, the electronic device 301 can perform an optical image stabilization (OIS) function of applying a first current to the first driving unit 312 and a second current to the second driving unit 332, thereby moving the first camera 310 and the second camera 320 in a direction perpendicular to the optical axis.

[0269] According to an embodiment, the electronic device 301 can perform an auto focus (AF) function of applying a first current to the first driving unit 312 and a second current to the second driving unit 332, thereby moving the first camera 310 and the second camera 320 in the direction of the optical axis.

[0270] According to an embodiment, the electronic device 301 can display, through the display 360, a first preview image obtained by the first camera 310 or a second preview image obtained using the second camera 330.

[0271] According to an embodiment, the electronic device 301 can drive the first driving unit 312 using a pulse width modulation (PWM) driving method during a first time period during which the first preview image is displayed on the display 360.

[0272] According to an embodiment, the electronic device 301 can drive the second driving unit 332 using a linear driving method during a second time period during which the second preview image is displayed on the display 360.

[0273] According to an embodiment, the method of operating the electronic device 301 can include displaying, through the display 360, a preview image obtained using the second camera 330 included in the electronic device, based on a request to run a camera function.

[0274] According to an embodiment, the method of operating the electronic device 301 can include driving the first driving unit 312 using a pulse width modulation (PWM) driving method during at least a portion of a time period during which a preview image is obtained by the second camera.

[0275] According to an embodiment, the method of operating the electronic device can include driving the second driving unit 332 using a linear driving method during at least a portion of a time period during which a preview image is obtained by the second camera.

[0276] According to an embodiment, the method of operating the electronic device can include applying a first current to the first coil 314 to move the first magnet 315 to a first designated position, so that the first lens assembly 311 moves to the first designated position.

[0277] According to an embodiment, the method of operating the electronic device 301 can include confirming a plurality of positions corresponding to a movable range of one of the first magnet 315 or the first coil 314 set to be moved.

[0278] According to an embodiment, the method of operating the electronic device 301 can include moving one of the first magnet or the first coil to a central position among the plurality of positions.

[0279] According to an embodiment, the method of operating the electronic device 301 can include confirming a current consumption value of the first driving unit 312 when one of the first magnet or the first coil is moved between the plurality of positions.

[0280] According to an embodiment, the method of operating the electronic device 301 can include confirming a position to which the first magnet is to be moved based on the current consumption value.

[0281] According to an embodiment, the method of operating the electronic device 301 can include confirming a first position in which a current consumption value of the first driving unit 312 is minimized among the current consumption values.

[0282] According to an embodiment, the method of operating the electronic device 301 can include moving one of the first magnet or the first coil to the first position.

[0283] According to an embodiment, the method of operating the electronic device 301 can include confirming an angle formed between the electronic device and the ground.

[0284] According to an embodiment, the method of operating the electronic device 301 can include confirming a position to which one of the first magnet 315 or the first coil 314 set to be moved is to be moved based on the angle.

[0285] According to an embodiment, the method of operating the electronic device 301 can include driving the first camera 310 using a linear driving method if an input of the user for adjusting a magnification of the first camera 310 is confirmed.

[0286] According to an embodiment, the method of operating the electronic device 301 can include confirming a first position of one of the first magnet 315 or the first coil 314 set to be moved if movement of the electronic device 301 is confirmed.

[0287] According to an embodiment, the method of operating the electronic device 301 can include moving one of the first magnet or the first coil from a first position of one of the first magnet or the first coil to a second position that has been confirmed when the electronic device does not move.

[0288] According to an embodiment, the method of operating the electronic device 301 can include applying a third current to the third driving unit 342 so as to drive the third camera 340 using a pulse width modulation (PWM) driving method while the image is being displayed on the display 360, based on the image being confirmed as being obtained through the second camera 330.

[0289] According to an embodiment, the method of operating the electronic device 301 can include moving the third magnet 345 so that the third camera 340 moves to a third designated position.

[0290] According to an embodiment, in the method of operating the electronic device 301, the third designated position can be different from the first designated position.

[0291] According to an embodiment, in the method of operating the electronic device 301, the first designated position can include a position of one of the first magnet or the first coil 314 that is set to move, which is confirmed in a state in which the first camera 310 does not move.

[0292] According to an embodiment, in the method of operating the electronic device 301, the third designated position can include a position of one of the third magnet or the third coil that is set to move, in which a consumed current value of the third current is minimized.

[0293] According to an embodiment, the method of operating the electronic device 301 can include performing an optical image stabilization (OIS) function of applying the first current to the first driving unit 312 and applying the second current to the second driving unit 332, thereby moving the first camera 310 and the second camera 320 in a direction perpendicular to an optical axis.

[0294] According to an embodiment, the method of operating the electronic device 301 can include performing an auto focus (AF) function of applying the first current to the first driving unit 312 and applying the second current to the second driving unit 332, thereby moving the first camera 310 and the second camera 320 in a direction of the optical axis.

[0295] According to an embodiment, the non-transitory recording medium can store instructions capable of performing operations of displaying, through a display included in an electronic device, a preview image obtained using a second camera included in the electronic device, based on a request to run a camera function.

[0296] According to an embodiment, the non-transitory recording medium can store instructions capable of performing operations of driving a first driving unit included in an electronic device using a pulse width modulation (PWM) driving method during at least a portion of a time period in which a preview image is obtained through a second camera.

[0297] According to an embodiment, the non-transitory recording medium can store instructions capable of performing the following operations: driving the second driving unit included in the electronic device using a linear driving method during at least a portion of a time period in which a preview image is obtained through the second camera.

[0298] An electronic device according to various embodiments can be one of various types of electronic devices. The electronic devices can include, for example, a portable communication device (e.g., a smartphone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance. According to an embodiment of the disclosure, the electronic devices are not limited to those described above.

[0299] It should be understood that various embodiments of the present disclosure and the terms used therein are not intended to limit the technological features set forth herein to the embodiments and should be interpreted as including all alterations, equivalents, or replacements of the embodiments. With regard to the description of the drawings, like reference numerals can be used to refer to like elements throughout the following disclosure. It is to be understood that the singular forms "a," "an," and "the" include plural referents unless the context clearly dictates otherwise. As used herein, each of the terms "comprises," "comprising," "includes," "including," "has," "having," "contains," "containing," or any other similar term is intended to be inclusive or open-ended and does not exclude additional, unrecited elements or method steps. As used herein, the term "exemplary" is used to mean "serving as an example, instance, or illustration." Any implementation described as exemplary is not necessarily to be construed as preferred or advantageous over other implementations. As used herein, the term "or" is intended to mean at least one of the items listed (for example, "a or b" means "at least one of a or b"). As used herein, the term "and / or" includes any and all combinations of one or more of the associated listed items. As used herein, the term "set" refers to a single set or multiple sets of items. As used herein, the term "about" refers to a range of values plus or minus 10% of the value being described. As used herein, the term "substantially" means less than or equal to 10% of the value being described. As used herein, the term "generally" means approximately 25% of the value being described. As used herein, the term "operatively coupled" or "communicatively coupled" means that the element is directly coupled (for example, wired) to another element, wirelessly coupled to another element, or coupled to another element via a third element.

[0300] As used in connection with various embodiments of the present disclosure, the term "module" can include a unit implemented in hardware, software, or firmware, and can interchangeably be used with other terms, for example, "logic," "logic block," "part," or "circuitry." The module can be a single integral component, or a minimum unit or part thereof, adapted to perform one or more functions. For example, according to an embodiment, the module can be implemented in a form of an application-specific integrated circuit (ASIC).

[0301] Various embodiments as set forth herein can be implemented as software (e.g., the program 140) including one or more instructions that are stored in a storage medium (e.g., internal memory 136 or external memory 138) that are readable by a machine (e.g., electronic device 101). For example, a processor (e.g., processor 120) of the machine can invoke at least one of the one or more instructions stored in the storage medium, and execute it, with or without using one or more other components under the control of the processor. This allows the machine to be operated as a special purpose machine to perform at least one function. The one or more instructions can include a code generated by a compiler or a code that forms at least a part of a language as provided in a high-level programming language. The machine-readable storage medium can be provided in the form of a non-transitory storage medium. The term "non-transitory" simply means that the storage medium is tangible, but does not include a signal (e.g., an electromagnetic wave). The term "non-transitory" does not distinguish between where data is semi-permanently stored in the storage medium or where the data is temporarily stored in the storage medium.

[0302] According to the embodiments, a method according to various embodiments of the disclosure can be included and provided in a computer program product. The computer program product can be traded as a product between a seller and a buyer. The computer program product can be distributed in the form of a machine-readable storage medium (e.g., compact disc read only memory (CD-ROM)), or be distributed online via an application store (e.g., PlayStore TM ). If the computer program product is distributed online, at least part of it can be temporarily stored in a storage medium such as a manufacturer's server, an application store's server, or a relay server.

[0303] According to various embodiments, each component (e.g., a module or a program) of the above-described components can include a single entity or multiple entities, and some of the multiple entities can be separately positioned in different components. According to various embodiments, one or more of the above-described components can be omitted, or one or more other components can be added. The components (e.g., modules or programs) can be integrated in a single component according to various embodiments. In such a case, according to various embodiments, the integrated component can still perform one or more functions of each of the plurality of components in the same or similar manner as each component performs its function before integration. According to various embodiments, operations performed by the module, the program, or another component can be carried out in sequence, in parallel, repeatedly, or in a heuristic method. According to various embodiments, one or more of the operations can be executed in a different order or omitted, or one or more other operations can be added.

Claims

1. An electronic device (101; 301), said electronic device comprising: Monitors (160; 360); A first camera (310) includes a first lens assembly (311) and a first driving unit (312). The second camera (330) includes a second lens assembly (331) and a second drive unit (332). At least one processor (120; 320); as well as Memory (130; 350), the memory storing instructions, which, when executed by the at least one processor, cause the electronic device to: Based on the request to activate the camera function, a preview image obtained using the second camera is displayed on the monitor, and During at least a portion of the time period in which the preview image is acquired via the second camera, the first driving unit is driven using a pulse width modulation (PWM) driving method and the second driving unit is driven using a linear driving method.

2. The electronic device according to claim 1, in, The first driving unit includes a first magnet (315) and a first coil (314), and When the instruction is executed by the at least one processor, it causes the electronic device to apply a first current to the first coil to move the first magnet or one of the first coils that is set to move to a first designated position.

3. The electronic device according to any one of claims 1 to 2, wherein, When the instructions are executed by the at least one processor, the electronic device: Confirm multiple positions corresponding to the movable range of the first magnet or the first coil that is set to move, and This moves one of the first magnets or the first coils to the center position among the plurality of positions.

4. The electronic device according to any one of claims 1 to 3, wherein, When the instructions are executed by the at least one processor, the electronic device: Confirm multiple positions corresponding to the movable range of the first magnet or the first coil that is set to move, and Confirm the current consumption value of the first drive unit when one of the first magnets or the first coil moves between the plurality of positions.

5. The electronic device according to any one of claims 1 to 4, wherein, When the instruction is executed by the at least one processor, the electronic device: based on the current consumption value, determines the position of the movement of the first magnet or the first coil.

6. The electronic device according to any one of claims 1 to 5, wherein, When the instructions are executed by the at least one processor, the electronic device: Confirm the first position where the current consumption value is minimized among the current consumption values, and This moves either the first magnet or the first coil to the first position.

7. The electronic device according to any one of claims 1 to 6, wherein, When the instructions are executed by the at least one processor, the electronic device: Confirm the angle between the electronic device and the ground, and Based on the angle, the position of the movement of the first magnet or the first coil that is set to move is confirmed.

8. The electronic device according to any one of claims 1 to 7, wherein, When the instruction is executed by the at least one processor, the electronic device causes the electronic device to drive the first drive unit using the linear drive method based on the confirmed user input for adjusting the magnification of the first camera.

9. The electronic device according to any one of claims 1 to 8, wherein, When the instructions are executed by the at least one processor, the electronic device: Based on the confirmation of the movement of the electronic device, the first position of the first magnet or the first coil that was set to move was confirmed, and The first magnet or the first coil is moved from its first position to a second position that has been confirmed when the electronic device is not moving.

10. The electronic device according to any one of claims 1 to 9, wherein, When the instructions are executed by the at least one processor, the electronic device: Perform optical image stabilization (OIS) on the first camera to move the first camera in a direction perpendicular to the optical axis, and The optical image stabilization (OIS) function of the second camera is performed to move the second camera in a direction perpendicular to the optical axis.

11. The electronic device according to any one of claims 1 to 10, wherein, When the instructions are executed by the at least one processor, the electronic device: Perform the autofocus (AF) function of the first camera to move the first camera in the optical axis direction, and The autofocus (AF) function of the second camera is executed to move the second camera in the optical axis direction.

12. The electronic device according to any one of claims 1 to 11, in, The first viewpoint of the first camera is different from the second viewpoint of the second camera.

13. The electronic device according to any one of claims 1 to 12, in, The first camera also includes a first image sensor (316), and When the instruction is executed by the at least one processor, it causes the electronic device to: acquire a preview image via the first camera, and When it is determined that image processing is to be performed on the preview image obtained using the first camera through the first image sensor, the linear driving method is used to drive the first driving unit.

14. A method of operating an electronic device, the method comprising: Based on a request to operate the camera function, a preview image obtained using a second camera included in the electronic device is displayed on a display included in the electronic device. During at least a portion of the time period in which the preview image is acquired via the second camera, a pulse width modulation (PWM) driving method is used to drive the first driving unit included in the electronic device and a linear driving method is used to drive the second driving unit included in the electronic device.

15. The operating method according to claim 14, further comprising: in, The first driving unit includes a first magnet (315) and a first coil (314). A first current is applied to a first coil included in the electronic device to move a first magnet included in the electronic device or one of the first coils that is set to move to a first designated position.