Sound pressure self-checking method and device
The sound-generating device deforms under the action of the pulse width modulation signal and generates an AC voltage. Combined with the signal processing unit, it is converted into a DC voltage to realize sound pressure self-test, which solves the problem of false detection caused by environmental noise interference and reduces cost and power consumption. Improved the effectiveness of sound pressure self-test.
Patent Information
- Application Number
- CN202411151748.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing sound pressure self-checking methods can easily lead to false detections under the interference of environmental noise, and are high in cost and power consumption, affecting battery life and product cost-effectiveness.
The sound-generating device is used to generate deformation through pulse width modulation signals to generate an AC voltage related to the sound pressure, which is converted into a DC voltage for analysis by the signal processing unit to achieve sound pressure self-test and avoid environmental noise interference.
It effectively reduces sound pressure misdetection, reduces cost and power consumption, and ensures battery life and product cost-effectiveness.
Smart Images

Figure CN118658277A
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of security, and in particular to a sound pressure self-test method and device. Background Art
[0002] An alarm is a device that emits an alarm sound or light signal to alert people. It is usually installed in buildings, vehicles or other facilities to sound an alarm for emergencies or unexpected events. It is a common safety device. Sound pressure is an important indicator for measuring the volume. Self-checking the sound pressure can effectively detect whether the alarm sound function of the alarm is normal, thereby effectively identifying equipment with abnormal sound function and replacing or repairing it in time.
[0003] At present, the common way to perform sound pressure self-test is to add a microphone to the circuit, collect sound signals through the microphone, convert the sound signals into electrical signals, and process and identify the collected electrical signals to determine the size of the sound pressure level and complete the sound pressure self-test. However, when this method is used for self-test, if there are other noise sources in the surrounding environment and the volume of the noise source is loud enough, even if the sound function of the alarm fails, the sound pressure level of the sound signal collected by the microphone is large enough, resulting in a false detection and judging that the sound function of the alarm is normal.
[0004] There is currently no effective solution to the above problems. Summary of the invention
[0005] The embodiments of the present invention provide a sound pressure self-detection method and device, so as to at least solve the problem of false detection of sound pressure due to interference from environmental noise in the related art.
[0006] According to one embodiment of the present invention, a sound pressure self-test method is provided, which is applied to a sound pressure self-test device, wherein the sound pressure self-test device is provided with a sound-generating device, a driving unit, a signal processing unit, and a microprocessor unit, including: the microprocessor unit generates a pulse width modulation signal, the pulse width modulation signal generates a driving voltage through the driving unit, the driving voltage causes the sound-generating device to deform, the deformation causes the gas in the sound cavity of the sound-generating device to emit sound, and the deformation causes the sound-generating device to generate an AC voltage; the microprocessor unit analyzes the voltage amplitude of the target DC voltage to determine the sound pressure of the sound emitted by the sound-generating device, wherein the target DC voltage is a DC voltage obtained after the signal processing unit converts the AC voltage generated by the sound-generating device.
[0007] In an exemplary embodiment, the sound-generating device is provided with a piezoelectric ceramic sheet, and the driving voltage causes the sound-generating device to deform, including: the driving voltage causes the piezoelectric ceramic sheet to deform under the action of the inverse piezoelectric effect.
[0008] In an exemplary embodiment, the sound-generating device is further provided with a substrate and a feedback electrode, and the deformation causes the sound-generating device to generate an AC voltage, including: the deformation causes the AC voltage to be generated between the feedback electrode and the substrate, wherein the amplitude of the AC voltage is positively correlated with the magnitude of the deformation.
[0009] In an exemplary embodiment, before the microprocessor unit analyzes the voltage amplitude of the target DC voltage to determine the sound pressure of the sound emitted by the sound-emitting device, the method further includes: transmitting the AC voltage generated by the sound-emitting device to the signal processing unit, and the signal processing unit converting the AC voltage into the target DC voltage.
[0010] In an exemplary embodiment, the signal processing unit includes: a first load circuit, a rectifier circuit, a filter circuit, a second load circuit block, a voltage division sampling circuit and a protection circuit. The AC voltage generated by the sound-generating device is transmitted to the signal processing unit, and the signal processing unit converts the AC voltage into the target DC voltage, including: the first load circuit reduces the amplitude of the AC voltage to obtain a first AC voltage, and inputs the first AC voltage into the rectifier circuit; the rectifier circuit converts the first AC voltage into a first DC voltage, and inputs the first DC voltage into the filter circuit; the filter circuit filters the first DC voltage to obtain a second DC voltage, and inputs the second DC voltage into the second load circuit; the second load circuit reduces the amplitude of the second DC voltage to obtain a third DC voltage, and inputs the third DC voltage into the voltage division sampling circuit; the voltage division sampling circuit divides the third DC voltage to obtain a fourth DC voltage, and inputs the fourth DC voltage into the protection circuit; the protection circuit filters out the DC voltage whose amplitude exceeds a preset threshold in the fourth DC voltage to obtain the target DC voltage.
[0011] In an exemplary embodiment, the microprocessor analyzes the voltage amplitude of the target DC voltage to determine the sound pressure of the sound emitted by the sound-emitting device, including: the microprocessor determines a target sound pressure that matches the voltage amplitude of the target DC voltage in a preset mapping relationship, wherein the preset mapping relationship records the correspondence between the voltage amplitude and the sound pressure; and determines the target sound pressure as the sound pressure of the sound emitted by the sound-emitting device.
[0012] According to another embodiment of the present invention, a sound pressure self-test device is provided, comprising: a sound-generating device, a driving unit, a signal processing unit, and a microprocessor unit, wherein the microprocessor unit is used to generate a pulse width modulated signal and transmit the pulse width modulated signal to the driving unit; the driving unit is used to convert the pulse width modulated signal into a driving voltage; the sound-generating device is used to generate a deformation when the driving voltage passes through, and the deformation causes the gas in the sound cavity of the sound-generating device to emit a sound, and the deformation causes the sound-generating device to generate an AC voltage; the signal processing unit is used to receive the AC voltage from the sound-generating device and convert the AC voltage into a target DC voltage; the microprocessor unit is also used to analyze the voltage amplitude of the target DC voltage to determine the sound pressure of the sound emitted by the sound-generating device.
[0013] In an exemplary embodiment, the sound-generating device includes: a piezoelectric ceramic sheet, which is used to generate deformation under the action of the inverse piezoelectric effect when the driving voltage passes through; a substrate and a feedback electrode, which are used to generate the AC voltage under the action of the deformation, wherein the amplitude of the AC voltage is positively correlated with the size of the deformation.
[0014] In an exemplary embodiment, the signal processing unit includes: a first resistor, a first diode, a first capacitor, a second resistor, a third resistor, a fourth resistor, a second diode, and a power supply, wherein the first end of the first resistor is connected to the feedback pole of the sound-emitting device, and the second end of the first resistor is grounded; the anode of the first diode is connected to the first end of the first resistor, and the cathode of the first diode is connected to the first end of the first capacitor; the second end of the first capacitor is connected to the second end of the first resistor; the first end of the second resistor is connected to the cathode of the first diode, and the second end of the second resistor is connected to the second end of the first resistor; the first end of the third resistor is connected to the cathode of the first diode, and the second end of the third resistor is connected to the first end of the fourth resistor; the second end of the fourth resistor is connected to the second end of the first resistor; the anode of the second diode is connected to the first end of the fourth resistor and the microprocessor unit, and the cathode of the second diode is connected to the power supply.
[0015] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, wherein the computer program implements the steps of any of the above methods when executed by a processor.
[0016] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0017] According to yet another embodiment of the present invention, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the steps of any of the above methods are implemented.
[0018] Through the present invention, since the sound-generating device is deformed by the PWM signal to generate sound, and when it generates sound, an AC voltage that is positively correlated with the sound pressure is generated, and the sound pressure self-detection function is completed by identifying the processed voltage, the sound pressure self-detection is realized. Therefore, the problem of false detection of sound pressure due to interference from environmental noise in the related art can be solved, and the effect of reducing false detection of sound pressure can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 is a hardware structure block diagram of a computing device of a sound pressure self-test method according to an embodiment of the present invention;
[0020] Figure 2 is a flow chart of a sound pressure self-test method according to an embodiment of the present invention;
[0021] Figure 3 is a functional block diagram of a signal processing unit according to an embodiment of the present invention;
[0022] Figure 4 is a schematic diagram of a first alternating voltage according to an embodiment of the present invention;
[0023] Figure 5 is a schematic diagram of a second DC voltage according to an embodiment of the present invention;
[0024] Figure 6 is a fourth DC voltage schematic diagram according to an embodiment of the present invention;
[0025] Figure 7 is a structural block diagram of a sound pressure self-test device according to an embodiment of the present invention;
[0026] Figure 8 is a structural block diagram of a sound-generating device according to an embodiment of the present invention;
[0027] Fig. 9 is a structural block diagram of a signal processing unit according to an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to better understand the embodiments of the present invention, some terms in the embodiments of the present invention are explained below:
[0029] Sound pressure self-test device: used in all products that use sound as an important function or have special requirements on the volume, such as smoke fire control alarm, temperature fire detection alarm, combustible gas detection alarm and other fire detection alarms, building tilt alarm, sound and light alarm, etc.
[0030] Sound pressure: When sound waves propagate in the air, they cause the particles in the medium to vibrate, causing the air to change in density. The pressure on the medium (air) caused by the vibration of the sound waves is called sound pressure. The unit of sound pressure is Pascal (Pa) or Newton / square meter, where 1Pa=1N / m 2 .
[0031] Sound pressure level: the level of sound pressure, expressed in logarithms, in decibels (dB). For example, in daily life, when the noise exceeds a certain decibel, it makes people feel irritated and unable to sleep. This decibel is actually the sound pressure level of the noise, which is usually used to compare the size of the sound.
[0032] Self-check: The device checks each component of its own hardware to see if it can operate normally.
[0033] An alarm is a device that emits an alarm sound or light signal to alert people. In some safety protection situations, an alarm is usually used to emit an alarm sound and / or light to indicate danger, reminding people that danger may occur and that they need to take emergency measures, evacuate or avoid danger immediately. Therefore, as an effective alarm method with high timeliness and wide notification range, it is very important that the alarm sound signal functions normally.
[0034] Sound pressure is an important indicator to measure the volume. In order to ensure that the alarm volume is loud enough to notify more people at critical moments, the sound pressure level index during the alarm is specified in the relevant standards. Self-checking the sound pressure according to the sound pressure level index can effectively detect whether the alarm sound function of the alarm is normal, thereby effectively identifying equipment with abnormal sound function and replacing or repairing it in time.
[0035] Currently, the most common way to self-check sound pressure is to add a pickup (also called a microphone) to the circuit. During self-check, the alarm simulates an alarm, collects sound signals through the pickup, converts the sound signals into electrical signals, and processes and identifies the collected electrical signals. Since the amplitude of the electrical signal is positively correlated with the size of the sound pressure, the size of the sound pressure level can be judged by the amplitude of the electrical signal: when the amplitude of the electrical signal is close to 0 during self-check, it means that the alarm sound function is abnormal; when the amplitude of the electrical signal is less than the threshold during self-check, it means that the sound pressure level does not meet the standard, thereby achieving sound pressure self-check.
[0036] However, the existing solution of using a pickup to perform sound pressure self-test has the following problems:
[0037] 1) Easy to misjudge qualified: During self-test, when there are other noise sources in the surrounding environment, the microphone will collect all sounds including noise and convert them into electrical signals. Especially when the volume of the noise source is loud enough, even if the alarm sound function fails, the amplitude of the electrical signal collected by the microphone is sufficient to reach the judgment threshold, thereby misjudging that the alarm sound function is normal.
[0038] 2) High power consumption: Most alarms are powered by batteries, and power consumption directly affects the battery life. Since the power consumption of the microphone is relatively high, the sound pressure self-test through the microphone will reduce the battery life. Alternatively, the power consumption can be reduced by controlling the power supply of the microphone in the design. This method controls the power supply to the microphone when it is needed to pick up sound, and controls the power supply to the microphone at other times to save power consumption, but this will increase the control cost.
[0039] 3) High cost: The cost of the pickup is relatively high. Adding pickups and related processing circuits will increase product costs and reduce product cost performance.
[0040] In summary, in response to the above-mentioned problems, the present invention proposes a sound pressure self-test method, which can achieve effective self-test of the alarm sound pressure with only a very small increase in cost, eliminate false detection, and at the same time, does not reduce the service life of the original battery.
[0041] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.
[0042] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0043] Figure 1 is a hardware structure block diagram of a computing device of a sound pressure self-test method according to an embodiment of the present invention. The microprocessor unit in the method embodiment provided in the embodiment of the present application can be Figure 1 is executed in the computing device. Figure 1 As shown, the computing device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned computing device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above computing device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0044] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the sound pressure self-test method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computing device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0045] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computing device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0046] In this embodiment, a method running on the above-mentioned computing device is provided, which is applied to a sound pressure self-testing device, wherein the sound pressure self-testing device is provided with a sound generating device, a driving unit, a signal processing unit, and a microprocessor unit. Figure 2 is a flow chart of a sound pressure self-test method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0047] Step S202, the microprocessor unit generates a pulse width modulation signal, the pulse width modulation signal generates a driving voltage through the driving unit, the driving voltage causes the sound-generating device to deform, the deformation causes the gas in the sound cavity of the sound-generating device to emit sound, and the deformation causes the sound-generating device to generate an alternating voltage;
[0048] The pulse width modulation signal (PWM signal) is a pulse signal used to adjust the output signal of an electronic device. The width of the pulse will change according to the amplitude of the analog signal. The output voltage is mainly controlled by adjusting the pulse width of the signal. The driving voltage can be a DC voltage generated by the PWM signal. Through the DC voltage, the sound-generating device produces a stable deformation. The sound-generating device can be a buzzer, in which the piezoelectric ceramic piece in the buzzer will deform after receiving the AC voltage, thereby making a sound. When performing the sound pressure self-test, the microprocessor unit generates a PWM signal, and the PWM signal generates a higher PWM driving voltage through the buzzer drive unit. Under the action of the inverse piezoelectric effect, the piezoelectric ceramic buzzer produces positive and negative deformations that change with the frequency of the PWM signal. The deformation excites the gas in the sound cavity to make a sound, and the amplitude of the deformation is positively correlated with the size of the sound pressure.
[0049] The sound pressure self-test device itself sends out a pulse signal, which causes the buzzer to make a sound under the action of the pulse signal, thereby detecting the sound pressure, ensuring that the sound pressure self-test device will only respond when the alarm sounds, avoiding the possibility of false detection due to environmental noise.
[0050] In step S204, the microprocessor unit analyzes the voltage amplitude of the target DC voltage to determine the sound pressure of the sound emitted by the sound-generating device, wherein the target DC voltage is a DC voltage obtained by converting the AC voltage generated by the sound-generating device by the signal processing unit.
[0051] The target DC voltage may be an AC voltage generated when the sound-generating device is deformed, and a DC voltage output after being processed by a signal processing unit. By analyzing the amplitude of the DC voltage, the sound pressure of the sound emitted by the sound-generating device may be determined, thereby completing the sound pressure self-test.
[0052] Optionally, the executor of the above steps may be a background processor, or other devices with similar processing capabilities, or a machine that integrates at least an image acquisition device and a data processing device, wherein the image acquisition device may include a graphics acquisition module such as a camera, and the data processing device may include a computer, a mobile phone or other terminal, but is not limited thereto.
[0053] Through the above steps, the positive piezoelectric effect of the piezoelectric ceramic buzzer is cleverly utilized. The PWM signal causes the sound-generating device to deform and generate sound. When it generates sound, an AC voltage that is positively correlated with the sound pressure is generated. By identifying the processed voltage, the sound pressure self-detection function is completed to achieve the sound pressure self-detection. The problem of false detection of sound pressure due to interference from environmental noise in the related art is solved, the false detection of sound pressure is reduced, and the effectiveness of the sound pressure self-detection is improved.
[0054] In addition, since no active devices are added and passive devices are used for signal acquisition, no additional power consumption is generated, and therefore the original battery life is not reduced; at the same time, there are no complex active devices and the number of components used is small, so the overall solution cost is low.
[0055] As an optional implementation, the sound-generating device is provided with a piezoelectric ceramic sheet, and the driving voltage causes the sound-generating device to deform, including: the driving voltage causes the piezoelectric ceramic sheet to deform under the action of the inverse piezoelectric effect.
[0056] As an optional embodiment, the sound-generating device is also provided with a substrate and a feedback electrode, and the deformation causes the sound-generating device to generate an AC voltage, including: the deformation causes the AC voltage to be generated between the feedback electrode and the substrate, wherein the amplitude of the AC voltage is positively correlated with the magnitude of the deformation.
[0057] Optionally, when the piezoelectric ceramic piece of the sound-generating device is deformed, due to the positive piezoelectric effect, an AC voltage that changes with the deformation will be generated between the feedback electrode and the metal substrate. The amplitude of the voltage is positively correlated with the deformation of the sound-generating device and is also positively correlated with the sound pressure generated by the sound-generating device.
[0058] As an optional embodiment, before the microprocessor unit analyzes the voltage amplitude of the target DC voltage to determine the sound pressure of the sound emitted by the sound-emitting device, the method also includes: transmitting the AC voltage generated by the sound-emitting device to the signal processing unit, and the signal processing unit converting the AC voltage into the target DC voltage.
[0059] Specifically, the signal processing unit includes: a first load circuit, a rectifier circuit, a filter circuit, a second load circuit block, a voltage division sampling circuit and a protection circuit. The AC voltage generated by the sound-generating device is transmitted to the signal processing unit, and the signal processing unit converts the AC voltage into the target DC voltage, including: the first load circuit reduces the amplitude of the AC voltage to obtain a first AC voltage, and inputs the first AC voltage into the rectifier circuit; the rectifier circuit converts the first AC voltage into a first DC voltage, and inputs the first DC voltage into the filter circuit; the filter circuit filters the first DC voltage to obtain a second DC voltage, and inputs the second DC circuit into the second load circuit; the second load circuit reduces the amplitude of the second DC voltage to obtain a third DC voltage, and inputs the third DC voltage into the voltage division sampling circuit; the voltage division sampling circuit divides the third DC voltage to obtain a fourth DC voltage, and inputs the fourth DC voltage into the protection circuit; the protection circuit filters the DC voltage in the fourth DC voltage whose amplitude exceeds a preset threshold to obtain the target DC voltage.
[0060] In the above circuit, the first AC voltage is reduced by the first load circuit, thereby achieving the first stabilization of the voltage signal; then, the first AC voltage is rectified and filtered by a diode (rectifier circuit) and a capacitor (filter circuit) respectively to obtain a second DC voltage, and the second DC voltage is reduced again by the second load circuit to achieve secondary stabilization of the voltage signal and ensure the stability of the DC voltage; the stable DC voltage (third DC voltage) is input into the voltage division sampling circuit for voltage division to obtain a voltage (fourth DC voltage) within a safe range that can be recognized by the microprocessor. At the same time, in order to avoid the voltage after voltage division sampling from exceeding the safe range due to resistance error or circuit load influence, a protection circuit is used to filter out the DC voltage whose amplitude exceeds a preset threshold in the voltage obtained by voltage division, so as to ensure that the target DC voltage amplitude input to the microprocessor is within a safe range and prevent the microprocessor from being damaged or malfunctioning.
[0061] Figure 3 is a functional block diagram of a signal processing unit according to an embodiment of the present invention. Figure 3 As shown, the signal processing unit mainly includes functions such as rectification, filtering, voltage division sampling, and protection circuit, among which the specific processing flow is as follows:
[0062] S1, in the signal processing unit, the AC voltage is connected to the load 1, and the amplitude of the AC voltage is reduced and stabilized. The waveform of the AC voltage after the reduction and stabilization (the first AC voltage) is as follows Figure 4 As shown;
[0063] S2, connecting the stabilized AC voltage to a rectifying circuit to rectify the AC voltage into a DC voltage (a first DC voltage), and connecting the direct voltage to a filtering circuit;
[0064] S3, a more stable DC voltage is generated through a filtering circuit. The DC voltage (second DC voltage) obtained after rectification and filtering has a waveform as shown below: Figure 5 As shown;
[0065] S4, connecting the stable DC voltage to the second load to obtain the voltage under the load (the third DC voltage);
[0066] S5, finally, the stable DC voltage (third DC voltage) is divided by the voltage division sampling circuit, and the voltage obtained by the voltage division (fourth DC voltage) is processed into a voltage (target DC voltage) within a safe range that can be recognized by the microprocessor through the protection circuit, and then input into the microprocessor for analysis and processing, wherein the voltage (fourth DC voltage) sampled by the voltage division has a waveform as shown in Figure 6 shown.
[0067] The DC voltage after voltage division sampling is positively correlated with the sound pressure of the buzzer. By analyzing the voltage amplitude after voltage division sampling by the microprocessor, it is possible to effectively identify whether the buzzer is making a sound and the size of the sound pressure, thereby completing an effective self-check of the sound pressure.
[0068] As an optional implementation, the microprocessor analyzes the voltage amplitude of the target DC voltage to determine the sound pressure of the sound emitted by the sound-emitting device, including: the microprocessor determines a target sound pressure that matches the voltage amplitude of the target DC voltage in a preset mapping relationship, wherein the preset mapping relationship records the correspondence between the voltage amplitude and the sound pressure; and determines the target sound pressure as the sound pressure of the sound emitted by the sound-emitting device.
[0069] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0070] In this embodiment, a sound pressure self-test device is also provided, which is used to implement the above embodiments and preferred implementation modes, and will not be repeated herein. Figure 7is a structural block diagram of a sound pressure self-test device according to an embodiment of the present invention. Figure 7 As shown, the device includes: a sound-generating device, a driving unit (buzzer drive), a signal processing unit, and a microprocessor unit, wherein the microprocessor unit is used to generate a pulse width modulation signal and transmit the pulse width modulation signal to the driving unit; the driving unit is used to convert the pulse width modulation signal into a driving voltage; the sound-generating device is used to generate a deformation when the driving voltage passes through, and the deformation causes the gas in the sound cavity of the sound-generating device to emit a sound, and the deformation causes the sound-generating device to generate an AC voltage; the signal processing unit is used to receive the AC voltage from the sound-generating device and convert the AC voltage into a target DC voltage; the microprocessor unit is also used to analyze the voltage amplitude of the target DC voltage to determine the sound pressure of the sound emitted by the sound-generating device.
[0071] In an exemplary embodiment, Figure 8 is a structural block diagram of a sound generating device according to an embodiment of the present invention. Figure 8 As shown, the sound-generating device includes: a piezoelectric ceramic sheet (silver-plated piezoelectric ceramic sheet), which is used to generate deformation under the action of the inverse piezoelectric effect when the driving voltage passes through; a substrate (metal substrate) and a feedback electrode, which are used to generate the AC voltage under the action of the deformation, wherein the amplitude of the AC voltage is positively correlated with the size of the deformation.
[0072] In an exemplary embodiment, Fig. 9 is a structural block diagram of a signal processing unit according to an embodiment of the present invention. Fig. 9 As shown, the signal processing unit includes: a first resistor R1, a first diode D1, a first capacitor C1, a second resistor R2, a third resistor R3, a fourth resistor R4, a second diode D2, and a power supply VDD, wherein the first end of the first resistor is connected to the feedback pole of the sound-generating device, and the second end of the first resistor is grounded; the anode of the first diode is connected to the first end of the first resistor, and the cathode of the first diode is connected to the first end of the first capacitor; the second end of the first capacitor is connected to the second end of the first resistor; the first end of the second resistor is connected to the cathode of the first diode, and the second end of the second resistor is connected to the second end of the first resistor; the first end of the third resistor is connected to the cathode of the first diode, and the second end of the third resistor is connected to the first end of the fourth resistor; the second end of the fourth resistor is connected to the second end of the first resistor; the anode of the second diode is connected to the first end of the fourth resistor and the microprocessor unit, and the cathode of the second diode is connected to the power supply.
[0073] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above methods are implemented.
[0074] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0075] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0076] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0077] An embodiment of the present invention further provides a computer program product, including a computer program, which implements the steps of the method described in each embodiment of the present application when executed by a processor.
[0078] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0079] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0080] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A sound pressure self-test method, It is characterized in that Applicable to a sound pressure self-test device, the sound pressure self-test device is provided with a sound generating device, a driving unit, a signal processing unit, and a microprocessor unit, including: The microprocessor unit generates a pulse width modulation signal, the pulse width modulation signal generates a driving voltage through the driving unit, the driving voltage causes the sound-generating device to deform, the deformation causes the gas in the sound cavity of the sound-generating device to emit sound, and the deformation causes the sound-generating device to generate an alternating voltage; The microprocessor unit analyzes the voltage amplitude of the target DC voltage to determine the sound pressure of the sound emitted by the sound-generating device, wherein the target DC voltage is a DC voltage obtained by the signal processing unit after converting the AC voltage generated by the sound-generating device.
2. The method according to claim 1, It is characterized in that The sound-generating device is provided with a piezoelectric ceramic sheet, and the driving voltage causes the sound-generating device to deform, including: The driving voltage causes the piezoelectric ceramic sheet to deform under the action of the inverse piezoelectric effect.
3. The method according to claim 1 or 2, It is characterized in that The sound-generating device is also provided with a substrate and a feedback electrode, and the deformation causes the sound-generating device to generate an alternating voltage, including: The deformation generates the AC voltage between the feedback electrode and the substrate, wherein the amplitude of the AC voltage is positively correlated with the magnitude of the deformation.
4. The method according to claim 1, It is characterized in that Before the microprocessor unit analyzes the voltage amplitude of the target DC voltage to determine the sound pressure of the sound emitted by the sound-emitting device, the method further includes: The AC voltage generated by the sound generating device is transmitted to the signal processing unit, and the signal processing unit converts the AC voltage into the target DC voltage.
5. The method according to claim 4, It is characterized in that The signal processing unit includes: a first load circuit, a rectifier circuit, a filter circuit, a second load circuit block, a voltage division sampling circuit and a protection circuit. The AC voltage generated by the sound generating device is transmitted to the signal processing unit. The signal processing unit converts the AC voltage into the target DC voltage, including: The first load circuit reduces the amplitude of the AC voltage to obtain a first AC voltage, and inputs the first AC voltage into the rectifier circuit; The rectifier circuit converts the first AC voltage into a first DC voltage, and inputs the first DC voltage into the filter circuit; The filtering circuit filters the first DC voltage to obtain a second DC voltage, and inputs the second DC voltage into the second load circuit; The second load circuit reduces the amplitude of the second DC voltage to obtain a third DC voltage, and inputs the third DC voltage into the voltage division sampling circuit; The voltage division sampling circuit divides the third DC voltage to obtain a fourth DC voltage, and inputs the fourth DC voltage into the protection circuit; The protection circuit filters out the DC voltage whose amplitude exceeds a preset threshold in the fourth DC voltage to obtain the target DC voltage.
6. The method according to claim 1, It is characterized in that The microprocessor unit analyzes the voltage amplitude of the target DC voltage to determine the sound pressure of the sound emitted by the sound-emitting device, including: The microprocessor determines a target sound pressure that matches the voltage amplitude of the target DC voltage in a preset mapping relationship, wherein the preset mapping relationship records a corresponding relationship between the voltage amplitude and the sound pressure; The target sound pressure is determined as the sound pressure of the sound emitted by the sound emitting device.
7. A sound pressure self-test device, It is characterized in that It includes: a sound device, a driving unit, a signal processing unit, and a microprocessor unit, wherein: The microprocessor unit is used to generate a pulse width modulation signal and transmit the pulse width modulation signal to the driving unit; The driving unit is used to convert the pulse width modulation signal into a driving voltage; The sound-generating device is used to generate deformation when the driving voltage passes through, the deformation causes the gas in the sound cavity of the sound-generating device to emit sound, and the deformation causes the sound-generating device to generate an alternating voltage; The signal processing unit is used to receive the AC voltage from the sound generating device and convert the AC voltage into a target DC voltage; The microprocessor unit is further used to analyze the voltage amplitude of the target DC voltage to determine the sound pressure of the sound emitted by the sound-generating device.
8. The sound pressure self-test device according to claim 7, It is characterized in that Sound-generating devices, including: A piezoelectric ceramic sheet, configured to deform under the action of the inverse piezoelectric effect when the driving voltage passes therethrough; The substrate and the feedback electrode are used to generate the AC voltage under the action of the deformation, wherein the amplitude of the AC voltage is positively correlated with the size of the deformation.
9. The sound pressure self-test device according to claim 8, It is characterized in that The signal processing unit includes: a first resistor, a first diode, a first capacitor, a second resistor, a third resistor, a fourth resistor, a second diode, and a power supply, wherein: The first end of the first resistor is connected to the feedback electrode of the sound-generating device, and the second end of the first resistor is grounded; An anode of the first diode is connected to a first end of the first resistor, and a cathode of the first diode is connected to a first end of the first capacitor; The second end of the first capacitor is connected to the second end of the first resistor; A first end of the second resistor is connected to the cathode of the first diode, and a second end of the second resistor is connected to the second end of the first resistor; A first end of the third resistor is connected to the cathode of the first diode, and a second end of the third resistor is connected to the first end of the fourth resistor; The second end of the fourth resistor is connected to the second end of the first resistor; An anode of the second diode is connected to the first end of the fourth resistor and the microprocessor unit, and a cathode of the second diode is connected to the power supply.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 6 when executed by a processor.
Citation Information
Patent Citations
Voice and vibration detection circuit and voice and vibration detection device
CN104697627A
Sound detection circuit based on self-feedback of sounder and alarm
CN218497635U
