Abstract:
According to various embodiments, an electronic device may comprise: a front cover; a rear cover disposed opposite to the front cover; an annular portion including a side portion surrounding at least a part of the space between the front cover and the rear cover, and including a display at least partially disposed along the front cover and at least one magnetic member, comprising a magnetic material, arranged at a specified first angle and a specified first distance with respect to the center of the display; a first Hall sensor disposed at a specified second distance from the center of the display; a second Hall sensor disposed at the specified second distance from the center of the display and spaced a second angle smaller than the first angle apart from the first Hall sensor; a memory; and at least one processor, comprising processing circuitry, operatively connected to the memory. At least one processor, individually and/or collectively, may be configured to: acquire first magnetic information corresponding to the at least one magnetic member based on the first Hall sensor; acquire second magnetic information corresponding to the at least one magnetic member based on the second Hall sensor; based on the first magnetic information and the second magnetic information, identify whether the annular member rotates; and in response to rotation of the annular member, control a user interface displayed through the display.
Abstract:
Various embodiments of the present invention relate to an electronic device and a method for sensing a state thereof, and the electronic device may include a processor, and a sensor including a first interrupt pin and a second interrupt pin operatively connected with the processor, and configured to detect a movement of the electronic device, wherein the sensor may be configured to, when detecting a free fall of the electronic device, transmit a first designated signal to the processor using the first interrupt pin, and when detecting an impact state of the electronic device, transmit a second designated signal to the processor using the second interrupt pin. Other various embodiments are also possible.
Abstract:
An electronic device may include: a magnetic sensor configured to identify the intensity of a magnetic field; a wireless communication circuit; a processor; and memory electrically connected to the magnetic sensor, the wireless communication circuit, and the processor, and storing instructions. The processor may be configured so that the electronic device: uses the magnetic sensor to identify a plurality of intensities of the magnetic field during a first period; identifies, on the basis of the plurality of intensities, whether a reference intensity has been updated; identifies a first state of the electronic device when the reference intensity has been updated, the first state being identified on the basis of a comparison result between the latest intensity among the plurality of intensities and the updated reference intensity; and performs a function according to the identified first state. Various other embodiments identified through the specification are possible.
Abstract:
A method is provided for folding an electronic device including a first housing and a second housing. The method includes an operation of calculating an angle between the first housing and the second housing. The operation of calculating the angle includes calculating, based on sensing data measured by a first sensor module disposed in the first housing and a second sensor module disposed in the second housing, an angle between the first housing and the second housing. The method further includes an operation of measuring a magnetic force value using a digital Hall sensor when a state of the foldable electronic device corresponding to the calculated angle corresponds to a set condition. The method further includes an operation of setting a first reference value associated with folding the foldable electronic device and a second reference value associated with unfolding the foldable electronic device based on the magnetic force value.
Abstract:
An electronic device comprising: an ultraviolet (UV) light sensor; and a processor configured to: generate a plurality of initial UV light measurements by using the UV light sensor, wherein each of the plurality of initial UV light measurements is associated with a respective orientation of the electronic device; and select a reference UV light measurement from the plurality.
Abstract:
An electronic device includes: a magnetic sensor; a communication module; at least one processor operatively connected with the magnetic sensor and the communication module. The at least one processor is configured to: identify that a magnetic signal is detected through the magnetic sensor; identify, based on a magnitude of the detected magnetic signal, whether the magnetic signal is generated by coupling the electronic device with a cover device; and based on identifying that the magnetic signal is generated by coupling the electronic device with the cover device, correct sensor data of the magnetic sensor.
Abstract:
According to various embodiments, an electronic device may include: a housing configured to be mounted on or detached from an ear of a user, at least one processor disposed within the housing, an audio module including audio circuitry, and a sensor device including at least one sensor operatively coupled to the at least one processor and the audio module. The sensor device may be configured to: output acceleration-related data to the at least one processor through a first path of the sensor device, identify whether an utterance has been made during the output of the acceleration-related data; obtain bone conduction-related data based on the identification of the utterance; and output the obtained bone conduction-related data to the audio module through a second path of the sensor device.
Abstract:
A method is provided. The method includes identifying whether an amount of change in the pressure detected through an atmospheric pressure sensor is greater than or equal to a specified first threshold, in response to the amount of change in the pressure being greater than or equal to the first threshold, waking up a biometric sensor module including a plurality of electrodes in which some of the plurality of electrodes are disposed to come into contact with a body part of a user when the electronic device is worn, and others thereof are disposed to not come into contact with a body part of the user when the electronic device is worn, and identifying whether an interrupt signal, indicating that a state in which the plurality of electrodes are electrically connected is maintained for a specified first time or more, is received from the biometric sensor module.
Abstract:
A foldable electronic device is provided, which includes a hinge structure, a first housing that is connected to the hinge structure, a second housing that is connected to the hinge, a first vibration element disposed in the first housing, a first motion sensor disposed adjacent to the first vibration element, a second motion sensor disposed in the second housing, a processor, and a memory. The memory stores instructions that, when executed, cause the processor to control vibration intensity of the first vibration element, based on a first value measured from the first motion sensor and a second value measured from the second motion sensor.
Abstract:
A housing of an electronic device according to an embodiment may include a combination of at least two housings, and the entire size or length of the electronic device may change according to relative movement between the housings. The electronic device may comprise: a flexible display configured to expand or contract according to a change in size of the electronic device. A portion of the flexible display may be inserted into the housing when the housing contracts and may be drawn out of the housing when the housing expands. The electronic device may comprise a distance sensor and/or an expansion sensor. The distance sensor is configured to measure a change in a relative distance of the housing, and the expansion sensor senses a contraction or expansion state of the housing, thereby contributing to correcting data measured by the distance sensor. The electronic device employing the distance sensor and/or the expansion sensor can accurately sense the size of an externally visible portion of a display and can display a screen appropriate to the size of the visible portion of the display.