Single-chip double-atmosphere lamp control method, chip, circuit and electronic equipment
By collecting and compensating the PN junction voltage of the ambient light, and using an accelerated algorithm to calculate the PWM configuration data, the problem of color difference and flicker of the ambient light in the existing technology is solved, and a better display effect and user experience are achieved.
Patent Information
- Application Number
- CN202411127588.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2024-10-08
AI Technical Summary
The existing single-chip dual ambient light control method has problems with chromatic aberration and flicker, resulting in poor ambient light display effects.
By collecting the PN junction voltage of the target lamp bead, the temperature compensation data is obtained according to the temperature compensation table and PN junction voltage, the color data is compensated, and the acceleration algorithm is used to calculate the PWM configuration data to achieve accurate driving of the ambient light at the target temperature and reduce flicker. frequency and switching time.
It improves the display effect of the ambient light, reduces the flicker frequency, ensures the consistency of the colors of the two lamp beads, and improves the user experience.
Smart Images

Figure CN118748858A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of LED display technology, and in particular to a single-chip dual-ambience light control method, chip, circuit and electronic device. Background Art
[0002] With the rapid development of smart electric vehicles, ambient lighting, as an important part of human-machine interactive audio-visual technology, enables users to better experience the functions of the smart cockpit, which is very important for improving the user's driving experience. In the context of the widespread popularity of smart cockpits, the use of ambient lighting per vehicle is increasing, and the demand for cost control is also increasing. For some specific application scenarios, using a single ambient light chip to drive two lamp beads can achieve a higher cockpit configuration and a better user experience at the same cost.
[0003] There are two existing ways to achieve single-chip dual-ambience light control: series connection and parallel connection. For two lamp beads in series, calibration and temperature compensation can only be performed in the same way as for a single lamp bead. Due to the differences between individual lamp beads, the color consistency of the two series lamp beads cannot be ensured, resulting in color difference problems, which are rarely used in practical applications. For two lamp beads in parallel, color difference and flickering are still the main problems in practical applications, resulting in poor display effects of the atmosphere light. Summary of the invention
[0004] The present application provides a single-chip dual-ambience light control method, chip, circuit and electronic device, which can reduce the flicker problem during the atmosphere light display process and improve the display effect.
[0005] In a first aspect, the present application provides a chip dual atmosphere lamp control method, the method comprising:
[0006] Get the target temperature;
[0007] Collect the PN junction voltage of the target lamp bead at the target temperature, and obtain the temperature compensation data of the target lamp bead at the target temperature according to the temperature compensation table of the target lamp bead and the PN junction voltage, wherein the target lamp bead is any one of the dual atmosphere lamps;
[0008] Compensating the first color data according to the temperature compensation data to obtain the second color data, wherein the first color data is the color data pre-calibrated by the target lamp bead;
[0009] The target color is obtained, and based on the second color data, the PWM configuration data corresponding to the target color of the target lamp bead at the target temperature is obtained by using an acceleration algorithm.
[0010] In the embodiment of the present application, the target lamp bead PN junction voltage is collected, and the temperature compensation data of the target lamp bead at the target temperature is obtained according to the temperature compensation table and the PN junction voltage, and then the temperature compensation data is used to compensate the first color data to obtain the second color data, and the PWM configuration data corresponding to the target color of the target lamp bead at the target temperature is obtained according to the target color and the second color data using the acceleration algorithm. Among them, the acceleration algorithm can accelerate the temperature compensation process and the color mixing calculation process, so that the switching time of the two atmosphere lights is shortened, the flickering frequency is reduced, and the display effect is improved.
[0011] In a possible design, the temperature compensation data of the target lamp bead at the target temperature is obtained according to the temperature compensation table of the target lamp bead and the PN junction voltage, including:
[0012] According to the temperature compensation table of the target lamp bead and the PN junction voltage, the red primary color temperature compensation data of the target lamp bead at the target temperature is obtained;
[0013] According to the temperature compensation table of the target lamp bead and the PN junction voltage, the green primary color temperature compensation data of the target lamp bead at the target temperature is obtained;
[0014] According to the temperature compensation table of the target lamp bead and the PN junction voltage, the blue primary color temperature compensation data of the target lamp bead at the target temperature is obtained.
[0015] In a possible design, the first color data is compensated according to the temperature compensation data to obtain the second color data; including:
[0016] Compensating the red primary color data in the first color data according to the red primary color temperature compensation data to obtain the red primary color data in the second color data;
[0017] Compensating the green primary color data in the first color data according to the green primary color temperature compensation data to obtain the green primary color data in the second color data;
[0018] The blue primary color data in the first color data is compensated according to the blue primary color temperature compensation data to obtain the blue primary color data in the second color data.
[0019] In a possible design, the target color is obtained, and based on the second color data, the PWM configuration data corresponding to the target color of the target lamp bead at the target temperature is obtained by using an acceleration algorithm, including:
[0020] Get the target color, and obtain the two-dimensional coordinate data of the target color according to the target color;
[0021] According to the two-dimensional coordinate data of the target color, based on the second color data and the acceleration algorithm, the PWM configuration data of the target lamp bead corresponding to the target color at the target temperature is obtained.
[0022] In a second aspect, the present application provides a single-chip dual-ambience light control chip, the chip comprising: a hardware acceleration circuit, the hardware acceleration circuit outputs PWM configuration data according to any single-chip dual-ambience light control method of the first aspect above.
[0023] In one possible design, the chip further includes: a constant current source;
[0024] A constant current source is used to drive two atmosphere lights during time-sharing switching.
[0025] In a possible design, the constant current source includes a ground compensation network, a feedback channel, a gear switching register, a first capacitor, a second capacitor, and a third capacitor;
[0026] The first output end of the ground compensation network is electrically connected to the red light driving pin of the single-chip dual-ambience lamp control chip and the first end of the first capacitor respectively;
[0027] The second output end of the ground compensation network is electrically connected to the green light driving pin of the single-chip dual-ambience lamp control chip and the first end of the second capacitor respectively;
[0028] The third output end of the ground compensation network is electrically connected to the blue light driving pin of the single-chip dual-ambience lamp control chip and the first end of the third capacitor respectively;
[0029] The second end of the first capacitor, the second end of the second capacitor and the second end of the third capacitor are all grounded;
[0030] The gear shift register is electrically connected to the ground compensation network;
[0031] The output end of the feedback channel is electrically connected to the ground compensation network, the first input end of the feedback channel is electrically connected to the red light driving pin, the second input end of the feedback channel is electrically connected to the green light driving pin, and the third input end of the feedback channel is electrically connected to the blue light driving pin;
[0032] The ground compensation network is used to suppress the ripple voltage generated by the constant current source during the self-excitation process;
[0033] Feedback channel, used to shorten the response time when the constant current source is turned on or off;
[0034] The gear switching register is used to adapt the output current of different adjustment ranges to different loads.
[0035] In one possible design, the single-chip dual atmosphere light control chip also includes: a PWM drive circuit, an MCU main control circuit, a power measurement circuit, a temperature acquisition circuit, an ADC channel selection circuit, and a LIN transceiver circuit.
[0036] In a third aspect, the present application provides a single-chip dual-atmosphere light control circuit, the single-chip dual-atmosphere light control circuit includes any single-chip dual-atmosphere light control chip of the second aspect, and also includes: a first switch tube, a second switch tube, a third switch tube, a fourth switch tube, a first resistor, a second resistor, a third resistor, a first atmosphere light, and a second atmosphere light, wherein the first atmosphere light includes a first red sub-pixel, a first green sub-pixel, and a first blue sub-pixel, and the second atmosphere light includes a second red sub-pixel, a second green sub-pixel, and a second blue sub-pixel;
[0037] The first end of the first switch tube is electrically connected to the first end of the second switch tube and the positive electrode of the power supply, the second end of the first switch tube is electrically connected to the first end of the first red sub-pixel, the first end of the first green sub-pixel, and the first end of the first blue sub-pixel, and the control end of the first switch tube is electrically connected to the first end of the first resistor;
[0038] The control end of the second switch tube is electrically connected to the first end of the second resistor, and the second end of the second switch tube is electrically connected to the first end of the second red sub-pixel, the first end of the second green sub-pixel, and the first end of the second blue sub-pixel respectively;
[0039] The first end of the third switch tube is electrically connected to the second end of the first resistor and the control end of the fourth switch tube, the second end of the third switch tube is grounded, and the control end of the third switch tube is electrically connected to the first end of the third resistor;
[0040] The first end of the fourth switch tube is electrically connected to the second end of the second resistor, and the second end of the fourth switch tube is grounded;
[0041] A first end of the third resistor is connected to an input and output pin of the single-chip dual-ambience lamp control chip;
[0042] The second end of the first red sub-pixel is electrically connected to the second end of the second red sub-pixel and the red light driving pin of the single-chip dual-ambient light control chip respectively;
[0043] The second end of the first green sub-pixel is electrically connected to the second end of the second green sub-pixel and the green light driving pin of the single-chip dual-ambient light control chip respectively;
[0044] The second end of the first blue sub-pixel is electrically connected to the second end of the second blue sub-pixel and the blue light driving pin of the single-chip dual-ambient light control chip respectively.
[0045] In a fourth aspect, the present application provides an electronic device, which includes the single-chip dual atmosphere light control circuit in the third aspect.
[0046] The beneficial effects provided in the above-mentioned second aspect and various possible designs of the above-mentioned second aspect can refer to the beneficial effects brought about by the above-mentioned first aspect and various possible implementation methods of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 A flowchart of a single-chip dual-ambience lamp control method provided in one embodiment of the present application;
[0048] Figure 2 A schematic diagram of a single-chip dual-ambience lamp control method provided in one embodiment of the present application;
[0049] Figure 3 A schematic diagram of the structure of a single-chip dual-ambience light control chip provided in one embodiment of the present application;
[0050] Figure 4 Schematic diagram of the constant current source structure in one embodiment of the present application. DETAILED DESCRIPTION
[0051] In this application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c alone can represent: a, b, c, a and b, a and c, or a, b, and c, where a, b, and c can be single or multiple. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.
[0052] The directions or positional relationships indicated by terms such as "center", "longitudinal", "lateral", "up", "down", "left", "right", "front", and "back" are based on the directions or positional relationships shown in the accompanying drawings and are only for the convenience of describing the present application and simplifying the description. They do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as a limitation on the present application.
[0053] The terms "connected" and "connected" should be understood in a broad sense. For example, the "connected" or "connected" of a circuit structure can refer to not only physical connection, but also electrical connection or signal connection. For example, it can be directly connected, that is, physically connected, or indirectly connected through at least one intermediate element, as long as the circuit is connected, or it can be the internal connection of two elements; signal connection can refer to signal connection through a circuit or through a media medium, such as radio waves. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0054] The method of driving more ambient lights through ambient light chips is still to increase the number of controlled lights by increasing the number of ambient light chips. In order to reduce the cost without reducing the display effect of the ambient light, when a single chip is used, a time-division multiplexing driving signal is usually used to drive the ambient light, so that the number of controlled lights is increased, that is, two ambient lights are driven by time-division multiplexing, and the two ambient lights are controlled to display their respective colors and brightness.
[0055] The present application embodiment provides a single-chip dual atmosphere lamp control method, see Figure 1 , the method comprising:
[0056] S1, obtain the target temperature.
[0057] The present application drives two atmosphere lights through one atmosphere light chip, i.e., a single-chip dual atmosphere light, collects the ambient temperature in real time through the atmosphere light chip, and uses the current ambient temperature as the target temperature.
[0058] S2, collecting the PN junction voltage of the target lamp bead at the target temperature, and obtaining the temperature compensation data of the target lamp bead at the target temperature according to the temperature compensation table of the target lamp bead and the PN junction voltage, wherein the target lamp bead is any one of the dual atmosphere lamps.
[0059] Through an atmosphere light chip, two atmosphere lights are driven by time-sharing multiplexing method to realize switching control between the two atmosphere lights, and the currently working lamp bead is used as the target lamp bead, and the target lamp bead can be any one of the dual atmosphere lights.
[0060] The ambient light chip collects the ambient temperature in real time. Since the PN junction voltage of the lamp bead changes with the temperature, for example, the PN junction voltage of the lamp bead decreases with the increase of temperature. There will be a corresponding temperature compensation table for each batch of lamp beads. According to the temperature compensation table of the target lamp bead and the PN junction voltage of the target lamp bead, the temperature compensation data of the target lamp bead at the target temperature can be obtained.
[0061] S3, compensating the first color data according to the temperature compensation data to obtain second color data, wherein the first color data is the color data pre-calibrated by the target lamp bead.
[0062] The interior of the lamp bead is usually composed of three sub-pixel units, namely, red sub-pixel R, green sub-pixel G and blue sub-pixel B. The final display color is obtained by mixing the three sub-pixels. The first color data is the color data of the target lamp bead pre-calibrated. In one example, the target lamp bead is calibrated at room temperature, and the color data obtained is used as the first color data. In practical applications, the three primary colors RGB are calibrated, that is, the vertex values of the three-dimensional space composed of the red primary color, the green primary color and the blue primary color are calibrated, so that any required color can be displayed in the color space composed of the three vertex values.
[0063] The second color data is obtained by compensating the color data of the target lamp bead pre-calibrated with the temperature compensation data. For example, when the ambient temperature is 30 degrees, the temperature compensation data of the target lamp bead is calculated, and the first color data calibrated at normal temperature (24 degrees) is compensated to obtain the second color data of the target lamp bead when the ambient temperature is 30 degrees.
[0064] S4, obtaining a target color, and obtaining PWM configuration data of the target lamp bead corresponding to the target color at the target temperature by using an acceleration algorithm based on the second color data.
[0065] The second color data is color data after temperature compensation, that is, the three-dimensional space after the vertices of the three-dimensional space composed of the red primary color, the green primary color, and the blue primary color are compensated and adjusted.
[0066] Get the target color. Based on the second color data, use the acceleration algorithm to calculate and get the PWM configuration data of the target lamp bead corresponding to the target color at the target temperature. The PWM data is used to drive the ambient light so that the ambient light displays the target color. The component values of the three primary colors corresponding to the target color are usually called tristimulus values. The process of obtaining the tristimulus values according to the target color is called color mixing calculation.
[0067] The control method flow chart in this application is shown in Figure 2 , collect the PN junction voltage of the target lamp bead, obtain the temperature compensation data of the target lamp bead at the target temperature according to the temperature compensation table and the PN junction voltage, and perform color mixing calculation according to the target color using the acceleration algorithm to obtain the PWM configuration data of the target lamp bead corresponding to the target color at the target temperature.
[0068] In an embodiment of the present application, based on the target color and the second color data, the PWM configuration data of the target lamp bead corresponding to the target color at the target temperature can be calculated, wherein the acceleration algorithm can accelerate the temperature compensation process and the color mixing calculation process, thereby shortening the switching time of the two atmosphere lights, reducing the flickering frequency, and improving the display effect.
[0069] In a possible implementation manner, the above S2 includes:
[0070] S21, obtaining red primary color temperature compensation data of the target lamp bead at the target temperature according to the temperature compensation table of the target lamp bead and the PN junction voltage.
[0071] S22, obtaining green primary color temperature compensation data of the target lamp bead at the target temperature according to the temperature compensation table of the target lamp bead and the PN junction voltage.
[0072] S23, obtaining blue primary color temperature compensation data of the target lamp bead at the target temperature according to the temperature compensation table of the target lamp bead and the PN junction voltage.
[0073] In practical applications, the temperature compensation table is a four-dimensional table, which includes temperature brightness compensation value, PN junction voltage difference, X coordinate difference and Y coordinate difference. When the PN junction voltage is known, the temperature compensation data of the corresponding lamp bead can be obtained. Among them, the temperature compensation data has corresponding temperature compensation data for any of the three primary colors. That is, the red primary color temperature compensation data, the green primary color temperature compensation data and the blue primary color temperature compensation data can be obtained respectively.
[0074] In a possible implementation manner, the above S3 includes:
[0075] S31, compensating the red primary color data in the first color data according to the red primary color temperature compensation data to obtain the red primary color data in the second color data.
[0076] S32, compensating the green primary color data in the first color data according to the green primary color temperature compensation data to obtain the green primary color data in the second color data.
[0077] S33, compensating the blue primary color data in the first color data according to the blue primary color temperature compensation data to obtain the blue primary color data in the second color data.
[0078] For any one of the three primary colors, the first color data is compensated according to the temperature compensation data to obtain the second color data. That is, the vertices of the three-dimensional space composed of the red primary color, the green primary color, and the blue primary color are compensated to obtain a new three-dimensional space composed of the adjusted red primary color, the green primary color, and the blue primary color. In one embodiment, compensation can be performed by a proportional multiplication operation. For example, the color data corresponding to 24 degrees is defined as 1024, and the color data of 30 degrees can be obtained by performing a proportional multiplication operation on the color data corresponding to 24 degrees.
[0079] In a possible implementation, the above S4 includes:
[0080] S41, acquiring a target color, and obtaining two-dimensional coordinate data of the target color according to the target color.
[0081] Get the target color. By referring to the CIE1931 chromaticity coordinate system, you can get the two-dimensional coordinate data of the target color in the two-dimensional space.
[0082] S42, obtaining PWM configuration data of the target lamp bead corresponding to the target color at the target temperature based on the two-dimensional coordinate data of the target color, the second color data and the acceleration algorithm.
[0083] The RGB (R represents red, G represents green, and B represents blue) color setting in the XYZ color space can be expressed as formula 1:
[0084] X XYZ =X R +X G +X B , Y XYZ =Y R +Y G +Y B , Z XYZ =Z R +Z G +Z B ,
[0085] Among them, X XYZ Represents the X color component in the three-dimensional XYZ color space, Y XYZ Represents the Y color component in the three-dimensional XYZ color space, Z XYZ Represents the Z color component in the three-dimensional XYZ color space; X R Represents X in the three-dimensional XYZ color space XYZ The R component, X G Represents X in the three-dimensional XYZ color space XYZ The G component, X B Represents X in the three-dimensional XYZ color space XYZ The B component of YR Represents Y in the three-dimensional XYZ color space XYZ The R component, Y G Represents Y in the three-dimensional XYZ color space XYZ The G component, Y B Represents Y in the three-dimensional XYZ color space XYZ B component; Z R Represents Z in the three-dimensional XYZ color space XYZ The R component, Z G Represents Z in the three-dimensional XYZ color space XYZ The G component, Z B Represents Z in the three-dimensional XYZ color space XYZ The B component.
[0086] The conversion between the three-dimensional coordinate system and the two-dimensional coordinate system, that is, the conversion between the three-dimensional CIE1931XYZ color space and the two-dimensional CIE chromaticity coordinate system, can be achieved through the following conversion formula (Formula 2):
[0087] x=X / X+Y+Z,y=Y / X+Y+Z,z=Z / X+Y+Z,
[0088] Among them, x, y, z are two-dimensional chromaticity coordinate systems, and X, Y, Z are three-dimensional coordinate systems.
[0089] Combining the above formula 1 and formula 2, we can get formula 3:
[0090]
[0091] Y XYZ =Y R +Y G +Y B
[0092]
[0093] Among them, x R is the x coordinate of red in the two-dimensional CIE chromaticity coordinate system; y R is the y coordinate of red in the two-dimensional CIE chromaticity coordinate system; G is the x coordinate of green in the two-dimensional CIE chromaticity coordinate system; y G is the y coordinate of green in the two-dimensional CIE chromaticity coordinate system; x B is the x coordinate of blue in the two-dimensional CIE chromaticity coordinate system; y B is the y coordinate of blue in the two-dimensional CIE chromaticity coordinate system; R is the red brightness value; Y G is the green brightness value; Y B is the blue brightness value.
[0094] Formula 3 can be expressed as a matrix:
[0095]
[0096] Solving the inverse matrix for the above formula gives Formula 4:
[0097]
[0098] Due to formula 5: Y XYZ =Y XYZ ,
[0099] Normalizing formula 5 and substituting it into the matrix of formula 4, we can get formula 6:
[0100]
[0101] Wherein, x is the x coordinate of the target color in the two-dimensional CIE chromaticity coordinate system; y is the y coordinate of the target color in the two-dimensional CIE chromaticity coordinate system.
[0102] In formula six, That is, the PWM configuration data is the ratio of the brightness value of each RGB component of the target color to the total brightness value of the target color.
[0103] According to the calculation process of formula 1 to formula 6, it can be known that: when the target color is known, the two-dimensional coordinate data of the target color in the two-dimensional space is mixed by an acceleration algorithm, that is, a matrix algorithm, to realize the conversion between the two-dimensional coordinate system and the three-dimensional coordinate system, and obtain the PWM configuration data.
[0104] In this application, based on the acquired target color, by consulting the CIE1931 chromaticity coordinate system, the two-dimensional coordinate data of the target color in the two-dimensional space can be obtained, and based on the second color data after temperature compensation and the acceleration algorithm, the PWM configuration data of the target lamp bead corresponding to the target color at the target temperature is obtained.
[0105] In the embodiment of the present application, the acceleration algorithm can accelerate the temperature compensation process and the color mixing calculation process, thereby shortening the switching time between the two atmosphere lights, reducing the flickering frequency, and improving the display effect.
[0106] The present application also provides a single-chip dual-ambience lamp control chip 100, see Figure 3 The chip 100 includes: a hardware acceleration circuit, which outputs PWM configuration data according to the above-mentioned single-chip dual atmosphere lamp control method.
[0107] In the embodiment of the present application, a hardware acceleration circuit is designed inside the SOC (System ON Chip) to accelerate the color mixing operation and temperature compensation calculation, thereby reducing the switching time of the two atmosphere lights and reducing the flickering frequency. The hardware acceleration circuit mainly performs matrix acceleration on the conversion process of the target color between the two-dimensional coordinate system and the three-dimensional coordinate system, thereby improving the calculation efficiency by about 10 times and shortening the software's same algorithm operation time from 10ms to less than 1ms.
[0108] In one possible implementation, see Figure 3 The chip 100 also includes: a constant current source 1000; the constant current source 1000 is used to drive two atmosphere lights during time-sharing switching.
[0109] A constant current source is designed inside the SOC to drive the two atmosphere lights during time-sharing switching, thereby realizing the time-sharing multiplexing function of the two atmosphere lights.
[0110] In one possible implementation, see Figure 4 as well as Figure 3 The constant current source 1000 includes a ground compensation network, a feedback channel, a gear switching register, a first capacitor C1, a second capacitor C2 and a third capacitor C3.
[0111] The first output end of the ground compensation network is electrically connected to the red light driving pin R of the single-chip dual-ambience lamp control chip and the first end of the first capacitor C1 respectively.
[0112] The second output end of the ground compensation network is electrically connected to the green light driving pin G of the single-chip dual-ambience lamp control chip and the first end of the second capacitor C2 respectively.
[0113] The third output end of the ground compensation network is electrically connected to the blue light driving pin B of the single-chip dual-ambience lamp control chip and the first end of the third capacitor C3 respectively.
[0114] The second end of the first capacitor, the second end of the second capacitor and the second end of the third capacitor are all grounded.
[0115] The gear shift register is electrically connected to the ground compensation network.
[0116] The output end of the feedback channel is electrically connected to the ground compensation network, the first input end of the feedback channel is electrically connected to the red light driving pin R, the second input end of the feedback channel is electrically connected to the green light driving pin G, and the third input end of the feedback channel is electrically connected to the blue light driving pin B.
[0117] The ground compensation network is used to suppress the ripple voltage generated by the constant current source during the self-excitation process.
[0118] Feedback channel, used to shorten the response time when the constant current source is turned on or off.
[0119] The gear switching register is used to adapt the output current of different adjustment ranges to different loads.
[0120] In practical applications, since the load of the switch tube in the constant current source is usually an inductive load, a high surge peak voltage will appear when the switch tube is turned off. The noise generated by the surge peak voltage will be transmitted to the pin of the light-emitting diode (LED).
[0121] By adding a ground compensation network to the constant current source designed inside the SOC, the problem of increased ripple voltage generated by the constant current source during the self-excitation process is suppressed; by reducing the filtering link circuit in the feedback channel, the regulation loop responds quickly, the delay is reduced, and the output ripple can be reduced at the same time, so that the response time of turning on or off the constant current source is shortened, and the longest time can reach 1.2us; in addition, for different loads, different gears of the constant current source are reasonably selected, and the output current in different adjustment ranges is adapted to greatly suppress the noise problem caused by the incompatibility between the load and the output current. In the embodiment of the present application, the output current is adjustable from 5mA to 60mA, and the output current step is 5mA.
[0122] In the embodiment of the present application, through the ground compensation network, feedback channel and gear switching register in the constant current source, the noise problem when the two atmosphere lights are switched can be effectively suppressed, and the display effect can be improved.
[0123] In one possible implementation, see Figure 3 The single-chip dual atmosphere lamp control chip 100 also includes: a PWM drive circuit, an MCU main control circuit, a power supply measurement circuit, a temperature acquisition circuit, an ADC channel selection circuit and a LIN transceiver circuit.
[0124] PWM drive circuit, used to drive the atmosphere light; MCU main control circuit, used for program running; temperature acquisition circuit, used for real-time temperature acquisition; ADC channel selection circuit, used for analog signal to digital signal conversion; LIN transceiver circuit, used for information reading and writing. Since this part of the circuit is a common technical module, it will not be repeated in this application.
[0125] The present application also provides a single-chip dual-ambience lamp control circuit. Figure 3The single-chip dual-ambience light control circuit includes the above-mentioned single-chip dual-ambience light control chip, and also includes: a first switch tube Q1, a second switch tube Q2, a third switch tube Q3, a fourth switch tube Q4, a first resistor R1, a second resistor R2, a third resistor R3, a first atmosphere light LED1 and a second atmosphere light LED2, wherein the first atmosphere light LED1 includes a first red sub-pixel D1, a first green sub-pixel D2, and a first blue sub-pixel D3, and the second atmosphere light LED2 includes a second red sub-pixel D4, a second green sub-pixel D5, and a second blue sub-pixel D6.
[0126] The first end of the first switch tube Q1 is electrically connected to the first end of the second switch tube Q2 and the positive power supply VS, respectively; the second end of the first switch tube Q1 is electrically connected to the first end of the first red sub-pixel D1, the first end of the first green sub-pixel D2, and the first end of the first blue sub-pixel D3, respectively; and the control end of the first switch tube Q1 is electrically connected to the first end of the first resistor R1.
[0127] The control end of the second switch tube is electrically connected to the first end of the second resistor R2, and the second end of the second switch tube Q2 is electrically connected to the first end of the second red sub-pixel D4, the first end of the second green sub-pixel D5, and the first end of the second blue sub-pixel D6 respectively.
[0128] The first end of the third switch tube Q3 is electrically connected to the second end of the first resistor R1 and the control end of the fourth switch tube Q4 respectively, the second end of the third switch tube Q3 is grounded, and the control end of the third switch tube Q3 is electrically connected to the first end of the third resistor R3.
[0129] A first end of the fourth switch tube Q4 is electrically connected to the second end of the second resistor R2 , and a second end of the fourth switch tube Q4 is grounded.
[0130] A first end of the third resistor R3 is connected to the input / output pin IO of the single-chip dual-ambience lamp control chip.
[0131] The second end of the first red sub-pixel D1 is electrically connected to the second end of the second red sub-pixel D4 and the red light driving pin R of the single-chip dual-ambient light control chip respectively.
[0132] The second end of the first green sub-pixel D2 is electrically connected to the second end of the second green sub-pixel D5 and the green light driving pin G of the single-chip dual-ambient light control chip respectively.
[0133] The second end of the first blue sub-pixel D3 is electrically connected to the second end of the second blue sub-pixel D6 and the blue light driving pin B of the single-chip dual-ambient light control chip respectively.
[0134] An embodiment of the present application also provides an electronic device, including: the above-mentioned single-chip dual atmosphere light control circuit.
[0135] It should be noted that the above embodiments are only specific implementations of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A single-chip dual-ambience lamp control method, characterized in that: The method comprises: Get the target temperature; Collect the PN junction voltage of the target lamp bead at the target temperature, and obtain the temperature compensation data of the target lamp bead at the target temperature according to the temperature compensation table of the target lamp bead and the PN junction voltage, wherein the target lamp bead is any one of the dual atmosphere lamps; Compensating the first color data according to the temperature compensation data to obtain second color data, wherein the first color data is the color data pre-calibrated by the target lamp bead; The target color is acquired, and based on the second color data, an acceleration algorithm is used to obtain PWM configuration data of the target lamp bead corresponding to the target color at the target temperature.
2. The single-chip dual-ambience lamp control method according to claim 1, characterized in that: The step of obtaining temperature compensation data of the target lamp bead at the target temperature according to the temperature compensation table of the target lamp bead and the PN junction voltage includes: According to the temperature compensation table of the target lamp bead and the PN junction voltage, the red primary color temperature compensation data of the target lamp bead at the target temperature is obtained; According to the temperature compensation table of the target lamp bead and the PN junction voltage, obtaining green primary color temperature compensation data of the target lamp bead at the target temperature; According to the temperature compensation table of the target lamp bead and the PN junction voltage, the blue primary color temperature compensation data of the target lamp bead at the target temperature is obtained.
3. The single-chip dual atmosphere lamp control method according to claim 2, characterized in that: The method of compensating the first color data according to the temperature compensation data to obtain the second color data comprises: Compensating the red primary color data in the first color data according to the red primary color temperature compensation data to obtain the red primary color data in the second color data; Compensating the green primary color data in the first color data according to the green primary color temperature compensation data to obtain the green primary color data in the second color data; The blue primary color data in the first color data is compensated according to the blue primary color temperature compensation data to obtain the blue primary color data in the second color data.
4. The single-chip dual-ambience lamp control method according to claim 1, characterized in that: The acquiring of the target color, based on the second color data, using an acceleration algorithm to obtain PWM configuration data of the target lamp bead corresponding to the target color at the target temperature, includes: Acquire a target color, and obtain two-dimensional coordinate data of the target color according to the target color; According to the two-dimensional coordinate data of the target color, based on the second color data and the acceleration algorithm, the PWM configuration data of the target lamp bead corresponding to the target color at the target temperature is obtained.
5. A single-chip dual-ambience light control chip, characterized in that: The chip includes: a hardware acceleration circuit, and the hardware acceleration circuit outputs PWM configuration data according to the single-chip dual-ambience lamp control method according to any one of claims 1-4.
6. The single-chip dual-ambience lamp control chip according to claim 5, characterized in that: The chip also includes: a constant current source; The constant current source is used to drive two atmosphere lamps during time-sharing switching.
7. The single-chip dual-ambience lamp control chip according to claim 6, characterized in that: The constant current source includes a ground compensation network, a feedback channel, a gear switching register, a first capacitor, a second capacitor and a third capacitor; The first output end of the ground compensation network is electrically connected to the red light driving pin of the single-chip dual-ambience lamp control chip and the first end of the first capacitor respectively; The second output end of the ground compensation network is electrically connected to the green light driving pin of the single-chip dual atmosphere lamp control chip and the first end of the second capacitor respectively; The third output end of the ground compensation network is electrically connected to the blue light driving pin of the single-chip dual-ambience lamp control chip and the first end of the third capacitor respectively; The second end of the first capacitor, the second end of the second capacitor and the second end of the third capacitor are all grounded; The gear switching register is electrically connected to the ground compensation network; The output end of the feedback channel is electrically connected to the ground compensation network, the first input end of the feedback channel is electrically connected to the red light driving pin, the second input end of the feedback channel is electrically connected to the green light driving pin, and the third input end of the feedback channel is electrically connected to the blue light driving pin; The ground compensation network is used to suppress the ripple voltage generated by the constant current source during the self-excitation process; The feedback channel is used to shorten the response time when the constant current source is turned on or off; The gear switching register is used to adapt output currents with different adjustment ranges for different loads.
8. The single-chip dual-ambience lamp control chip according to claim 7, characterized in that: The single-chip dual atmosphere lamp control chip also includes: a PWM drive circuit, an MCU main control circuit, a power supply measurement circuit, a temperature acquisition circuit, an ADC channel selection circuit and a LIN transceiver circuit.
9. A single-chip dual-ambience lamp control circuit, characterized in that: The single-chip dual-ambience light control circuit includes the single-chip dual-ambience light control chip described in any one of claims 5 to 8, and further includes: a first switch tube, a second switch tube, a third switch tube, a fourth switch tube, a first resistor, a second resistor, a third resistor, a first atmosphere light, and a second atmosphere light, wherein the first atmosphere light includes a first red sub-pixel, a first green sub-pixel, and a first blue sub-pixel, and the second atmosphere light includes a second red sub-pixel, a second green sub-pixel, and a second blue sub-pixel; The first end of the first switch tube is electrically connected to the first end of the second switch tube and the positive electrode of the power supply respectively, the second end of the first switch tube is electrically connected to the first end of the first red sub-pixel, the first end of the first green sub-pixel, and the first end of the first blue sub-pixel respectively, and the control end of the first switch tube is electrically connected to the first end of the first resistor; The control end of the second switch tube is electrically connected to the first end of the second resistor, and the second end of the second switch tube is electrically connected to the first end of the second red sub-pixel, the first end of the second green sub-pixel, and the first end of the second blue sub-pixel respectively; The first end of the third switch tube is electrically connected to the second end of the first resistor and the control end of the fourth switch tube respectively, the second end of the third switch tube is grounded, and the control end of the third switch tube is electrically connected to the first end of the third resistor; The first end of the fourth switch tube is electrically connected to the second end of the second resistor, and the second end of the fourth switch tube is grounded; The first end of the third resistor is connected to the input and output pins of the single-chip dual atmosphere lamp control chip; The second end of the first red sub-pixel is electrically connected to the second end of the second red sub-pixel and the red light driving pin of the single-chip dual-ambient light control chip respectively; The second end of the first green sub-pixel is electrically connected to the second end of the second green sub-pixel and the green light driving pin of the single-chip dual-ambience light control chip respectively; The second end of the first blue sub-pixel is electrically connected to the second end of the second blue sub-pixel and the blue light driving pin of the single-chip dual-ambience light control chip respectively.
10. An electronic device, characterized in that: include: The single-chip dual atmosphere lamp control circuit as described in claim 9.
Citation Information
Cited By
Instrument atmosphere lamp assembly with light guide atmosphere lamp and vehicle with instrument atmosphere lamp assembly
CN120716582A
Light control method and device and lighting equipment
CN120730593A
