Sound-controlled gas control system, method and device
The pulse width modulation data is generated through the preprocessing of the audio module and the Fourier transform, and the driving module adjusts the proportional valve status, solving the problem of poor flame rhythm effect in the prior art, and achieving better flame and music synchronization effect.
Patent Information
- Application Number
- CN202411009540.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-11-12
AI Technical Summary
The existing sound-controlled gas control systems are prone to breakpoints and spectrum leakage during data conversion, resulting in poor flame rhythm.
The audio module is used to pre-process discrete audio data, and pulse width modulation data is generated through Fourier transform and spectrum analysis. The driving module adjusts the opening and closing state of the proportional valve based on these data, and combines window processing and zero-compensation operation to reduce spectrum leakage. And the opening and closing ratio and speed of the proportional valve are controlled through a specific frequency segment to achieve dynamic changes in flame height.
It effectively reduces spectrum leakage, and controls the proportional valve by extracting the amplitude and phase value of a specific frequency segment, and achieves rapid changes in flame height and improves the synchronous rhythm effect between the flame and the music rhythm.
Smart Images

Figure CN118942485A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of voice-controlled gas technology, and in particular to a voice-controlled gas control system, method and device. Background Art
[0002] With the development of communication technology, the flame in the heating stove can not only be used for heating, but also can be combined with music to achieve synchronous rhythm. It mainly uses the audio signal of the music, which is converted into a current / voltage signal that can control the proportional valve of the stove after a series of processing, thereby realizing real-time control of the flame synchronized with the music.
[0003] The existing fire dance control device uses the sound circuit as the audio input source to provide signals to the microprocessor chip and drive circuit inside the controller to operate the proportional valve and adjust the fuel circuit supply state of the gas valve switch, so that the proportional valve and the gas valve switch can adjust the flame of the burner accordingly with the audio input source, so that the flame changes in response to the melody, high pitch, low pitch, heavy pitch, and light pitch of the song, thereby achieving the effect of fire dance.
[0004] However, in actual operation, breakpoints may appear in the converted data and the spectrum may leak, resulting in poor flame rhythm effect after conversion. This has become a problem to be solved by people in this field. Summary of the invention
[0005] The object of the present invention is to provide a voice-controlled gas control system, method and device to solve the problems raised in the above-mentioned background technology.
[0006] In order to solve the above technical problems, an embodiment of the present invention provides the following technical solutions: a voice-controlled gas control system for adjusting the height change of the generated flame, comprising an audio module, a transformation and analysis module, a drive module, and at least one proportional valve, wherein the audio module is suitable for preprocessing discrete audio data and generating complex form data according to the result of the preprocessing, the transformation and analysis module is suitable for performing Fourier transform on the complex form data to generate multiple frequency domain data, and performing spectrum analysis on the frequency domain data to generate pulse width modulation data, the drive module is suitable for receiving pulse width modulation data and converting an opening control signal according to the pulse width modulation data, the proportional valve has a gas valve, and the proportional valve is suitable for adjusting the opening and closing state of the gas valve according to the opening control signal.
[0007] The embodiment of the present invention further illustrates that the preprocessing includes the following steps: performing a frame process on the audio data to generate n-th frame data; if n is not equal to the last frame, performing a windowing process on the n-th frame data; and if n is equal to the last frame, performing a zero-padding operation on the last frame data and then performing a windowing process to reduce spectrum leakage.
[0008] The embodiment of the present invention further illustrates that the spectrum analysis includes the following steps: extracting the amplitude value and phase value of at least one specific frequency segment in the frequency domain data, and generating control information according to the amplitude value and the phase value; and According to the control information and using the timer, pulse width modulation data is generated.
[0009] The embodiment of the present invention further illustrates that the specific frequency band is below 150 Hz.
[0010] The embodiment of the present invention further illustrates that there are at least a plurality of specific frequency segments and at least a plurality of proportional valves, and the transformation analysis module controls the opening and closing states of gas valves of different proportional valves according to the pulse width modulation data corresponding to each specific frequency segment; one specific frequency segment corresponds to one proportional valve, so that the corresponding signal of each specific frequency segment can control the corresponding proportional valve, the number of specific frequency segments can be set to multiple, and the corresponding number of proportional valves can also be set to multiple, so as to generate multiple flame changes at the same time and enrich the effect of changing with the rhythm of music.
[0011] The embodiment of the present invention further illustrates that the multiple specific frequency segments are extracted from the frequency domain data according to equal width division or geometric division, preferably geometric division, such as 0-16 Hz, 16-32 Hz, 32-64 Hz, and so on.
[0012] The embodiment of the present invention further illustrates that the audio module is suitable for receiving digital audio signals and generating audio data according to the digital audio signals, and the audio-controlled gas control system also includes an audio amplifier, which is suitable for playing music according to the digital audio signals, and the rhythm changes of the music are synchronized with the changes in the height of the flame.
[0013] The embodiment of the present invention further provides a voice-controlled gas control device, which is used as a carrier for executing the aforementioned voice-controlled gas control system.
[0014] Compared with the prior art, the beneficial effects achieved by the embodiments of the present invention are: in the preprocessing process, windowing processing is used to reduce spectrum leakage, and in the execution of spectrum analysis, the amplitude value and phase value of at least one specific frequency band in the frequency domain data are extracted, and control information is generated according to the amplitude value and phase value, especially the setting of the low-frequency band. The opening and closing ratio and opening and closing speed of the proportional valve are controlled by changing the amplitude and frequency of the sound in the selected frequency band, so as to achieve changes in the height and speed of the flame, so that the gas flame can achieve a better rhythmic effect with the music. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings: Figure 1 is a schematic diagram of a control system of the present invention; Figure 2 It is a schematic flow chart of the control method of the present invention; Figure 3 The present invention Figure 2 Schematic diagram of the specific process of S1 in the figure; Figure 4 The present invention Figure 2 Schematic diagram of the specific process of S3 in the figure; Figure 5 is a schematic diagram of a control device according to a third embodiment of the present invention; Figure 6 is a schematic diagram of a control device according to a fourth embodiment of the present invention; Figure 7 It is a schematic diagram of the software interface of the present invention; In the figure: 1. Audio module; 2. Transformation and analysis module; 3. Drive module; 4. Proportional valve; 5. Audio amplifier; 6. Power switch; 7. System on chip; 8. Drive circuit; 9. Start-stop switch; 10. Microprocessor. DETAILED DESCRIPTION
[0016] The following is a further non-limiting detailed description of the technical solution of the present invention in conjunction with the preferred embodiments and the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0017] Example 1, reference Figure 1 , a sound-controlled gas control system for adjusting the height change of the generated flame, comprising an audio module 1, a transformation analysis module 2, a drive module 3, at least one proportional valve 4, and an audio amplifier 5; The audio module 1 is suitable for receiving a digital audio signal and generating audio data according to the digital audio signal, and then used to pre-process the discrete audio data and generate complex form data according to the result of the pre-processing; the transformation analysis module 2 is suitable for performing Fourier transform on the complex form data to generate multiple frequency domain data, and performing spectrum analysis on the frequency domain data to generate pulse width modulation data (Pulse Width Modulation); the driving module 3 is suitable for receiving the pulse width modulation data and converting an opening control signal according to the pulse width modulation data, wherein the opening control signal includes but is not limited to a current or voltage signal; the proportional valve 4 has a gas valve, and the proportional valve 4 is suitable for adjusting the opening and closing state of the gas valve according to the opening control signal, and the opening and closing state includes an opening and closing ratio and an opening and closing speed.
[0018] Specifically, the audio data collection method includes but is not limited to a Bluetooth connection terminal, such as a mobile phone, tablet, computer, smart speaker, etc. It should be noted that digital signal transmission is used between the Bluetooth connection terminal and the audio module 1, which makes the processing fast and the distortion low; in addition, compared with the connection of a wired or wireless network, the Bluetooth connection method can achieve short-distance communication, and has low cost and low power consumption.
[0019] The preprocessing is specifically to perform a frame process on the audio data to generate the nth frame data; if n is not equal to the last frame, the nth frame data is windowed; if n is equal to the last frame, the last frame data is zero-filled and then windowed. The windowing process can effectively reduce spectrum leakage.
[0020] The spectrum analysis specifically extracts the amplitude value and phase value of at least one specific frequency segment in the frequency domain data, and generates control information according to the amplitude value and phase value; and then generates pulse width modulation data according to the above control information and using a timer.
[0021] It should be noted that, firstly, the above specific frequency band is below 150 Hz, which is recorded as the low-frequency band. For example, the low-frequency band below 150 Hz, combined with the actual usage, plays a supporting role in the music structure, can express the low-frequency content of the music, make the audience feel the weak and effective dynamics, and make people's senses resonate with the music and the flames more; In addition, the frequency setting part can select the frequency band of interest according to human needs.
[0022] Among them, the interface of the proportional valve 4 in the gas system is connected to the gas storage tank by a pipeline, and the pipeline adopts a hose or a metal pipe. The proportional valve 4 is a device for controlling the mixing ratio of gas and air. The proportional valve 4 changes the mixing ratio of gas and air by controlling the opening.
[0023] Secondly, the opening and closing ratio and opening and closing speed of the proportional valve 4 are controlled by the amplitude and frequency changes of the audio data in the selected frequency band, so as to achieve the effect of the height and speed of the flame change. A specific frequency band corresponds to a proportional valve 4, so that the control signal output of each frequency band controls a proportional valve 4. The specific frequency band can be set to multiple, and the corresponding proportional valve 4 is also set to multiple. By setting multiple specific frequency bands and multiple proportional valves 4, a richer flame effect can be achieved; The opening and closing speed is set to every x seconds, and the proportional valve 4 will adjust the corresponding opening and closing ratio according to the audio data obtained in real time, and also perform a Fourier transform once every x seconds; It should be noted that a plurality of specific frequency bands are extracted from the frequency domain data according to equal width division or geometric division, preferably geometric division, such as 0-16Hz, 16-32Hz, 32-64Hz, and so on, which means that the frequency band width of the low frequency area is narrower, and the frequency band width of the high frequency area is wider. This method is more suitable for audio and sound analysis because it is closer to the human ear's perception of frequency. Correspondingly, each flame will change and jump in each frequency band; refer to Figure 7 , is the software interface of the sound-controlled gas, with the horizontal direction being frequency and the vertical direction being amplitude. There are 11 specific frequency bands in total, corresponding to 11 proportional valves 4. It is set to obtain the corresponding amplitude data in the specific frequency band once every 1 second. If it is the amplitude value corresponding to multiple specific frequency bands at the 32nd second, the opening and closing ratio of the corresponding proportional valve 4 is adjusted according to the amplitude value. When the amplitude is large, the opening and closing ratio of the proportional valve 4 is large, and the flame increases. When the amplitude is small, the opening and closing ratio of the proportional valve 4 is small, and the flame decreases, forming the effect of different flame heights; The setting of x can be determined according to the rhythm of the music. When the rhythm is fast, the value of x is small, and the flame will become faster following the replacement frequency of the proportional valve 4; when the rhythm is slow, the value of x is large, and the flame will become slower following the replacement frequency of the proportional valve 4. Therefore, when the music switches, the system will adjust the corresponding opening and closing speed in real time according to the rhythm of the music.
[0024] The transformation and analysis module 2 controls the opening and closing states of the gas valves of different proportional valves 4 according to the pulse width modulation data corresponding to each specific frequency band; The above audio amplifier 5 is suitable for playing music according to the digital audio signal, wherein the rhythm change of the music is synchronized with the height change of the flame.
[0025] Example 2, reference Figure 2 , a voice-controlled gas control method, comprising the following steps: S1: preprocessing discrete audio data and generating complex form data according to the preprocessing result; S2: performing Fourier transform according to the complex form data to generate a plurality of frequency domain data; S3: Performing spectrum analysis on the frequency domain data to generate pulse width modulation data, and converting an opening control signal according to the pulse width modulation data; S4: Adjust the opening and closing state of the gas valve of the proportional valve according to the opening control signal.
[0026] Furthermore, the preprocessing in S1 includes the following steps: S11: performing a frame division procedure on the audio data to generate n-th frame data; S12: If n is not equal to the last frame, perform windowing processing on the nth frame data; and If n is equal to the last frame, the last frame of frame data is padded with zeros and then windowed; Furthermore, the spectrum analysis in S3 includes the following steps: S31: extracting the amplitude value and the phase value of at least one specific frequency segment in the frequency domain data, and generating control information according to the amplitude value and the phase value; S32: Generate pulse width modulation data according to the control information and using a timer.
[0027] Example 3, reference Figure 5 , a voice-controlled gas control device, used as a carrier for executing the above-mentioned voice-controlled gas control system, specifically, comprising a power switch 6, a system on chip 7 (System on Chip), a drive circuit 8, and a start-stop switch 9; The audio module 1 and the transformation and analysis module 2 are both signal-connected to the system-on-chip 7, and the driving module 3 includes a driving circuit 8; The power switch 6 is electrically connected to the audio amplifier 5, the system on chip 7, and the driving circuit 8, and plays a role of power supply. The solid lines in the figure represent the electrical connection relationship; The start-stop switch 9 is connected to the system-on-chip 7 by signal, and is used to start and stop the rhythmic function of the flame; the system-on-chip 7 is used to receive digital audio signals, and generate audio data according to the digital audio signals, and then to preprocess the discrete audio data, and generate complex form data according to the results of the preprocessing; then Fourier transform is performed on the complex form data to generate multiple frequency domain data, and spectrum analysis is performed on the frequency domain data to generate pulse width modulation data; the output end of the system-on-chip 7 is respectively connected to the audio amplifier 5 and the drive circuit 8 by signal, and the output end of the system-on-chip 7 is connected to the drive circuit 8, and the drive circuit 8 is used to receive the pulse width modulation data and convert the opening control signal according to the pulse width modulation data. The drive circuit 8 is connected to the proportional valve 4 by signal, and the proportional valve 4 is used to adjust the opening and closing state of the gas valve according to the opening control signal. The audio amplifier 5 is used to play music according to the digital audio signal, and the rhythm change of the music is synchronized with the height change of the flame. The dashed line in the figure represents the signal connection relationship.
[0028] Example 4, reference Figure 4 , which is different from the setting of the voice-controlled gas control device in the third embodiment, a microprocessor 10 (Microcontroller Unit) is added, and the microprocessor 10 is an external component with a computing function; The audio module 1 includes a system on chip 7, and the transformation analysis module 2 includes a microprocessor 10; The system on chip 7 in this embodiment is used to receive a digital audio signal and generate audio data according to the digital audio signal, and then to pre-process the discrete audio data and generate complex form data according to the pre-processing result, and then the microprocessor 10 performs Fourier transform on the complex form data to generate a plurality of frequency domain data, and performs spectrum analysis on the frequency domain data to generate pulse width modulation data; In the case that the system on chip 7 cannot directly control the proportional valve 4, the implementation method is as follows: the power switch 6 is electrically connected to the microprocessor 10, the system on chip 7 is connected to the drive module 8 through the microprocessor 10 for signal communication, and the microprocessor 10 controls the proportional valve 4 through the drive circuit 8, thereby ensuring the realization of the sound-controlled gas effect.
[0029] Finally, it should be pointed out that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the above embodiments, a person skilled in the art should understand that the technical solutions described in the above embodiments can still be modified, or some of the technical features can be replaced by equivalents, and these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A sound-controlled gas control system for adjusting the height variation of the generated flame, characterized in that: include: An audio module, the audio module being adapted to preprocess discrete audio data and generate complex form data according to the result of the preprocessing; A transform analysis module, wherein the transform analysis module is adapted to perform Fourier transform on the complex form data to generate a plurality of frequency domain data, and perform spectrum analysis on the frequency domain data to generate pulse width modulation data; A driving module, the driving module is adapted to receive the pulse width modulation data and convert an opening control signal according to the pulse width modulation data; as well as At least one proportional valve has a gas valve, and the proportional valve is suitable for adjusting the opening and closing state of the gas valve according to the opening control signal.
2. The voice-controlled gas control system according to claim 1, characterized in that: The pre-processing comprises the following steps: Performing a framing procedure on the audio data to generate n-th frame data; If n is not equal to the last frame, performing windowing processing on the nth frame data; as well as If n is equal to the last frame, the windowing process is performed after zero padding operation is performed on the last frame of the frame data.
3. The voice-controlled gas control system according to claim 1, characterized in that: The spectrum analysis comprises the following steps: extracting an amplitude value and a phase value of at least one specific frequency segment in the frequency domain data, and generating control information according to the amplitude value and the phase value; and The pulse width modulation data is generated according to the control information and using a timer.
4. The voice-controlled gas control system according to claim 3, characterized in that: The specific frequency band is below 150 Hz.
5. The voice-controlled gas control system according to claim 4, characterized in that: There are multiple at least one specific frequency band and multiple at least one proportional valve, and the transformation analysis module controls the opening and closing states of the gas valves of different proportional valves according to the pulse width modulation data corresponding to each specific frequency band.
6. The voice-controlled gas control system according to claim 5, characterized in that: The multiple specific frequency segments are extracted from the frequency domain data in geometric proportion.
7. The voice-controlled gas control system according to claim 1, characterized in that: The audio module is suitable for receiving a digital audio signal and generating the audio data according to the digital audio signal, and the audio-controlled gas control system also includes an audio amplifier, which is suitable for playing music according to the digital audio signal, and the rhythm change of the music is synchronized with the height change of the flame.
8. A voice-controlled gas control method, characterized in that: The following steps are involved: Preprocessing discrete audio data and generating complex form data according to the preprocessing result; Performing Fourier transform on the complex form data to generate a plurality of frequency domain data; Performing spectrum analysis on the frequency domain data to generate pulse width modulation data; Converting an opening control signal according to the pulse width modulation data; as well as The opening and closing state of the gas valve of the proportional valve is adjusted according to the opening control signal.
9. A voice-controlled gas control method according to claim 8, characterized in that: The pre-processing comprises the following steps: Performing a framing procedure on the audio data to generate n-th frame data; If n is not equal to the last frame, performing windowing processing on the nth frame data; as well as If n is equal to the last frame, performing the windowing process after performing zero padding operation on the last frame of the frame data; or The spectrum analysis comprises the following steps: extracting an amplitude value and a phase value of at least one specific frequency segment in the frequency domain data, and generating control information according to the amplitude value and the phase value; and The pulse width modulation data is generated according to the control information and using a timer.
10. A voice-controlled gas control device, characterized in that: The voice-controlled gas control device is used as a carrier for executing the voice-controlled gas control system according to any one of claims 1 to 7.
