Portable sound source positioning device
By designing a portable sound source positioning device and using a triangularly arranged sound receiving unit and microcontroller calculations, the problems of complex structure, poor portability and high cost in the existing technology have been solved, and the precise positioning of the sound target body and cost reduction have been achieved.
Patent Information
- Application Number
- CN202323257746.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-29
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2033-11-29
AI Technical Summary
Existing sound source positioning devices have complex structures, poor portability, and high costs.
Design a portable sound source positioning device, including three sound receiving units and a main control unit. The sound receiving units are arranged in a triangle and are used to collect the sound signals of the sound-emitting target and send them to the main control unit. The main control unit calculates the target through a microcontroller. Position, signal amplification unit and filter unit are used for signal processing, reducing noise and improving signal purity.
It achieves precise positioning of the target position to be positioned, simplifies the device structure, facilitates portability and wiring, and reduces costs.
Smart Images

Figure CN221650603U
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of positioning, in particular to a portable sound source positioning device. Background Art
[0002] Positioning technology can be used to accurately locate the location of a target, for example, to locate a robot running indoors; to locate the speaker's position through voice in a video conference; and to locate the passenger's seat position through voice in a smart cabin. With the development of science and technology, sound source localization technology is being used more and more widely.
[0003] The inventors have found that current sound source localization devices usually use a large number of sensors, which results in a complex structure, poor portability and high cost. Utility Model Content
[0004] The technical problem to be solved by the embodiments of the utility model is that the existing sound source localization device has a complex structure, poor portability and high cost.
[0005] In order to solve the above problems, an embodiment of the utility model proposes a portable sound source locating device for locating the position of a sound target object, the portable sound source locating device comprises three sound receiving units and a main control unit; the three sound receiving units are arranged in a triangle, the sound target object and the three sound receiving units are on the same plane; the three sound receiving units are all connected to the main control unit; the three sound receiving units are used to collect the sound signals of the sound target object and send them to the main control unit.
[0006] A further technical solution is that the sound target body includes a sound driving unit and a speaker, and the sound driving unit is connected to the speaker.
[0007] A further technical solution is that the sound driving unit includes a Wien bridge circuit, and the Wien bridge circuit is connected to the speaker.
[0008] A further technical solution is that the sound receiving unit includes a microphone, a signal amplifying unit, a filtering unit and a comparing unit, the microphone is connected to the signal amplifying unit, the signal amplifying unit is connected to the filtering unit, and the filtering unit is connected to the comparing unit.
[0009] A further technical solution is that the signal amplifying unit comprises a signal amplifier, a positive input end of the signal amplifier is connected to the microphone, and an output end of the signal amplifier is connected to the filtering unit.
[0010] A further technical solution is that the signal amplification unit also includes a capacitor, a first resistor and a second resistor, the positive input terminal of the signal amplifier is grounded through the capacitor; the negative input terminal of the signal amplifier is connected to the output terminal of the signal amplifier through the first resistor; the second resistor is respectively connected to the first resistor and the negative input terminal of the signal amplifier, and is grounded.
[0011] A further technical solution is that the filtering unit comprises a Butterworth filter, an input end of the Butterworth filter is connected to an output end of the signal amplifier, and an output end of the Butterworth filter is connected to the comparison unit.
[0012] A further technical solution is that the comparison unit comprises a comparator, a positive input terminal of the comparator is connected to an output terminal of the Butterworth filter, a negative input terminal of the comparator is grounded, and an output terminal of the comparator is connected to the main control unit.
[0013] A further technical solution is that the comparison unit further includes a third resistor, and the power input terminal of the comparator is connected to the output terminal of the comparator through the third resistor.
[0014] A further technical solution is that the main control unit is a single chip microcomputer, the portable sound source localization device also includes a display unit, and the main control unit is connected to the display unit.
[0015] Compared with the prior art, the technical effects achieved by the embodiments of the present invention include:
[0016] In the technical solution of the embodiment of the utility model, the portable sound source positioning device is used to locate the position of the sound target body, and the portable sound source positioning device includes three sound receiving units and a main control unit; the three sound receiving units are arranged in a triangle, and the sound target body and the three sound receiving units are on the same plane; the three sound receiving units are all connected to the main control unit; the three sound receiving units are used to collect the sound signal of the sound target body and send it to the main control unit. It can be seen that only three sound receiving units are needed to realize the accurate positioning of the target position to be positioned, and the sound source positioning device has a simple structure, is easy to carry, is easy to wire, and has a relatively low cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present utility model, and together with the description, are used to explain the principles of the present utility model.
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the utility model or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0019] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0020] Figure 1 A schematic diagram of the structure of a portable sound source localization device proposed in an embodiment of the utility model;
[0021] Figure 2 A schematic diagram of the structure of a sound target body of a portable sound source localization device proposed in an embodiment of the utility model;
[0022] Figure 3 A schematic circuit diagram of a Wien bridge of a sound source locating target body of a portable sound source locating device proposed in an embodiment of the utility model;
[0023] Figure 4 A schematic diagram of the structure of a sound receiving unit of a portable sound source localization device proposed in an embodiment of the utility model;
[0024] Figure 5 A circuit diagram of a signal amplifying unit of a portable sound source localization device proposed in an embodiment of the utility model;
[0025] Figure 6 A circuit diagram of a Butterworth fourth-order bandpass filter of a portable sound source localization device proposed in an embodiment of the utility model;
[0026] Figure 7 A circuit diagram of a portable sound source localization device in which a filter unit and a comparison unit are connected is provided in an embodiment of the utility model;
[0027] Figure 8 A schematic diagram of the layout of a sound receiving unit of a portable sound source localization device proposed in an embodiment of the utility model;
[0028] Fig. 9 A schematic diagram of the measurement principle of a portable sound source localization device proposed in an embodiment of the utility model.
[0029] Reference numerals
[0030] The sound target 10 , the sound receiving unit 20 , the main control unit 30 , the display unit 40 , the sound driving unit 11 , the speaker 12 , the microphone 21 , the signal amplifying unit 22 , the filtering unit 23 and the comparing unit 24 . DETAILED DESCRIPTION
[0031] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments. Similar component numbers in the drawings represent similar components. Obviously, the embodiments to be described below are only part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments in the utility model, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the utility model.
[0032] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0033] It should also be understood that the terms used in this utility model embodiment specification are only for the purpose of describing specific embodiments and are not intended to limit the utility model embodiments. As used in the utility model embodiment specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0034] See also Figure 1 An embodiment of the utility model provides a portable sound source localization device, which includes three sound receiving units 20 and a main control unit 30.
[0035] The sound target 10 is used to emit sound, and the sound target 10 can be configured on the target to be located. The target to be located is a target whose position needs to be determined, such as a robot. The sound target 10 can also be a speaker in a video conference or a passenger in a smart cabin.
[0036] In the embodiment of the present invention, the three sound receiving units 20 are arranged in a triangle, that is, the three sound receiving units 20 are configured at three vertices of the triangle. For the convenience of calculation, the triangle can be specifically a right triangle.
[0037] The three sound receiving units 20 are used to collect sound signals of the sound target body 10. The three sound receiving units 20 are all connected to the main control unit 30, and send the collected sound signals to the main control unit 30. The sound target body 10 and the three sound receiving units 20 are on the same plane. The main control unit 30 can accurately calculate the position of the sound target body 10, that is, the target to be located, based on the sound signals received from the three sound receiving units 20 and the geometric relationship between the three sound receiving units 20.
[0038] The technical solution of the embodiment of the utility model only needs to configure three sound receiving units 20 to achieve accurate positioning of the target position to be positioned. The sound source positioning device has a simple structure, is easy to carry, easy to wire, and has a relatively low cost.
[0039] See also Figure 2 In one embodiment, the sound target 10 includes a sound driving unit 11 and a speaker 12, and the sound driving unit 11 is connected to the speaker 12. The sound driving unit 11 is used to send a driving signal to drive the speaker 12 to emit sound.
[0040] Specifically, the sound driving unit 11 includes a Wien bridge circuit, and the Wien bridge circuit is connected to the speaker 12 .
[0041] The Wien bridge is a circuit that can self-oscillate and generate a natural frequency sine wave signal. By calculating the parameters of the capacitance and resistance of the Wien bridge and selecting the appropriate capacitance and resistance, a 500HZ sine wave can be generated. This sine wave signal can be used to drive the speaker 12 to produce sound. The Wien bridge can generate a frequency signal as needed, which is convenient for setting the filter parameters. At the same time, the generated sine signal as the driving signal of the speaker 12 is cleaner than a square wave signal and is more conducive to signal processing. See Figure 3 , Figure 3 A circuit diagram showing a specific example of a Wien bridge.
[0042] See also Figure 4 The sound receiving unit 20 includes a microphone 21, a signal amplifying unit 22, a filtering unit 23 and a comparing unit 24. The microphone 21 is connected to the signal amplifying unit 22, the signal amplifying unit 22 is connected to the filtering unit 23, and the filtering unit 23 is connected to the comparing unit 24. The signal amplifying unit 22 is used to amplify the sound signal collected by the microphone 21. The filtering unit 23 is used to reduce noise, making the sound signal purer. The comparing unit 24 is used to convert the sound signal into a square wave signal.
[0043] Specifically, see Figure 5The signal amplifying unit 22 includes a signal amplifier U1A, a capacitor C1, a first resistor R3 and a second resistor R4. The positive input terminal of the signal amplifier U1A is connected to the microphone 21, and the output terminal of the signal amplifier is connected to the filtering unit 23.
[0044] The positive input terminal of the signal amplifier U1A is grounded through the capacitor C1; the negative input terminal of the signal amplifier U1A is connected to the output terminal of the signal amplifier U1A through the first resistor R3; the second resistor R4 is respectively connected to the first resistor R3 and the negative input terminal of the signal amplifier U1A, and is grounded.
[0045] The signal amplifier U1A plays the role of signal amplification. The working voltage Uds of the microphone 21 is 1.5-12V, and the commonly used ones are 1.5V, 3V, and 4.5V. The working current Ids is between 0.1 and 1mA, and the output impedance is generally less than 2K (ohms), so the amplification factor of the signal amplification unit 22 can be set to 270 times.
[0046] Further, the filtering unit 23 includes a Butterworth filter, the input end of the Butterworth filter is connected to the output end of the signal amplifier, and the output end of the Butterworth filter is connected to the comparison unit 24. The Butterworth filter can be specifically a Butterworth fourth-order bandpass filter with an intermediate frequency of 500 Hz, and the parameters and circuit are as follows: Figure 6 shown.
[0047] Further, see Figure 7 The comparison unit 24 includes a comparator U3A and a third resistor R11, the positive input terminal of the comparator U3A is connected to the output terminal of the Butterworth filter, the negative input terminal of the comparator U3A is grounded, and the output terminal of the comparator U3A is connected to the main control unit 30. The power input terminal of the comparator U3A is connected to the output terminal of the comparator U3A through the third resistor R11.
[0048] The comparator U3A is used to transform the sinusoidal signal of the filter unit 23 into a square wave signal, which is convenient for the single chip microcomputer to check the phase. The model of the comparator U3A can be LM339D.
[0049] Furthermore, the main control unit 30 is a single-chip microcomputer, and the portable sound source positioning device also includes a display unit 40, and the main control unit 30 is connected to the display unit 40. The display unit 40 can be specifically an LCD display for displaying the position information of the target to be positioned. The model of the single-chip microcomputer can be specifically an STM32 single-chip microcomputer, such as STM32zet6. STM32 has fast computing speed, low power consumption and low price, which meets the above requirements, and the library resources of STM32 are very rich, which is convenient for later development, and the peripheral resources are very rich, and more expansion can be done.
[0050] The main control unit 30 is a single chip microcomputer, which does not need to use FPGA or DSP and has lower cost.
[0051] Working principle description
[0052] In the utility model, the phases of the sound are different when the distances from the sound to the three sound receiving units are different, and the phase difference of the sound received by the three sound receiving units is used as the object of measurement. By measuring the phase difference of the sound to the three sound receiving units as the variable of calculation, the phase difference of multiple waveforms can be measured over a period of time, and the effect of digital filtering can be achieved to avoid accidental errors caused by noise. Moreover, the specific frequency and specific distance of the sound can avoid multiple phase differences caused by multipath interference. Once this phase difference is exceeded, the result is discarded, which greatly improves the accuracy of the measurement in the hardware and signal processing stages.
[0053] Place the microphone array of the sound receiving unit as follows Figure 8 Arranged as shown, the three sound receiving units and the sound target are on the same horizontal plane. Establish an XY coordinate system, with the first sound receiving unit S0 as the origin, with coordinates (0, 0), the second sound receiving unit S1 on the Y axis, with coordinates (0, 350mm), and the third sound receiving unit S3 on the X axis, with coordinates (500mm, 0). The application scenario of voice is to select a sinusoidal sound signal source with a frequency of 500HZ as the sound target, and the three sound receiving units collect sound signals from this sound target.
[0054] The sound target changes its position in the array of sound receiving units. When the three sound receiving units receive the sound, the output signal of the microphone is amplified by an operational amplifier because the output voltage of the microphone is very small. The amplified signal is then filtered and the clean sinusoidal signal is converted into a square wave signal through a comparator. The microcontroller measures the values of the three square wave signals and converts the time difference of the phase of the three square wave signals into the distance difference. The phase difference is calculated through an algorithm to determine the coordinates of the sound target.
[0055] Specifically, the mainstream TDOA algorithm is used to calculate the coordinates. The TDOA algorithm is a spatial positioning technology that locates the target by measuring the time difference between the signal sent by the target and reaching different base stations. The schematic diagram of its principle is shown in the figure below. Fig. 9 As shown in the figure, three sound receiving units S0, S1 and S2 are arranged on a plane, with coordinates (x0, y0), (x1, y1) and (x2, y2) respectively. When the sound-emitting target on the plane emits a sound wave at a certain place, the signal will be received by the three sound receiving units in succession. Let the receiving time of the first sound receiving unit S0 be t0, the receiving time of the second sound receiving unit S1 be t1 and the receiving time of the third sound receiving unit S2 be t2. In fact, the experiment cannot really measure the absolute time of the arrival of the event, but can only measure their time difference Δt1 = t1-t0, Δt2 = t2-t0. The triangular array needs to measure the propagation speed of sound. In the calculation, let the propagation speed of sound waves along the surface of the medium be c. For the sound receiving units S0 and S1, the location of the sound source should be on the curve with a distance difference of cΔt1 to the two points, which is a hyperbola. Obviously, two hyperbolas can be obtained using Δt1 and Δt2, and their intersection is the location of the sound source.
[0056] In order to facilitate the derivation of specific calculation formulas, the sound receiving unit S0 is set as the coordinate origin (without loss of generality), that is, (x0, y0) = (0, 0). The location of the sound source is (x, y), which can also be expressed by polar coordinates (r, H) to satisfy:
[0057] x 2 +y 2 =r 2 (1)
[0058] (x-x1) 2 +(y-y1) 2 =(r+cΔt1) 2 (2)
[0059] (x-x2) 2 +(y-y2) 2 =(r+cΔt2) 2 (3)
[0060] Expanding (2) and using (1) yields
[0061] 2xx1+2yy1+2rcΔt1=x1 2 +y1 2 -cΔt1 2 (4) Similarly, from (3), we can get
[0062] 2xx2+2yy2+2rcΔt2=x2 2 +y22 -cΔt2 2 (5) Replace (x, y) with polar coordinates and let Δ1 = cΔt1, Δ2 = cΔt2, then equations (4) and (5) can be written as
[0063] 2r(x1cosH+y1sinH)+2rΔ1=x1 2 +y1 2 -Δ1 2 (6)
[0064] 2r(x2cosH+y2sinH)+2rΔ2=x2 2 +y2 2 -Δ2 2 (7)
[0065] Eliminate r and get
[0066] (x1 2 +y1 2 -Δ1 2 )(x2cosH+y2sinH+Δ2)=(x2 2 +y2 2 -Δ2 2 )(x1cosH+y1sinH+Δ1) (8)
[0067] make
[0068] A=x2(x1 2 +y1 2 -Δ1 2 )x1(x2 2 +y2 2 -Δ2 2 ) (9)
[0069] B=y2(x1 2 +y1 2 -Δ1 2 )y1(x2 2 +y2 2 -Δ2 2 ) (10)
[0070] D=Δ1(x2 2 +y2 2 -Δ2 2 )Δ2(x1 2 +y1 2 -Δ1 2 ) (11)
[0071] Formula (8) can be simplified as
[0072] AcosH+BsinH=D (12)
[0073] Introduction
[0074] So formula (12) can be written as:
[0075] Right now
[0076] Since A, B, D, and U can all be calculated from experimental data [U = arctan (B / A), A, B, and D can be calculated from equations (8), (9), and (10), respectively], H can be obtained from
[0077]
[0078] After obtaining H, we can solve equation (6)
[0079]
[0080] The above formula can be used to calculate the polar coordinate position of the target, and can also be used to convert the coordinates of the target in the XY axis.
[0081] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0082] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0083] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present utility model, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0084] In the present invention, unless otherwise clearly specified and limited, the terms "install", "connect", "connect", "fix" and the like should be understood in a broad sense, for example, it can be connected, detachably connected, or integrated; it can be mechanically connected or electrically connected; it can be directly connected or indirectly connected through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0085] In the present utility model, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may include that the first and second features are in direct contact, or may include that the first and second features are not in direct contact but are in contact through another feature between them. Moreover, a first feature being "above", "above" and "above" a second feature includes that the first feature is directly above and obliquely above the second feature, or simply indicates that the first feature is higher in level than the second feature. A first feature being "below", "below" and "below" a second feature includes that the first feature is directly below and obliquely below the second feature, or simply indicates that the first feature is lower in level than the second feature.
[0086] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the utility model. In this specification, the schematic representation of the above terms should not be understood as necessarily being directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification.
[0087] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is intended to include these modifications and variations.
[0088] The above is a specific implementation of the utility model, but the protection scope of the utility model is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the utility model, and these modifications or replacements should be included in the protection scope of the utility model. Therefore, the protection scope of the utility model should be based on the protection scope of the claims.
Claims
1. A portable sound source localization device, characterized in that: The portable sound source locating device is used to locate the position of a sound target object, and includes three sound receiving units and a main control unit; the three sound receiving units are arranged in a triangle, and the sound target object and the three sound receiving units are on the same plane; the three sound receiving units are all connected to the main control unit; the three sound receiving units are used to collect the sound signals of the sound target object and send them to the main control unit.
2. The portable sound source localization device according to claim 1, characterized in that: The sound target body includes a sound driving unit and a speaker, and the sound driving unit is connected to the speaker.
3. The portable sound source localization device according to claim 2, characterized in that: The sound driving unit includes a Wien bridge circuit, and the Wien bridge circuit is connected to the speaker.
4. The portable sound source localization device according to claim 1, characterized in that: The sound receiving unit includes a microphone, a signal amplifying unit, a filtering unit and a comparing unit. The microphone is connected to the signal amplifying unit, the signal amplifying unit is connected to the filtering unit, and the filtering unit is connected to the comparing unit.
5. The portable sound source localization device according to claim 4, characterized in that: The signal amplifying unit comprises a signal amplifier, a positive input terminal of the signal amplifier is connected to the microphone, and an output terminal of the signal amplifier is connected to the filtering unit.
6. The portable sound source localization device according to claim 5, characterized in that: The signal amplification unit also includes a capacitor, a first resistor and a second resistor. The positive input terminal of the signal amplifier is grounded through the capacitor; the negative input terminal of the signal amplifier is connected to the output terminal of the signal amplifier through the first resistor; the second resistor is respectively connected to the first resistor and the negative input terminal of the signal amplifier, and is grounded.
7. The portable sound source localization device according to claim 5, characterized in that: The filtering unit comprises a Butterworth filter, an input end of the Butterworth filter is connected to an output end of the signal amplifier, and an output end of the Butterworth filter is connected to the comparison unit.
8. The portable sound source localization device according to claim 7, characterized in that: The comparison unit comprises a comparator, a positive input terminal of the comparator is connected to the output terminal of the Butterworth filter, a negative input terminal of the comparator is grounded, and an output terminal of the comparator is connected to the main control unit.
9. The portable sound source localization device according to claim 8, characterized in that: The comparison unit further includes a third resistor, and the power input terminal of the comparator is connected to the output terminal of the comparator through the third resistor.
10. The portable sound source localization device according to claim 1, characterized in that: The main control unit is a single chip microcomputer, and the portable sound source localization device also includes a display unit, and the main control unit is connected to the display unit.
