A light source intelligent touch control circuit and method
Through the integrated touch control and multiple sensing technologies, the problem of imperfect automatic control of existing LED lighting systems is solved, real-time adjustments are realized according to the environment and user needs, and the intelligence and energy efficiency of the lighting system are improved. .
Patent Information
- Application Number
- CN202411111445.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2044-08-14
AI Technical Summary
The automatic control method of the existing LED lighting system is incomplete and cannot be adjusted in real time according to the actual environment and user behavior, resulting in high energy consumption and the inability to fully perceive environmental information.
A light source intelligent touch control circuit is designed, integrating a touch control module and a variety of sensor modules, and adjusting the brightness and color temperature of the light source in real time through user touch operation and environmental information, including power supply module, light source module, touch control module, light source driver Modules and sensor modules use light sensing, human body sensing and microwave sensing signals for comprehensive processing.
It has realized intelligent adjustment of the lighting system, improved user experience and environmental adaptability, and significantly improved the intelligence level and energy efficiency optimization capabilities of the LED lighting system.
Smart Images

Figure CN118647103B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of light source technology, and in particular to a light source intelligent touch control circuit and method. Background Art
[0002] With the advancement of technology, the advantages of LED fluorescent lamps in lighting applications have gradually become more prominent. Due to their high luminous efficiency and low energy consumption, LED fluorescent lamps have been increasingly widely used in various occasions, especially in modern home, commercial and other general lighting fields. The rapid development of LED lighting technology has not only improved the lighting quality, but also significantly reduced energy consumption and maintenance costs.
[0003] However, traditional LED lighting systems mainly rely on manual control methods, including wall switches, remote controls, etc. Most manual control methods can only achieve simple switch functions and are difficult to adjust the brightness and color temperature of the light source. With the development of smart home technology, some LED lighting systems with automatic control functions have appeared on the market. Although some systems have automatic dimming functions, their energy efficiency optimization strategies are not perfect and cannot be adjusted in real time according to the actual environment and user behavior, and there is still high energy consumption. In addition, many automatic control systems only rely on a single type of sensor (such as light sensor) for dimming and cannot fully perceive environmental information. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a light source intelligent touch control circuit to solve the problem that the automatic control method of the light source in the prior art is imperfect and cannot provide a good user experience.
[0005] In a first aspect, an embodiment of the present invention provides a light source intelligent touch control circuit, wherein the light source intelligent touch control circuit includes a power supply module, a light source module, a touch control module, a light source driving module, and a sensor module;
[0006] Wherein, the light source driving module includes a driving control unit and a driving power supply, and the input end of the power supply module is connected to the first output end of the driving power supply, and is used to step down the voltage output by the driving power supply and supply energy to the touch control module, the light source driving module and the sensor module respectively connected to the output end of the power supply module;
[0007] The touch control module generates a corresponding touch signal in response to a touch operation of a user;
[0008] The output end of the sensor module is connected to the driving control unit, and is used to obtain environmental information, generate a sensing signal, and send it to the driving control unit, wherein the sensing signal includes a light sensing signal, a human body sensing signal, and a microwave sensing signal;
[0009] The input end of the driving control unit is connected to the touch control module and the sensor module respectively, and the output end of the driving control unit is connected to the driving power supply, and is used to generate a corresponding light source control signal according to the touch signal and / or the sensing signal and send it to the driving power supply;
[0010] The second output end of the driving power supply is connected to the light source module, and is used to generate a control voltage signal according to the light source control signal to drive the light source to perform illumination.
[0011] Preferably, the touch control module includes a touch sensing unit and a touch signal generating unit, wherein the output end of the touch sensing unit is connected to the input end of the touch signal generating unit, and is used to generate a corresponding touch operation signal according to the user's touch operation, and send the touch operation signal to the touch signal generating unit;
[0012] The output end of the touch signal generating unit is connected to the input end of the driving control unit, and is used to generate a corresponding touch signal according to the touch operation signal and send it to the driving control unit, wherein the touch signal is a timing signal.
[0013] Preferably, the light source intelligent touch control circuit also includes a clock oscillation module, which includes a backup power supply and a clock oscillation unit, and the clock oscillation unit is respectively connected to the backup power supply and the driving power supply. When the driving power supply is in the on state, the clock oscillation unit is powered by the driving power supply, and when the driving power supply is not in the on state, the clock oscillation unit is powered by the backup power supply. The clock oscillation unit is used to generate a clock signal and send it to the light source driving module.
[0014] Preferably, the light source intelligent touch control circuit also includes a signal detection module, the input end of the signal detection module is connected to the driving power supply, the output end of the signal detection module is connected to the light source driving module, and the signal detection module is used to obtain the turn-on time and turn-off time of the driving power supply.
[0015] Preferably, the light source driving module also includes a timing unit, which is connected to the driving control unit and is used to obtain the on-time and off-time of the driving power supply according to the on-time and the off-time, respectively, compare the on-time with the preset intelligent dimming interval time to obtain a first comparison result, and compare the off-time with the preset state latch time to obtain a second comparison result. The driving control unit generates a corresponding light source control signal according to the first comparison result, the second comparison result and the touch signal and / or the sensing signal, and sends it to the driving power supply.
[0016] Preferably, the light source module includes at least a first light source array and a second light source array, the first light source array and the second light source array have different luminous colors, the second output end of the driving power supply includes a first control end and a second control end respectively connected to the first light source array and the second light source array, and the driving power supply generates a first control voltage signal sent to the first light source array and a second control voltage signal sent to the second light source array according to the light source control signal to adjust the duty cycle of the current output to the first light source array and the second light source array.
[0017] In a second aspect, an embodiment of the present invention further provides a light source intelligent touch control method, which is used in the light source intelligent touch control circuit of the first aspect, and the method includes:
[0018] In response to the type of the user's touch operation, obtaining a corresponding touch signal;
[0019] According to the touch signal, obtaining a first light source control signal and controlling the light source module to perform lighting;
[0020] Adjust the first light source control signal according to the sensing signal to obtain a second light source control signal;
[0021] The light source module is controlled to perform lighting according to the second light source control signal.
[0022] Preferably, the light source module includes at least a first light source array and a second light source array, the first light source array and the second light source array have different light emission colors, and the step of obtaining a first light source control signal and controlling the light source module to perform illumination according to the touch signal includes:
[0023] When the touch signal is a light source on signal, obtaining an off time of the driving power supply;
[0024] If the off time is less than or equal to the preset state latch time, generating the first light source control signal according to the first light source control signal or the second light source control signal when the driving power supply was in the on state last time;
[0025] If the off time is greater than the preset state latching time, generating the first light source control signal according to the light source turn-on signal;
[0026] When the touch signal is a light source adjustment signal, generating the first light source control signal according to the light source adjustment signal;
[0027] determining a duty cycle of current output to the first light source array and the second light source array according to the first light source control signal;
[0028] According to the duty cycle, the first light source array and the second light source array are controlled to perform illumination.
[0029] Preferably, the adjusting the first light source control signal according to the sensing signal to obtain the second light source control signal includes:
[0030] If the light source adjustment signal exists when the driving power supply is in the on state, obtaining the light source adjustment time according to the reception time of the light source adjustment signal;
[0031] If the light source adjustment signal does not exist when the driving power source is in the on state, obtaining the on time of the driving power source;
[0032] When the on-time is greater than the first preset intelligent dimming interval or the light source adjustment time is greater than the second preset intelligent dimming interval, the sensor module is controlled to obtain a human body sensing signal, wherein the first preset intelligent dimming interval is less than the second preset intelligent dimming interval;
[0033] According to the human body sensing signal, it is determined whether there is a user within the illumination range of the light source;
[0034] If there is a user, controlling the sensor module to obtain a microwave sensing signal and a light sensing signal;
[0035] Acquire ambient light parameters according to the light sensing signal, wherein the ambient light parameters include ambient light intensity and ambient light color temperature;
[0036] Acquire the movement information of the user according to the microwave sensing signal and the human body sensing signal, wherein the movement information includes the actual distance between the user and the light source and the movement amplitude of the user;
[0037] According to the motion information, obtaining a first actual distance average and a first motion amplitude average within a preset time period;
[0038] Determine a light source adjustment amount according to the first actual distance mean, the first motion amplitude mean and the ambient light parameter, wherein the light source adjustment amount includes: a brightness adjustment amount and a color temperature adjustment amount, the brightness adjustment amount and the motion amplitude mean are positively correlated, the ambient light color temperature and the color temperature adjustment amount are positively correlated, and the brightness adjustment amount and the ambient light intensity are negatively correlated;
[0039] According to the light source adjustment amount, acquiring a light source parameter change rate, wherein the light source parameter change rate is negatively correlated with the light source adjustment amount;
[0040] Adjusting the first light source control signal according to the second light source adjustment amount and the light source parameter change rate to obtain a second light source control signal;
[0041] If there is no user, a second light source control signal is obtained according to a preset light source off signal.
[0042] Preferably, determining the light source adjustment amount according to the first actual distance mean, the first motion amplitude mean and the ambient light parameter includes:
[0043] Calculating the standard deviation of the actual distance within the preset time period according to the first actual distance mean;
[0044] Calculating a standard deviation of the movement amplitude within the preset time period according to the first movement amplitude mean;
[0045] Determining whether the motion information of a current preset time period is stable according to the actual distance standard deviation and the motion amplitude standard deviation;
[0046] If the motion information of the current preset time period is stable, determining the light source adjustment amount according to the first actual distance average, the first motion amplitude average and the ambient light parameter;
[0047] If the motion information of the current preset time period is unstable, obtaining the second actual distance average and the second motion amplitude average within the next preset time period;
[0048] When the absolute value of the difference between the second actual distance mean and the first actual distance mean is less than a first difference threshold and the absolute value of the difference between the second motion amplitude mean and the first motion amplitude mean is less than a second difference threshold, calculating a third actual distance mean and a third motion amplitude mean according to the first actual distance mean and the second actual distance mean, and the first motion amplitude mean and the second motion amplitude mean;
[0049] Determining a light source adjustment amount according to the third actual distance mean, the third motion amplitude mean and the ambient light parameter;
[0050] When the absolute value of the difference between the second actual distance mean and the first actual distance mean is greater than or equal to a first difference threshold, and / or the absolute value of the difference between the second motion amplitude mean and the first motion amplitude mean is greater than or equal to a second difference threshold, the light source adjustment amount is determined based on the second actual distance mean, the second motion amplitude mean and the ambient light parameters.
[0051] The beneficial effects of the present invention are as follows:
[0052] The light source intelligent touch control circuit and method provided by the embodiment of the present invention integrates a touch control module and a variety of sensor modules, and can obtain environmental information in real time and respond to the user's touch operation. This intelligent control capability enables the lighting system to automatically adjust according to different environmental conditions and user needs, thereby improving the intelligence level of the lighting system. The touch control module with fast response speed and easy operation allows users to intuitively adjust the brightness and color temperature of the light source, thereby improving the user experience. At the same time, the intelligent sensor module can automatically sense the presence of the human body and environmental changes, and can achieve appropriate lighting effects without user intervention. The light sensing, human body sensing and microwave sensing signals obtained by the sensor module are combined in the drive control unit for comprehensive processing, and the brightness and color temperature of the light source can be adjusted according to different ambient light intensities, human body activities and microwave motion signals. This feature of strong environmental adaptability enables the lighting system to provide the most optimized lighting effect in different scenarios.
[0053] In summary, the intelligent touch control circuit of the light source can significantly improve the intelligence level, energy efficiency optimization capability, user experience and environmental adaptability of the LED lighting system by integrating a variety of advanced control and sensing technologies, thus having significant application potential and market advantages in modern lighting applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the drawings required for use in the embodiment of the present invention will be briefly introduced below. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work, and these are all within the protection scope of the present invention.
[0055] Figure 1 It is a schematic diagram of a light source intelligent touch control circuit provided by an embodiment of the present invention.
[0056] Figure 2 is a schematic diagram of a power supply circuit provided by an embodiment of the present invention.
[0057] Figure 3 is a circuit diagram of a touch control module provided by an embodiment of the present invention.
[0058] Figure 4 It is a schematic diagram of a light source array circuit provided by an embodiment of the present invention.
[0059] Figure 5 It is a flow chart of a light source intelligent touch control method provided by an embodiment of the present invention.
[0060] Figure 6 A light emitting control device is provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0061] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and Examples. It should be understood that the specific embodiments described herein are only configured to explain the present invention and are not configured to limit the present invention. For those skilled in the art, the present invention can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by illustrating examples of the present invention.
[0062] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements defined by the sentence "include..." do not exclude the existence of other identical elements in the process, method, article or equipment including the elements. The implementation method described below is only schematic, and the division of the module or circuit is only a logical function division, and there may be other division methods when actually implemented. In this embodiment and the accompanying drawings, the elements unrelated to the present invention have been omitted and not illustrated, and the size relationship between the elements in the accompanying drawings is only for easy understanding, not for limiting the actual proportion.
[0063] It should also be noted that all actions of acquiring signals, information or data in the present invention are performed in compliance with the corresponding data protection laws and policies of the location and with the authorization given by the owner of the corresponding device.
[0064] Example 1
[0065] See also Figure 1 , an embodiment of the present invention provides a light source intelligent touch control circuit, the circuit includes a power supply module, a light source module, a touch control module, a light source driving module, and a sensor module;
[0066] Wherein, the light source driving module includes a driving control unit and a driving power supply, and the input end of the power supply module is connected to the first output end of the driving power supply, and is used to step down the voltage output by the driving power supply and supply energy to the touch control module, the light source driving module and the sensor module respectively connected to the output end of the power supply module;
[0067] The touch control module generates a corresponding touch signal in response to a touch operation of a user;
[0068] The output end of the sensor module is connected to the driving control unit, and is used to obtain environmental information, generate a sensing signal, and send it to the driving control unit, wherein the sensing signal includes a light sensing signal, a human body sensing signal, and a microwave sensing signal;
[0069] The input end of the driving control unit is connected to the touch control module and the sensor module respectively, and the output end of the driving control unit is connected to the driving power supply, and is used to generate a corresponding light source control signal according to the touch signal and / or the sensing signal and send it to the driving power supply;
[0070] The second output end of the driving power supply is connected to the light source module, and is used to generate a control voltage signal according to the light source control signal to drive the light source to perform illumination.
[0071] Specifically, the power supply module is mainly responsible for stepping down the voltage of the driving power supply and providing power for the touch control module, the light source driving module and the sensor module. The input end of the power supply module is connected to the first output end of the driving power supply. After receiving the high voltage signal output by the driving power supply, it is converted into the low voltage signal required by each module through the step-down circuit for energy supply. In one embodiment, the power supply module includes a DCDC step-down converter or a low voltage dropout regulator, which stabilizes the output voltage by adjusting the internal electronic components to ensure that the connected modules can work normally.
[0072] See also Figure 2, is the circuit diagram of the power supply module, which is used to convert the input 48V voltage into a lower voltage suitable for driving LEDs. The buck converter U2 in the figure is a DC-DC buck converter chip, which is used to reduce the 48V high voltage to a lower voltage suitable for subsequent circuits. Resistors R6 and R8 are used for voltage division and feedback control. Diode D1: used for input voltage protection. Capacitor C9, used for filtering and stabilizing the input voltage. Resistor R10 is used for current detection. Inductor L1: used for step-down conversion. Schottky diode D2, used for output voltage rectification. Capacitor C10: 470uF / 10V, used for output voltage filtering and stabilization. Resistor R11 is used for current detection, and capacitor C11 is used for further filtering. U3 is a linear regulator, which is used to further stabilize the stepped-down voltage to 3.3V. Capacitor C12 is used for input filtering, capacitors C14 and C15 are used for output filtering, and connector J3 is used to connect the LED module. UP1_LED+ to NIGHT_LED-: These pins are used to connect different LED lights and drive different LED lights through different control signals. This circuit steps down the 48V input voltage to a lower voltage through the DC-DC step-down converter U2, and uses the AMS1117-3.3 linear regulator to further stabilize the stepped-down voltage to 3.3V, providing a stable low-voltage power supply for other circuit parts.
[0073] The light source module is responsible for the actual lighting task. The light source module receives the control voltage signal provided by the driving power supply, and then adjusts the brightness and color temperature of the LED light source. The light source module usually includes an LED array, which adjusts the brightness and color temperature of the light source by changing the duty cycle and voltage of the current, thereby achieving different lighting effects.
[0074] The touch control module is used to detect the user's touch operation and generate a corresponding touch signal. Specifically, the touch control module can use capacitive sensing technology or resistive touch screen technology to generate a corresponding touch signal after detecting the user's touch operation. The touch operation can be a single click, double click, long press, etc. Different touch operations correspond to different ones.
[0075] The light source driving module consists of a driving control unit and a driving power supply. The driving control unit receives signals from the touch control module and the sensor module and generates a light source control signal. The driving control unit analyzes the touch signal and the sensing signal and generates a corresponding light source control signal according to a preset algorithm and logic.
[0076] The driver power supply is responsible for converting the light source control signal into a control voltage signal and providing the required voltage for the light source module. After receiving the light source control signal generated by the driver control unit, the driver power supply adjusts the output voltage according to the signal to control the brightness and color temperature of the light source. The driver power supply needs to maintain a stable output voltage to ensure the stable operation of the light source module.
[0077] The sensor module is used to obtain environmental information and generate sensing signals. The sensor module includes light sensors, human sensors and microwave sensors. The light sensor detects the intensity of ambient light, the human sensor detects whether there is a person, and the microwave sensor detects the movement in the area.
[0078] Among them, the light sensor detects the ambient light intensity through a photodiode or photoresistor to generate a light sensing signal; the human body sensor uses an infrared sensor or a passive infrared sensor to detect human activities and generate a human body sensing signal. Microwave sensor: By transmitting and receiving microwave signals, it detects the movement of objects in the area and generates a microwave sensing signal.
[0079] Through the coordinated work of the above modules, the light source intelligent touch control circuit can intelligently adjust the light source according to user operations and environmental changes to provide efficient and comfortable lighting effects.
[0080] In one embodiment, the touch control module includes a touch sensing unit and a touch signal generating unit, wherein the output end of the touch sensing unit is connected to the input end of the touch signal generating unit, and is used to generate a corresponding touch operation signal according to the user's touch operation, and send the touch operation signal to the touch signal generating unit;
[0081] The output end of the touch signal generating unit is connected to the input end of the driving control unit, and is used to generate a corresponding touch signal according to the touch operation signal and send it to the driving control unit, wherein the touch signal is a timing signal.
[0082] Specifically, in this embodiment, the touch control module includes a touch sensing unit and a touch signal generating unit. The two units work together to complete the whole process from detecting the user's touch operation to generating and transmitting the touch signal, wherein the touch sensing unit is used to detect the user's touch operation and generate a corresponding touch operation signal, and the touch sensing unit uses capacitive sensing technology or resistive touch screen technology to detect the touch event. When the user touches the touch surface, the touch sensing unit can sense the touch and generate a corresponding electrical signal. The touch signal generating unit receives the touch operation signal, generates a corresponding touch signal and sends it to the drive control circuit, and the touch signal generating unit generates a timing signal according to the user's touch operation. The timing signal contains the timing information of the touch event, which is used to accurately control the response of the light source. For example, if the user presses the touch surface for a long time, the generated timing signal may contain the duration information of the long press; while a short touch operation generates a corresponding short timing signal.
[0083] The touch signal generating unit can quickly process the touch operation signal and generate an accurate timing signal. After receiving the timing signal, the driving control unit can respond quickly to control the brightness and color temperature of the light source module and provide instant feedback.
[0084] In one embodiment, if Figure 3 As shown, it is a circuit diagram of a touch control circuit, which includes one or more touch detection circuits, such as a key detection circuit, which is implemented by a touch sensor and an integrated circuit (IC). These touch detection signals will be received and processed by the corresponding pins of the microcontroller (such as P6.4, P6.5, P6.6, and P6.7). The TP_RHYTHM, TP_SHIFTING, TP_UP, and TP_DOWN pins are filtered by the C6 capacitor. The P3 connector communicates with external devices through the UART interface, which may be used for data transmission or exchange of control signals. SEG13 to SEG16, SEG0 to SEG3, and COMM0 are used to drive the display to display the corresponding operation status or information. The touch control circuit receives the user's touch operation signal, and the microcontroller processes the signal and generates the corresponding control signal. According to the control signal, the drive power module is adjusted to drive the light source module to achieve different brightness and color changes. At the same time, the display driver part displays the operation status or other information by communicating with external devices through the UART interface. The design of this circuit enables the entire system to achieve complex control functions through simple touch operations, which is suitable for embedded application scenarios that require touch control and multiple display functions.
[0085] Preferably, the circuit also includes a clock oscillation module, which includes a backup power supply and a clock oscillation unit, and the clock oscillation unit is respectively connected to the backup power supply and the driving power supply. When the driving power supply is in the on state, the clock oscillation unit is powered by the driving power supply, and when the driving power supply is not in the on state, the clock oscillation unit is powered by the backup power supply. The clock oscillation unit is used to generate a clock signal and send it to the light source driving module.
[0086] Specifically, the backup power supply is usually composed of a DC battery (such as a lithium battery), which is used to provide backup power when the main power supply, i.e., the driving power supply, fails, to ensure that the clock oscillator unit can still work normally when the driving power supply is not powered. The clock oscillator unit is composed of a crystal oscillator or an RC oscillator, etc., which is used to generate a stable clock signal to provide an accurate clock signal for the driving control unit and other modules that require a clock signal. The clock signal is used for key operations such as the timing of the control signal and the synchronization of data transmission.
[0087] When the driving power supply is in the on state, the clock oscillation unit is powered by the driving power supply, generates and sends a clock signal to the light source driving module. When the driving power supply is not powered, the clock oscillation unit is powered by the backup power supply (DC battery) to ensure the continuity and stability of the clock signal.
[0088] In one embodiment, the integrated circuit of the drive control unit is connected to the battery power detection circuit via the GPIO interface. The GPIO interface periodically reads the battery power information to determine the battery power status. When the battery power is lower than a preset threshold, the drive control circuit can send an alarm signal or take corresponding measures, such as prompting the user to replace the battery or switch to energy-saving mode.
[0089] Regardless of whether the drive power supply is powered or not, the clock oscillator unit can always provide a stable clock signal to ensure that all parts of the circuit operate synchronously. When the power supply circuit is working, the backup power supply does not work, which maintains the battery energy and extends the battery life. The power detection function promptly reminds the battery status to avoid excessive discharge of the battery.
[0090] Preferably, the circuit further includes a signal detection module, an input end of the signal detection module is connected to the driving power supply, an output end of the signal detection module is connected to the light source driving module, and the signal detection module is used to obtain the turn-on time and turn-off time of the driving power supply.
[0091] Specifically, the signal detection module in this embodiment is used to obtain the on-time and off-time of the driving power supply, and send this information to the light source driving module. The input end of the signal detection module is connected to the driving power supply, and the on-time and off-time of the driving power supply are monitored by means of voltage detection, current detection, etc., the signal obtained by the detection circuit is analyzed, the on-time and off-time are determined, and a corresponding detection signal is generated. The processing unit sends the detection signal to the light source driving module through the output end of the signal detection module for further processing.
[0092] The signal detection module can accurately obtain the on and off moments of the driving power supply, provide accurate timing information for the light source driving module, and avoid system instability caused by timing errors through accurate on and off moment detection, thereby improving the reliability of the overall system.
[0093] Preferably, the light source driving module also includes a timing unit, which is connected to the driving control unit and is used to obtain the on-time and off-time of the driving power supply according to the on-time and the off-time, compare the on-time with the preset intelligent dimming interval time to obtain a first comparison result, and compare the off-time with the preset state latch time to obtain a second comparison result. The driving control unit generates a corresponding light source control signal based on the first comparison result, the second comparison result and the touch signal and / or the sensing signal, and sends it to the driving power supply.
[0094] In this embodiment, the light source driving module also includes a timing unit. The timing unit is used to obtain the on-time and off-time according to the on-time and off-time of the driving power supply, and compare these time lengths with the preset intelligent dimming interval time and the preset state latch time. The timing unit sends the comparison result to the driving control unit, and the driving control unit generates a light source control signal according to these results and other signals. The timing unit includes a duration calculation circuit, a comparison circuit, and an output end connected to the driving control unit. The on-time and off-time of the driving power supply are calculated according to the on-time and off-time, and the on-time is compared with the preset intelligent dimming interval time to obtain a first comparison result, and the off-time is compared with the preset state latch time to obtain a second comparison result, and finally, the light source control signal is generated according to the comparison result, the touch signal and the sensing signal. For example, but not limited to, it is determined whether the intelligent dimming operation needs to be performed according to the first comparison result, and it is determined whether dimming is performed according to the latched state according to the second comparison result.
[0095] Preferably, the light source module includes at least a first light source array and a second light source array, the first light source array and the second light source array have different luminous colors, the second output end of the driving power supply includes a first control end and a second control end respectively connected to the first light source array and the second light source array, and the driving power supply generates a first control voltage signal and a second control voltage signal according to the light source control signal to adjust the duty cycle of the current output to the first light source array and the second light source array.
[0096] In this embodiment, the light source module includes at least a first light source array and a second light source array, and the two arrays emit light of different colors. The first light source array and the second light source array are independently controlled by a first control terminal and a second control terminal of a driving power supply, respectively, and LED light sources of different colors form lights of different colors by mixing light.
[0097] Specifically, the driving power supply includes a dimming line, and the dimming line is connected to the GPIO of the driving control unit. The GPIO of the driving control unit generates a PWM signal, and the duty cycle of the PWM signal determines the brightness of the LED light source. The driving power supply controls the current duty cycle of the first light source array and the second light source array respectively according to the PWM signal, and the currents of different duty cycles pass through the LED light source, making it forward-conducted and generating different brightness. The brightness of the first light source array and the second light source array is combined to form a light of the desired color.
[0098] The first light source array and the second light source array are controlled independently to achieve lighting effects of various color combinations. The current duty cycle is accurately controlled by PWM signals to achieve precise dimming of the LED light source. LED light sources of different colors are mixed to form diverse lighting effects to meet the needs of different scenes.
[0099] In one embodiment, see Figure 4 , is a circuit diagram of two light source arrays. Capacitors C24, C30, C34 and C40 are used to filter high-frequency noise in the input voltage. Capacitors C26, C32, C38 and C44 are connected between the compensation terminal (COMP) of the buck converter and the ground for voltage compensation of the buck converter, helping to stabilize the feedback control loop of the converter and ensure the stability of the output. Buck converters U5 and U7 are used to convert high voltage to low voltage and control the output current. Resistors R19, R33 and R41 are used for current limiting and protection circuits. Capacitors C26, C32, C38 and C44 are used for voltage compensation of the buck converter. Resistors R27 and R37 are used to set the working parameters of the converter. Inductors L2 and L4 are used for energy storage and release during the buck conversion process. Schottky diodes D5 and D7 are used to provide a current path to prevent reverse current. Resistors R17, R21, R23, R31, R35, and R37 are used for current detection. UP_LED+ and UP_LED- are LED driver output ports.
[0100] In the above circuit diagram, the 48V input voltage removes high-frequency noise and smoothes the voltage through the filter capacitor (C24, C30, C34, C40). The buck converter chip (U5 and U7) receives the filtered 48V voltage and reduces it to a lower voltage suitable for driving LEDs according to its internal control logic and external components (such as R19, R33, R41 and inductors L2, L4). The buck converter adjusts the output voltage and current by controlling the switching frequency and duty cycle of the MOSFET (Q1 and Q3). The current detection resistor (R17, R21, R23, R31, R35, R37) of the buck converter is used to monitor the output current to ensure that it is stable at 880mA. The output voltage is smoothed by the filter capacitor (C22, C36) to ensure that the voltage is stable when driving the LED.
[0101] This circuit is designed to convert a high voltage input voltage (48V) to a low voltage stable output for driving high power LEDs. By using a buck converter, MOSFET and accurate current sense resistor, the LEDs are ensured to receive a stable drive current (880mA) for reliable lighting. Two identical circuits can be used in parallel to drive multiple groups of LEDs, providing uniform light output.
[0102] Preferably, the circuit further comprises a display module, wherein the display module is connected to the power supply module and the drive control unit and is used for displaying the sensing signal and the light source control signal.
[0103] The display module is connected to the drive control unit through a control interface to receive and display the sensing signal and the light source control signal. The display module can be a display screen of LCD, LED or other types, which is used to display specific values and states. For example, it can display the brightness, color temperature and other control parameters of the current light source in real time to help users understand the working status of the light source. The display module can be equipped with buttons or touch modules to allow users to adjust settings through simple interaction.
[0104] Example 2
[0105] Based on the light source intelligent touch control circuit of embodiment 1, see Figure 5 The present invention also provides a light source intelligent touch control method, the method comprising:
[0106] S1. Responding to the type of the user's touch operation, obtaining a corresponding touch signal;
[0107] Specifically, the touch sensing unit is located in the touch control module and is responsible for detecting the user's touch action. The touch sensing unit converts the detected touch operation into an electrical signal, called a touch signal. When the touch sensing unit detects the user's touch operation, it converts the corresponding touch event into an electrical signal, namely, a touch signal. The generation of a touch signal generally includes the following steps:
[0108] The sensing unit converts touch operations into electrical signals. The characteristics of these signals, such as frequency, amplitude or capacitance value, will change with the user's operation. The generated electrical signals will be filtered, amplified or digitally converted to ensure that they can be accurately identified and processed by subsequent circuits or control units. Once the touch signal generation unit completes the analysis and processing of the touch operation, it will send the generated touch signal to the drive control unit. This process ensures that the user's touch operation can be accurately identified by the system.
[0109] S2. acquiring a first light source control signal according to the touch signal and controlling the light source module to perform lighting;
[0110] Specifically, it is first necessary to determine the user's operation type based on the touch signal, obtain the original timing signal from the touch sensor, usually an analog voltage signal or a digital signal, and filter, amplify or digitize the original signal to improve the quality and adaptability of the signal; then, extract features in the touch signal, such as start time, end time, duration, peak voltage, etc., analyze the extracted features according to the predefined touch mode and algorithm, and determine the type of touch operation, which includes but is not limited to long touch, short touch, double-click touch, etc. According to the identified touch operation type, the system generates a corresponding first light source control signal, and the first light source control signal includes but is not limited to a switch control signal for controlling the light to be turned on or off; a dimming control signal for controlling the brightness adjustment of the light, which can be discrete adjustment or continuous adjustment; a mode switching signal for controlling the light to switch between different preset modes, such as color temperature switching, scene mode, etc.
[0111] Preferably, the light source module includes at least a first light source array and a second light source array, the first light source array and the second light source array have different light emission colors, and the step of obtaining a first light source control signal and controlling the light source module to perform illumination according to the touch signal includes:
[0112] S21, when the touch signal is a light source on signal, obtaining an off time of the driving power supply;
[0113] S22, if the shutdown time is less than or equal to the preset state latching time, generating the first light source control signal according to the first light source control signal or the second light source control signal when the driving power supply was in the on state last time;
[0114] Specifically, first, when the touch signal is a light source conduction signal, a signal detection module is used to monitor the state of the driving power supply, and the shutdown time of the driving power supply is recorded. By comparing the current time and the shutdown time, the shutdown time of the driving power supply is calculated. If the shutdown time is greater than the preset state latch time, the light source control signal (which may be the first light source control signal or the second light source control signal) when the driving power supply is in the last on state is read to generate a new first light source control signal;
[0115] When the shutdown time is short (less than or equal to the preset state latch time), it means that the power interruption is temporary, which may be a short-term operation by the user or power fluctuation. In this case, the system needs to be restored to normal operation as soon as possible. A short shutdown does not require changing the state of the light source, and maintaining the current state is the most reasonable choice, so that the user can seamlessly continue the previous operation.
[0116] S23, if the shutdown time is greater than the preset state latch time, generating the first light source control signal according to the touch signal;
[0117] Specifically, a long shutdown usually means that the user wants to change the state of the light source, such as touching for a long time to turn off the light source. Therefore, when the power is restored, a control signal should be generated according to the new touch signal to respond to the user's operation intention. After a long power outage, the system needs to be reinitialized and set up to ensure a stable operating state. A long shutdown may be accompanied by a restart of the system. In this case, re-reading and processing the new touch signal can ensure that the system state is the latest and not disturbed by the previous state. After a long power outage, the user may want to adjust the state of the light source. The system generates a control signal based on the new touch signal, which can better respond to the user's needs.
[0118] S24. When the touch signal is a light source adjustment signal, generating the first light source control signal according to the light source adjustment signal;
[0119] Specifically, in the light source intelligent touch control method, the type of touch signal determines the system's response mode. The touch signal includes a light source conduction signal and a light source adjustment signal. Among them, the light source adjustment signal is used to adjust parameters such as the brightness or color temperature of the light source;
[0120] When the touch signal is an adjustment signal, it means that the light source is in the on state at this time. The user adjusts the brightness or color temperature of the light source through touch operation, and extracts parameters such as the brightness adjustment amount or the color temperature adjustment amount from the light source adjustment signal to obtain the adjustment parameters. The target brightness or target color temperature value is calculated according to the current light source state and the extracted adjustment parameters, and the target brightness or color temperature value is converted into the corresponding first light source control signal, which ensures the precise adjustment of the light source brightness and color temperature and improves the user's operating experience and the system's response speed.
[0121] S25. Determine a duty cycle of current output to the first light source array and the second light source array according to the first light source control signal;
[0122] Specifically, first, the system needs to parse the first light source control signal, which contains information about brightness, color temperature and color. The information about brightness, color temperature and color in the control signal needs to be converted into the duty cycle of the PWM (pulse width modulation) signal in order to adjust the driving current of the LED. The duty cycle determines the brightness of the LED. A higher duty cycle means that the LED light is lit for a greater proportion of time in a cycle, resulting in increased brightness. By adjusting the duty cycle of LEDs of different colors, the desired color can be mixed;
[0123] By analyzing and converting control signals, the brightness and color of the LED can be accurately controlled to ensure that the system can generate appropriate light source control signals based on the user's touch operations and environmental sensing signals, providing comfortable and adjustable lighting effects.
[0124] S26. Control the first light source array and the second light source array to perform illumination according to the duty cycle.
[0125] Finally, according to the calculated duty cycle, the current output to the first light source array and the second light source array is adjusted to ensure that each light source array is illuminated according to the set duty cycle to achieve the expected brightness and color effects.
[0126] The entire process monitors the state and shutdown time of the driving power supply, combines the touch signal and the sensing signal, dynamically generates and adjusts the light source control signal, and finally accurately controls the lighting effect of the light source array. This method ensures the stability and flexibility of the system in various states, improves user experience and energy efficiency.
[0127] S3, adjusting the first light source control signal according to the sensing signal to obtain a second light source control signal;
[0128] This step involves adjusting the first light source control signal according to the sensing signal to generate the second light source control signal. Specifically, firstly, environmental information is obtained from the sensor module and a sensing signal is generated. The sensing signal includes a light sensing signal, which indicates the light intensity or light change of the current environment; a human body sensing signal, which indicates whether there is a human body within the detection range. The microwave sensing signal indicates whether there is a moving object (such as a human body) passing through the microwave detection area; the acquired sensing signal needs to be analyzed and processed to extract useful information for light source control, including signal filtering, timing analysis or digital processing of the signal.
[0129] According to specific application requirements and design logic, the system will use the sensing signal to adjust the first light source control signal generated previously. The specific adjustment methods may include:
[0130] Adjust the brightness of the light according to the light sensing signal to adapt it to the light intensity of the current environment.
[0131] According to the motion detection signal of human body or object (such as microwave induction signal), the brightness or mode of the light is adjusted to provide appropriate lighting effect. When no human body is detected, the light is turned on and off by human body induction signal or time interval to save energy.
[0132] Finally, according to the adjustment of the first light source control signal, the system generates a second light source control signal.
[0133] Preferably, the adjusting the first light source control signal according to the sensing signal to obtain the second light source control signal includes:
[0134] S31, if the light source adjustment signal exists when the driving power supply is in the on state, obtaining the light source adjustment time according to the reception time of the light source adjustment signal;
[0135] Specifically, in order to determine when the user sends a light source adjustment signal and thereby calculate the light source adjustment time, so as to determine whether the light source parameters need to be adjusted, first, the touch operation signal is continuously monitored when the driving power supply is turned on. Once the light source adjustment signal is detected, the receiving time is recorded to calculate the light source adjustment time (the interval from the receiving time to the current time), and the light source adjustment time is accurately obtained to ensure the timeliness and accuracy of subsequent adjustment operations.
[0136] S32, if the light source adjustment signal does not exist when the driving power supply is in the on state, obtaining the on time of the driving power supply;
[0137] Specifically, during the process that the current driving power supply is in the on state, if the light source adjustment signal is detected, the on time of the current driving power supply is obtained, that is, the time from the driving power supply being turned on to the present. The purpose of this step is to determine the working time of the driving power supply to determine whether the intelligent dimming operation is required. Therefore, when there is no user adjustment signal, the system state is judged based on the on time to maintain the continuity of the intelligent dimming function.
[0138] S33, when the conduction time is greater than the first preset intelligent dimming interval time or the light source adjustment time is greater than the second preset intelligent dimming interval time, the sensor module is controlled to obtain a human body sensing signal, wherein the first preset intelligent dimming interval time is less than or equal to the second preset intelligent dimming interval time;
[0139] In this step, by setting two preset intelligent dimming intervals, frequent adjustment of the light source can be avoided, while ensuring timely response when needed;
[0140] Specifically, the first preset intelligent dimming interval is used to control the adjustment frequency of the light source when no adjustment signal is detected, ensuring that when there is no adjustment signal for a long time, the system can still regularly detect the environment and user needs to automatically adjust the light; the first preset intelligent dimming interval is generally short, and is used when no adjustment signal is detected, ensuring that even when there is no obvious user demand, the light source can still be regularly detected and adjusted to avoid the light source remaining in the same state for a long time.
[0141] The second preset intelligent dimming interval is used to control the frequency of light source adjustment when an adjustment signal is detected. After the user sends a light source adjustment signal, the system ensures that the user's adjusted state is maintained for a certain period of time to reduce interference or unnecessary energy consumption caused by frequent system adjustments. During the second preset intelligent dimming interval, the system maintains the light source state adjusted by the user to ensure that the lighting effect expected by the user is continuously maintained.
[0142] By reasonably setting the first and second preset intelligent dimming intervals, the system can effectively meet the use requirements in different scenarios while ensuring the intelligent dimming function, and can automatically adapt to environmental changes and effectively respond to the user's real-time adjustment operations. When the conduction time of the driving power exceeds the preset intelligent dimming interval, the sensor module is triggered to obtain the human body sensing signal.
[0143] S34, judging whether there is a user within the illumination range of the light source according to the human body sensing signal;
[0144] Specifically, when the conduction time of the driving power supply exceeds the preset intelligent dimming interval time, the sensor module is triggered to obtain the human body sensing signal. By analyzing the strength and duration of the human body sensing signal, if the signal strength and duration reach the set threshold, it is judged that there is a user, thereby ensuring that the intelligent dimming function is started at the appropriate time point, avoiding frequent switching and saving energy.
[0145] S35, if there is a user, controlling the sensor module to obtain a microwave sensing signal and a light sensing signal;
[0146] Specifically, if the presence of a user is detected, microwave sensing signals and light sensing signals are further obtained, the microwave sensing module and the light sensing module are activated, and microwave signals for detecting motion and light sensing signals for detecting ambient light parameters are obtained. The microwave sensing signals and light sensing signals can provide more environmental information and contribute to more accurate light source adjustment.
[0147] S36. Acquire ambient light parameters according to the light sensing signal, wherein the ambient light parameters include ambient light intensity and ambient light color temperature;
[0148] Specifically, the light intensity and color temperature of the current environment are obtained through light sensing signals. Understanding the ambient light parameters can help the system make more intelligent light source adjustments, making lighting more comfortable and energy-efficient.
[0149] S37, acquiring movement information of the user according to the microwave sensing signal and the human body sensing signal, wherein the movement information includes an actual distance between the user and a light source and a movement amplitude of the user;
[0150] Specifically, microwave sensors detect the movement and distance of target objects by emitting microwave signals and receiving reflected signals. Microwave signals can penetrate certain obstacles and are sensitive to changes in the distance and speed of target objects. Human body sensors (such as infrared sensors) sense the presence and movement of human bodies by detecting infrared rays radiated by human bodies. Their detection range is short and is greatly affected by the environment, but they are more accurate in detecting the presence and position of human bodies. By analyzing the changes in microwave sensing signals and human body sensing signals, the movement amplitude and actual distance of users within the range of light source illumination are obtained. The movement amplitude and actual distance can be determined by the frequency and intensity of signal changes. The size of the movement amplitude and actual distance can reflect the user's activities and help determine the adjustment amplitude of the light source.
[0151] However, the movement amplitude obtained by the microwave sensing signal is not necessarily the movement amplitude of the user. The main reason is that due to the working principle of the microwave sensor and the characteristics of signal processing, the microwave signal is easily interfered by other moving objects in the environment, such as leaves blown by the wind, the movement of pets, etc. These interferences will affect the accuracy of the signal, making the detected movement amplitude not completely represent the user's movement; and when the microwave signal propagates indoors, it will encounter reflections from obstacles such as walls and furniture, resulting in multipath effects. These reflected signals will be superimposed on the original signal, so that the detected movement amplitude includes the impact of multipath, rather than the real user movement.
[0152] Therefore, in a preferred embodiment, obtaining the movement amplitude of the user according to the microwave sensing signal includes:
[0153] S371, preprocessing the human body sensing signal and the microwave sensing signal respectively, wherein the preprocessing includes filtering processing and normalization processing;
[0154] Specifically, in this step, the human body sensing signal and the microwave sensing signal are preprocessed respectively to improve the signal quality. The preprocessing includes filtering and normalization. The filtering can be implemented by a low-pass filter and a high-pass filter, so as to remove high-frequency noise and low-frequency drift in the human body sensing signal and the microwave sensing signal. The band-pass filter is combined to further clarify the signal to ensure that the signal is within the specified frequency band.
[0155] The filtered signal is then normalized to adjust the signal amplitude to a uniform level. The filtering process effectively removes noise and improves the quality and reliability of the signal. Normalization unifies the amplitude of signals from different sources, which is conducive to subsequent processing and comparison.
[0156] S372: performing time alignment processing on the preprocessed human body sensing signal and the microwave sensing signal according to the internal clock of the sensor module to obtain a first human body sensing signal and a first microwave sensing signal;
[0157] Specifically, first read the internal clock timestamp of the sensor module, and align the preprocessed signal according to the timestamp to ensure that the two signals are on the same time base. The time alignment process ensures the synchronization of signals from different sources and improves the accuracy of subsequent processing.
[0158] S373, performing cross-correlation calculation according to the first human body sensing signal and the first microwave sensing signal to obtain a signal matching position and a delay time;
[0159] Specifically, aligning signals through internal clocks is a basic synchronization method that ensures that signals have the same time reference on a macro time scale. However, due to time drifts of different sensors, hardware delays, and differences in signal propagation paths, there may still be slight time deviations between signals even under the same time reference. This deviation can cause errors in scenarios with high precision requirements and affect the final processing results. Therefore, after aligning the internal clock, further fine-tuning is required through cross-correlation calculations;
[0160] In this step, a cross-correlation function between the first human body sensing signal and the first microwave sensing signal is calculated, and the similarity between the two signals is found through the cross-correlation function, the delay time is determined, and the best matching position is determined through the maximum value of the cross-correlation function;
[0161] S374, fine-tuning the first human body sensing signal and the first microwave sensing signal according to the signal matching position and the delay time to obtain a synchronized second human body sensing signal and a second microwave sensing signal;
[0162] Specifically, according to the signal matching position and the delay time obtained by cross-correlation calculation, the time axis of the first human body sensing signal and the first microwave sensing signal is adjusted to ensure that the two signals are completely aligned in time, and a synchronized second human body sensing signal and a second microwave sensing signal are obtained. The signal fine-tuning process further accurately synchronizes the signal to ensure the accuracy of subsequent feature extraction and fusion.
[0163] S375, performing feature extraction on the second human body sensing signal and the second microwave sensing signal to obtain a human body sensing feature set and a microwave sensing feature set, wherein the human body sensing feature set and the microwave sensing feature set both include a peak feature, a trough feature, and corresponding occurrence time and amplitude;
[0164] Specifically, feature extraction is performed on the second human body sensing signal and the second microwave sensing signal, and key feature points such as peaks and troughs in the signal are identified, and their occurrence time and amplitude are recorded, thereby obtaining a human body sensing feature set and a microwave sensing feature set. Feature extraction can capture key information of the signal, which is convenient for subsequent signal fusion and motion amplitude calculation.
[0165] S376: performing weighted combination on the second human body sensing signal and the second microwave sensing signal according to the human body sensing feature set and the microwave sensing feature set to obtain a weighted composite signal;
[0166] Specifically, a weighted calculation is performed on the human body sensing feature set and the microwave sensing feature set, and different weights are assigned to reflect the importance of the two signals. The weighted feature points are synthesized to generate a weighted synthetic signal. The human body sensing feature set includes features extracted from the second human body sensing signal, such as crests (peaks), troughs (lowest points), and the time points when these features appear. These features reflect the specific mode and intensity of human body movement. The microwave sensing feature set includes features extracted from the second microwave sensing signal, such as crests, troughs, and their appearance time. The microwave sensing feature set reflects the specific mode and intensity of movement of objects (including human bodies) in the environment. Different signal features are assigned different weights to form a comprehensive signal. The setting of weights is usually based on factors such as the signal-to-noise ratio and reliability of the signal. In one embodiment, the human body sensing signal is more accurate at close range and in a static state, and is assigned a first weight. The microwave sensing signal is more sensitive at a long distance and in a dynamic environment, and is assigned a second weight, and the first weight is greater than the second weight.
[0167] Through weighted combination, the advantages of human body sensing signals and microwave sensing signals are integrated to obtain a more accurate user motion amplitude; weighted combination can reduce the impact of single sensor errors and enhance the system's adaptability to environmental changes. More accurate motion detection can achieve more intelligent light source control and provide a better user experience.
[0168] S377: Perform integral calculation according to the weighted composite signal to obtain the movement amplitude and actual distance of the user.
[0169] Specifically, the weighted composite signal is integrated to obtain the user's movement amplitude and actual distance. By calculating the integral value of the weighted composite signal in a specific time period, the overall amplitude and actual distance of the user's movement are obtained. The integral calculation can comprehensively reflect the user's movement status and provide accurate movement amplitude information and distance information.
[0170] This embodiment fuses the two to obtain the user's motion amplitude and actual distance. Specifically, human body sensing signals usually use infrared or pyroelectric sensors, which are more direct and accurate in detecting the human body. Combined with human body sensing signals, interference factors in the environment can be filtered out and the reliability of detection can be improved. Microwave sensing signals and human body sensing signals have different detection characteristics and advantages. Microwave signals can detect motion at a longer distance, while human body sensing signals are more accurate at close range and in a stationary state. The combination of the two can complement each other and improve the overall detection accuracy. Signal fusion technology can perform weighted averaging or other fusion methods on the signals of different sensors to obtain more accurate motion detection results. By fusing microwave signals and human body signals, the limitations of a single sensor can be effectively eliminated and more comprehensive motion detection information can be provided.
[0171] Specifically, the light intensity and color temperature of the current environment are obtained through light sensing signals. Understanding the ambient light parameters can help the system make more intelligent light source adjustments, making lighting more comfortable and energy-efficient.
[0172] S38. Obtaining a first actual distance average and a first motion amplitude average within a preset time period according to the motion information;
[0173] S39, determining a light source adjustment amount according to the first actual distance mean, the first motion amplitude mean, and the ambient light parameter, wherein the light source adjustment amount includes: a brightness adjustment amount and a color temperature adjustment amount, the brightness adjustment amount is positively correlated with the first motion amplitude mean, the ambient light color temperature and the color temperature adjustment amount are positively correlated, and the brightness adjustment amount is negatively correlated with the ambient light intensity;
[0174] Specifically, the adjustment amount of the light source is calculated based on the movement amplitude and ambient light parameters. The adjustment amount includes brightness and color temperature. First, the brightness adjustment amount is calculated. The larger the movement amplitude, the larger the brightness adjustment amount, which is positively correlated. The higher the ambient light intensity, the smaller the brightness adjustment amount, which is negatively correlated. Then, the color temperature adjustment amount is calculated. The higher the ambient light color temperature, the higher the color temperature adjustment amount. The movement amplitude reflects the user's activity, and the ambient light parameters reflect the current lighting conditions. Adjustment based on these parameters can improve user experience and energy saving effects.
[0175] Specifically, the range and weight of each parameter are pre-set according to the specific application scenario and user needs. These weights are used to balance the impact of different parameters on the light source adjustment amount. The brightness adjustment amount is calculated according to the movement amplitude and ambient light intensity. The movement amplitude and the brightness adjustment amount are positively correlated, that is, the greater the movement amplitude, the greater the brightness adjustment amount. The ambient light intensity and the brightness adjustment amount are negatively correlated, that is, the greater the ambient light intensity, the smaller the brightness adjustment amount. The color temperature adjustment amount is calculated according to the ambient light color temperature: the greater the movement amplitude, the more activities, and higher brightness is required to provide sufficient lighting to ensure safety and comfort. The higher the ambient light intensity, the sufficient external light, the lower the internal light source brightness requirement, and therefore the brightness adjustment amount is reduced. The higher the ambient light color temperature, the greater the indoor light source color temperature adjustment amount to match the external light environment and maintain visual consistency.
[0176] In one embodiment, the step S39 specifically includes:
[0177] S391. Calculate the standard deviation of the actual distance within the preset time period according to the first actual distance mean;
[0178] Specifically, the actual distance data of the user within the current preset time period is collected. The mean of these data is calculated to obtain a first actual distance mean. The actual distance standard deviation is calculated based on these data and the first actual distance mean. The standard deviation can be used to measure the degree of dispersion of the distance data and determine whether the user is in stable motion or staying.
[0179] S392, calculating the standard deviation of the movement amplitude within the preset time period according to the first movement amplitude mean;
[0180] Specifically, this step is similar to step S391, and measures the discreteness of the motion amplitude data by the standard deviation to determine whether the user's motion behavior is stable;
[0181] S393, judging whether the motion information of the current preset time period is stable according to the actual distance standard deviation and the motion amplitude standard deviation;
[0182] Specifically, a standard deviation threshold is set to define the standard of stability and instability. If the standard deviation of the actual distance and the standard deviation of the motion amplitude are both less than the preset threshold, the motion information is considered stable. If the standard deviation exceeds the preset threshold, the motion information is considered unstable. By judging the stability, inaccurate adjustments caused by data fluctuations can be avoided. In actual scenarios, the user's motion information may be unstable due to various reasons. This instability has an important impact on the responsiveness and accuracy of the light source adjustment system. For example, the user may frequently move around or change positions in the room, and the distance and motion amplitude data will fluctuate greatly, resulting in unstable data in the current cycle.
[0183] S394: if the motion information of the current preset time period is stable, determining a light source adjustment amount according to the first actual distance average, the first motion amplitude average and the ambient light parameter;
[0184] Specifically, when the motion information is stable, the data of the current cycle is directly used to adjust the light source, and the light source adjustment amount is calculated according to the first actual distance average and the first motion amplitude average, combined with the ambient light parameters, to determine the specific value of the light source adjustment amount, which is used to adjust the light source brightness and color temperature, so that when the motion information is stable, the light source can be adjusted quickly and accurately, thereby improving the system response speed;
[0185] For example and not limitation, the target brightness and target color temperature can be determined based on different distance averages and motion amplitude averages, and the possible states of the user can be subdivided into the following situations:
[0186] In close-up state: If the user's movements are low, the brightness is set to medium brightness, such as 50% of the maximum brightness, to provide comfortable lighting, and the color temperature is set to warm color temperature (2700K-3000K) to create a comfortable environment. If the movements are high, the brightness can be set to high brightness, such as 80% of the maximum brightness, to provide sufficient lighting, and the color temperature can be set to cool color temperature (4000K-5000K) to improve attention and concentration.
[0187] Long-distance state: If the user's movement range is low. The brightness is set to low brightness, such as 30% of the maximum brightness, to save energy and avoid interference to the user. To maintain the comfort and balance of the environment, the color temperature is set to a neutral color temperature of 3500K-4000K. Neutral color temperature can maintain the comfort and balance of the environment and is suitable for long-term use. If the movement range is high, the brightness can be set to medium brightness, such as 50% of the maximum brightness. Medium brightness can provide enough light for users to carry out activities without being too dazzling. It is suitable for long-term use. The color temperature can be set to a neutral color temperature of 3500K-4000K. Neutral color temperature can maintain the comfort and balance of the environment and is suitable for activities or long-term use;
[0188] Then, the actual color temperature and the actual brightness are obtained according to the current first light source control signal, and the light source adjustment amount can be obtained by combining the ambient light parameters and the target color temperature and the target brightness.
[0189] S395: if the motion information of the current preset time period is unstable, obtaining a second average actual distance and a second average motion amplitude within the next preset time period;
[0190] Specifically, when the motion information is unstable, continue to collect data to obtain a more stable basis for adjustment, continue to monitor the user's actual distance and motion amplitude, collect data within the next preset time period, calculate the second actual distance average and the second motion amplitude average, and improve data stability by extending the data collection time to ensure the accuracy of light source adjustment.
[0191] S396: when the absolute value of the difference between the second actual distance mean and the first actual distance mean is less than the first difference threshold and the absolute value of the difference between the second motion amplitude mean and the first motion amplitude mean is less than the second difference threshold, calculate a third actual distance mean and a third motion amplitude mean according to the first actual distance mean and the second actual distance mean, and the first motion amplitude mean and the second motion amplitude mean;
[0192] S397, determining a light source adjustment amount according to the third actual distance average, the third motion amplitude average and the ambient light parameter;
[0193] Specifically, when the difference between the two-cycle data is small, the data is smoothed by the mean to reduce the impact of fluctuations on the light source adjustment. The mean difference between the two cycles is compared. If the difference is within the threshold range, the mean of the two cycles is calculated to obtain the third actual distance mean and the third motion amplitude mean. The data is smoothed by the mean of the two cycles to improve the reliability of the data, reduce the impact of data fluctuations on the light source adjustment, and ensure the stability and accuracy of the adjustment. After the data is smoothed, the third actual distance mean, the third motion amplitude mean and the ambient light parameters are combined to calculate the light source adjustment amount and determine the specific light source brightness and color temperature adjustment amount. Adjustment based on more stable data helps to improve the accuracy of light source adjustment.
[0194] S398. When the absolute value of the difference between the second actual distance mean and the first actual distance mean is greater than or equal to a first difference threshold, and / or the absolute value of the difference between the second motion amplitude mean and the first motion amplitude mean is greater than or equal to a second difference threshold, determine the light source adjustment amount based on the second actual distance mean, the second motion amplitude mean and the ambient light parameters.
[0195] Specifically, when the data difference is large, the data of the latest cycle is used for adjustment to quickly respond to user changes. The second actual distance mean, the second motion amplitude mean and the ambient light parameters are combined to determine the light source adjustment amount. When the user motion information changes significantly, the light source is responded and adjusted quickly to ensure the sensitivity and real-time performance of the system.
[0196] In this way, the system can quickly adjust the light source when the motion information is stable, and when the motion information is unstable, it can ensure the accuracy and rationality of the light source adjustment through multi-cycle data smoothing and judgment.
[0197] S310, acquiring a light source parameter change rate according to the light source adjustment amount, wherein the light source parameter change rate is negatively correlated with the light source adjustment amount;
[0198] Specifically, the light source parameter change rate is the speed at which the light source brightness and color temperature change, that is, the amount of change in the light source parameters per unit time. By adjusting the negative correlation between the rate and the adjustment amount, the light source change process is ensured to be smooth, and no drastic changes will occur due to a large adjustment amount, thus avoiding discomfort to the user. The smooth adjustment process reduces the energy consumption caused by frequent and drastic changes in the light source, which helps to extend the life of the light source and reduce energy consumption.
[0199] In one embodiment, it can also be adjusted in a multi-level manner, and the adjustment is performed in stages according to the size of the light source adjustment amount to avoid sudden changes. By setting the first adjustment amount threshold and the second adjustment amount threshold, the two light source adjustment amounts are adjusted to a small adjustment amount, a medium adjustment amount and a large adjustment amount. The duty cycle of each adjustment of the small adjustment amount does not exceed 5%, and the transition time is 0.5 seconds. The duty cycle of each adjustment of the medium adjustment amount does not exceed 10%, and the transition time is 1 second. Large adjustment amount: The duty cycle of each adjustment does not exceed 20%, and the transition time is 2 seconds.
[0200] S310, adjusting the first light source control signal according to the light source adjustment amount to obtain a second light source control signal;
[0201] Specifically, the first light source control signal is adjusted by the light source adjustment amount to generate a second light source control signal. The adjusted control signal can better adapt to the current environment and user needs and provide a suitable lighting effect.
[0202] S311: If not, obtain a second light source control signal according to a preset light source off signal.
[0203] Specifically, if the presence of a user is not detected, a second light source control signal is generated according to a preset light source shutdown signal; in one embodiment, the light source shutdown signal includes a shutdown rate, and by gradually reducing the brightness of the light source, the discomfort caused by sudden shutoff can be avoided while saving energy; during the shutdown period, the sensor module will continue to monitor user activity information (such as human body sensing signals, microwave sensing signals). If the user activity changes during the shutdown period, the sensor module will generate a new sensing signal again and feed it back to the drive control unit.
[0204] S4. Control the light source module to perform lighting according to the second light source control signal.
[0205] Finally, after receiving the second light source control signal, the driving control unit will parse the signal. The parsed signal will tell the light source driving module how to adjust the duty cycle of the current to achieve the target brightness and target color temperature in the second light source control signal.
[0206] Example 3
[0207] In addition, combined Figure 5 The light source intelligent touch control method of the embodiment of the present invention described above can be implemented by a light emitting control device. Figure 6 A schematic diagram of the hardware structure of a light emitting control device provided in an embodiment of the present invention is shown.
[0208] The lighting control device may include a processor and a memory storing computer program instructions.
[0209] Specifically, the processor may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.
[0210] The memory may include a large capacity memory for data or instructions. By way of example and not limitation, the memory may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory may include a removable or non-removable (or fixed) medium. Where appropriate, the memory may be inside or outside the data processing device. In a particular embodiment, the memory is a non-volatile solid-state memory. In a particular embodiment, the memory includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory or a combination of two or more of these.
[0211] The processor implements any one of the light source intelligent touch control methods in the above embodiments by reading and executing computer program instructions stored in the memory.
[0212] In one example, the lighting control device may further include a communication interface and a bus. Figure 6 As shown, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 410 and communicate with each other.
[0213] The communication interface is mainly used to implement communication between the modules, devices, units and / or equipment in the embodiments of the present invention.
[0214] The bus includes hardware, software or both, and the components of the light emitting control device are coupled to each other. For example, but not limitation, the bus may include an accelerated graphics port (AGP) or other graphics bus, an enhanced industrial standard architecture (EISA) bus, a front-side bus (FSB), a hypertransport (HT) interconnection, an industrial standard architecture (ISA) bus, an infinite bandwidth interconnection, a low pin count (LPC) bus, a memory bus, a microchannel architecture (MCA) bus, a peripheral component interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a serial advanced technology attachment (SATA) bus, a video electronics standard association local (VLB) bus or other suitable buses or a combination of two or more of these. In appropriate cases, the bus may include one or more buses. Although the embodiments of the present invention describe and illustrate specific buses, the present invention contemplates any suitable bus or interconnection.
[0215] Example 4
[0216] In addition, in combination with the light source intelligent touch control method in the above embodiments, the embodiments of the present invention can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the light source intelligent touch control methods in the above embodiments is implemented.
[0217] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
[0218] The functional blocks shown in the structural block diagram described above can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier. "Machine-readable medium" may include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROMs, flash memories, erasable ROMs (EROMs), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0219] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.
[0220] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.
Claims
1. A light source intelligent touch control method, characterized in that: Used in a light source intelligent touch control circuit, the light source intelligent touch control circuit includes a power supply module, a light source module, a touch control module, a light source driving module, and a sensor module; Wherein, the light source driving module includes a driving control unit and a driving power supply, and the input end of the power supply module is connected to the first output end of the driving power supply, and is used to step down the voltage output by the driving power supply and supply energy to the touch control module, the light source driving module and the sensor module respectively connected to the output end of the power supply module; The touch control module generates a corresponding touch signal in response to a touch operation of a user; The output end of the sensor module is connected to the driving control unit, and is used to obtain environmental information, generate a sensing signal, and send it to the driving control unit, wherein the sensing signal includes a light sensing signal, a human body sensing signal, and a microwave sensing signal; The input end of the driving control unit is connected to the touch control module and the sensor module respectively, and the output end of the driving control unit is connected to the driving power supply, and is used to generate a corresponding light source control signal according to the touch signal and / or the sensing signal and send it to the driving power supply; The second output end of the driving power supply is connected to the light source module, and is used to generate a control voltage signal according to the light source control signal to drive the light source to illuminate; The method comprises: In response to the type of the user's touch operation, obtaining a corresponding touch signal; According to the touch signal, obtaining a first light source control signal and controlling the light source module to perform lighting; The first light source control signal is adjusted according to the sensing signal to obtain a second light source control signal, which specifically includes: If there is a light source adjustment signal when the driving power supply is in the on state, obtaining the light source adjustment time according to the reception time of the light source adjustment signal; If the light source adjustment signal does not exist when the driving power source is in the on state, obtaining the on time of the driving power source; When the on-time is greater than the first preset intelligent dimming interval or the light source adjustment time is greater than the second preset intelligent dimming interval, the sensor module is controlled to obtain a human body sensing signal, wherein the first preset intelligent dimming interval is less than the second preset intelligent dimming interval; According to the human body sensing signal, it is determined whether there is a user within the illumination range of the light source; If there is a user, controlling the sensor module to obtain a microwave sensing signal and a light sensing signal; Acquire ambient light parameters according to the light sensing signal, wherein the ambient light parameters include ambient light intensity and ambient light color temperature; Acquire the movement information of the user according to the microwave sensing signal and the human body sensing signal, wherein the movement information includes the actual distance between the user and the light source and the movement amplitude of the user; According to the motion information, obtaining a first actual distance average and a first motion amplitude average within a preset time period; Determine a light source adjustment amount according to the first actual distance mean, the first motion amplitude mean, and the ambient light parameter, wherein the light source adjustment amount includes: a brightness adjustment amount and a color temperature adjustment amount, the brightness adjustment amount is positively correlated with the first motion amplitude mean, the ambient light color temperature and the color temperature adjustment amount are positively correlated, and the brightness adjustment amount is negatively correlated with the ambient light intensity; According to the light source adjustment amount, acquiring a light source parameter change rate, wherein the light source parameter change rate is negatively correlated with the light source adjustment amount; Adjust the first light source control signal according to the light source adjustment amount and the light source parameter change rate to obtain a second light source control signal; If there is no user, obtaining a second light source control signal according to a preset light source off signal; The light source module is controlled to perform lighting according to the second light source control signal.
2. The light source intelligent touch control method according to claim 1, characterized in that: The touch control module includes a touch sensing unit and a touch signal generating unit, wherein the output end of the touch sensing unit is connected to the input end of the touch signal generating unit, and is used to generate a corresponding touch operation signal according to the user's touch operation, and send the touch operation signal to the touch signal generating unit; The output end of the touch signal generating unit is connected to the input end of the driving control unit, and is used to generate a corresponding touch signal according to the touch operation signal and send it to the driving control unit, wherein the touch signal is a timing signal.
3. The light source intelligent touch control method according to claim 1, characterized in that: The light source intelligent touch control circuit also includes a clock oscillation module, which includes a backup power supply and a clock oscillation unit. The clock oscillation unit is connected to the backup power supply and the driving power supply, respectively. When the driving power supply is in the on state, the clock oscillation unit is powered by the driving power supply. When the driving power supply is not in the on state, the clock oscillation unit is powered by the backup power supply. The clock oscillation unit is used to generate a clock signal and send it to the light source driving module.
4. The light source intelligent touch control method according to claim 1, characterized in that: The light source intelligent touch control circuit also includes a signal detection module, the input end of the signal detection module is connected to the driving power supply, the output end of the signal detection module is connected to the light source driving module, and the signal detection module is used to obtain the turn-on time and turn-off time of the driving power supply.
5. The light source intelligent touch control method according to claim 4, characterized in that: The light source driving module also includes a timing unit, which is connected to the driving control unit and is used to obtain the on-time and off-time of the driving power supply according to the on-time and the off-time, respectively, compare the on-time with the preset intelligent dimming interval time to obtain a first comparison result, and compare the off-time with the preset state latch time to obtain a second comparison result. The driving control unit generates a corresponding light source control signal according to the first comparison result, the second comparison result, the touch signal and / or the sensing signal, and sends it to the driving power supply.
6. The light source intelligent touch control method according to claim 5, characterized in that: The light source module includes at least a first light source array and a second light source array, and the first light source array and the second light source array have different luminous colors. The second output end of the driving power supply includes a first control end and a second control end respectively connected to the first light source array and the second light source array. The driving power supply generates a first control voltage signal sent to the first light source array and a second control voltage signal sent to the second light source array according to the light source control signal, so as to adjust the duty cycle of the current output to the first light source array and the second light source array.
7. The light source intelligent touch control method according to claim 1, characterized in that: The light source module includes at least a first light source array and a second light source array, the first light source array and the second light source array have different light emission colors, and obtaining a first light source control signal and controlling the light source module to illuminate according to the touch signal includes: When the touch signal is a light source on signal, obtaining an off time of the driving power supply; If the off time is less than or equal to the preset state latch time, generating the first light source control signal according to the first light source control signal or the second light source control signal when the driving power supply was in the on state last time; If the off time is greater than the preset state latching time, generating the first light source control signal according to the light source turn-on signal; When the touch signal is a light source adjustment signal, generating the first light source control signal according to the light source adjustment signal; determining a duty cycle of current output to the first light source array and the second light source array according to the first light source control signal; According to the duty cycle, the first light source array and the second light source array are controlled to perform illumination.
8. The light source intelligent touch control method according to claim 1, characterized in that: The step of determining the light source adjustment amount according to the first actual distance mean, the first motion amplitude mean and the ambient light parameter includes: Calculating the standard deviation of the actual distance within the preset time period according to the first actual distance mean; Calculating a standard deviation of the movement amplitude within the preset time period according to the first movement amplitude mean; Determining whether the motion information of a current preset time period is stable according to the actual distance standard deviation and the motion amplitude standard deviation; If the motion information of the current preset time period is stable, determining the light source adjustment amount according to the first actual distance average, the first motion amplitude average and the ambient light parameter; If the motion information of the current preset time period is unstable, obtaining the second actual distance average and the second motion amplitude average within the next preset time period; When the absolute value of the difference between the second actual distance mean and the first actual distance mean is less than a first difference threshold and the absolute value of the difference between the second motion amplitude mean and the first motion amplitude mean is less than a second difference threshold, calculating a third actual distance mean and a third motion amplitude mean according to the first actual distance mean and the second actual distance mean, and the first motion amplitude mean and the second motion amplitude mean; Determining a light source adjustment amount according to the third actual distance mean, the third motion amplitude mean and the ambient light parameter; When the absolute value of the difference between the second actual distance mean and the first actual distance mean is greater than or equal to a first difference threshold, and / or the absolute value of the difference between the second motion amplitude mean and the first motion amplitude mean is greater than or equal to a second difference threshold, the light source adjustment amount is determined based on the second actual distance mean, the second motion amplitude mean and the ambient light parameters.
Citation Information
Patent Citations
Main control intelligent lamp
CN105357842A
Intelligent table lamp control circuit and intelligent table lamp
CN218550247U