CN110753432A - Multi-state new energy automobile atmosphere lamp system and control method thereof - Google Patents

Multi-state new energy automobile atmosphere lamp system and control method thereof Download PDF

Info

Publication number
CN110753432A
CN110753432A CN201911208162.3A CN201911208162A CN110753432A CN 110753432 A CN110753432 A CN 110753432A CN 201911208162 A CN201911208162 A CN 201911208162A CN 110753432 A CN110753432 A CN 110753432A
Authority
CN
China
Prior art keywords
atmosphere lamp
state
color
audio
resistor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911208162.3A
Other languages
Chinese (zh)
Other versions
CN110753432B (en
Inventor
曹其全
王帅
李长雨
宋亚顶
许志承
张亚童
史玲
穆范全
苏焕焕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jining Zhongke Advanced Technology Institute Co Ltd
Original Assignee
Jining Zhongke Advanced Technology Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jining Zhongke Advanced Technology Institute Co Ltd filed Critical Jining Zhongke Advanced Technology Institute Co Ltd
Priority to CN201911208162.3A priority Critical patent/CN110753432B/en
Publication of CN110753432A publication Critical patent/CN110753432A/en
Application granted granted Critical
Publication of CN110753432B publication Critical patent/CN110753432B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The invention discloses a multi-state new energy automobile atmosphere lamp system and a control method thereof, belonging to the technical field of automobile electronic circuits, comprising an audio processing module, an ADC processing module, an MCU master control unit, upper layer CAN bus equipment, a CAN signal processing module and an RGB drive unit, wherein the input signal of the system is an audio signal output by a vehicle-mounted DVD or external handheld equipment, the audio processing module receives the output audio signal to carry out primary processing of the audio signal, the audio processing module is connected with the ADC processing module, the ADC processing module is used for audio parameter acquisition and AD conversion and transmits the processed audio signal to the MCU master control unit, the upper layer CAN bus equipment sends a control instruction of an atmosphere lamp state to the MCU master control unit through the CAN signal processing module, the MCU master control unit controls the operation of the atmosphere lamp through the RGB drive unit to realize the control of various states of the atmosphere lamp, the problems in the prior art are solved.

Description

Multi-state new energy automobile atmosphere lamp system and control method thereof
Technical Field
The invention relates to a multi-state new energy automobile atmosphere lamp system and a control method thereof, and belongs to the technical field of automobile electronic circuits.
Background
With the continuous development of the automobile industry, the automobile industry is in the period of changing development modes and optimizing strategic transformation of the industry, and the development trend of the new energy automobile era gradually becomes a new favorite in the market. Atmosphere lamps are used as novel lamp species in automobiles, and are gradually increasing to attract attention of wide consumers, and the atmosphere lamps of new energy automobiles are still blank in the market at present. The existing automobile atmosphere lamp system has the advantages of complex structure, higher cost, fewer atmosphere lamp modes and single control mode and use control method.
Along with the popularization of new energy automobile, for satisfying the supplementary of interior trim functional lighting, improve the comfort level of driving, promote the automobile science and technology sense. Therefore, how to provide a multi-state multi-platform atmosphere lamp control system becomes an urgent problem to be solved.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a multi-state new energy automobile atmosphere lamp system and a control method thereof, so that the control of various states of the atmosphere lamp is realized, and the problems in the prior art are solved.
The invention relates to a multi-state new energy automobile atmosphere lamp system, which comprises an audio processing module, an ADC processing module, an MCU main control unit, an upper layer CAN bus device, a CAN signal processing module and an RGB driving unit, wherein an input signal of the system is an audio signal output by a vehicle-mounted DVD or an external handheld device, the audio processing module receives the output audio signal to perform primary processing on the audio signal, the audio processing module is connected with the ADC processing module, the ADC processing module is used for audio parameter acquisition and AD conversion and transmits the processed audio signal to the MCU main control unit, the upper layer CAN bus device sends a control instruction of an atmosphere lamp state to the MCU main control unit through the CAN signal processing module, the MCU main control unit analyzes the control instruction of the atmosphere lamp state, the RGB driving unit controls the operation of an atmosphere lamp, the RGB driving unit is connected with the atmosphere lamp, and the RGB driving unit is driven in a common negative mode, the anode of the RGB driving unit is connected with the output of the PWM of the MCU main control unit to realize audio packet data processing, and the MCU main control unit controls the output of the PWM to realize the control of the atmosphere lamp.
Further, the system further comprises an upper computer client, the upper computer client is connected with the MCU master control unit through CAN communication, and switching value enabling control of the MCU master control unit and the atmosphere lamp and working mode control of the atmosphere lamp are achieved.
Furthermore, the audio processing module comprises a LINE _ IN + port, a LINE _ IN-port and a LINE _ short port, wherein the LINE _ IN + port is connected with a music signal analog input, the LINE _ IN port is connected to an ADC (analog-to-digital converter) end of the MCU main control unit, a first diode and a second diode are connected behind the LINE _ IN port, the first diode and the second diode are connected IN parallel and then connected with a first resistor and a first capacitor, the first resistor and the first capacitor are connected IN parallel and then connected with a second resistor and a third resistor, the second resistor and the third resistor are connected IN parallel and then connected with a second capacitor, the second capacitor is connected with a heating wire and then connected with the LINE _ IN + port, the second capacitor is connected with a first voltage stabilizing diode and then connected with the LINE _ IN-port, and the LINE _ IN-port is connected with a first inductor and then connected with the LINE _ short port.
Furthermore, CAN signal processing module includes that the power keeps apart the chip, CAN transceiver chip, CANH pin and CANL pin, the chip is kept apart to the power connects CAN transceiver chip, the external connection of chip and CAN transceiver chip is kept apart to the power has ESD protection diode, CANH pin and CANL pin are connected to upper CAN bus equipment through sixteenth resistance on, have twelfth electric capacity and thirteenth electric capacity between CANH pin and CANL pin and the ground in parallel for upper CAN bus equipment high frequency interference of filtering.
Furthermore, the audio processing module further comprises an audio power amplification chip, a pin 2 of the audio power amplification chip is grounded, a pin 3 and a pin 4 of the audio power amplification chip are connected with an adjustable resistor, the adjustable resistor is connected with a fourth capacitor, the fourth capacitor is connected with a tenth resistor and a third capacitor, a pin 5 of the audio power amplification chip is connected with an eleventh resistor and an eleventh capacitor and then is connected with an output end, the eleventh capacitor is connected with a tenth capacitor, a twelfth resistor and a thirteenth resistor in parallel outside, and a seventh capacitor is connected between the pin 1 and the pin 8 of the audio power amplification chip.
Further, the RGB drive unit includes a three-way output drive unit, wherein the first way output drive unit includes a first triode, a fourth resistor and a fifth resistor, wherein the base of the first triode is connected with the fourth resistor and the fifth resistor, the collector of the first triode is connected with the lamp bead, the emitter of the first triode is grounded, the second way output drive unit includes a second triode, a sixth resistor and a seventh resistor, wherein the base of the second triode is connected with the sixth resistor and the seventh resistor, the collector of the second triode is connected with the lamp bead, the emitter of the second triode is grounded, the third way output drive unit includes a third triode, an eighth resistor and a ninth resistor, wherein the base of the third triode is connected with the eighth resistor and the ninth resistor, the collector of the third triode is connected with the lamp bead, and the emitter of the third triode is grounded.
Furthermore, the MCU main control unit adopts an STM8S208 single chip microcomputer with an 8-bit inner core, and a program programming port, a reset port, a switch key and a power indicator lamp are connected to the outside of the STM8S208 single chip microcomputer. The AD is 10 bits, and the method has the advantages of convenient use and low cost. The single chip microcomputer CAN decode CAN bus transceiver circuit control signals, process AD sampling data, control algorithm of RGB and realize control mode.
Further, the state of the atmosphere lamp includes a monochromatic resting state, a monochromatic breathing state, a color-changing breathing state, a monochromatic rhythm state, and a color-changing rhythm state.
The control method of the multi-state new energy automobile atmosphere lamp comprises an automatic control mode and a manual control module, wherein in the automatic control mode, an MCU (microprogrammed control Unit) and upper-layer CAN (controller area network) bus equipment are used as control terminals to finish the control of the brightness and color change of the atmosphere lamp in various mode states, wherein the speed of the color change along with music is adjustable; under the manual control mode, the control of the atmosphere lamp can be finished through the client side of the atmosphere lamp control upper computer; the automatic control mode comprises the following steps:
s1: the audio processing module processes an audio signal output by the vehicle-mounted DVD or external handheld equipment, provides a reference voltage, and converts the audio signal into an analog parameter after processing;
s2: the ADC processing module acquires a frequency spectrum sequence of the audio signal, generates a digital control parameter of the brightness and the color of the vehicle-mounted range lamp according to the frequency spectrum sequence, and transmits the processed audio signal to the MCU main control unit;
s3: MCU the main control unit carries out logic algorithm to the signal value that ADC processing module handled and handles, draws the audio frequency envelope, and CAN signal processing module receives upper CAN bus equipment's control command and carries out analysis with control command, and control command is the state mode of controlling atmosphere lamp, and the state mode includes: a monochromatic resting state, a monochromatic breathing state, a color-changing breathing state, a monochromatic rhythm state and a color-changing rhythm state;
s4: the MCU main control unit controls the RGB driving unit to drive the ambient lamp to display in full color with different colors according to the control command analyzed in step S3 through the output of the PWM, and the brightness of the light source is changed continuously.
Further, the state control command of the atmosphere lamp in step S3 specifically includes the following: the upper-layer CAN bus equipment sends a control instruction for controlling the state mode of the atmosphere lamp to the MCU main control unit, the MCU main control unit controls the state mode of the atmosphere lamp through a program according to the sent control instruction, and controls the delayed counting state through the program by setting an initial static color value, a brightness value and a delayed counting state, wherein the color conversion speed is adjustable, and the state of the atmosphere lamp is adjustable;
when the atmosphere lamp is in a monochromatic static state, setting a color sequence number and brightness through a program, and adjusting PWM output to display the atmosphere lamp in a single color state;
when the atmosphere lamp is in the monochromatic breathing state, setting the color sequence number and the brightness through a program, adjusting the PWM output to change the color state of the monochromatic breathing lamp, and realizing the regular bright and dark color change of the atmosphere lamp in the single color state;
when the breathing state is changed, setting the brightness change of the atmosphere lamp in different color states by a program to finish the realization of RGB three colors; the breathing color in the program setting is divided into an initial color, an intermediate color and a termination color state, the color serial numbers comprise KEEP, ADD and SUB states, the color serial number and the brightness of the color-changing breathing state are set, and the color state of the monochromatic breathing lamp is changed by adjusting PWM output through a color-changing breathing control algorithm, so that the change of brightness and darkness of the atmosphere lamp in different color states is realized;
when the color-changing machine is in a monochromatic rhythm state, after the initial color of the dynamic effect is set through a program, the dynamic effect is controlled and realized, and the dynamic effect control realization process is as follows: data received by the ADC processing module are collected, a LINE _ IN is an AD sampling port, a sampling period is once IN 2ms, 60 groups of data are sampled IN 120ms, an AD sampling array is counted, data IN a counting period are processed, extraction of audio envelope data is completed, and the extraction process is as follows: the following conditions are satisfied within the counting period: uo (t) > Uo (t-), Uo (t) ═ Ui (t); when ui (t) < Uo (t-), Uo (t) ═ Uo (t-1) × RCT/(RCT +1), where Uo (t) is the real-time audio extraction data, Uo (t-) is the last audio extraction data, ui (t) is the real-time AD sampling data, the counting period N is 60, and RCT is 30; after audio envelope lines are extracted, dynamic effect processing is carried out on data, RGB is operated in a monochrome mode state under a monochrome rhythm state, value taking logic processing is carried out on extracted audio signals, and six paths of PWM output of BODY _ RED, BODY _ GREEN, BODY _ BLUE, DASH + RED, DASH _ GREEN and DASH _ BLUE are adjusted through dynamic processing functions, so that atmosphere lamps can move with single color rhythm along with music, and the brightness and the darkness of the atmosphere lamps change and the change speed can be adjusted;
when the color-changing rhythm state is achieved, after the initial color of the dynamic effect is set through a program, the dynamic effect is controlled and achieved, and the achieving process is as follows: data that ADC processing module received are gathered, LINE _ IN is AD sampling port, and sampling cycle is once for 2ms, and 60 group data are sampled altogether to 120ms, count AD sampling array, and data are handled IN the count cycle, accomplish audio frequency envelope curve data extraction, and wherein count cycle N is 60, and RCT is 30, satisfies the following condition IN the count cycle: uo (t) > Uo (t-), Uo (t) ═ Ui (t); when Ui (t) < Uo (t-), Uo (t) < Uo (t-1) × RCT/(RCT +1), wherein Uo (t) is real-time audio extraction data, Uo (t-) is last audio extraction data, Ui (t) is real-time AD sampling data, dynamic effect processing is carried out on the data after audio envelope curve extraction, logic value taking processing is carried out on the extracted audio signals, RGB three basic color values are dynamic values, BODY _ RED, BODY _ GREEN, BODY _ BLUE, DASH + RED, DASH _ GREEN and DASH _ BLUE are output through six PWM, real-time rhythm of the ambient light along with music is realized, and brightness and darkness change along with the music and the speed of the change are adjustable.
Further, under the manual control mode, accomplish the control to the atmosphere lamp through atmosphere lamp control host computer client, specifically include: open CAN communication button, host computer client and CAN establish communication, running state and message pilot lamp light, carry out the receiving and dispatching of CAN message, through the breathing that discolours, the rhythm of the colour change, monochromatic rhythm of the rhythm, monochromatic static, the steerable atmosphere lamp mode of five buttons of monochromatic breathing, the mode divide into the breathing that discolours, the rhythm of the colour change, monochromatic rhythm of the colour, monochromatic static, monochromatic breathing totally five kinds of states, host computer client CAN play and the recording music, the volume setting is greater than 5, when the atmosphere lamp is in the rhythm mode, host computer client broadcast music, atmosphere lamp pearl is along with the music rhythm.
Compared with the prior art, the invention has the following beneficial effects:
the multi-state new energy automobile atmosphere lamp system and the control method thereof can realize the control of various states of the atmosphere lamp, the existing atmosphere lamp system mostly adopts audio and handheld equipment for output, and the atmosphere lamp cannot change along with external sound.
The existing atmosphere lamp system is not adjustable in state, the control mode and the control method are single, the atmosphere lamp system disclosed by the invention is adjustable in various states of single-color static state, single-color breathing, color-changing breathing, single-color rhythm and color-changing rhythm, and the mode CAN be controlled by an upper-layer CAN or an upper computer.
The atmosphere lamp system provided by the invention is added with the audio signal, so that the combination of color music and light display is realized, the personalized experience is further provided for consumers, the driving feeling and the pleasure are improved, and the interior decoration grade is improved.
Drawings
FIG. 1 is a block diagram of the overall circuit of an embodiment of the present invention;
FIG. 2 is a diagram illustrating a control scheme of an atmosphere lamp according to an embodiment of the present invention;
FIG. 3 is a circuit diagram of a first audio processing module according to an embodiment of the invention;
FIG. 4 is a circuit diagram of an RGB driver circuit according to an embodiment of the present invention;
FIG. 5 is a circuit diagram of a second audio processing module according to an embodiment of the invention;
FIG. 6 is a circuit diagram of a CAN signal processing module according to an embodiment of the present invention;
FIG. 7 is a circuit diagram of an MCU master control unit in an embodiment of the present invention;
FIG. 8 is a diagram of a display interface of a host computer client according to an embodiment of the present invention;
in the figure: c1, a first capacitance; c2, a second capacitor; c3, a third capacitance; c4, a fourth capacitance; c5, a fifth capacitance; c6, a sixth capacitor; c7, a seventh capacitance; c10, tenth capacitance; c11, an eleventh capacitor; c12, twelfth capacitor; c13, a thirteenth capacitor; r1, a first resistor; r3, third resistor; r4, fourth resistor; r5, fifth resistor; r6, sixth resistor; r7, seventh resistor; r8, eighth resistor; r9, ninth resistor; r10, tenth resistor; r11, eleventh resistor; r12, twelfth resistor; r12, twelfth resistor; r13, thirteenth resistor; r14 and an adjustable resistor; r15, fifteenth resistor; r16, sixteenth resistor; d1, a first diode; d2, a second diode; q1, the first triode; q2, the second triode; q3, third triode; IN1, a first zener diode; l1, a first inductor; u1, an audio power amplifying chip; u2, CAN transceiver chip; u3, power isolation chip; u4 and an MCU master control unit; f1, electric heating wires; ESD 1: an ESD protection diode.
Detailed Description
The invention is further illustrated by the following figures and examples:
example 1:
as shown in fig. 1-4, the multi-state new energy vehicle atmosphere lamp system of the present invention includes an audio processing module, an ADC processing module, an MCU main control unit U4, an upper layer CAN bus device, a CAN signal processing module and an RGB driving unit, wherein an input signal of the system is an audio signal output by a vehicle-mounted DVD or an external handheld device, the audio processing module receives the output audio signal to perform a preliminary processing of the audio signal, the audio processing module is connected to the ADC processing module, the ADC processing module is used for audio parameter acquisition and AD conversion, and transmits the processed audio signal to the MCU main control unit U4, the upper layer CAN bus device sends a control command of an atmosphere lamp state to the MCU main control unit U4 through the CAN signal processing module, the MCU main control unit U4 analyzes the control command of the atmosphere lamp state, controls an operation of the atmosphere lamp through the RGB driving unit, the RGB driving unit is connected to the atmosphere lamp, the RGB driving unit is driven in a common-cathode mode, the anode of the RGB driving unit is connected with the output of the PWM of the MCU main control unit U4 to realize audio packet data processing, and the MCU main control unit U4 controls the output of the PWM to realize the control of the atmosphere lamp.
The system further comprises an upper computer client, the upper computer client is connected with the MCU main control unit U4 through CAN communication, and switching value enabling control of the MCU main control unit U4 and the atmosphere lamp and working mode control of the atmosphere lamp are achieved.
The audio processing module comprises a LINE _ IN + port, a LINE _ IN-port and a LINE _ SHIELD port, the LINE _ IN + port is connected with a music signal analog input, the LINE _ IN port is connected to an ADC (analog to digital converter) end of the MCU main control unit, a first diode D1 and a second diode D2 are connected behind the LINE _ IN port, a first resistor R1 and a first capacitor C1 are connected after the first diode D1 and the second diode D2 are connected IN parallel, a second resistor R2 and a third resistor R3 are connected after the first resistor R1 and the first capacitor C1 are connected IN parallel, the second resistor R2 and the third resistor R3 are connected IN parallel and then connected with a second capacitor C2, a heating wire F1 is connected behind the second capacitor C2 and connected with a LINE _ IN + port, the second capacitor C2 is connected with a first voltage stabilizing diode IN1 and then connected with the LINE _ IN-port, and the LINE _ IN-port is connected with a first inductor L1 and then connected with a LINE _ SHIELD port.
And the LINE _ IN + port is connected with the analog quantity input of the music signal, and the LINE _ IN port extracts and outputs the music rhythm amplitude attenuation signal. IN1 is a TVS transient suppressor diode, which converts high resistance between two poles into low resistance to absorb surge power of thousands of watts when two ends are impacted by reverse transient high energy, so that voltage between two poles is clamped at a safe value to effectively protect precise components IN the circuit from being attacked by high surge. The first inductor L1 is used to eliminate high frequency noise and spike interference. An input signal is filtered by a second capacitor C2, 5V voltage division is carried out by a second resistor R2 and a third resistor R3, low-pass filtering is carried out by a first resistor R1 and a first capacitor C1, a first diode D1 and a second diode D2 are clamped, and a LINE _ IN port is connected to an ADC end of the MCU main control unit for quantization coding.
The CAN signal processing module comprises a power isolation chip U3, a CAN transceiver chip U2, a CANH pin and a CANL pin, the power isolation chip U3 is connected with the CAN transceiver chip U2, the power isolation chip U3 and the CAN transceiver chip U2 are externally connected with an ESD protection diode ESD1, the CANH pin and the CANL pin are connected to upper-layer CAN bus equipment through a sixteenth resistor R16, and a twelfth capacitor C12 and a thirteenth capacitor C13 are connected between the CANH pin and the CANL pin and the ground in parallel and used for filtering high-frequency interference of the upper-layer CAN bus equipment.
ESD1 is an ESD protection diode that can protect against transient disturbances. In order to prevent overcurrent impact, the pins CANH and CANL are connected to the CAN transceiver chip U2 through a sixteenth resistor R16, and a twelfth capacitor C12 and a thirteenth capacitor C13 are connected between the pins CANH and CANL and the ground in parallel and used for filtering high-frequency interference on the bus.
The audio processing module further comprises an audio power amplification chip U1, a pin 2 of the audio power amplification chip U1 is grounded, pins 3 and 4 of the audio power amplification chip U1 are connected with an adjustable resistor R14, the adjustable resistor R14 is connected with a fourth capacitor C4, the fourth capacitor C4 is connected with a tenth resistor R10 and a third capacitor C3, a pin 5 of the audio power amplification chip U1 is connected with an eleventh resistor R11 and an eleventh capacitor C11 and then connected with an output end, the eleventh capacitor C11 is further connected with a tenth capacitor C10, a twelfth resistor R12 and a thirteenth resistor R13 in parallel outside, and a seventh capacitor C7 is connected between a pin 1 and a pin 8 of the audio power amplification chip U1.
As shown in fig. 5, the audio processing module may also be implemented by the circuit of fig. 5, and converts the sound signal into an analog voltage signal for the MCU main control unit AD to perform sampling processing. And 3.3V power supply voltage is adopted, impedance is matched through a tenth resistor R10, and the fifth capacitor C5 and the sixth capacitor C6 are subjected to filtering decoupling. The signal amplification part and the audio power amplification chip U1 adopt an LM386 audio power amplification chip, so that the power consumption is low, the harmonic distortion is small, and the gain is adjustable in 200. The small signal of the fourth capacitor C4 is transmitted to the input end of the LM386 audio power amplification chip through the coupling capacitor, and the output size is adjusted through the adjustable resistor R14. Pins 1 and 8 of LM386 are voltage gain setting ends, a seventh capacitor C7 can adjust gain, a bypass capacitor is connected between pin 7 and ground when the voltage regulator is used, pin 2 is an inverting input end, pin 3 is a non-inverting input end, pin 5 is an output end, pins 6 and 4 are respectively a power supply and ground, a passive band-pass filtering part is connected behind the output pin 5, the standard frequency of human voice is 300Hz-4kHz and is close to the frequency of the human voice, noise is eliminated through band-pass processing, the size of low frequency is determined by an eleventh capacitor C11 and a thirteenth resistor R13, and the size of high frequency is determined by a tenth capacitor C10 and an eleventh resistor R11. And after audio parameter acquisition and quantization processing, acquiring acoustic characteristics of an audio signal, acquiring a frequency spectrum series of audio, generating brightness and color change control parameters of the atmosphere lamp, and realizing real-time jumping of the atmosphere lamp along with external music.
The RGB driving unit comprises a three-way output driving unit, wherein the first-way output driving unit comprises a first triode Q1, a fourth resistor R4 and a fifth resistor R5, the base of a first triode Q1 is connected with a fourth resistor R4 and a fifth resistor R5, the collector of the first triode Q1 is connected with the lamp bulb of the atmosphere lamp, the emitter of the first triode Q1 is grounded, the second-way output driving unit comprises a second triode Q2, a sixth resistor R6 and a seventh resistor R7, the base of a second triode Q2 is connected with a sixth resistor R6 and a seventh resistor R7, the collector of a second triode Q2 is connected with the lamp bulb of the atmosphere lamp, the emitter of the second triode Q2 is grounded, the third-way output driving unit comprises a third triode Q3, an eighth resistor R8 and a ninth resistor R9, the base of a third triode Q3 is connected with an eighth resistor R6342 and a ninth resistor R28, and the collector of the third triode Q3 is connected with the lamp bulb of the atmosphere lamp bulb, the emitter of the third transistor Q3 is grounded.
As shown in fig. 4, DASH _ RED, DASH _ GREEN, and DASH _ BLUE are PWM output signals, Q1, Q2, and Q3 are transistors 8050, and R1, G1, and B1 are lamp bead power supply terminals. The MCU master control unit U4 outputs a PWM signal, the base level b of the triode is conducted with the collector e, the emitter c is driven to be conducted with the collector e, and RGB control is achieved.
The MCU main control unit U4 adopts an STM8S208 single chip microcomputer with an 8-bit kernel, a program programming port, a pin 1 as a reset port, an external 24M crystal oscillator, a pin 42 as a SWIM port, pins 9, 44 and 45 as instrument panel PWM ports, pins 26, 27 and 28 as vehicle body PWM output ports, a pin 16 as a backlight port, a pin 22 as a LINE _ IN audio sampling port, and pins 35 and 36 as CAN bus ports.
The states of the atmosphere lamp include a monochromatic resting state, a monochromatic breathing state, a color changing breathing state, a monochromatic rhythm state, and a color changing rhythm state.
Example 2:
the control method of the multi-state new energy automobile atmosphere lamp comprises an automatic control mode and a manual control module, wherein in the automatic control mode, an MCU (microprogrammed control Unit) U4 and upper layer CAN (controller area network) bus equipment are used as control terminals to finish the control of the brightness and color change of the atmosphere lamp in various modes, wherein the color change speed along with music is adjustable; under the manual control mode, the control of the atmosphere lamp can be finished through the client side of the atmosphere lamp control upper computer; the automatic control mode comprises the following steps:
s1: the audio processing module processes an audio signal output by the vehicle-mounted DVD or external handheld equipment, provides a reference voltage, and converts the audio signal into an analog parameter after processing;
s2: the ADC processing module acquires a frequency spectrum sequence of the audio signal, generates a digital control parameter of the brightness and the color of the vehicle-mounted range lamp according to the frequency spectrum sequence, and transmits the processed audio signal to an MCU (MCU 4);
s3: MCU main control unit U4 carries out logic algorithm to the signal value that ADC processing module handled and handles, draws the audio frequency envelope, and CAN signal processing module receives upper CAN bus equipment's control command and carries out analysis with control command, and control command is the mode of the state of controlling atmosphere lamp, and the mode of state includes: a monochromatic resting state, a monochromatic breathing state, a color-changing breathing state, a monochromatic rhythm state and a color-changing rhythm state;
s4: the MCU main control unit U4 controls the RGB driving unit to drive the ambient light to display in full color with different colors according to the control command analyzed in step S3 through the PWM output, and the light source brightness changes continuously.
The state control command of the atmosphere lamp in step S3 specifically includes the following: the upper-layer CAN bus equipment sends a control instruction for controlling the state mode of the atmosphere lamp to the MCU main control unit U4, the MCU main control unit U4 controls the state mode of the atmosphere lamp through a program according to the sent control instruction, and controls the time delay counting state through setting an initial static color value, a brightness value and a time delay counting state, wherein the color conversion speed is adjustable, and the atmosphere lamp state is adjustable;
when the atmosphere lamp is in a monochromatic static state, setting a color sequence number and brightness through a program, and adjusting PWM output to display the atmosphere lamp in a single color state;
when the atmosphere lamp is in the monochromatic breathing state, setting the color sequence number and the brightness through a program, adjusting the PWM output to change the color state of the monochromatic breathing lamp, and realizing the regular bright and dark color change of the atmosphere lamp in the single color state;
when the breathing state is changed, setting the brightness change of the atmosphere lamp in different color states by a program to finish the realization of RGB three colors; the breathing color in the program setting is divided into an initial color, an intermediate color and a termination color state, the color serial numbers comprise KEEP, ADD and SUB states, the color serial number and the brightness of the color-changing breathing state are set, and the color state of the monochromatic breathing lamp is changed by adjusting PWM output through a color-changing breathing control algorithm, so that the change of brightness and darkness of the atmosphere lamp in different color states is realized;
when the color-changing machine is in a monochromatic rhythm state, after the initial color of the dynamic effect is set through a program, the dynamic effect is controlled and realized, and the dynamic effect control realization process is as follows: data received by the ADC processing module are collected, a LINE _ IN is an AD sampling port, a sampling period is once IN 2ms, 60 groups of data are sampled IN 120ms, an AD sampling array is counted, data IN a counting period are processed, extraction of audio envelope data is completed, and the extraction process is as follows: the following conditions are satisfied within the counting period: uo (t) > Uo (t-), Uo (t) ═ Ui (t); when ui (t) < Uo (t-), Uo (t) ═ Uo (t-1) × RCT/(RCT +1), where Uo (t) is the real-time audio extraction data, Uo (t-) is the last audio extraction data, ui (t) is the real-time AD sampling data, the counting period N is 60, and RCT is 30; after audio envelope lines are extracted, dynamic effect processing is carried out on data, RGB is operated in a monochrome mode state under a monochrome rhythm state, value taking logic processing is carried out on extracted audio signals, and six paths of PWM output of BODY _ RED, BODY _ GREEN, BODY _ BLUE, DASH + RED, DASH _ GREEN and DASH _ BLUE are adjusted through dynamic processing functions, so that atmosphere lamps can move with single color rhythm along with music, and the brightness and the darkness of the atmosphere lamps change and the change speed can be adjusted;
when the color-changing rhythm state is achieved, after the initial color of the dynamic effect is set through a program, the dynamic effect is controlled and achieved, and the achieving process is as follows: data that ADC processing module received are gathered, LINE _ IN is AD sampling port, and sampling cycle is once for 2ms, and 60 group data are sampled altogether to 120ms, count AD sampling array, and data are handled IN the count cycle, accomplish audio frequency envelope curve data extraction, and wherein count cycle N is 60, and RCT is 30, satisfies the following condition IN the count cycle: uo (t) > Uo (t-), Uo (t) ═ Ui (t); when Ui (t) < Uo (t-), Uo (t) < Uo (t-1) × RCT/(RCT +1), wherein Uo (t) is real-time audio extraction data, Uo (t-) is last audio extraction data, Ui (t) is real-time AD sampling data, dynamic effect processing is carried out on the data after audio envelope curve extraction, logic value taking processing is carried out on the extracted audio signals, RGB three basic color values are dynamic values, BODY _ RED, BODY _ GREEN, BODY _ BLUE, DASH + RED, DASH _ GREEN and DASH _ BLUE are output through six PWM, real-time rhythm of the ambient light along with music is realized, and brightness and darkness change along with the music and the speed of the change are adjustable.
Under the manual control mode, accomplish the control to the atmosphere lamp through the atmosphere lamp control host computer client, specifically include: open CAN communication button, host computer client and CAN establish communication, running state and message pilot lamp light, carry out the receiving and dispatching of CAN message, through the breathing that discolours, the rhythm of the colour change, monochromatic rhythm of the rhythm, monochromatic static, the steerable atmosphere lamp mode of five buttons of monochromatic breathing, the mode divide into the breathing that discolours, the rhythm of the colour change, monochromatic rhythm of the colour, monochromatic static, monochromatic breathing totally five kinds of states, host computer client CAN play and the recording music, the volume setting is greater than 5, when the atmosphere lamp is in the rhythm mode, host computer client broadcast music, atmosphere lamp pearl is along with the music rhythm.
The working principle of the embodiment is as follows: the control method comprises an automatic control mode and a manual control module, wherein in the automatic control mode, the MCU master control unit U4 and upper layer CAN bus equipment such as a central control screen are used as control terminals to finish the control of the brightness and color change of the atmosphere lamp in various mode states, wherein the speed of the color change along with music is adjustable; under the manual control mode, the control of the atmosphere lamp can be finished through the client side of the atmosphere lamp control upper computer; under the automatic control mode, the audio processing module processes the audio signal output by the vehicle-mounted DVD or the external handheld equipment, provides a reference voltage, and converts the audio signal into an analog parameter after processing; the ADC processing module acquires a frequency spectrum sequence of the audio signal and generates a brightness and color control parameter of the vehicle-mounted range lamp according to the frequency spectrum sequence; MCU main control unit U4 carries out logic algorithm to the signal value that ADC processing module handled, draws the audio envelope, and upper CAN bus control command is received to CAN signal processing module, and control command is the state of atmosphere lamp: the MCU master control unit U4 completes the realization of the RGB control method aiming at different states, namely a monochrome static state, a monochrome breathing state, a color-changing breathing state, a monochrome rhythm state and a color-changing rhythm state; and controlling the RGB driving unit to drive the atmosphere lamp to display in full color with different colors, wherein the brightness of the light source is changed continuously.
The status modes of the atmosphere lamp specifically include the following: the upper-layer CAN bus equipment outputs a control instruction of the state mode of the atmosphere lamp to the MCU control unit U4, after the MCU control unit U4 receives the instruction, an initial static color value, a brightness value and a delay counting state are set firstly, the delay counting state value is controlled by a program, the color conversion value is adjustable in speed, and the state of the atmosphere lamp mode is adjustable;
if the instruction is that the atmosphere lamp is in a monochromatic static state, the MCU control unit U4 adjusts PWM output by setting a color sequence number and brightness, so that the atmosphere lamp is displayed in a single color state.
A static color, Set _ StaticColor (u8 color _ num, float brightness),
color _ num- > color number to be set; brightness- > brightness.
red_value=(u16)(((float)Color_Buf[color_num-1][0])/255.0*2999.0*brightness);
green_value=(u16)(((float)Color_Buf[color_num-1][1])/255.0*2999.0*brightness);
blue_value=(u16)(((float)Color_Buf[color_num-1][2])/255.0*2999.0*brightness);
If the instruction is that the atmosphere lamp is in a monochromatic breathing state, adjusting the PWM output to change the color state of the monochromatic breathing lamp by setting the color sequence number and the brightness, and realizing the regular bright and dark color change of the atmosphere lamp in a single color state;
void Set _ StaticColor0(u8 red _ v, u8 green _ v, u8 blue _ v, float brightness) to Set static color function
Wherein red _ v, green _ v, blue _ v- > is the color number to be set; brightness- > brightness
red_value=(u16)(red_v/255.0*2999.0*brightness);
green_value=(u16)(green_v/255.0*2999.0*brightness);
blue_value=(u16)(blue_v/255.0*2999.0*brightness);
If the instruction is that the atmosphere lamp is in a color-changing breathing state, the atmosphere lamp regularly changes in brightness according to different color states, and the realization of RGB three colors is completed; the breathing color is divided into an initial color, an intermediate color and a termination color state, the color serial numbers comprise KEEP, ADD and SUB states, the color serial number and the brightness of the color-changing breathing state are set, the color state of the single-color breathing lamp is changed by adjusting PWM output through a color-changing breathing control algorithm, and the change of the bright color and the dark color of the atmosphere lamp in different color states is realized;
if the instruction is that the atmosphere lamp is in a monochromatic rhythm state, the MCU control unit U4 performs dynamic effect control implementation after performing dynamic effect initial color setting through a program, and the dynamic effect control implementation process is as follows: data received by the ADC processing module are collected, a LINE _ IN is an AD sampling port, a sampling period is once IN 2ms, 60 groups of data are sampled IN 120ms, an AD sampling array is counted, data IN a counting period are processed, extraction of audio envelope data is completed, and the extraction process is as follows: the following conditions are satisfied within the counting period: uo (t) > Uo (t-), Uo (t) ═ Ui (t); when ui (t) < Uo (t-), Uo (t) ═ Uo (t-1) × RCT/(RCT +1), where Uo (t) is the real-time audio extraction data, Uo (t-) is the last audio extraction data, ui (t) is the real-time AD sampling data, the counting period N is 60, and RCT is 30; after audio envelope lines are extracted, dynamic effect processing is carried out on data, RGB is operated in a monochrome mode state under a monochrome rhythm state, value taking logic processing is carried out on extracted audio signals, and six paths of PWM output of BODY _ RED, BODY _ GREEN, BODY _ BLUE, DASH + RED, DASH _ GREEN and DASH _ BLUE are adjusted through dynamic processing functions, so that atmosphere lamps can move with single color rhythm along with music, and the brightness and the darkness of the atmosphere lamps change and the change speed can be adjusted;
if the instruction is that the atmosphere lamp is in the rhythm state of changing color, MCU control unit U4 carries out dynamic effect control after dynamic effect initial color setting through the procedure and realizes that the implementation process is as follows: data that ADC processing module received are gathered, LINE _ IN is AD sampling port, and sampling cycle is once for 2ms, and 60 group data are sampled altogether to 120ms, count AD sampling array, and data are handled IN the count cycle, accomplish audio frequency envelope curve data extraction, and wherein count cycle N is 60, and RCT is 30, satisfies the following condition IN the count cycle: uo (t) > Uo (t-), Uo (t) ═ Ui (t); when Ui (t) < Uo (t-), Uo (t) < Uo (t-1) × RCT/(RCT +1), wherein Uo (t) is real-time audio extraction data, Uo (t-) is last audio extraction data, Ui (t) is real-time AD sampling data, dynamic effect processing is carried out on the data after audio envelope curve extraction, logic value taking processing is carried out on the extracted audio signals, RGB three basic color values are dynamic values, BODY _ RED, BODY _ GREEN, BODY _ BLUE, DASH + RED, DASH _ GREEN and DASH _ BLUE are output through six PWM, real-time rhythm of the ambient light along with music is realized, and brightness and darkness change along with the music and the speed of the change are adjustable.
As shown in fig. 8, in the manual control mode, the CAN communication button is turned on, the upper computer client establishes communication with the CAN, and the operation status and message indicator lights are turned on, so that CAN receive and transmit the CAN message. Five buttons of color-changing breath, color-changing rhythm, monochrome static and monochrome breath can control the working mode of the atmosphere lamp, and the working mode is divided into five states of color-changing breath, color-changing rhythm, monochrome static and monochrome breath. The upper computer can play and record music. Volume setting is greater than 5, and when the atmosphere lamp was in rhythm mode, the customer end broadcast music, atmosphere lamp pearl was rhythm along with the music.
By adopting the multi-state new energy automobile atmosphere lamp system and the control method thereof, which are described in the embodiment of the invention with reference to the drawings, aiming at the defects in the prior art, the invention aims to provide the multi-state new energy automobile atmosphere lamp system and the control method thereof, so that the control of various states of the atmosphere lamp is realized, and the problems in the prior art are solved. The present invention is not limited to the embodiments described, but rather, variations, modifications, substitutions and alterations are possible without departing from the spirit and scope of the present invention.

Claims (10)

1. The utility model provides a polymorphic new energy automobile atmosphere lamp system which characterized in that: the system comprises an audio processing module, an ADC processing module, an MCU master control unit (U4), an upper layer CAN bus device, a CAN signal processing module and an RGB drive unit, wherein an input signal of the system is an audio signal output by a vehicle-mounted DVD or an external handheld device, the audio processing module receives the output audio signal to perform primary processing on the audio signal, the audio processing module is connected with the ADC processing module, the ADC processing module is used for audio parameter acquisition and AD conversion and transmits the processed audio signal to the MCU master control unit (U4), the upper layer CAN bus device sends a control instruction of an atmosphere lamp state to the MCU master control unit (U4) through the CAN signal processing module, the MCU master control unit (U4) analyzes the control instruction of the atmosphere lamp state, the RGB drive unit controls the operation of the atmosphere lamp, the RGB drive unit is connected with the atmosphere lamp, and the RGB drive unit is driven in a common negative mode, the anode of the RGB driving unit is connected with the output of the PWM of the MCU main control unit (U4) to realize audio packet data processing, and the MCU main control unit (U4) controls the output of the PWM to realize the control of the atmosphere lamp.
2. The multi-state new energy automobile atmosphere lamp system as claimed in claim 1, wherein: the system further comprises an upper computer client, the upper computer client is connected with the MCU main control unit (U4) through CAN communication, and switching value enabling control of the MCU main control unit (U4) and the atmosphere lamp and working mode control of the atmosphere lamp are achieved.
3. The multi-state new energy automobile atmosphere lamp system as claimed in claim 1, wherein: the audio processing module comprises a LINE _ IN + port, a LINE _ IN-port and a LINE _ SHIELD port, wherein the LINE _ IN + port is connected with a music signal analog quantity input, the LINE _ IN port is connected to an ADC (analog to digital converter) end of the MCU main control unit, a first diode (D1) and a second diode (D2) are connected behind the LINE _ IN port, a first resistor (R1) and a first capacitor (C1) are connected behind the first diode (D1) and the second diode (D2) IN parallel, a second resistor (R2) and a third resistor (R3) are connected behind the first resistor (R1) and the first capacitor (C1) IN parallel, a second capacitor (C2) is connected behind the second resistor (R2) and the third resistor (85R 25) IN parallel, the second capacitor (C2) is connected with a heating wire (F1) and then connected with the LINE _ IN + port, and a second capacitor (C3985) is connected behind the first diode 1-steady voltage port, the LINE _ IN-port is connected with a first inductor (L1) and then is connected with a LINE _ SHIELD port.
4. The multi-state new energy automobile atmosphere lamp system as claimed in claim 1, wherein: the CAN signal processing module comprises a power isolation chip (U3), a CAN transceiver chip (U2), a CANH pin and a CANL pin, the power isolation chip (U3) is connected with the CAN transceiver chip (U2), the power isolation chip (U3) and the CAN transceiver chip (U2) are externally connected with an ESD protection diode (ESD1), the CANH pin and the CANL pin are connected to upper-layer CAN bus equipment through a sixteenth resistor (R16), a twelfth capacitor (C12) and a thirteenth capacitor (C13) are connected between the CANH pin and the CANL pin and the ground in parallel, and the power isolation chip is used for filtering high-frequency interference of the upper-layer CAN bus equipment.
5. The multi-state new energy automobile atmosphere lamp system as claimed in claim 1, wherein: the audio processing module further comprises an audio power amplification chip (U1), a pin 2 of the audio power amplification chip (U1) is grounded, a pin 3 and a pin 4 of the audio power amplification chip (U1) are connected with an adjustable resistor (R14), the adjustable resistor (R14) is connected with a fourth capacitor (C4), the fourth capacitor (C4) is connected with a tenth resistor (R10) and a third capacitor (C3), a pin 5 of the audio power amplification chip (U1) is connected with an eleventh resistor (R11) and an eleventh capacitor (C11) and then connected with an output end, the tenth capacitor (C10), a twelfth resistor (R12) and a thirteenth resistor (R13) are connected in parallel to the outside of the eleventh capacitor (C11), and a seventh capacitor (C7) is connected between the pin 1 and the pin 8 of the audio power amplification chip (U1).
6. The multi-state new energy automobile atmosphere lamp system as claimed in claim 1, wherein: the RGB driving unit comprises a three-way output driving unit, wherein the first-way output driving unit comprises a first triode (Q1), a fourth resistor (R4) and a fifth resistor (R5), the base of the first triode (Q1) is connected with the fourth resistor (R4) and the fifth resistor (R5), the collector of the first triode (Q1) is connected with the lamp bead of the atmosphere lamp, the emitter of the first triode (Q1) is grounded, the second-way output driving unit comprises a second triode (Q2), a sixth resistor (R6) and a seventh resistor (R7), the base of the second triode (Q2) is connected with the sixth resistor (R6) and the seventh resistor (R7), the collector of the second triode (Q2) is connected with the lamp bead of the atmosphere lamp, the emitter of the second triode (Q2) is grounded, the third-way output driving unit comprises a third triode (Q3), an eighth resistor (R8) and a ninth resistor (R9), the base electrode of the third triode (Q3) is connected with the eighth resistor (R8) and the ninth resistor (R9), the collector electrode of the third triode (Q3) is connected with the lamp bead of the atmosphere lamp, and the emitter electrode of the third triode (Q3) is grounded.
7. The multi-state new energy automobile atmosphere lamp system as claimed in claim 1, wherein: the MCU main control unit (U4) adopts an STM8S208 singlechip with an 8-bit kernel, and the exterior of the STM8S208 singlechip is connected with a program programming port, a reset port, a switch key and a power indicator light.
8. A control method of a multi-state new energy automobile atmosphere lamp is applied to the multi-state new energy automobile atmosphere lamp system as claimed in any one of claims 1 to 7, and is characterized in that the control method comprises an automatic control mode and a manual control module, wherein in the automatic control mode, an MCU (U4) main control unit and upper layer CAN bus equipment are control terminals to complete the control of the brightness and color changes of the atmosphere lamp in various modes, and the speed of the color changes along with music is adjustable; under the manual control mode, the control of the atmosphere lamp can be finished through the client side of the atmosphere lamp control upper computer; the automatic control mode comprises the following steps:
s1: the audio processing module processes an audio signal output by the vehicle-mounted DVD or external handheld equipment, provides a reference voltage, and converts the audio signal into an analog parameter after processing;
s2: the ADC processing module acquires a frequency spectrum sequence of the audio signal, generates a digital control parameter of the brightness and the color of the vehicle-mounted range lamp according to the frequency spectrum sequence, and transmits the processed audio signal to an MCU (MCU 4);
s3: MCU main control unit (U4) carries out logic algorithm to the signal value that ADC processing module handled, draws audio envelope, and CAN signal processing module receives upper CAN bus equipment's control command and carries out analysis with control command, and control command is the mode of the state of controlling atmosphere lamp, and the mode of state includes: a monochromatic resting state, a monochromatic breathing state, a color-changing breathing state, a monochromatic rhythm state and a color-changing rhythm state;
s4: the MCU main control unit (U4) controls the RGB drive unit to drive the atmosphere lamp to display in full color with different colors through the output of PWM according to the control instruction analyzed in the step S3, and the brightness of the light source is changed continuously.
9. The method for controlling the multi-state new energy vehicle atmosphere lamp according to claim 8, wherein the state control command of the atmosphere lamp in the step S3 specifically comprises the following steps: the upper-layer CAN bus equipment sends a control instruction for controlling the state mode of the atmosphere lamp to the MCU main control unit (U4), the MCU main control unit (U4) controls the state mode of the atmosphere lamp through a program according to the sent control instruction, and the program controls the time-delay counting state by setting an initial static color value, a brightness value and a time-delay counting state, wherein the color conversion speed is adjustable, and the state of the atmosphere lamp is adjustable;
when the atmosphere lamp is in a monochromatic static state, setting a color sequence number and brightness through a program, and adjusting PWM output to display the atmosphere lamp in a single color state;
when the atmosphere lamp is in the monochromatic breathing state, setting the color sequence number and the brightness through a program, adjusting the PWM output to change the color state of the monochromatic breathing lamp, and realizing the regular bright and dark color change of the atmosphere lamp in the single color state;
when the breathing state is changed, setting the brightness change of the atmosphere lamp in different color states by a program to finish the realization of RGB three colors; the breathing color in the program setting is divided into an initial color, an intermediate color and a termination color state, the color serial numbers comprise KEEP, ADD and SUB states, the color serial number and the brightness of the color-changing breathing state are set, and the color state of the monochromatic breathing lamp is changed by adjusting PWM output through a color-changing breathing control algorithm, so that the change of brightness and darkness of the atmosphere lamp in different color states is realized;
when the color-changing machine is in a monochromatic rhythm state, after the initial color of the dynamic effect is set through a program, the dynamic effect is controlled and realized, and the dynamic effect control realization process is as follows: data received by the ADC processing module are collected, a LINE _ IN is an AD sampling port, a sampling period is once IN 2ms, 60 groups of data are sampled IN 120ms, an AD sampling array is counted, data IN a counting period are processed, extraction of audio envelope data is completed, and the extraction process is as follows: the following conditions are satisfied within the counting period: uo (t) > Uo (t-), Uo (t) ═ Ui (t); when ui (t) < Uo (t-), Uo (t) ═ Uo (t-1) × RCT/(RCT +1), where Uo (t) is the real-time audio extraction data, Uo (t-) is the last audio extraction data, ui (t) is the real-time AD sampling data, the counting period N is 60, and RCT is 30; after audio envelope lines are extracted, dynamic effect processing is carried out on data, RGB is operated in a monochrome mode state under a monochrome rhythm state, value taking logic processing is carried out on extracted audio signals, and six paths of PWM output of BODY _ RED, BODY _ GREEN, BODY _ BLUE, DASH + RED, DASH _ GREEN and DASH _ BLUE are adjusted through dynamic processing functions, so that atmosphere lamps can move with single color rhythm along with music, and the brightness and the darkness of the atmosphere lamps change and the change speed can be adjusted;
when the color-changing rhythm state is achieved, after the initial color of the dynamic effect is set through a program, the dynamic effect is controlled and achieved, and the achieving process is as follows: data that ADC processing module received are gathered, LINE _ IN is AD sampling port, and sampling cycle is once for 2ms, and 60 group data are sampled altogether to 120ms, count AD sampling array, and data are handled IN the count cycle, accomplish audio frequency envelope curve data extraction, and wherein count cycle N is 60, and RCT is 30, satisfies the following condition IN the count cycle: uo (t) > Uo (t-), Uo (t) ═ Ui (t); when Ui (t) < Uo (t-), Uo (t) < Uo (t-1) × RCT/(RCT +1), wherein Uo (t) is real-time audio extraction data, Uo (t-) is last audio extraction data, Ui (t) is real-time AD sampling data, dynamic effect processing is carried out on the data after audio envelope curve extraction, logic value taking processing is carried out on the extracted audio signals, RGB three basic color values are dynamic values, BODY _ RED, BODY _ GREEN, BODY _ BLUE, DASH + RED, DASH _ GREEN and DASH _ BLUE are output through six PWM, real-time rhythm of the ambient light along with music is realized, and brightness and darkness change along with the music and the speed of the change are adjustable.
10. The control method of the multi-state new energy automobile atmosphere lamp according to claim 8, characterized in that in the manual control mode, the atmosphere lamp is controlled by an atmosphere lamp control upper computer client, and specifically the control method comprises the following steps: open CAN communication button, host computer client and CAN establish communication, running state and message pilot lamp light, carry out the receiving and dispatching of CAN message, through the breathing that discolours, the rhythm of the colour change, monochromatic rhythm of the rhythm, monochromatic static, the steerable atmosphere lamp mode of five buttons of monochromatic breathing, the mode divide into the breathing that discolours, the rhythm of the colour change, monochromatic rhythm of the colour, monochromatic static, monochromatic breathing totally five kinds of states, host computer client CAN play and the recording music, the volume setting is greater than 5, when the atmosphere lamp is in the rhythm mode, host computer client broadcast music, atmosphere lamp pearl is along with the music rhythm.
CN201911208162.3A 2019-11-30 2019-11-30 Atmosphere lamp system of multi-state new energy automobile and control method thereof Active CN110753432B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911208162.3A CN110753432B (en) 2019-11-30 2019-11-30 Atmosphere lamp system of multi-state new energy automobile and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911208162.3A CN110753432B (en) 2019-11-30 2019-11-30 Atmosphere lamp system of multi-state new energy automobile and control method thereof

Publications (2)

Publication Number Publication Date
CN110753432A true CN110753432A (en) 2020-02-04
CN110753432B CN110753432B (en) 2024-04-05

Family

ID=69285336

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911208162.3A Active CN110753432B (en) 2019-11-30 2019-11-30 Atmosphere lamp system of multi-state new energy automobile and control method thereof

Country Status (1)

Country Link
CN (1) CN110753432B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111954334A (en) * 2020-08-12 2020-11-17 宁波视睿迪光电有限公司 Control method and device of breathing lamp, electronic equipment and readable storage medium
CN112327720A (en) * 2020-11-20 2021-02-05 北京瞰瞰科技有限公司 Atmosphere management method and system
CN112803931A (en) * 2020-12-28 2021-05-14 航天科技控股集团股份有限公司 Three-state switching value identification system
CN112857389A (en) * 2021-03-05 2021-05-28 中山市德马汽车零部件有限公司 Vehicle-mounted navigation atmosphere lamp and control method thereof
CN112888121A (en) * 2021-01-21 2021-06-01 上海禾骋科技有限公司 Atmosphere lamp intelligent interaction system based on central computing platform
CN113507771A (en) * 2021-06-04 2021-10-15 惠州市德赛西威汽车电子股份有限公司 Light driving system
CN113895353A (en) * 2021-10-08 2022-01-07 东风汽车集团股份有限公司 Instrument interface skin changing method and system following automobile atmosphere lamp change and vehicle
CN114340076A (en) * 2021-07-15 2022-04-12 南京工业大学 Control method and system of rhythm atmosphere lamp based on analog sound source sampling

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120326622A1 (en) * 2011-06-24 2012-12-27 Hon Hai Precision Industry Co., Ltd. Computing device with color organ
CN202860756U (en) * 2012-11-05 2013-04-10 榆林学院 Music fountain control device
KR101607304B1 (en) * 2015-11-03 2016-03-31 에코엘이디(주) Mood lamp system
CN105813264A (en) * 2016-04-21 2016-07-27 鹤壁市华美电气有限公司 Rhythm atmosphere lamp
CN206620331U (en) * 2017-01-13 2017-11-07 锦丰科技(深圳)有限公司 Automobile regular movements atmosphere lamp control circuit
CN207011036U (en) * 2017-05-26 2018-02-13 鹤壁市华美电气有限公司 Regular movements atmosphere lamp
CN108632691A (en) * 2017-10-09 2018-10-09 北京视联动力国际信息技术有限公司 A kind of antistatic microphone
CN109163292A (en) * 2018-09-19 2019-01-08 天津大衍天成科技有限公司 A kind of colorful photovoltaic Lawn lamp
CN109922560A (en) * 2018-12-03 2019-06-21 广州新晨汽车零部件有限公司 A kind of vehicle-mounted atmosphere lamp system of real-time music regular movements control
CN110267394A (en) * 2019-06-05 2019-09-20 东方久乐汽车电子(上海)股份有限公司 A kind of atmosphere lamp control method and system
CN209497584U (en) * 2019-05-13 2019-10-15 杭州恒领科技有限公司 A kind of audio power amplifier circuit charging source protection and self-diagnostic function

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120326622A1 (en) * 2011-06-24 2012-12-27 Hon Hai Precision Industry Co., Ltd. Computing device with color organ
CN202860756U (en) * 2012-11-05 2013-04-10 榆林学院 Music fountain control device
KR101607304B1 (en) * 2015-11-03 2016-03-31 에코엘이디(주) Mood lamp system
CN105813264A (en) * 2016-04-21 2016-07-27 鹤壁市华美电气有限公司 Rhythm atmosphere lamp
CN206620331U (en) * 2017-01-13 2017-11-07 锦丰科技(深圳)有限公司 Automobile regular movements atmosphere lamp control circuit
CN207011036U (en) * 2017-05-26 2018-02-13 鹤壁市华美电气有限公司 Regular movements atmosphere lamp
CN108632691A (en) * 2017-10-09 2018-10-09 北京视联动力国际信息技术有限公司 A kind of antistatic microphone
CN109163292A (en) * 2018-09-19 2019-01-08 天津大衍天成科技有限公司 A kind of colorful photovoltaic Lawn lamp
CN109922560A (en) * 2018-12-03 2019-06-21 广州新晨汽车零部件有限公司 A kind of vehicle-mounted atmosphere lamp system of real-time music regular movements control
CN209497584U (en) * 2019-05-13 2019-10-15 杭州恒领科技有限公司 A kind of audio power amplifier circuit charging source protection and self-diagnostic function
CN110267394A (en) * 2019-06-05 2019-09-20 东方久乐汽车电子(上海)股份有限公司 A kind of atmosphere lamp control method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孙亮;: "LED车内氛围灯的现状及发展趋势", 中国照明电器, no. 06, 25 June 2017 (2017-06-25) *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111954334A (en) * 2020-08-12 2020-11-17 宁波视睿迪光电有限公司 Control method and device of breathing lamp, electronic equipment and readable storage medium
CN111954334B (en) * 2020-08-12 2023-03-10 宁波视睿迪光电有限公司 Breathing lamp control method and device, electronic equipment and readable storage medium
CN112327720A (en) * 2020-11-20 2021-02-05 北京瞰瞰科技有限公司 Atmosphere management method and system
CN112327720B (en) * 2020-11-20 2022-09-20 北京瞰瞰智域科技有限公司 Atmosphere management method and system
CN112803931A (en) * 2020-12-28 2021-05-14 航天科技控股集团股份有限公司 Three-state switching value identification system
CN112803931B (en) * 2020-12-28 2023-01-24 航天科技控股集团股份有限公司 Tri-state switching value identification system
CN112888121A (en) * 2021-01-21 2021-06-01 上海禾骋科技有限公司 Atmosphere lamp intelligent interaction system based on central computing platform
CN112857389A (en) * 2021-03-05 2021-05-28 中山市德马汽车零部件有限公司 Vehicle-mounted navigation atmosphere lamp and control method thereof
CN113507771A (en) * 2021-06-04 2021-10-15 惠州市德赛西威汽车电子股份有限公司 Light driving system
CN114340076A (en) * 2021-07-15 2022-04-12 南京工业大学 Control method and system of rhythm atmosphere lamp based on analog sound source sampling
CN113895353A (en) * 2021-10-08 2022-01-07 东风汽车集团股份有限公司 Instrument interface skin changing method and system following automobile atmosphere lamp change and vehicle
CN113895353B (en) * 2021-10-08 2023-05-02 东风汽车集团股份有限公司 Instrument interface skin changing method and system following automobile atmosphere lamp change and vehicle

Also Published As

Publication number Publication date
CN110753432B (en) 2024-04-05

Similar Documents

Publication Publication Date Title
CN110753432B (en) Atmosphere lamp system of multi-state new energy automobile and control method thereof
CN110267394B (en) Atmosphere lamp control method and system
CN205584585U (en) Device and system of control atmosphere lamp
CN111591210B (en) System and method for intelligent interaction between embedded equipment and vehicle atmosphere lamp
CN204100177U (en) A kind of sound controlled LED light
CN101707644A (en) Device and method for linkage of music and flash light of mobile terminal
CN109922560A (en) A kind of vehicle-mounted atmosphere lamp system of real-time music regular movements control
CN104422063A (en) Voice control system of air conditioning and control method of air conditioning system
CN210868275U (en) Multi-state new energy automobile atmosphere lamp system
CN102595704B (en) Nightscape lighting sound and light synchronous control system and control method thereof
CN209488863U (en) A kind of vehicle-mounted atmosphere lamp system of real-time music regular movements control
CN105578657A (en) Lighting regulation system and lighting regulation method based on music change
CN107226021A (en) Vehicle atmosphere lamp control method and system
CN113199984A (en) Multi-color rhythm atmosphere lamp control system and method based on CAN control
CN108575020B (en) Atmosphere lamp controller system
CN201639831U (en) Breathing lamp circuit and mobile phone with same
CN204104167U (en) Led lighting controller
CN109003581A (en) Backlight drive control method and system
CN207157059U (en) Vehicle atmosphere lamp control system
CN207790473U (en) Atmosphere lamp system
CN110471335A (en) K sings music fountain AI and controls interaction systems
CN213108907U (en) Air conditioner control switch control system with atmosphere lamp follow-up function and automobile
CN103871201B (en) A kind of fatigue driving intelligent warning system based on brain electric control and method thereof
CN212851142U (en) Vehicle atmosphere lamp control system
CN207410562U (en) A kind of LED illumination controller and lighting system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Country or region after: Zhong Guo

Address after: 272001 North Building C3, industry university research base, high tech Zone, Jining City, Shandong Province

Applicant after: Jining Zhongke Intelligent Technology Co.,Ltd.

Address before: 272001 North Building C3, industry university research base, high tech Zone, Jining City, Shandong Province

Applicant before: JINING ZHONGKE ADVANCED TECHNOLOGY INSTITUTE Co.,Ltd.

Country or region before: Zhong Guo

GR01 Patent grant
GR01 Patent grant