Earphone wearing detection circuit and earphone
By combining infrared, acceleration, and ambient light detection modules with the main control module, the problem of false detection in strong light and motion during headphone removal and wearing detection is solved, achieving higher detection accuracy and reliability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- ZHAOQING DEQING GRANDSUN ELECTRONIC CO LTD
- Filing Date
- 2025-06-06
- Publication Date
- 2026-07-10
Smart Images

Figure CN224481808U_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of headphone technology, and in particular to a headphone wearing / removal detection circuit and a headphone. Background Technology
[0002] With the technological iteration and consumption upgrade of wearable devices, users' requirements for the intelligent experience of products have significantly increased. For example, in TWS earphones, the function of putting on / off detection has become an industry standard. In related technologies, putting on / off detection usually uses an infrared detection circuit solution. The infrared receiving sensitivity and transmission power of this infrared detection circuit are generally fixed. Therefore, the infrared light source will be overwhelmed under strong light, causing the detection to fail. In addition, sweating during exercise and shaking of the earphones can also easily lead to false infrared detection, resulting in a poor user experience. Utility Model Content
[0003] The purpose of this application is to at least solve one of the technical problems existing in the prior art, and to provide a headphone removal and wearing detection circuit and a headphone, aiming to improve the accuracy and reliability of headphone removal and wearing detection.
[0004] In a first aspect, embodiments of this application provide a headphone wearing / removal detection circuit, including an infrared detection module, an acceleration detection module, an ambient light detection module, and a main control module;
[0005] The infrared detection module is used to emit infrared light and detect the intensity of infrared light.
[0006] The acceleration detection module is used to detect the motion state of the headphones;
[0007] The ambient light detection module is used to detect the intensity of ambient light.
[0008] The main control module is electrically connected to the infrared detection module, the acceleration detection module, and the ambient light detection module through the first bus interface. The main control module is used to adjust the transmission power of the infrared detection module according to the ambient light intensity, and to determine the wearing / unwearing state of the earphones according to the motion state of the earphones and the infrared light intensity.
[0009] According to the technical solution of the embodiments of this application, at least the following beneficial effects are achieved: the infrared detection module, the acceleration detection module, and the ambient light detection module are used to detect different parameters respectively. The main control module can adjust the emission power of the infrared detection module according to the ambient light intensity. For example, when the ambient light is strong, the infrared emission power is increased to avoid the infrared signal being overwhelmed by strong light, thereby improving the detection accuracy of the infrared detection module. Furthermore, the main control module can combine the motion state of the earphone detected by the acceleration detection module to provide motion compensation for the earphone removal and wearing detection, avoiding false detection caused by shaking, and further improving the accuracy and reliability of earphone removal and wearing detection.
[0010] According to some embodiments of this application, the infrared detection module includes a first interrupt pin connected to the main control module, which is used to trigger a corresponding first interrupt inside the main control module when the detected infrared light intensity meets a preset threshold.
[0011] The main control module is also used to determine that the earphone is being worn when the first interrupt is triggered and the acceleration detection module detects that the earphone is being worn.
[0012] According to some embodiments of this application, the main control module is further configured to adjust the preset threshold of the infrared detection module through the first bus interface according to the adjustment value of the transmission power of the infrared detection module.
[0013] According to some embodiments of this application, the main control module is further configured to adjust the conditions for the infrared detection module to trigger the first interrupt based on the motion state of the earphone via the first bus interface.
[0014] According to some embodiments of this application, the main control module is further configured to determine that the earphone is not being worn when the first interrupt is triggered and the acceleration detection module does not detect that the earphone is being worn, and to determine that the earphone is not being worn when the first interrupt is not triggered and the acceleration detection module detects that the earphone is being worn.
[0015] According to some embodiments of this application, a communication module is also included. The communication module is connected to an earphone management device that is in communication with the earphone. The main control module is also used to adjust the detection parameters of the infrared detection module and the detection parameters of the acceleration detection module through the configuration update information obtained by the communication module.
[0016] According to some embodiments of this application, the ambient light detection module includes an ultraviolet light sensor for detecting ultraviolet light intensity; the main control module is also used to trigger an ultraviolet light exposure reminder based on the ultraviolet light intensity.
[0017] According to some embodiments of this application, the acceleration detection module includes a second interrupt pin connected to the main control module, used to trigger a corresponding second interrupt inside the main control module based on the detected motion state of the earphone.
[0018] According to some embodiments of this application, the ambient light detection module includes a third interrupt pin connected to the main control module, used to trigger a corresponding third interrupt inside the main control module according to the ambient light intensity.
[0019] Secondly, embodiments of this application provide an earphone, and any of the above-mentioned earphone wearing / removal detection circuits.
[0020] Other features and advantages of this application will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the application. The objectives and other advantages of this application may be realized and obtained by means of the structures particularly pointed out in the description, claims and drawings. Attached Figure Description
[0021] The accompanying drawings are used to provide a further understanding of the technical solutions of this application and constitute a part of the specification. They are used together with the embodiments of this application to explain the technical solutions of this application and do not constitute a limitation on the technical solutions of this application.
[0022] The present application will be further described below with reference to the accompanying drawings and embodiments;
[0023] Figure 1 This is a schematic block diagram of the structure of a donning / wearing detection circuit provided in one embodiment of this application;
[0024] Figure 2 This is a circuit diagram of an infrared detection module provided in one embodiment of this application;
[0025] Figure 3 This is a circuit diagram of an acceleration detection module provided in one embodiment of this application;
[0026] Figure 4 This is a circuit diagram of an ambient light detection module provided in one embodiment of this application;
[0027] Figure 5 This is a schematic block diagram of the structure of a donning / wearing detection circuit provided in another embodiment of this application. Detailed Implementation
[0028] This section will describe in detail the specific embodiments of this application. Preferred embodiments of this application are shown in the accompanying drawings. The purpose of the drawings is to supplement the textual description with graphics, so that people can intuitively and vividly understand each technical feature and the overall technical solution of this application, but they should not be construed as limiting the scope of protection of this application.
[0029] In the description of this application, it should be understood that the orientation descriptions, such as up, down, front, back, left, right, etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.
[0030] In the description of this application, "several" means one or more, "more than" means two or more, "greater than," "less than," and "exceeding" are understood to exclude the stated number, while "above," "below," and "within" are understood to include the stated number. If the terms "first" and "second" are used, they are merely for distinguishing technical features and should not be construed as indicating or implying relative importance, or implicitly specifying the number of indicated technical features, or implicitly indicating the order of the indicated technical features.
[0031] In the description of this application, unless otherwise expressly defined, terms such as "setup," "installation," and "connection" should be interpreted broadly, and those skilled in the art can reasonably determine the specific meaning of the above terms in this application in conjunction with the specific content of the technical solution.
[0032] The present application will be further described below with reference to the accompanying drawings.
[0033] like Figure 1 As shown, Figure 1 This is a schematic block diagram of the structure of a device wearing / removing detection circuit provided in one embodiment of this application. The device wearing / removing detection circuit includes an infrared detection module, an acceleration detection module, an ambient light detection module, and a main control module.
[0034] The infrared detection module is used to emit infrared light and detect the intensity of infrared light;
[0035] The acceleration detection module is used to detect the motion state of the headphones;
[0036] The ambient light detection module is used to detect the intensity of ambient light;
[0037] The main control module is electrically connected to the infrared detection module, the acceleration detection module, and the ambient light detection module through the first bus interface. The main control module is used to adjust the transmission power of the infrared detection module according to the ambient light intensity, and to determine the wearing and removing status of the earphones according to the movement state of the earphones and the infrared light intensity.
[0038] Understandably, headphone wear detection refers to the function of using built-in sensors and intelligent algorithms to determine in real time whether a user is wearing headphones. Headphone wear detection can use sensor components such as infrared sensors, capacitive sensors, or motion accelerometers to detect the contact state between the headphones and the ear. When the headphones are worn, corresponding actions can be triggered, such as automatically playing music or answering a call. Similarly, when the headphones are removed, corresponding actions can be triggered, such as pausing playback or hanging up a call. This not only improves the convenience of user operation but also optimizes power management and extends the headphone's battery life.
[0039] In this embodiment, the wearing / removal detection circuit can be applied to various types of headphones, including but not limited to Bluetooth headphones, TWS headphones, and over-ear headphones.
[0040] In this embodiment, the sensor circuit module for detecting whether the headphones are worn or removed includes an infrared detection module, an acceleration detection module, and an ambient light detection module. The infrared detection module emits infrared light and detects its intensity. Specifically, it emits invisible infrared light through a built-in infrared emitter and detects the intensity of the reflected light using a receiver. The change in the intensity of the reflected infrared light determines the wearing / removing status. For example, when the headphones are correctly worn, the infrared light is amplified by reflection from the body tissue. The infrared detection module can analyze the changes in the received signal intensity to confirm that the headphones are worn. If the reflected light intensity is significantly reduced or disappears, the headphones are removed, i.e., not worn. In this embodiment, the infrared detection module uses a specific wavelength of infrared light to reduce ambient light interference and amplifies and filters the reflected signal to ensure the stability and reliability of the detection.
[0041] An acceleration detection module is used to detect the motion state of the headphones. This detection can identify motion changes such as stillness, shaking, rotation, or free fall, thereby detecting whether the headphones are worn, not worn, running, or head shaking. For example, when a user wears headphones, the acceleration detection module detects slight head movements or regular vibrations during walking, thus determining that the headphones are worn. After removing the headphones, if it detects prolonged stillness or sudden drop, it can determine that the headphones are not worn. In this embodiment, the acceleration detection module can use a low-power triaxial accelerometer to identify the wearing / unwearing state by real-time monitoring of acceleration changes in the X, Y, and Z directions. An algorithm is used to filter out meaningless minor vibrations, such as slight bumps to a table or swaying in the wind, to improve the accuracy of the judgment.
[0042] The ambient light detection module is used to detect ambient light intensity. Therefore, it needs to be placed on the earphone shell in a position that is directly exposed to external light. When the earphones are worn, the ambient light sensor should face free space, i.e., an unobstructed direction. Thus, the ambient light detection module is usually located on the outside or top of the earphone shell, inside, to avoid being blocked by the ear or hair, ensuring complete reception of ambient light and accurate perception of changes in ambient light. Correspondingly, the infrared detection module uses an infrared sensor for detection. Since infrared sensors are proximity sensors, they need to be installed in an area close to the ear canal or in contact with the ear after the earphones are worn, such as near the earphone's sound outlet or inside the earbud, so that the emitted infrared light can effectively illuminate the skin and receive the reflected signal, thereby accurately detecting the distance between the earphones and the ear and determining whether the earphones are worn or not.
[0043] In one embodiment, the infrared detection module may include an infrared emitter, a photodetector, and associated signal processing circuitry; the acceleration detection module includes a three-axis accelerometer and a three-axis gyroscope, wherein the three-axis accelerometer can detect the linear acceleration changes of the headphones in the XYZ axes in real time, and the three-axis gyroscope can detect the angular velocity of the headphones in real time; the combination of the two can detect the motion state of the headphones; the ambient light detection module may include a photosensitive element and an analog-to-digital conversion circuit for real-time monitoring of ambient light intensity. In one embodiment, the acceleration detection module may include a three-axis MEMS accelerometer and a corresponding data parsing chip for capturing the motion posture of the headphones.
[0044] Since headphones are sensitive to size and power consumption, infrared detection modules, acceleration detection modules, and ambient light detection modules can preferentially use ultra-small packaged sensors with low operating voltage, and power consumption should be optimized to extend battery life. At the same time, the sensors in the modules are required to have high sensitivity to ensure detection accuracy.
[0045] In addition, in this embodiment, the main control module is mainly used to analyze the data detected by various sensor circuit modules such as the infrared detection module, acceleration detection module, and ambient light detection module, and then determine the current wearing / unwearing status of the headphones and issue corresponding status reminders to the user. The main control module can use a low-power microcontroller (MCU) or a dedicated Bluetooth audio SoC chip to process the raw data collected by the infrared, acceleration, and ambient light sensors in real time, and comprehensively determine the wearing / unwearing status of the headphones through the built-in algorithm. The main control module is electrically connected to the infrared detection module, acceleration detection module, and ambient light detection module through the first bus interface. The first bus interface can be an I2C (Inter-Integrated Circuit) bus protocol interface. The I2C bus protocol is a two-wire serial communication standard, including a clock line (SCL) and a data line (SDA), which can realize data transmission between the main control module and each sensor circuit module in a low-power manner.
[0046] Based on this, the main control module can obtain and analyze the ambient light intensity data detected by the ambient light detection module through the first bus interface, thereby adjusting the emission power of the infrared light emitted by the infrared detection module. For example, the main control module can determine the strength of the current ambient light by using the ambient light intensity data detected by the ambient light detection module. When the ambient light is strong, the emission power of the infrared light emitted by the infrared detection module can be increased to prevent the infrared light emitted by the infrared detection module from being overwhelmed by strong light. When the ambient light gradually weakens, the emission power of the infrared light emitted by the infrared detection module can be reduced to ensure the low power consumption operation of the headphones.
[0047] Additionally, the main control module can determine the earphone's wearing / unwearing status based on the earphone's motion state information detected by the acceleration detection module and the infrared light intensity data detected by the infrared detection module. The main control module can analyze the earphone's motion state information and infrared light intensity data independently. For example, the main control module can first process the earphone's motion state information separately. If the earphone remains stationary for more than a set threshold based on the motion state information, it can initially be determined that the earphone is unwearing. Simultaneously, if the infrared light intensity data indicates that the reflected light intensity is consistently below a set threshold, it can also initially be determined that the earphone is unwearing. Subsequently, the wearing / unwearing status is only confirmed when the independent judgments from the two modules are consistent. Alternatively, the earphone's motion state information and infrared light intensity data can be directly fused and analyzed. For example... One approach is to first analyze independently and then perform fusion analysis. For example, the main control module can establish a comprehensive algorithm model to weight the instantaneous motion state information of the headphones detected by the accelerometer and the sudden change value of the infrared light intensity data. By comparing the fused data with a preset threshold in real time, the wearing / removing status can be dynamically determined. Another approach is to first analyze independently and then perform fusion analysis. For example, the main control module can first verify whether the acceleration data shows typical characteristics of headphones being removed (e.g., weightlessness), and at the same time analyze whether the infrared light intensity drops suddenly. After preliminary screening, these feature parameters are then input into a machine learning model for confidence evaluation, and finally the status is determined by probability thresholds. In practical applications, targeted optimization can also be performed according to the type of headphones and the usage scenario. For example, in-ear headphones may rely more on infrared data, while over-ear headphones focus on acceleration analysis.
[0048] Based on this, after the main control module determines the wearing / unwearing status of the earphones, it can notify the user. In one embodiment, a prompt tone can be played through the built-in audio module of the earphones. For example, a short "beep" sound will be emitted when the earphones are detected to be removed, and a gentle prompt melody will be played when they are put back on. In addition, tactile feedback can be provided through the built-in vibration motor. For example, a slight vibration can remind the user that the earphones are worn correctly. For earphones equipped with LED indicator lights, the status can be displayed intuitively by flashing or solid-on lights of different colors. For example, solid blue indicates that the earphones are worn, and flashing red indicates that the battery is low. When connected to terminal devices such as smartphones, the earphones can also transmit status information to the accompanying APP installed on the terminal device via Bluetooth protocol, and pop up notifications or update real-time information such as earphone battery level and connection status on the terminal device screen.
[0049] In one embodiment, reference Figures 2 to 4 ,in, Figure 2 This is a circuit diagram of an infrared detection module provided in one embodiment of this application. The infrared detection module includes an infrared sensor U1 of model HX3009 and peripheral circuitry. Figure 3 This is a circuit diagram of an acceleration detection module provided in one embodiment of this application. The acceleration detection module includes a six-axis accelerometer U2 of model LSM605OWTR and peripheral circuitry. Figure 4 This is a circuit diagram of an ambient light detection module provided in one embodiment of this application. The ambient light detection module includes an ambient light sensor U3 of model SI1133 and peripheral circuitry.
[0050] like Figure 5 As shown, Figure 5 This is a schematic block diagram of the structure of a headphone wearing detection circuit provided in another embodiment of this application. In the headphone wearing detection circuit provided in some embodiments of this application, the infrared detection module includes a first interrupt pin IR_INT connected to the main control module, which is used to trigger the corresponding first interrupt inside the main control module when the detected infrared light intensity meets a preset threshold. The main control module is also used to determine that the headphones are in a wearing state when the first interrupt is triggered and the acceleration detection module detects that the headphones are in a wearing state.
[0051] Understandably, the main control module is electrically connected to the infrared detection module, acceleration detection module, and ambient light detection module via the first bus interface (SDA, SCL), respectively. Therefore, the main control module can communicate with these modules and exchange data through the first bus interface. However, in the headphone system, relying solely on the first bus interface for communication may result in inherent latency. This is because the first bus interface uses a time-division multiplexing mechanism, and the passive acquisition method of the main control module polling each sensor module's state changes leads to response delays. This is especially problematic when multiple sensors are transmitting data simultaneously, as the bus bandwidth may be limited, making it impossible to handle sudden state changes in a timely manner.
[0052] Therefore, in this embodiment, the infrared detection module includes a first interrupt pin IR_INT connected to the main control module. The first interrupt pin IR_INT is used to trigger the corresponding first interrupt inside the main control module when the detected infrared light intensity meets a preset threshold. In this way, a microsecond-level hardware-level instant response mechanism is realized through the interrupt pin. For example, when the infrared sensor suddenly detects a sudden change in light intensity, the first interrupt of the main control module can be directly triggered through the interrupt line, so that the main control module immediately suspends the current task and prioritizes the judgment of the wearing / unwearing status. In terms of power consumption management, the interrupt architecture allows each sensor module to remain in sleep mode when not in operation, and only wakes up the main control module when a critical event is detected, avoiding unnecessary power consumption caused by the main control module continuously polling the sensors through the bus. In addition, the dual communication mechanism of the first interrupt pin IR_INT and the first bus interface also improves the fault tolerance of the headphones. For example, when the first bus interface experiences communication abnormalities due to electromagnetic interference, the interrupt signal can still ensure that the critical event is captured in time, while the first bus interface is used to transmit detailed sensor parameter data.
[0053] Understandably, the first interrupt refers to an internal interrupt of the main control module triggered by the infrared detection module when the detected infrared light intensity meets a preset threshold. In other words, the first interrupt is an emergency notification signal sent to the main control module immediately through the first interrupt pin line when the infrared detection module built into the earphone detects a significant change in the intensity of the reflected infrared light and reaches a preset threshold. Specifically, when the earphone is working normally, the infrared emitting tube continuously emits infrared light of a specific wavelength into the ear canal, while the receiving tube monitors the intensity of the reflected light in real time. When the user puts on the earphone, the skin of the ear canal will increase the infrared reflected light, while when the earphone is removed, the reflected light will suddenly decrease. Once this change in light intensity exceeds the preset trigger threshold (for example, a sudden drop from 800 lux when worn to 200 lux when removed), the infrared detection module will instantly pull down the interrupt pin level connected to the main control chip, generating a hardware interrupt signal, i.e., the first interrupt. The first interrupt can directly interrupt the normal task currently being executed by the main control module and immediately jump to a dedicated interrupt service routine to handle the first interrupt event, quickly determine whether the headphones have been removed, and trigger corresponding operations such as pausing playback or entering power saving mode.
[0054] Therefore, in this embodiment, the main control module is also used to determine that the headphones are worn when the first interrupt is triggered and the acceleration detection module detects that the headphones are worn. In other words, the main control module can determine that the headphones are worn only when both the acceleration detection module and the infrared detection module determine that the headphones are worn. However, if only the acceleration detection module or only the infrared detection module determines that the headphones are worn, the headphones are determined to be unworn. In this way, the accuracy and reliability of headphone wearing and removal detection are further improved by using a multi-sensor, multi-parameter wearing and removal status determination method.
[0055] In the donning / wearing detection circuit provided in some embodiments of this application, the main control module is also used to adjust the preset threshold of the infrared detection module through the first bus interface according to the adjustment value of the infrared detection module's transmission power.
[0056] Understandably, the main control module can determine the strength of the current ambient light by using the ambient light intensity data detected by the ambient light detection module. When the ambient light is strong, it can increase the emission power of the infrared light emitted by the infrared detection module to prevent the infrared light emitted by the infrared detection module from being overwhelmed by the strong light. Furthermore, the infrared detection module triggers the corresponding first interrupt inside the main control module when the detected infrared light intensity meets the preset threshold. In other words, after the infrared detection module emits infrared light, considering factors such as infrared light reflection attenuation, under normal headphone wearing conditions, the intensity of the reflected infrared light received by the infrared detection module should not be less than the preset threshold. If it is less than the preset threshold, it is determined that the headphones are not being worn.
[0057] Here, since the infrared light emission power of the infrared detection module has been increased, the intensity of the reflected infrared light received by the infrared detection module under the same conditions will also increase. For example, before the infrared light emission power of the infrared detection module was increased, the intensity of the reflected infrared light received by the infrared detection module when the headphones were worn was 400 lux, and the intensity of the reflected infrared light received by the infrared detection module when the headphones were not worn was 200 lux. After the infrared light emission power of the infrared detection module was increased, the intensity of the reflected infrared light received by the infrared detection module when the headphones were worn was 600 lux, and the intensity of the reflected infrared light received by the infrared detection module when the headphones were not worn was 400 lux. Here, if the preset threshold is not increased and remains at 400 lux after the infrared light emission power of the infrared detection module is increased, the headphones may be judged to be in a worn state regardless of whether the headphones are actually worn or not.
[0058] Therefore, the main control module is also used to adjust the preset threshold of the infrared detection module through the first bus interface according to the adjustment value of the infrared detection module's transmission power. In other words, after the infrared detection module's transmission power is enhanced, the main control module can adjust the preset threshold of the infrared detection module through the first bus interface according to the enhancement adjustment value of the infrared detection module's transmission power, thereby ensuring the accuracy of the infrared detection module's wearing / unwearing status judgment.
[0059] In the headphone removal and wearing detection circuit provided in some embodiments of this application, the main control module is also used to adjust the conditions for the infrared detection module to trigger the first interrupt according to the movement state of the headphones via the first bus interface.
[0060] It is understandable that the infrared detection module can trigger the corresponding first interrupt within the main control module when the detected infrared light intensity meets the preset threshold once, or it can trigger the corresponding first interrupt within the main control module only when the detected infrared light intensity meets the preset threshold multiple times, thereby enhancing the anti-interference capability of the infrared detection module. Therefore, the condition for the infrared detection module to trigger the first interrupt can include the number of times the infrared light intensity meets the preset threshold.
[0061] Specifically, when the system is set to trigger an interrupt immediately upon detecting a threshold change, the fastest response can be achieved. For example, if the infrared light intensity changes by a single time to meet the preset threshold the moment a user suddenly removes the headphones, the main control module can be immediately notified to pause music playback. This mode is suitable for scenarios with high real-time requirements, ensuring a consistent user experience. However, in actual use, some brief environmental interferences may be encountered, such as instantaneous infrared signal fluctuations caused by the user adjusting the headphone position, or temporary changes in reflectivity caused by sweating in the ear canal. These situations may cause false triggering. Therefore, the corresponding first interrupt inside the main control module can be triggered only when the detected infrared light intensity meets the preset threshold multiple times. Although this introduces a slight delay, it can effectively filter out instantaneous interference signals and significantly reduce the probability of false judgment.
[0062] In this embodiment, the main control module can adjust the conditions for triggering the first interrupt by the infrared detection module through the first bus interface according to the movement state of the earphone. The conditions for triggering the first interrupt include the number of times the infrared light intensity meets a preset threshold. For example, when the earphone is in a movement state such as running or head shaking, the main control module can increase the number of times the infrared light intensity meets the preset threshold to trigger the first interrupt through the first bus interface. In this way, even if the infrared light intensity occasionally meets the preset threshold due to the user's movement state such as running or head shaking, the probability of falsely triggering the first interrupt can be reduced by adjusting the number of times the infrared light intensity meets the preset threshold to trigger the first interrupt, thereby further enhancing the anti-interference capability of the infrared detection module.
[0063] In the headphone wearing detection circuit provided in some embodiments of this application, the main control module is further configured to determine that the headphones are not worn when the first interrupt is triggered and the acceleration detection module does not detect that the headphones are worn, and to determine that the headphones are not worn when the first interrupt is not triggered and the acceleration detection module detects that the headphones are worn.
[0064] Understandably, in this embodiment, the main control module is used to determine that the headphones are worn when the first interrupt is triggered and the acceleration detection module detects that the headphones are worn. That is, the main control module can determine that the headphones are worn only when both the acceleration detection module and the infrared detection module determine that the headphones are worn. However, if only the acceleration detection module or only the infrared detection module determines that the headphones are worn, the main control module determines that the headphones are not worn. In other words, the main control module is also used to determine that the headphones are not worn when the first interrupt is triggered and the acceleration detection module does not detect that the headphones are worn, and to determine that the headphones are not worn when the first interrupt is not triggered and the acceleration detection module detects that the headphones are worn. In this way, by using a multi-sensor, multi-parameter method to determine the wearing and removing status, the accuracy and reliability of headphone wearing and removing detection are further improved.
[0065] In some embodiments of this application, the device for detecting whether an earphone is worn or removed also includes a communication module. The communication module is connected to an earphone management device that is in communication with the earphone. The main control module is also used to adjust the detection parameters of the infrared detection module and the detection parameters of the acceleration detection module through the configuration update information obtained by the communication module.
[0066] In this embodiment, the headphone wearing / removal detection circuit also includes a communication module. This communication module is connected to a headphone management device that communicates with the headphones. The headphone management device is the user's terminal device, which can be a smartphone, smartwatch, tablet, etc. It is important to note that the communication module's connection to the headphone management device requires the installation of an application for managing the headphones on the headphone management device. The communication module can be a Bluetooth module or a Wi-Fi module. Through communication between the communication module and the user's headphone management device, the headphone wearing / removal status can be synchronized in real-time to the dedicated management application on the headphone management device, and configuration commands can also be received from the application.
[0067] In this embodiment, the main control module is also used to adjust the detection parameters of the infrared detection module and the acceleration detection module through the configuration update information obtained by the communication module. Specifically, the main control module can transmit sensor data and usage logs during the use of the headphones to the user's headphone management device through the communication module. The dedicated management application in the headphone management device can have AI learning function. Through the AI learning function, it can learn the user's usage habits and adjust the configuration of each sensor parameter according to the user's usage habits, and update the headphones via OTA to make the headphones more and more suitable for the user.
[0068] In one embodiment, since everyone's ear shape and skin color are different, the infrared light intensity received by the infrared detection module after wearing the headphones varies. The dedicated management application in the headphone management device can record multiple wearing data and, through AI learning, adjust the preset threshold used by the infrared detection module to determine the wearing and removing status. For example, when it is found that the typical infrared reflection value of a user wearing the headphones is generally higher than the default threshold, the judgment threshold will be increased accordingly to avoid misjudgment due to individual differences. In addition, since the state and position of the headphones are different for each person, the dedicated management application in the headphone management device can record the acceleration and angular velocity values detected by the acceleration detection module during multiple wearings. Then, through AI learning, it can adjust the gravitational acceleration and angular velocity values of the acceleration detection module. For example, when a user's unique head movement habits or headphone wearing angle are detected, the judgment standard of gravitational acceleration can be adjusted accordingly to make the wearing and removing judgment more consistent with the user's actual usage scenario. In other words, the main control module can adjust the preset threshold used by the infrared detection module to determine the wearing and removing status, as well as the gravitational acceleration and angular velocity values of the acceleration detection module, by configuring and updating information.
[0069] In some embodiments of this application, the ambient light detection module includes an ultraviolet light sensor for detecting ultraviolet light intensity; the main control module is also used to trigger an ultraviolet light exposure reminder based on the ultraviolet light intensity.
[0070] In this embodiment, the ambient light detection module may include an ultraviolet (UV) light sensor in addition to the ambient light sensor. The UV light sensor is used to detect UV light intensity, monitors UV light intensity in real time, and transmits the UV light intensity data to the main control module through the first bus interface. The main control module can then determine whether the current ambient UV light intensity is too high based on the UV light intensity data, and trigger a UV exposure warning when the ambient UV light intensity is too high, allowing the user to take timely protective measures.
[0071] In some embodiments of this application, the headphone wearing / removal detection circuit includes an acceleration detection module with a second interrupt pin connected to the main control module, which is used to trigger a corresponding second interrupt inside the main control module according to the detected motion state of the headphones.
[0072] refer to Figure 5 In this embodiment, the acceleration detection module also includes an interrupt pin connected to the main control module, namely the second interrupt pin 6-axis_INT. Thus, the acceleration detection module can communicate with the main control module through the first bus interface, and can also trigger a corresponding second interrupt within the main control module based on the detected motion state of the earphone via the second interrupt pin 6-axis_INT. For example, the acceleration detection module can trigger the corresponding second interrupt within the main control module via the second interrupt pin 6-axis_INT when it detects that the earphone is being worn; or it can trigger the corresponding second interrupt within the main control module via the second interrupt pin 6-axis_INT when it detects that the earphone is not being worn; or it can trigger the corresponding second interrupt within the main control module via the second interrupt pin 6-axis_INT when the acceleration detection module detects that the earphone is being worn, not worn, or that the motion state has changed. The second interrupt can substantially include multiple different interrupts, and the acceleration detection module can trigger the corresponding interrupt based on the actual detected motion state of the earphone.
[0073] For example, when the acceleration detection module detects a specific motion pattern, such as the free fall motion of the headphones suddenly falling, a continuous static state, or a rotational motion at a specific angle, the acceleration detection module can immediately evaluate whether the current motion characteristics meet the preset interrupt triggering conditions. If they do, it will send a hardware interrupt signal to the main control module through the second interrupt pin 6-axis_INT.
[0074] In this embodiment, the acceleration detection module supports configurable trigger condition settings, and the sensitivity of interrupt triggering and motion judgment threshold can be adjusted according to different headphone shapes.
[0075] In some embodiments of this application, the ambient light detection module includes a third interrupt pin connected to the main control module, which is used to trigger the corresponding third interrupt inside the main control module according to the ambient light intensity.
[0076] refer to Figure 5In this embodiment, the ambient light detection module also includes an interrupt pin connected to the main control module, namely the third interrupt pin ALS_INT. Thus, the ambient light detection module can communicate with the main control module through the first bus interface, and can also trigger a corresponding third interrupt within the main control module based on the ambient light intensity via the third interrupt pin ALS_INT. For example, the ambient light detection module may trigger a corresponding third interrupt within the main control module via the third interrupt pin ALS_INT when it detects that the ambient light intensity exceeds a corresponding preset threshold range. Here, the second interrupt is the interrupt when the ambient light intensity exceeds the corresponding preset threshold range. Alternatively, the ambient light detection module may trigger a corresponding third interrupt within the main control module via the third interrupt pin ALS_INT when it detects that the ambient light intensity is below the corresponding preset threshold range. Here, the third interrupt is the interrupt when the ambient light intensity is below the corresponding preset threshold range. Furthermore, the ambient light detection module may trigger a corresponding third interrupt within the main control module via the third interrupt pin ALS_INT when it detects that the ambient light intensity exceeds, is below, or is within the corresponding preset threshold range. The third interrupt may substantially include multiple different interrupts, and the ambient light detection module can trigger the corresponding interrupt based on the actual ambient light intensity.
[0077] A second aspect of this application provides an earphone that includes any of the above-described removal / wearing detection circuits.
[0078] The embodiments of this application have been described in detail above with reference to the accompanying drawings. However, this application is not limited to the above embodiments. Within the scope of knowledge possessed by those skilled in the art, various changes can be made without departing from the spirit of this application.
[0079] In the several embodiments provided in this application, it should be understood that the disclosed systems, instruments, and methods can be implemented in other ways. For example, the instrument embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the shown or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between instruments or units may be electrical, mechanical, or other forms. Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, i.e., they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0080] It should also be understood that the various implementation methods provided in this application can be combined arbitrarily to achieve different technical effects.
[0081] The embodiments of this application have been described in detail above with reference to the accompanying drawings. However, this application is not limited to the above embodiments. Within the scope of knowledge possessed by those skilled in the art, various changes can be made without departing from the spirit of this application.
Claims
1. A detection circuit for wearing / removing headphones, characterized in that, include: The infrared detection module is used to emit infrared light and detect the intensity of infrared light. An acceleration detection module is used to detect the motion state of the headphones; Ambient light detection module, used to detect ambient light intensity; The main control module is electrically connected to the infrared detection module, the acceleration detection module, and the ambient light detection module through the first bus interface. The main control module is used to adjust the transmission power of the infrared detection module according to the ambient light intensity, and to determine the wearing / unwearing state of the earphone according to the motion state of the earphone and the infrared light intensity.
2. The headphone wearing / removal detection circuit according to claim 1, characterized in that, The infrared detection module includes a first interrupt pin connected to the main control module, which is used to trigger a corresponding first interrupt inside the main control module when the detected infrared light intensity meets a preset threshold. The main control module is also used to determine that the earphone is being worn when the first interrupt is triggered and the acceleration detection module detects that the earphone is being worn.
3. The headphone wearing / removal detection circuit according to claim 2, characterized in that, The main control module is also used to adjust the preset threshold of the infrared detection module through the first bus interface according to the adjustment value of the infrared detection module's transmission power.
4. The headphone wearing / removal detection circuit according to claim 2, characterized in that, The main control module is also used to adjust the conditions for the infrared detection module to trigger the first interrupt based on the motion state of the earphone via the first bus interface.
5. The headphone wearing / removal detection circuit according to claim 2, characterized in that, The main control module is also used to determine that the earphone is not being worn when the first interrupt is triggered and the acceleration detection module does not detect that the earphone is being worn, and to determine that the earphone is not being worn when the first interrupt is not triggered and the acceleration detection module detects that the earphone is being worn.
6. The headphone wearing / removal detection circuit according to claim 1, characterized in that, It also includes a communication module, which is connected to an earphone management device that communicates with the earphone. The main control module is also used to adjust the detection parameters of the infrared detection module and the detection parameters of the acceleration detection module through the configuration update information obtained by the communication module.
7. The headphone wearing / removal detection circuit according to claim 1, characterized in that, The ambient light detection module includes an ultraviolet light sensor for detecting ultraviolet light intensity; the main control module is also used to trigger an ultraviolet light exposure reminder based on the ultraviolet light intensity.
8. The headphone wearing / removal detection circuit according to claim 1, characterized in that, The acceleration detection module includes a second interrupt pin connected to the main control module, which is used to trigger a corresponding second interrupt inside the main control module based on the detected motion state of the earphone.
9. The headphone wearing / removal detection circuit according to claim 1, characterized in that, The ambient light detection module includes a third interrupt pin connected to the main control module, which is used to trigger the corresponding third interrupt inside the main control module according to the ambient light intensity.
10. An earphone, characterized in that, Includes the headphone wearing / removal detection circuit as described in any one of claims 1 to 9.