Distance sensing device and electronic device

By combining audio signal mixing and frequency division technology with temperature compensation, the problem of traditional distance sensing devices being affected by ambient light and temperature is solved, achieving high-precision distance measurement and auditory experience, and is suitable for thin and light devices.

CN225032217UActive Publication Date: 2026-11-27IFLYTEK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202522701724.5
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2025-12-19
Publication Date
2026-11-27
Estimated Expiration
2035-12-19

AI Technical Summary

Technical Problem

Traditional distance sensing devices are greatly affected by ambient light, have low measurement accuracy, and fail to measure in dark or bright light environments. They are also bulky and difficult to integrate into thin and light devices. Multipath interference and temperature drift lead to large errors in distance measurement results.

Method used

Distance measurement is performed using audio signals. Audio signals of different frequencies are output through the first and second audio transmitting circuits, mixed and amplified, and then divided by frequency. The distance is calculated by timing with the control circuit and multiplying by the preset speed. The preset speed is adjusted by the temperature sensing circuit to improve measurement accuracy.

Benefits of technology

It achieves high-precision distance measurement unaffected by ambient light and temperature, provides a better auditory experience, and is suitable for thin and light devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN225032217U_ABST
    Figure CN225032217U_ABST
Patent Text Reader

Abstract

The application discloses a distance sensing device and electronic equipment, comprising: a first audio emitting circuit, a second audio emitting circuit, an analog mixing circuit, an audio power amplifier circuit, an audio frequency dividing circuit, a first audio playing circuit, a second audio playing circuit, an audio receiving circuit and a control circuit. The first audio emitting circuit outputs a first audio signal, the second audio emitting circuit outputs a second audio signal, the time from triggering the first audio emitting circuit to receiving the reflected audio signal is counted, and the time is multiplied by a preset speed to obtain the distance between the external object and the distance sensing device. The above scheme can measure the distance without being affected by environmental light and temperature, obtain a more accurate distance measurement result, and provide a better auditory experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of sensor technology, and in particular to a distance sensing device and electronic device. Background Technology

[0002] With the development of technology and people's increasing demands for quality of life, consumer electronics have become an indispensable part of modern society. Sensors, as a crucial component of consumer electronics, directly impact product quality and user experience through their performance and reliability. Traditional distance sensing devices typically use infrared or laser methods for distance measurement, but these methods have limitations, such as being significantly affected by environmental and lighting conditions, and having relatively low measurement accuracy. Utility Model Content

[0003] This application provides at least one distance sensing device and electronic device to solve the above-mentioned problems.

[0004] This application provides a distance sensing device, comprising: a first audio transmitting circuit for outputting a first audio signal; a second audio transmitting circuit for outputting a second audio signal, wherein the frequency of the second audio signal is less than the frequency of the first audio signal; an analog mixing circuit connected to the first and second audio transmitting circuits for mixing the first and second audio signals to output a mixed audio signal; an audio power amplifier circuit connected to the analog mixing circuit for power amplifying the mixed audio signal; an audio frequency divider circuit connected to the audio power amplifier circuit for frequency division of the amplified mixed audio signal to obtain an amplified first audio signal and an amplified second audio signal; and a first audio playback circuit connected to the analog mixing circuit. An audio frequency divider circuit is connected to play the amplified first audio signal; a second audio playback circuit is connected to the audio frequency divider circuit to play the amplified second audio signal; an audio receiving circuit is used to receive a reflected audio signal, which is the amplified first audio signal reflected by an external object; a control circuit is connected to the first audio transmitting circuit, the second audio transmitting circuit, and the audio receiving circuit, and is used to trigger the first audio transmitting circuit to output the first audio signal, trigger the second audio transmitting circuit to output the second audio signal, time the time from triggering the first audio transmitting circuit to receiving the reflected audio signal, and multiply the time by a preset speed to obtain the distance between the external object and the distance sensing device.

[0005] In some embodiments, the distance sensing device further includes a temperature sensing circuit connected to the control circuit; wherein the control circuit is further configured to determine the preset speed based on the temperature sensed by the temperature sensing circuit.

[0006] In some embodiments, the temperature sensing circuit includes a first chip, a first resistor, a second resistor, and a diode; wherein, a first terminal of the first chip is connected to the control circuit, and a second terminal of the first chip is grounded; one end of the first resistor is connected to a third terminal of the first chip, and the other end of the first resistor is connected to a first terminal of the first chip; one end of the second resistor is connected to a third terminal of the first chip, and one end of the second resistor is connected to the positive terminal of the diode; the negative terminal of the diode is grounded.

[0007] In some embodiments, the control circuit is also connected to the audio amplifier circuit for determining the gain of the audio amplifier circuit based on the distance between the external object and the distance sensing device.

[0008] In some embodiments, the control circuit includes a first audio trigger, a second audio trigger, a timer, a speed selector, and a multiplier; wherein the first audio trigger is connected to the first audio transmitting circuit; the second audio trigger is connected to the second audio transmitting circuit; a first terminal of the timer is connected to the first audio trigger, and a second terminal of the timer is connected to the audio receiving circuit; the multiplier is connected to both the timer and the speed selector.

[0009] In some embodiments, the audio crossover circuit includes a high-pass filter and a low-pass filter; wherein one end of the high-pass filter is connected to the audio power amplifier circuit, and the other end of the high-pass filter is connected to the first audio playback circuit; one end of the low-pass filter is connected to the audio power amplifier circuit, and the other end of the low-pass filter is connected to the second audio playback circuit.

[0010] In some embodiments, the analog mixing circuit includes a first operational amplifier; wherein the inverting input of the first operational amplifier is connected to the first audio transmitting circuit and the second audio transmitting circuit, respectively, the non-inverting input of the first operational amplifier is grounded, and the output of the first operational amplifier is connected to the audio power amplifier circuit.

[0011] In some embodiments, the first audio transmitting circuit includes a second chip, a first capacitor, a second capacitor, and a crystal oscillator; wherein, a first terminal of the second chip is connected to the control circuit, and a second terminal of the second chip is connected to the analog mixing circuit; a third and a fourth terminal of the second chip are grounded; a fifth terminal of the second chip is connected to one end of the crystal oscillator, and a sixth terminal of the second chip is connected to the other end of the crystal oscillator; one end of the first capacitor is connected to one end of the crystal oscillator, and the other end of the first capacitor is grounded; one end of the second capacitor is connected to the other end of the crystal oscillator, and the other end of the second capacitor is grounded.

[0012] In some embodiments, the audio receiving circuit further includes a first audio receiver, a second operational amplifier, a third resistor, a fourth resistor, a fifth resistor, and a sixth resistor; wherein, the non-inverting input terminal of the second operational amplifier is connected to one end of the third resistor and one end of the fourth resistor, respectively; the inverting input terminal of the second operational amplifier is connected to one end of the fifth resistor and one end of the sixth resistor, respectively; the first output terminal and the second output terminal of the second operational amplifier are both connected to the control circuit; the other end of the third resistor is connected to the first audio receiver; the other end of the fourth resistor is connected to the first output terminal of the second operational amplifier; the other end of the fifth resistor is connected to the first audio receiver; and the other end of the sixth resistor is connected to the second output terminal of the second operational amplifier.

[0013] A second aspect of this application provides an electronic device, including the distance sensing device as described in the first aspect.

[0014] The beneficial effects of this application are as follows: by triggering the first audio transmitting circuit to output the first audio signal and triggering the second audio transmitting circuit to output the second audio signal, the time from triggering the first audio transmitting circuit to receiving the reflected audio signal is timed, and the time is multiplied by the preset speed to obtain the distance between the external object and the distance sensing device. This enables distance measurement without being affected by ambient light and temperature, resulting in more accurate distance measurement results and providing a better auditory experience.

[0015] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this application. Attached Figure Description

[0016] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the specification, serve to explain the technical solutions of this application.

[0017] Figure 1 This is a schematic diagram of the structure of the distance sensing device according to an embodiment of this application. Figure 1 ; Figure 2 This is a schematic diagram of the structure of the distance sensing device according to an embodiment of this application. Figure 2 ; Figure 3 This is a circuit diagram of the temperature sensing circuit according to an embodiment of this application; Figure 4 This is a schematic diagram of the control circuit according to an embodiment of this application; Figure 5 This is a schematic diagram of the audio frequency division circuit according to an embodiment of this application; Figure 6 This is a circuit diagram of the analog mixing circuit according to an embodiment of this application; Figure 7 This is a circuit diagram of the first audio transmission circuit according to an embodiment of this application; Figure 8 This is a circuit diagram of the audio receiving circuit according to an embodiment of this application; Figure 9 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Detailed Implementation

[0018] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0019] In this document, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects are in an "or" relationship. Furthermore, "many" in this document means two or more. Additionally, the term "at least one" in this document means any combination of at least two of any one or more of a plurality of objects. For example, including at least one of A, B, and C can mean including any one or more elements selected from the set consisting of A, B, and C. Furthermore, the terms "first," "second," and "third" in this application are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features.

[0020] To enable those skilled in the art to better understand the technical solution of this application, the technical solution of this application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0021] When using infrared or laser methods for distance measurement, variations in light conditions can lead to significant errors in the measurement results, and measurements may fail in dark or bright light environments. Furthermore, infrared distance measurement devices are bulky and difficult to integrate into slim and lightweight devices. In addition, multipath interference and temperature drift can also interfere with distance measurement, resulting in substantial errors in the final measurement.

[0022] Therefore, this application provides a distance sensing device and an electronic device to solve the above-mentioned problems.

[0023] Please see Figure 1 , Figure 1 This is a schematic diagram of the structure of the distance sensing device according to an embodiment of this application. Figure 1 .like Figure 1 As shown, the distance sensing device 10 includes a control circuit 100, a first audio transmitting circuit 110, a second audio transmitting circuit 120, an analog mixing circuit 130, an audio power amplifier circuit 140, an audio frequency divider circuit 150, a first audio playback circuit 160, a second audio playback circuit 170, and an audio receiving circuit 180. Specifically, the first audio transmitting circuit 110 outputs a first audio signal; the second audio transmitting circuit 120 outputs a second audio signal, wherein the frequency of the second audio signal is lower than the frequency of the first audio signal; the analog mixing circuit 130, connected to the first and second audio transmitting circuits 110 and 120, mixes the first and second audio signals to output a mixed audio signal; the audio power amplifier circuit 140, connected to the analog mixing circuit 130, amplifies the power of the mixed audio signal; the audio frequency divider circuit 150, connected to the audio power amplifier circuit 140, divides the amplified mixed audio signal to obtain amplified first and second audio signals; and the first audio playback circuit 160, connected to the audio frequency divider circuit... The system includes: a 150-connection circuit for playing the amplified first audio signal; a second audio playback circuit 170 connected to the audio frequency divider circuit 150 for playing the amplified second audio signal; an audio receiving circuit 180 for receiving the reflected audio signal, which is the amplified second audio signal reflected by an external object; and a control circuit 100 connected to the first audio transmitting circuit 110, the second audio transmitting circuit 120, and the audio receiving circuit 180. The control circuit 100 triggers the first audio transmitting circuit 110 to output the first audio signal, triggers the second audio transmitting circuit 120 to output the second audio signal, times the time from triggering the first audio transmitting circuit 110 to receiving the reflected audio signal, and multiplies the time by a preset speed to obtain the distance between the external object and the distance sensing device 10.

[0024] The first audio transmitting circuit 110 is an electronic circuit that transmits a first audio signal, such as an ultrasonic signal. The second audio transmitting circuit 120 is an electronic circuit that transmits a second audio signal, such as an audio signal. The analog mixing circuit 130 is an electronic circuit that linearly superimposes two signals to combine them into a single output signal. The audio power amplifier circuit 140 is an electronic circuit used to amplify the power of the audio signal. The audio frequency divider circuit 150 is an electronic circuit that divides a single audio signal into multiple audio signals of different frequencies. The first audio playback circuit 160 is an electronic circuit that outputs an audio signal of a specific frequency, such as a frequency above 20kHz, for example, 40kHz. The second audio playback circuit 170 is an electronic circuit that outputs an audio signal of a specific frequency, such as 20Hz-20kHz. The audio receiving circuit 180 is an electronic circuit used to receive, demodulate, and reconstruct the audio signal. The control circuit 100 is a device used to receive input signals, process signals, and output signals.

[0025] The control circuit 100 is connected to the first audio transmitting circuit 110 and sends an ultrasonic trigger signal to the first audio transmitting circuit 110, thereby causing the first audio transmitting circuit 110 to transmit a first audio signal, for example, an ultrasonic signal with a frequency of 40kHz. The control circuit 100 is also connected to the second audio transmitting circuit 120 and sends an audio trigger signal to the second audio transmitting circuit 120, thereby causing the second audio transmitting circuit 120 to transmit a second audio signal, for example, an audio signal with a frequency between 20Hz and 20kHz. The frequency of the second audio signal is lower than the frequency of the first audio signal.

[0026] The first audio transmitting circuit 110 is connected to the second audio transmitting circuit 120. When the first audio transmitting circuit 110 receives an ultrasonic trigger signal, it outputs a first audio signal to the first input terminal of the analog mixing circuit 130. At the same time, when the second audio transmitting circuit 120 receives an audio trigger signal, it outputs a second audio signal to the second input terminal of the analog mixing circuit 130.

[0027] After receiving a first audio signal at its first input terminal and a second audio signal at its second input terminal, the analog mixing circuit 130 mixes the two signals to output a mixed audio signal. The analog mixing circuit 130 is connected to the audio amplifier circuit 140, and its output terminal sends the mixed audio signal to the audio amplifier circuit 140. The audio amplifier circuit 140 amplifies the mixed audio signal and outputs the amplified mixed audio signal. The audio crossover circuit 150 is connected to the audio amplifier circuit 140, receives the amplified mixed audio signal, and divides the amplified mixed audio signal to obtain amplified first audio signal and amplified second audio signal.

[0028] The first audio playback circuit 160 is connected to the audio frequency divider circuit 150. It receives the amplified first audio signal output from the audio frequency divider circuit 150 and plays it, thus spreading the first audio signal into the surrounding environment. The second audio playback circuit 170 is connected to the audio frequency divider circuit 150. It receives the amplified second audio signal output from the audio frequency divider circuit 150 and plays it, allowing the user to hear sound. The amplified first audio signal is reflected by an external object to obtain a reflected audio signal. After receiving the reflected audio signal, the audio receiving circuit 180 amplifies the reflected audio signal and outputs it to the control circuit 100.

[0029] The control circuit 100 records the time from the triggering of the first audio transmitting circuit 110 to the receipt of the reflected audio signal, that is, it times the time from the triggering of the first audio transmitting circuit 110 to the receipt of the reflected audio signal. Multiplying the time by a preset speed, the distance between the external object and the distance sensing device 10 is obtained.

[0030] In some examples, the first audio playback circuit 160 may be an ultrasonic probe for outputting a first audio signal. For example, the ultrasonic probe may be a Baihenghui BHH1612-40KTR model ultrasonic probe, which can radiate the first audio signal to the surrounding environment.

[0031] In some examples, the second audio playback circuit 170 may be a speaker for outputting a second audio signal so that the user can hear the sound. For example, the speaker may be a full-range speaker for playing a second audio signal with a frequency in the range of 20Hz-20kHz.

[0032] By triggering the first audio transmitting circuit 110 to output a first audio signal and triggering the second audio transmitting circuit 120 to output a second audio signal, the time from triggering the first audio transmitting circuit 110 to receiving the reflected audio signal is timed, and the time is multiplied by a preset speed to obtain the distance between the external object and the distance sensing device 10. This enables distance measurement without being affected by ambient light and temperature, resulting in more accurate distance measurement results and providing a better auditory experience.

[0033] In some embodiments, Figure 2 This is a schematic diagram of the structure of the distance sensing device according to an embodiment of this application. Figure 2 .like Figure 2 As shown, the distance sensing device 10 also includes a temperature sensing circuit 190, wherein the temperature sensing circuit 190 is connected to the control circuit 100, and the control circuit 100 is also used to determine a preset speed based on the temperature sensed by the temperature sensing circuit 190.

[0034] Temperature sensing circuit 190 refers to an electronic circuit that can convert temperature into an electrical signal that can be measured, processed, and transmitted in real time.

[0035] The temperature sensing circuit 190 is connected to the control circuit 100, and outputs the sensed temperature. The control circuit 100 determines a preset speed based on the received temperature. For example, the speed is 343 m / s when the temperature is 20 degrees Celsius, 331 m / s when the temperature is 0 degrees Celsius, and 319 m / s when the temperature is -20 degrees Celsius. The control circuit 100 stores the preset speeds based on different temperatures. When the control circuit 100 receives a specific temperature sensed by the temperature sensing circuit 190, it determines the preset speed corresponding to that specific temperature.

[0036] In some embodiments, Figure 3 This is a circuit diagram of a temperature sensing circuit according to an embodiment of this application. Figure 3 As shown, the temperature sensing circuit 190 includes a first chip U1, a first resistor R1, a second resistor R2, and a diode D1; wherein, the first terminal of the first chip U1 is connected to the control circuit 100, and the second terminal of the first chip U1 is grounded; one terminal of the first resistor R1 is connected to the third terminal of the first chip U1, and the other terminal of the first resistor R1 is connected to the first terminal of the first chip U1; one terminal of the second resistor R2 is connected to the third terminal of the first chip U1, and the other terminal of the second resistor R2 is connected to the positive terminal of the diode D1; the negative terminal of the diode D1 is grounded.

[0037] The second resistor R2 and diode D1 are used to indicate the operating state of the temperature sensing circuit 190. For example, diode D1 is a light-emitting diode (LED). When the indicator light is constantly on, it indicates that the temperature sensing circuit 190 has started working; when the indicator light is off, it indicates that the temperature sensing circuit 190 has stopped working. P2 represents the port connected to one end of the second resistor R2, and P1 represents the port connected to the control circuit 100. The first terminal of the first chip U1 can serve as the output terminal of the temperature sensing circuit 190, connected to pin 2 of P1, outputting the sensed temperature to the control circuit 100, enabling bidirectional communication between the temperature sensing circuit 190 and the control circuit 100.

[0038] In some examples, the first chip U1 can be a temperature sensor chip, such as a DS18B20 chip. Pin 2 of the first chip U1 is connected to the control circuit 100, pin 1 of the first chip U1 is grounded, one end of the first resistor R1 is connected to pin 3 of the first chip U1, and the other end of the first resistor R1 is connected to pin 2 of the first chip U1; one end of the second resistor R2 is connected to pin 3 of the first chip U1, and one end of the second resistor R2 is connected to the positive terminal of the diode D1; the negative terminal of the diode D1 is grounded.

[0039] In some embodiments, such as Figure 2 As shown, the control circuit 100 is also connected to the audio amplifier circuit 140 to determine the gain of the audio amplifier circuit 140 based on the distance between the external object and the distance sensing device 10.

[0040] The control circuit 100 is connected to the audio amplifier circuit 140. The control circuit 100 determines the gain of the audio amplifier circuit 140 based on the distance between the external object and the distance sensing device 10, thereby determining the gain of the first audio playback circuit 160 and the second audio playback circuit 170. For example, the gain increases by 6dB for every doubling of the distance. Specifically, the gain can be 10dB when the distance is 0.3 meters, and 16dB when the distance is 0.6 meters. That is, the radiated power of the first audio playback circuit 160 and the gain of the second audio playback circuit 170 decrease when used at close range, and the radiated power of the first audio playback circuit 160 and the gain of the second audio playback circuit 170 increase when used at a long distance.

[0041] Control circuit 100 determines the gain of audio amplifier circuit 140 based on the distance between an external object and distance sensing device 10. In some examples, control circuit 100 may include a controller (not shown) and a memory and gain selector (not shown) connected to the controller. The memory stores different distances and mapping tables between different distances and different gains. When the controller obtains the distance between the external object and distance sensing device 10, it controls the gain selector to determine the gain corresponding to that distance from the memory, thereby determining and outputting the gain corresponding to that distance to audio amplifier circuit 140. Alternatively, when the controller obtains the distance between an external device and distance sensing device 10, it determines the gain corresponding to that distance from the memory, thereby outputting the gain corresponding to that distance to audio amplifier circuit 140. For example, the controller may be an MCU.

[0042] In some embodiments, Figure 4 This is a schematic diagram of the control circuit according to an embodiment of this application. The control circuit 100 includes a first audio trigger 101, a second audio trigger 102, a timer 103, a speed selector 104, and a multiplier 105. The first audio trigger 101 is connected to the first audio transmitting circuit 110; the second audio trigger 102 is connected to the second audio transmitting circuit 120; the first terminal of the timer 103 is connected to the first audio trigger 101, and the second terminal of the timer 103 is connected to the audio receiving circuit 180; the multiplier 105 is connected to the timer 103 and the speed selector 104 respectively.

[0043] The first audio trigger 101 sends an ultrasonic trigger signal to the first audio transmitting circuit 110 to trigger the first audio transmitting circuit 110 to transmit a first audio signal. The second audio trigger 102 sends an audio trigger signal to the second audio transmitting circuit 120 to trigger the second audio transmitting circuit 120 to transmit a second audio signal. The timer 103 is used to time the time from triggering the first audio transmitting circuit 110 to receiving the reflected audio signal. Based on the temperature sensed by the temperature sensing circuit 190, the speed selector 104 is used to determine a preset speed. The multiplier 105 is used to multiply the time by the preset speed to obtain the distance between the external object and the distance sensing device 10.

[0044] The control circuit 100 may further include a controller (not shown in the figure) and a memory (not shown in the figure) connected to the controller. The memory stores different temperatures and mapping tables between different temperatures and different speeds. For example, the controller may be an MCU. The controller controls the operation of the first audio trigger 101, the second audio trigger 102, the timer 103, and the speed selector 104. The controller controls the first audio trigger 101 to send an ultrasonic trigger signal to the first audio transmitting circuit 110, triggering the first audio transmitting circuit 110 to transmit a first audio signal. The controller controls the second audio trigger 102 to send an audio trigger signal to the second audio transmitting circuit 120, triggering the second audio transmitting circuit 120 to transmit a second audio signal. The controller controls the timer 103 to count the time from triggering the first audio transmitting circuit 110 to receiving the reflected audio signal. Upon receiving the temperature sensed by the temperature sensing circuit 190, the controller controls the speed selector 104 to determine the speed corresponding to that temperature from the memory as a preset speed, thereby determining and outputting the preset speed to the multiplier 105. Alternatively, upon receiving the temperature sensed by the temperature sensing circuit 190, the controller determines the speed corresponding to that temperature from the memory as a preset speed, thereby outputting the preset speed to the multiplier 105. The controller controls the multiplier 105 to operate, thereby multiplying the time by the preset speed to obtain the distance between the external object and the distance sensing device 10.

[0045] In some examples, the control circuit 100 and the second audio transmitting circuit 120 can be integrated into a single integrated circuit. In this case, the integrated circuit is connected to the analog mixing circuit 130. The integrated circuit outputs a second audio signal to the analog mixing circuit 130, and the first audio transmitting circuit 110 outputs a first audio signal to the analog mixing circuit 130. The analog mixing circuit 130 performs a mixing operation on the two signals to obtain a mixed audio signal.

[0046] In some embodiments, Figure 5 This is a schematic diagram of the audio frequency division circuit according to an embodiment of this application. Figure 5 As shown, the audio crossover circuit 150 includes a high-pass filter 151 and a low-pass filter 152; one end of the high-pass filter 151 is connected to the audio power amplifier circuit 140, and the other end of the high-pass filter 151 is connected to the first audio playback circuit 160; one end of the low-pass filter 152 is connected to the audio power amplifier circuit 140, and the other end of the low-pass filter 152 is connected to the second audio playback circuit 170.

[0047] The audio amplifier circuit 140 is connected to one end of the high-pass filter 151. The audio amplifier circuit 140 outputs an amplified mixed audio signal. One end of the high-pass filter 151 receives the amplified mixed audio signal and filters it to obtain an amplified first audio signal. The frequency range of the high-pass filter 151 can be greater than 20kHz. The other end of the high-pass filter 151 outputs the amplified first audio signal. The first audio playback circuit 160 receives the amplified first audio signal and plays it.

[0048] The audio amplifier circuit 140 is connected to one end of the low-pass filter 152. The audio amplifier circuit 140 outputs an amplified mixed audio signal. One end of the low-pass filter 152 receives the amplified mixed audio signal and filters it to obtain an amplified second audio signal. The frequency range of the low-pass filter 152 can be 20Hz-20kHz. The other end of the low-pass filter 152 outputs the amplified second audio signal. The second audio playback circuit 170 receives the amplified second audio signal and plays it.

[0049] In some examples, the audio power amplifier circuit 140 and the audio frequency divider circuit 150 can be integrated into a single integrated circuit. This integrated circuit amplifies and divides the mixed audio signal to obtain an amplified first audio signal and an amplified second audio signal. The amplified first audio signal is output to the first audio playback circuit 160, and the amplified second audio signal is output to the second audio playback circuit 170.

[0050] In some embodiments, Figure 6 This is a circuit diagram of the analog mixing circuit according to an embodiment of this application. Figure 6 As shown, the analog mixing circuit 130 includes a first operational amplifier Q1; wherein, the inverting input terminal of the first operational amplifier Q1 is connected to the first audio transmitting circuit 110 and the second audio transmitting circuit 120 respectively, the non-inverting input terminal of the first operational amplifier Q1 is grounded, and the output terminal of the first operational amplifier Q1 is connected to the audio power amplifier circuit 140.

[0051] The first audio transmitting circuit 110 outputs a first audio signal, and the second audio transmitting circuit 120 outputs a second audio transmitting signal. The analog mixing circuit 130 linearly superimposes the first and second audio signals to obtain a mixed audio signal; that is, the first operational amplifier Q1 can act as an adder to perform the mixing operation of the two signals. By using the first operational amplifier Q1 to perform the mixing operation of the two signals, no signal delay or distortion occurs.

[0052] In some embodiments, Figure 7This is a circuit diagram of the first audio transmission circuit according to an embodiment of this application. Figure 7 As shown, the first audio transmitting circuit 110 includes a second chip U2, a first capacitor C1, a second capacitor C2, and a crystal oscillator Y1. The first terminal of the second chip U2 is connected to the control circuit 100, and the second terminal of the second chip U2 is connected to the analog mixing circuit 130. The third and fourth terminals of the second chip U2 are grounded. The fifth terminal of the second chip U2 is connected to one end of the crystal oscillator Y1, and the sixth terminal of the second chip U2 is connected to the other end of the crystal oscillator Y1. One end of the first capacitor C1 is connected to one end of the crystal oscillator Y1, and the other end of the first capacitor C1 is grounded. One end of the second capacitor C2 is connected to the other end of the crystal oscillator Y1, and the other end of the second capacitor C2 is grounded.

[0053] The control circuit 100 sends an ultrasonic trigger signal to the first audio transmitting circuit 110. The first audio transmitting circuit 110 receives the ultrasonic trigger signal and then transmits a first audio signal. For example, the first audio transmitting circuit 110 can transmit eight 40kHz square waves.

[0054] In some examples, the second chip U2 can be an ultrasonic drive control chip, for example, the second chip U2 can be a CS100A_SOP16 chip. Pin 8 of the second chip U2 is connected to the control circuit 100, and pin 7 of the second chip U2 is connected to the analog mixing circuit 130; pins 3 and 12 of the second chip U2 are grounded; pin 13 of the second chip U2 is connected to one end of the crystal oscillator Y1, and pin 14 of the first chip U1 is connected to the other end of the crystal oscillator Y1; one end of the first capacitor C1 is connected to one end of the crystal oscillator Y1, and the other end of the first capacitor C1 is grounded; one end of the second capacitor C2 is connected to the other end of the crystal oscillator Y1, and the other end of the second capacitor C2 is grounded.

[0055] In some embodiments, Figure 8 This is a circuit diagram of the audio receiving circuit according to an embodiment of this application. Figure 8As shown, the audio receiving circuit 180 also includes a first audio receiver 181, a second operational amplifier Q2, a third resistor R3, a fourth resistor R4, a fifth resistor R5, and a sixth resistor R6. The non-inverting input of the second operational amplifier Q2 is connected to one end of the third resistor R3 and one end of the fourth resistor R4, respectively. The inverting input of the second operational amplifier Q2 is connected to one end of the fifth resistor R5 and one end of the sixth resistor R6, respectively. Both the first and second outputs of the second operational amplifier Q2 are connected to the control circuit 100. The other end of the third resistor R3 is connected to the first audio receiver 181. The other end of the fourth resistor R4 is connected to the first output of the second operational amplifier Q2. The other end of the fifth resistor R5 is connected to the first audio receiver 181. The other end of the sixth resistor R6 is connected to the second output of the second operational amplifier Q2.

[0056] The first audio receiver 181 receives the reflected audio signal and outputs it to the second operational amplifier Q2. Through differential operation of the second operational amplifier Q2, the dynamic range and noise suppression capability of the reflected audio signal are increased. The reflected audio signal is then amplified by the second operational amplifier Q2 and output to the control circuit 100.

[0057] In some examples, the first audio receiver 181 may be an ultrasonic microphone that receives reflected audio signals and outputs the reflected audio signals to a second operational amplifier Q2. The differential output of the second operational amplifier Q2 is then sent to the control circuit 100. For example, the ultrasonic microphone may be a Knowles SPH0641LU4H-1 ultrasonic microphone with an operating frequency range of 100Hz-80kHz.

[0058] Please see Figure 9 , Figure 9 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. The electronic device 20 includes the distance sensing device 10 in the above embodiments. The structure and circuit connection relationship of the distance sensing device 10 are detailed in the above embodiments.

[0059] In some examples, electronic device 20 may be an electronic system composed of electronic circuits and integrating multiple sensors, wherein distance sensing device 10 is integrated into electronic device, and electronic device 20 may be a learning machine, smart glasses, etc.

[0060] In some embodiments, the functions or modules of the apparatus provided in this disclosure can be used to perform the methods described in the above method embodiments. The specific implementation can be referred to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.

[0061] The description of the various embodiments above tends to emphasize the differences between the various embodiments. The similarities or similarities between them can be referred to, and for the sake of brevity, they will not be repeated here.

[0062] In the several embodiments provided in this application, it should be understood that the disclosed methods and apparatus can be implemented in other ways. For example, the apparatus implementations described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be electrical, mechanical, or other forms.

[0063] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0064] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods of various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0065] Those skilled in the art will readily recognize that numerous modifications and variations can be made to the apparatus and method while maintaining the teachings of this application. Therefore, the above disclosure should be considered limited only by the scope of the appended claims.

Claims

1. A distance sensing device, characterized in that, The distance sensing device includes: A first audio transmitting circuit is used to output a first audio signal; A second audio transmitting circuit is used to output a second audio signal, wherein the frequency of the second audio signal is less than the frequency of the first audio signal; An analog mixing circuit, connected to the first audio transmitting circuit and the second audio transmitting circuit, is used to mix the first audio signal and the second audio signal to output a mixed audio signal; An audio power amplifier circuit, connected to the analog mixing circuit, is used to amplify the power of the mixed audio signal; An audio frequency division circuit, connected to the audio power amplifier circuit, is used to divide the amplified mixed audio signal to obtain the amplified first audio signal and the amplified second audio signal. A first audio playback circuit is connected to the audio frequency division circuit and is used to play the amplified first audio signal. The second audio playback circuit is connected to the audio frequency division circuit and is used to play the amplified second audio signal. An audio receiving circuit is used to receive reflected audio signals, wherein the reflected audio signals are the amplified first audio signal reflected by an external object; A control circuit, connected to the first audio transmitting circuit, the second audio transmitting circuit, and the audio receiving circuit, is used to trigger the first audio transmitting circuit to output the first audio signal, trigger the second audio transmitting circuit to output the second audio signal, time the time from triggering the first audio transmitting circuit to receiving the reflected audio signal, and multiply the time by a preset speed to obtain the distance between the external object and the distance sensing device.

2. The distance sensing device according to claim 1, characterized in that, The distance sensing device also includes: A temperature sensing circuit is connected to the control circuit. The control circuit is also used to determine the preset speed based on the temperature sensed by the temperature sensing circuit.

3. The distance sensing device according to claim 2, characterized in that, The temperature sensing circuit includes a first chip, a first resistor, a second resistor, and a diode; Wherein, the first end of the first chip is connected to the control circuit, and the second end of the first chip is grounded; One end of the first resistor is connected to the third terminal of the first chip, and the other end of the first resistor is connected to the first terminal of the first chip. One end of the second resistor is connected to the third end of the first chip, and the other end of the second resistor is connected to the forward terminal of the diode; The negative terminal of the diode is grounded.

4. The distance sensing device according to claim 1 or 2, characterized in that, The control circuit is also connected to the audio amplifier circuit and is used to determine the gain of the audio amplifier circuit based on the distance between the external object and the distance sensing device.

5. The distance sensing device according to claim 1, characterized in that, The control circuit includes a first audio trigger, a second audio trigger, a timer, a speed selector, and a multiplier; The first audio trigger is connected to the first audio transmitting circuit; The second audio trigger is connected to the second audio transmitting circuit; The first terminal of the timer is connected to the first audio trigger, and the second terminal of the timer is connected to the audio receiving circuit; The multiplier is connected to the timer and the speed selector, respectively.

6. The distance sensing device according to claim 1, characterized in that, The audio frequency division circuit includes a high-pass filter and a low-pass filter; One end of the high-pass filter is connected to the audio power amplifier circuit, and the other end of the high-pass filter is connected to the first audio playback circuit. One end of the low-pass filter is connected to the audio power amplifier circuit, and the other end of the low-pass filter is connected to the second audio playback circuit.

7. The distance sensing device according to claim 1, characterized in that, The analog mixing circuit includes a first operational amplifier; The inverting input of the first operational amplifier is connected to both the first and second audio transmitting circuits, the non-inverting input of the first operational amplifier is grounded, and the output of the first operational amplifier is connected to the audio power amplifier circuit.

8. The distance sensing device according to claim 1, characterized in that, The first audio transmitting circuit includes a second chip, a first capacitor, a second capacitor, and a crystal oscillator; Wherein, the first end of the second chip is connected to the control circuit, and the second end of the second chip is connected to the analog mixing circuit; The third and fourth terminals of the second chip are grounded; The fifth terminal of the second chip is connected to one end of the crystal oscillator, and the sixth terminal of the second chip is connected to the other end of the crystal oscillator; One end of the first capacitor is connected to one end of the crystal oscillator, and the other end of the first capacitor is grounded. One end of the second capacitor is connected to the other end of the crystal oscillator, and the other end of the second capacitor is grounded.

9. The distance sensing device according to claim 1, characterized in that, The audio receiving circuit also includes a first audio receiver, a second operational amplifier, a third resistor, a fourth resistor, a fifth resistor, and a sixth resistor; Wherein, the non-inverting input terminal of the second operational amplifier is connected to one end of the third resistor and one end of the fourth resistor, respectively; the inverting input terminal of the second operational amplifier is connected to one end of the fifth resistor and one end of the sixth resistor, respectively; and the first output terminal and the second output terminal of the second operational amplifier are both connected to the control circuit. The other end of the third resistor is connected to the first audio receiver; The other end of the fourth resistor is connected to the first output terminal of the second operational amplifier; The other end of the fifth resistor is connected to the first audio receiver; The other end of the sixth resistor is connected to the second output terminal of the second operational amplifier.

10. An electronic device, characterized in that, Includes the distance sensing device as described in any one of claims 1 to 9.