Audio rhythm lamp implementation method, circuit, system and storage medium

By using capacitive coupling and microcontroller frequency analysis technology in the audio rhythm light system, the problems of high cost of audio processing chips and complex system design in the existing technology are solved, and efficient and low-cost audio signal processing and the synchronization effect between light and music are achieved.

CN119855013APending Publication Date: 2025-04-18CHANGZHOU TONGBAO PHOTOELECTRIC MFG CO LTD

Patent Information

Application Number
CN202510317074.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-18
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

In the existing audio rhythm light technology, the audio processing chip is expensive, the system design is complex, and may introduce delay, affecting the synchronization effect of light and music.

Method used

The external audio signal is input to the microcontroller through capacitive coupling, and the microcontroller is used for frequency analysis, extract the main frequency components, calculate the brightness change parameters of the lamp, and generate control signals to adjust the brightness and color of the lamp, so as to achieve synchronous rhythm with the audio signal.

Benefits of technology

It simplifies the processing process of audio signals, reduces system costs, improves the ease of system design and maintenance efficiency, and ensures high-quality processing of audio signals, achieving efficient synchronization with music.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119855013A_ABST
    Figure CN119855013A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of automobile lamps, in particular to an audio rhythm lamp implementation method, circuit and system and a storage medium. The method comprises the following steps of: inputting an external audio signal into a single chip microcomputer in a capacitive coupling manner, and processing the audio signal as an alternating current signal by utilizing the direct current blocking and alternating current alternating current characteristic of a capacitor; and the single-chip microcomputer performs frequency analysis on the input audio signal and extracts main frequency components in the audio signal. According to the audio rhythm lamp implementation method, the audio signals are directly input to the single chip microcomputer in a capacitive coupling mode, the processing process of the audio signals is simplified, and the overall cost of the system is reduced. Specifically, audio signals are coupled through a capacitor, direct current components can be effectively removed, only alternating current signals are reserved, and therefore the purity of the audio signals is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automobile lamps, and in particular to a method, circuit, system and storage medium for realizing an audio rhythm lamp. Background Art

[0002] In the existing audio rhythm lamp technology, audio receiving chips or microphones are usually used to receive audio signals, and the signals are analyzed and processed through complex audio processing chips, and finally the processed signals are input to the control end of the lamp to achieve the synchronous rhythm of the lights and music. However, this solution has some significant defects. First, the cost of audio processing chips is high, which increases the cost burden of the entire system. Secondly, the complexity of audio processing chips makes system design and debugging more difficult, increasing the development cycle and maintenance costs. In addition, existing audio processing chips may introduce additional delays when processing audio signals, affecting the synchronization effect of lights and music.

[0003] In view of this, the present invention aims to solve the main technical problem existing in the prior art: that is, how to simplify system design and reduce overall cost while ensuring the quality of audio signal processing. Summary of the invention

[0004] The present invention provides an audio rhythm light implementation method, circuit, system and storage medium to achieve synchronous interaction between vehicle lights and audio, while reducing dependence on expensive audio processing chips.

[0005] The technical solution of the present invention to solve the above technical problems is as follows: On the one hand, a method for realizing an audio rhythm light is provided, the method comprising the steps of: The external audio signal is input to the single-chip microcomputer through capacitor coupling, and the audio signal is processed as an AC signal by utilizing the DC-blocking and AC-passing characteristics of the capacitor; The single chip microcomputer performs frequency analysis on the input audio signal to extract the main frequency components in the audio signal; According to the main frequency components, the corresponding lamp brightness change parameters are calculated, and the brightness change parameters are optimized by using an adaptive adjustment algorithm; The single chip microcomputer generates a control signal based on the brightness change parameter, and outputs the control signal to the vehicle light controller; The vehicle light controller receives the control signal, and adjusts the brightness and color of the lamp according to the control signal, and selects different lighting effects according to a preset mode; The lamp is displayed according to the adjusted brightness and color to achieve synchronous rhythm with the audio signal, and the actual display effect is detected by the light sensor, and the detection result is fed back to the single chip microcomputer to adjust the control signal.

[0006] Furthermore, the expression of the brightness change parameter is: , where L represents the brightness change parameter, A and B are constant coefficients, f is the frequency value of the main frequency component, t is the time variable, ϕ is the phase offset, C is another constant coefficient, and θ is another phase offset.

[0007] Furthermore, the control signal includes color change information, and the color change information is dynamically generated based on the frequency and amplitude of the audio signal, and the generation expression is: , where D represents the color change parameter, E is the first constant coefficient, F is the second constant coefficient, and ψ and ω are phase offsets.

[0008] Furthermore, the vehicle light controller can also select different lighting effects according to preset modes, wherein the lighting effects include flashing, gradual change or jumping, and in different modes, the specific parameters of the control signal are different to achieve diversified lighting effects.

[0009] Furthermore, the single chip microcomputer uses a fast Fourier transform algorithm to perform frequency analysis on the input audio signal to extract the main frequency components in the audio signal.

[0010] Furthermore, the adaptive adjustment algorithm continuously learns user preferences to optimize the calculation formula of the brightness change parameter, which is expressed as: , where P n+1 is the brightness change parameter calculated at time n+1, P n is the brightness change parameter currently calculated, H is the expected brightness value, α and β are the learning rates, and w i is the weight factor, K i and P i are the historical expected value and actual value respectively, n represents the current time step, i represents a time step in the historical data, γ is another constant coefficient, and η is the phase offset.

[0011] Furthermore, the step of extracting the main frequency components in the audio signal also includes performing noise filtering processing, removing high-frequency noise in the audio signal through a bandpass filter to improve the accuracy of frequency analysis, and the cutoff frequency range of the bandpass filter is adjusted according to actual needs to adapt to different types of audio signals.

[0012] On the other hand, an audio rhythm light circuit is provided, which is used to execute the audio rhythm light implementation method as described above, and the circuit includes at least: An audio input port for receiving external audio signals; A single chip microcomputer, used for processing the audio signal and generating a control signal; a capacitor connected between the audio input port and the single-chip microcomputer, for coupling the audio signal to the single-chip microcomputer; a lamp, used to display corresponding brightness and color according to the control signal; a vehicle light controller, for receiving the control signal and controlling the brightness and color of the lamp; a bandpass filter connected between the capacitor and the single chip microcomputer, for removing high frequency noise in the audio signal; a storage module, connected to the single chip microcomputer, for storing the processing algorithm and control parameters of the audio signal; A communication interface is connected to the single chip microcomputer and is used for data exchange with other devices.

[0013] On the other hand, there is provided an audio rhythm light realization system, which is integrated with the audio rhythm light circuit as described above, and the system further comprises at least: A user interface, used to set the working mode and parameters of the lamp, wherein the user interface is a touch screen or physical buttons; a power management module, used to provide a stable power supply, the power management module comprising a voltage stabilizer and a battery management unit; An environment sensing module is used to detect the light conditions around the vehicle and automatically adjust the brightness of the lamp according to the light conditions. The environment sensing module includes a light sensor and a temperature sensor.

[0014] On the other hand, a readable storage medium is provided, on which computer executable instructions are stored. When the instructions are executed by a processor, the processor executes the audio rhythm light implementation method as described above.

[0015] The beneficial effects of the present invention are: The present invention provides a method for implementing an audio rhythm lamp by directly inputting an audio signal into a single-chip microcomputer through capacitor coupling, which not only simplifies the processing process of the audio signal, but also reduces the overall cost of the system. Specifically, by coupling the audio signal through a capacitor, the DC component can be effectively removed, and only the AC signal is retained, thereby ensuring the purity of the audio signal. The single-chip microcomputer performs frequency analysis on the coupled audio signal, extracts the main frequency components, and calculates the corresponding lamp brightness change parameters based on these frequency components. Furthermore, the single-chip microcomputer generates a control signal and outputs it to the car light controller, so that the lamp can adjust the brightness and color in real time according to the changes in the audio signal, thereby achieving synchronous rhythm with the music.

[0016] Furthermore, the present invention also includes an adaptive adjustment algorithm, which continuously learns user preferences and optimizes the expression of brightness change parameters to improve its performance. At the same time, the actual display effect is detected by a light sensor, and the detection result is fed back to the single-chip microcomputer to further adjust the control signal to ensure that the actual display effect is consistent with the expectation.

[0017] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention and implement it according to the contents of the specification, the following is a detailed description of the preferred embodiments of the present invention in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 This is a flow chart of a method for implementing an audio rhythm light in one embodiment of the present invention; Figure 2 FIG. 4 is a circuit diagram of an audio rhythm lamp in one embodiment of the present invention. DETAILED DESCRIPTION

[0019] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are 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.

[0020] The term "comprise" and any variation thereof in the specification and claims of the present application are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units need not be limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. In addition, the use of "and / or" in the specification and claims to indicate at least one of the connected objects, such as A and / or B, means including A alone, B alone, and A and B.

[0021] In the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0022] The present invention provides the following preferred embodiments: Embodiment 1: In order to solve the problem of high cost and complex system design of audio processing chips in the prior art, this embodiment proposes a method for realizing an audio rhythm lamp. Specifically, this embodiment uses capacitor coupling to input an external audio signal into a single-chip microcomputer. Through the DC-blocking and AC-passing characteristics of the capacitor, the audio signal is processed as an AC signal, thereby removing the DC component and retaining the effective part of the audio signal.

[0023] like Figure 1 As shown, the steps of the audio rhythm light implementation method include: S100, input the external audio signal to the single chip microcomputer through capacitor coupling, and process the audio signal as an AC signal by utilizing the DC-isolating and AC-passing characteristics of the capacitor.

[0024] S200, the single chip microcomputer performs frequency analysis on the input audio signal and extracts the main frequency components in the audio signal.

[0025] S300, calculating corresponding lamp brightness change parameters according to the main frequency components, and optimizing the brightness change parameters using an adaptive adjustment algorithm.

[0026] S400, the single chip microcomputer generates a control signal based on the brightness change parameter, and outputs the control signal to the vehicle light controller.

[0027] S500, the vehicle light controller receives the control signal, adjusts the brightness and color of the lamp according to the control signal, and selects different lighting effects according to the preset mode.

[0028] S600, the lamp is displayed according to the adjusted brightness and color to achieve synchronous rhythm with the audio signal, and the actual display effect is detected by the light sensor, and the detection result is fed back to the microcontroller to adjust the control signal.

[0029] Furthermore, the single-chip microcomputer performs frequency analysis on the input audio signal and extracts the main frequency components in the audio signal. It should be understood that this frequency analysis method can effectively identify the key features of the audio signal and provide an accurate data basis for the subsequent calculation of the brightness change parameters. Based on the extracted main frequency components, the single-chip microcomputer calculates the corresponding lamp brightness change parameters and optimizes these parameters using an adaptive adjustment algorithm. It can be understood that the adaptive adjustment algorithm can dynamically adjust the brightness change parameters according to the actual environment and user preferences, thereby improving the flexibility of the system and user experience.

[0030] Furthermore, the single chip microcomputer generates a control signal based on the calculated brightness change parameter, and outputs the control signal to the car light controller. After receiving the control signal, the car light controller adjusts the brightness and color of the lamp according to the control signal. At the same time, the car light controller can select different lighting effects according to the preset mode, such as flashing, gradient or jumping. The lamp is displayed according to the adjusted brightness and color to achieve synchronous rhythm with the audio signal.

[0031] Furthermore, in order to ensure that the actual display effect is consistent with the expected one, the system is also equipped with a light sensor to detect the actual display effect of the lamp. The light sensor feeds back the detection results to the single-chip microcomputer, which further adjusts the control signal according to the feedback results to form a closed-loop control system. This can correct the display effect in real time and improve the stability and reliability of the system.

[0032] The benefit of this embodiment is that the input process of the audio signal is simplified through capacitive coupling, the system cost is reduced, and the flexibility and stability of the system are improved through an adaptive adjustment algorithm and a closed-loop control system, thereby achieving efficient synchronization between the car lights and the audio signal.

[0033] Embodiment 2: In order to solve the problem that the brightness change parameter calculation formula in the prior art is too simple and cannot meet the requirements of complex music rhythm, this embodiment further optimizes the expression of the brightness change parameter. Specifically, this embodiment uses the following expression to calculate the brightness change parameter: , where L represents the brightness change parameter, A and B are constant coefficients, f is the frequency value of the main frequency component, t is the time variable, ϕ is the phase offset, C is another constant coefficient, and θ is another phase offset.

[0034] Furthermore, by introducing a combination of sine and cosine terms, the expression can more accurately simulate the complex changes of the audio signal. It should be understood that the different frequencies and phase offsets of the sine and cosine terms make the brightness changes richer and more diverse, thus better matching the rhythm and emotion of the music. This complex expression not only improves the accuracy of brightness changes, but also enhances the expressiveness of visual effects.

[0035] Furthermore, after the single chip microcomputer calculates the brightness change parameter according to the above expression, it generates a corresponding control signal and outputs it to the car light controller. After receiving the control signal, the car light controller adjusts the brightness of the lamp according to the control signal. The lamp is displayed according to the adjusted brightness, thereby achieving synchronous rhythm with the audio signal.

[0036] Furthermore, in order to ensure that the actual display effect is consistent with the expected one, the system is also equipped with a light sensor to detect the actual display effect of the lamp. The light sensor feeds back the detection results to the single-chip microcomputer, which further adjusts the control signal according to the feedback results to form a closed-loop control system. This can correct the display effect in real time and improve the stability and reliability of the system.

[0037] Through this embodiment, the calculation of brightness change parameters is more precise and flexible, which can better match the complex rhythm of music and improve the expressiveness of visual effects.

[0038] Embodiment 3: In order to solve the problem that the light color change in the prior art is single and cannot fully reflect the diversity and complexity of the audio signal, this embodiment further optimizes the method for generating color change information. Specifically, this embodiment uses the following expression to generate color change information: , where D represents the color change parameter, E is the first constant coefficient, F is the second constant coefficient, and ψ and ω are phase offsets.

[0039] Furthermore, by introducing sine and cosine terms of different frequencies, the expression can generate rich color change effects. It should be understood that sine and cosine terms of different frequencies make the color change more diverse and natural, and can better reflect the frequency and amplitude changes of the audio signal. This complex expression not only improves the diversity of color changes, but also enhances the expressiveness of visual effects.

[0040] Furthermore, the single chip microcomputer generates color change information according to the above expression and includes it in the control signal. After receiving the control signal, the car light controller adjusts the color of the lamp according to the control signal. The lamp is displayed according to the adjusted color, thereby achieving synchronous rhythm with the audio signal.

[0041] Furthermore, in order to ensure that the actual display effect is consistent with the expected one, the system is also equipped with a light sensor for detecting the actual display effect of the lamp. The light sensor feeds back the detection result to the single-chip microcomputer, and the single-chip microcomputer further adjusts the control signal according to the feedback result to form a closed-loop control system. In this way, the display effect can be corrected in real time, and the stability and reliability of the system can be improved. Through this embodiment, the generation of color change information is more refined and flexible, and can better reflect the diversity and complexity of audio signals.

[0042] Embodiment 4: In order to solve the problem that the existing technology has a single lighting effect and cannot meet the diverse visual needs of users, this embodiment further optimizes the function of the car light controller. Specifically, this embodiment enables the car light controller to select different lighting effects according to preset modes, including flashing, gradient or jumping.

[0043] Furthermore, after receiving the control signal generated by the single-chip microcomputer, the car light controller selects a suitable lighting effect according to the specific parameters of the control signal. It should be understood that different lighting effects correspond to different control parameters. For example, a flashing effect may require a rapid brightness change, while a gradient effect requires a smooth brightness transition. By presetting multiple modes, users can choose the appropriate lighting effect according to the type of music and personal preferences, thereby improving the user experience.

[0044] Furthermore, the single chip microcomputer calculates the brightness change parameters according to the main frequency components of the audio signal and generates a control signal. After receiving the control signal, the car light controller adjusts the brightness and color of the lamp according to the control signal and selects the appropriate lighting effect. The lamp is displayed according to the adjusted brightness, color and effect, thereby achieving synchronous rhythm with the audio signal.

[0045] Furthermore, in order to ensure that the actual display effect is consistent with the expected one, the system is also equipped with a light sensor for detecting the actual display effect of the lamp. The light sensor feeds back the detection result to the single-chip microcomputer, and the single-chip microcomputer further adjusts the control signal according to the feedback result to form a closed-loop control system. In this way, the display effect can be corrected in real time, and the stability and reliability of the system can be improved. Through this embodiment, the car light controller can select a variety of lighting effects according to the preset mode to meet the diverse visual needs of users and improve the flexibility of the system.

[0046] Embodiment 5: In order to solve the problem that the frequency analysis of audio signals in the prior art is not accurate enough, resulting in inaccurate calculation of brightness change parameters, this embodiment further optimizes the frequency analysis method of audio signals. Specifically, this embodiment uses a fast Fourier transform algorithm (FFT) to perform frequency analysis on the input audio signal to extract the main frequency components in the audio signal.

[0047] Furthermore, the fast Fourier transform algorithm is an efficient frequency domain analysis method that can complete the frequency decomposition of the audio signal in a relatively short time. It should be understood that through the FFT algorithm, the microcontroller can accurately identify the main frequency components in the audio signal, thereby providing an accurate data basis for the subsequent calculation of the brightness change parameters. This efficient frequency analysis method not only improves the accuracy of frequency analysis, but also reduces processing time and improves the response speed of the system.

[0048] Furthermore, the single chip microcomputer calculates the brightness change parameter based on the extracted main frequency components and generates a control signal. After receiving the control signal, the car light controller adjusts the brightness and color of the lamp according to the control signal. The lamp is displayed according to the adjusted brightness and color, thereby achieving synchronous rhythm with the audio signal.

[0049] Furthermore, in order to ensure that the actual display effect is consistent with the expected one, the system is also equipped with a light sensor to detect the actual display effect of the lamp. The light sensor feeds back the detection results to the single-chip microcomputer, which further adjusts the control signal according to the feedback results to form a closed-loop control system. This can correct the display effect in real time and improve the stability and reliability of the system.

[0050] Through this embodiment, the fast Fourier transform algorithm is used to perform frequency analysis, which improves the accuracy and processing efficiency of the frequency analysis, thereby improving the calculation accuracy of the brightness change parameter and the response speed of the system.

[0051] Embodiment 6: In order to solve the problem that the brightness change parameter calculation formula in the prior art is fixed and cannot be dynamically adjusted according to user preferences, this embodiment further optimizes the adaptive adjustment algorithm. Specifically, this embodiment uses the following expression to continuously learn user preferences to optimize the calculation expression of the brightness change parameter: , where P n+1 is the brightness change parameter calculated at time n+1, P n is the brightness change parameter currently calculated, H is the expected brightness value, α and β are the learning rates, and w i is the weight factor, K i and P i are the historical expected value and actual value respectively, n represents the current time step, i represents a time step in the historical data, γ is another constant coefficient, and η is the phase offset.

[0052] Furthermore, by introducing an adaptive adjustment algorithm, the system can continuously learn the user's preferences and dynamically adjust the brightness change parameters according to these preferences. It should be understood that this adaptive adjustment algorithm not only takes into account the difference between the current expected value and the actual value, but also takes into account the influence of historical data, so that the brightness change is more in line with the user's actual needs. It can be understood that in this way, the flexibility of the system and the user experience have been significantly improved.

[0053] Furthermore, after the single chip microcomputer calculates the brightness change parameter according to the above expression, it generates a corresponding control signal and outputs it to the car light controller. After receiving the control signal, the car light controller adjusts the brightness of the lamp according to the control signal. The lamp is displayed according to the adjusted brightness, thereby achieving synchronization with the audio signal. Through this embodiment, the adaptive adjustment algorithm enables the brightness change parameter to be dynamically adjusted according to the user's preference.

[0054] Embodiment 7: In order to solve the problem that high-frequency noise in audio signals interferes with the accuracy of frequency analysis in the prior art, this embodiment further optimizes the frequency component extraction process. Specifically, this embodiment adds a noise filtering process step when extracting the main frequency components of the audio signal. The high-frequency noise in the audio signal is removed by a bandpass filter to improve the accuracy of frequency analysis.

[0055] Furthermore, the cutoff frequency range of the bandpass filter can be adjusted according to actual needs to adapt to different types of audio signals. It should be understood that the bandpass filter can effectively filter out high-frequency noise and retain the effective part of the audio signal, thereby improving the accuracy of frequency analysis. It can be understood that in this way, the system can more accurately identify the main frequency components in the audio signal and provide a reliable data basis for the subsequent calculation of brightness change parameters.

[0056] Furthermore, the single-chip microcomputer performs frequency analysis on the audio signal processed by the bandpass filter and extracts the main frequency components. Based on the extracted main frequency components, the single-chip microcomputer calculates the corresponding brightness change parameters and generates a control signal. After receiving the control signal, the car light controller adjusts the brightness and color of the lamp according to the control signal. The lamp is displayed according to the adjusted brightness and color, thereby achieving synchronous rhythm with the audio signal.

[0057] Through this embodiment, the application of the bandpass filter improves the accuracy of frequency analysis, thereby improving the calculation accuracy of the brightness change parameter and the overall performance of the system.

[0058] Embodiment 8: In order to solve the problem of complex design and high cost of audio rhythm lamp circuit in the prior art, this embodiment further optimizes the circuit structure and proposes an audio rhythm lamp circuit, including the following components: an audio input port, a single chip microcomputer, a capacitor, a lamp, a car light controller, a bandpass filter, a storage module and a communication interface, such as Figure 2 Specifically, the relationship of the audio rhythm light circuit is as follows: 1. Audio input and preprocessing circuit Audio input port P2: used for accessing external audio signals, including pin 1 and pin 2, wherein pin 2 is grounded.

[0059] Capacitor C10: One end of capacitor C10 is connected to pin 1 of audio input port P2, and the other end is grounded. Capacitor C10 is used to filter out high-frequency noise in the audio signal.

[0060] Capacitor C6: One end of capacitor C6 is connected to pin 1 of audio input port P2, and the other end is connected to pin 37 of microcontroller U4. Capacitor C6 is used for coupling audio signals and filtering.

[0061] Resistor R6: One end of the resistor R6 is connected to the 1st pin of the audio input port P2, and the other end is grounded, which is used to limit the current and prevent excessive current from flowing into the subsequent circuit.

[0062] Resistor R7: One end of resistor R7 is connected to pin 37 of microcontroller U4, and the other end is grounded for voltage division or current limiting.

[0063] Diode D3: The anode of diode D3 is connected to P2 and the cathode is grounded. It is used for clamping and protection to prevent reverse voltage.

[0064] Transient voltage suppression diode TVS1: One end of the transient voltage suppression diode TVS1 is connected to pin 1 of the audio input port P2, and the other end is grounded to protect the circuit from transient voltage shocks.

[0065] 2. Single chip microcomputer control system Single chip microcomputer U4: used to control the audio rhythm light circuit.

[0066] Pin 37 of the microcontroller U4: connected between the capacitor C6 and the resistor R7 of the filtering and protection circuit, used to receive the processed audio signal.

[0067] Pin 1 of microcontroller U4, RSTN / P0.0 (reset pin): connected to an external reset circuit for resetting microcontroller U4.

[0068] Specifically, the external reset circuit includes capacitors C23 to C26 and resistor R22. The first pin of the microcontroller U4 is connected to the resistor R22 and the capacitor C23. The other ends of the resistor R22 and the capacitor C23 are grounded. The second pin of the microcontroller U4 is also grounded. The third pin of the microcontroller U4 is connected to a 5V voltage. Capacitors C23 to C26 are connected in parallel between the 5V voltage and the ground to filter out noise of different frequencies and provide a more stable power supply voltage. Resistor R22 limits the surge current when charging capacitors C23 to C26.

[0069] Furthermore, the 43rd pin, the 40th pin and the 39th pin of the single chip computer U4 are connected to a 5V power supply through resistors R23, R24 and R25 respectively.

[0070] 3.LED drive and display circuit LED driver chip U7: used to control multiple LED lights.

[0071] LED1 to LED21: One end of each LED is connected to the corresponding output pin of U7 and the other end is connected to ground through current limiting resistors R38-R43.

[0072] Furthermore, resistors R38 to R43 are connected to pins 1 to 5 of the LED driver chip U7 in sequence, and are used to limit the current flowing through the LED to prevent damage to the LED, wherein the other ends of resistors R38 to R41 are respectively connected to pins 43, 41, 40 and 39 of the microcontroller U4; the other ends of resistors R42 and R43 are both grounded.

[0073] Furthermore, capacitor C59 and capacitor C60 are connected in parallel between the 5V power supply and ground for filtering and stabilizing the LED driving circuit.

[0074] 4. Power supply voltage stabilization circuit Voltage regulator U2: used to convert the input voltage VIN+ into a stable output voltage V5.

[0075] The battery is connected to the input terminal VI of the voltage regulator U2 through the diode D4. The diode D plays a protective role to prevent the reverse current from damaging the battery.

[0076] Input filter capacitors C12, C13, C16 and C17 are respectively connected in parallel between the input terminal of the voltage regulator and the ground to filter out high-frequency noise and ripples in the input voltage and provide a more stable input voltage to the voltage regulator U2.

[0077] Output filter capacitors C14, C15 and C18 are respectively connected in parallel between the output terminal V5 of the regulator and the ground to further filter out high-frequency noise and ripple in the output voltage and provide a purer power supply for subsequent circuits.

[0078] The output voltage V5 of the voltage regulator U2 is used as a stable power supply for the entire circuit and is supplied to other components. For example, V5 is connected to the reset pin of the microcontroller U4 through the RSTN pin, and other parts such as the LED drive circuit are powered through V5.

[0079] 5. Interface circuit The debugging interface J1 is used to communicate with the microcontroller U4 through the single-wire debugging (SingleWireDebug) protocol.

[0080] Pin 1 of J1: Connect to the SWD-DIO pin of microcontroller U4.

[0081] Pin 2 of J1: Connect to the SWD-CLK pin of microcontroller U4.

[0082] J1 pin 3: Connect to V5 supply voltage.

[0083] J1 pin 4: Connect to ground.

[0084] The debug interface J1 allows developers to debug, program, and monitor the microcontroller U4 during the development process. It uses two signal lines: SWD-DIO (Data I / O): Data input / output line, used for bidirectional data transmission.

[0085] SWD-CLK (Clock): Clock line, used for synchronous data transmission.

[0086] Pin 3 of J1 is connected to V5 to provide the power supply voltage required by the debugger; pin 4 is connected to GND to provide a reference ground. This ensures electrical compatibility between the debugger and the microcontroller. In actual design, some protection components such as current limiting resistors or transient voltage suppressors TVS are usually added to the SWD-DIO and SWD-CLK lines to prevent electrostatic discharge and other electrical interference from damaging the microcontroller.

[0087] Furthermore, the audio input port is used to receive an external audio signal. A capacitor is connected between the audio input port and the single-chip microcomputer, and the audio signal is coupled to the single-chip microcomputer by utilizing the characteristics of the capacitor that blocks direct current and passes alternating current. The single-chip microcomputer processes the audio signal and generates a control signal. It should be understood that, through the capacitor coupling method, the system simplifies the input process of the audio signal and reduces the cost.

[0088] Furthermore, a bandpass filter is connected between the capacitor and the single-chip microcomputer to remove high-frequency noise in the audio signal and improve the accuracy of frequency analysis. The storage module is connected to the single-chip microcomputer to store the processing algorithm and control parameters of the audio signal. The communication interface is connected to the single-chip microcomputer for data exchange with other devices. It can be understood that the introduction of the bandpass filter and the storage module further enhances the functionality and reliability of the system.

[0089] Furthermore, the car light controller receives the control signal generated by the single chip microcomputer and adjusts the brightness and color of the lamp according to the control signal. The lamp is displayed according to the adjusted brightness and color, thereby achieving synchronous rhythm with the audio signal. Through this embodiment, the optimized circuit structure simplifies the processing process of the audio signal, reduces the cost, and improves the function and reliability of the system.

[0090] Embodiment 9: In order to solve the problem of single function and insufficient user experience of the audio rhythm light system in the prior art, this embodiment further optimizes the design of the system. Specifically, this embodiment provides an audio rhythm light implementation system, which integrates the audio rhythm light circuit and adds a user interface, a power management module and an environment perception module.

[0091] Furthermore, the user interface is used to set the working mode and parameters of the lamp, and the user interface can be a touch screen or physical buttons. Users can conveniently select different lighting effects and working modes through the user interface to meet diverse visual needs. It should be understood that the introduction of the user interface significantly improves the ease of use and user experience of the system.

[0092] Furthermore, the power management module is used to provide a stable power supply, including a voltage regulator and a battery management unit. The voltage regulator ensures the stability of the system power supply, while the battery management unit is responsible for the charge and discharge management of the battery to extend the battery life. It can be understood that the introduction of the power management module ensures the stable operation and long life of the system.

[0093] Furthermore, the environment perception module is used to detect the light conditions around the vehicle and automatically adjust the brightness of the lamps according to the light conditions. The environment perception module includes a light sensor and a temperature sensor. The light sensor detects the light intensity of the surrounding environment, and the temperature sensor detects the ambient temperature, thereby automatically adjusting the brightness of the lamps according to the actual environmental conditions, thereby improving the intelligence level of the system. It can be understood that the introduction of the environment perception module enables the system to better adapt to different environmental conditions and improve the user experience.

[0094] Furthermore, the single chip microcomputer calculates the brightness change parameter according to the main frequency components of the audio signal and generates a control signal. After receiving the control signal, the car light controller adjusts the brightness and color of the lamp according to the control signal. The lamp is displayed according to the adjusted brightness and color, thereby achieving synchronous rhythm with the audio signal. Through this embodiment, the system adds a user interface, a power management module and an environment perception module, thereby improving the function of the system.

[0095] Embodiment 10: In order to solve the portability and scalability problems of the audio rhythm light implementation method in the prior art, this embodiment proposes a readable storage medium on which computer executable instructions are stored. When these instructions are executed by a processor, the processor executes the audio rhythm light implementation method.

[0096] Furthermore, the storage medium may be various forms of non-volatile storage media, such as flash memory, hard disk, optical disk, etc. It should be understood that by storing the code of the audio rhythm light implementation method on a readable storage medium, it can be easily deployed and upgraded on different devices. It can be understood that this design method improves the portability and scalability of the system.

[0097] Furthermore, the computer executable instructions on the storage medium include key steps such as audio signal processing, frequency analysis, brightness change parameter calculation, control signal generation, etc. The single chip microcomputer reads these instructions from the storage medium and executes them, completing the entire implementation process of the audio rhythm light.

[0098] Furthermore, the single chip microcomputer calculates the brightness change parameter according to the main frequency components of the audio signal and generates a control signal. After receiving the control signal, the car light controller adjusts the brightness and color of the lamp according to the control signal. The lamp is displayed according to the adjusted brightness and color, thereby achieving synchronous rhythm with the audio signal. Through this embodiment, the design of the readable storage medium improves the portability and extensibility of the audio rhythm lamp implementation method, and facilitates the deployment and upgrade of the system.

[0099] The embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific implementation mode of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solution of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for realizing an audio rhythm light, characterized in that: The steps of the method include: The external audio signal is input to the single-chip microcomputer through capacitor coupling, and the audio signal is processed as an AC signal by utilizing the DC-blocking and AC-passing characteristics of the capacitor; The single chip microcomputer performs frequency analysis on the input audio signal to extract the main frequency components in the audio signal; According to the main frequency components, the corresponding lamp brightness change parameters are calculated, and the brightness change parameters are optimized by using an adaptive adjustment algorithm; The single chip microcomputer generates a control signal based on the brightness change parameter, and outputs the control signal to the vehicle light controller; The vehicle light controller receives the control signal, and adjusts the brightness and color of the lamp according to the control signal, and selects different lighting effects according to a preset mode; The lamp is displayed according to the adjusted brightness and color to achieve synchronous rhythm with the audio signal, and the actual display effect is detected by the light sensor, and the detection result is fed back to the single chip microcomputer to adjust the control signal.

2. The method for realizing the audio rhythm light according to claim 1, characterized in that: The expression of the brightness change parameter is: , where L represents the brightness change parameter, A and B are constant coefficients, f is the frequency value of the main frequency component, t is the time variable, ϕ is the phase offset, C is another constant coefficient, and θ is another phase offset.

3. The method for realizing the audio rhythm light according to claim 1, characterized in that: The control signal includes color change information, which is dynamically generated based on the frequency and amplitude of the audio signal, and the generation expression is: , where D represents the color change parameter, E is the first constant coefficient, F is the second constant coefficient, and ψ and ω are phase offsets.

4. The method for realizing the audio rhythm light according to claim 1, characterized in that: The vehicle light controller can also select different lighting effects according to preset modes, wherein the lighting effects include flashing, gradual change or jumping, and in different modes, the specific parameters of the control signal are different to achieve diversified lighting effects.

5. The method for realizing the audio rhythm light according to claim 1, characterized in that: The single chip microcomputer uses a fast Fourier transform algorithm to perform frequency analysis on the input audio signal to extract the main frequency components in the audio signal.

6. The method for realizing the audio rhythm light according to claim 2, characterized in that: The adaptive adjustment algorithm continuously learns user preferences to optimize the calculation formula of the brightness change parameter, which is expressed as: , where P n+1 is the brightness change parameter calculated at time n+1, P n is the brightness change parameter currently calculated, H is the expected brightness value, α and β are the learning rates, and w i is the weight factor, K i and P i are the historical expected value and actual value respectively, n represents the current time step, i represents a time step in the historical data, γ is another constant coefficient, and η is the phase offset.

7. The method for realizing the audio rhythm light according to claim 6, characterized in that: The step of extracting the main frequency components in the audio signal also includes performing noise filtering processing, removing high-frequency noise in the audio signal through a bandpass filter to improve the accuracy of frequency analysis, and the cutoff frequency range of the bandpass filter is adjusted according to actual needs to adapt to different types of audio signals.

8. An audio rhythm light circuit, used to execute the audio rhythm light realization method according to any one of claims 1 to 7, characterized in that: The circuit comprises at least: An audio input port for receiving external audio signals; A single chip microcomputer, used for processing the audio signal and generating a control signal; a capacitor connected between the audio input port and the single-chip microcomputer, for coupling the audio signal to the single-chip microcomputer; a lamp, used to display corresponding brightness and color according to the control signal; a vehicle light controller, for receiving the control signal and controlling the brightness and color of the lamp; a bandpass filter connected between the capacitor and the single chip microcomputer, for removing high frequency noise in the audio signal; a storage module, connected to the single chip microcomputer, for storing the processing algorithm and control parameters of the audio signal; A communication interface is connected to the single chip microcomputer and is used for data exchange with other devices.

9. An audio rhythm light realization system, integrated with the audio rhythm light circuit as claimed in claim 8, characterized in that: The system further comprises at least: A user interface, used to set the working mode and parameters of the lamp, wherein the user interface is a touch screen or physical buttons; a power management module, used to provide a stable power supply, the power management module comprising a voltage stabilizer and a battery management unit; An environment sensing module is used to detect the light conditions around the vehicle and automatically adjust the brightness of the lamp according to the light conditions. The environment sensing module includes a light sensor and a temperature sensor.

10. A readable storage medium, characterized in that: Computer executable instructions are stored thereon. When the instructions are executed by a processor, the processor executes the audio rhythm light implementation method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Led-based luminaire utilizing optical feedback color and intensity control scheme

    CN101015233A

  • Audio lamp

    CN108954202A

  • Illuminating lamp control method and system based on data prediction

    CN117279164A

  • Visualized audio frequency output state detection tool

    CN202362123U

  • LED music rhythm control circuit, cascade control circuit and lamp effect control device

    CN215420841U

Cited By

  • Design method of visual piano key rhythm lamp

    CN120224527A