Non-contact direction recognition and sliding control addressing LED system and control method thereof
By combining a plurality of first sensors and a second sensor, the luminous area and position changes of the linearly distributed LED lamps are controlled, and the problem of non-contact local lighting and lighting atmosphere changes in the prior art are solved, and the effect of improving user experience is achieved.
Patent Information
- Application Number
- CN202210682566.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-16
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2042-06-16
AI Technical Summary
Existing linear lighting fixtures cannot achieve non-contact local lighting and lighting atmosphere changes, and the user experience is poor.
Using a combination of a plurality of first sensors and a second sensor, the main controller generates control instructions to control the luminous area and position of the linearly distributed LED lamps to change, and dynamic adjustment of local lighting and lighting atmosphere is realized.
The local reduction and expansion of the luminous area of linear lighting fixtures and the changes in the position of the local luminous area are realized. Users can enjoy the local lighting and lighting atmosphere of the light, and their gestures can be adjusted quickly and synchronously interact, which greatly improves the user experience effect.
Smart Images

Figure CN115002965B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of lighting equipment, and in particular to a system for contactless direction recognition and sliding control addressing of LEDs and a control method thereof. Background Art
[0002] Currently, the contactless adjustment of existing linear lighting fixtures can adopt reflective infrared sensors, microwave ranging sensors or cameras, but the products using these technologies can only recognize the left and right directions through a single gesture operation to achieve changes in the overall brightness, color, switch and other effects of the linear lighting fixture, but cannot further allow users to enjoy the local lighting and lighting atmosphere of the lighting fixture, and the experience effect is not good.
[0003] The disclosure of the above background technology content is only used to assist in understanding the concept and technical solution of the present invention. It does not necessarily belong to the prior art of this patent application. In the absence of clear evidence that the above content has been disclosed on the filing date of this patent application, the above background technology should not be used to evaluate the novelty and creativity of the present application. Summary of the invention
[0004] In order to solve the above technical problems, the present invention proposes a system for contactless direction identification and sliding control addressing of LEDs and a control method thereof, which can realize the local reduction and expansion of the light-emitting area of linear lighting fixtures, and can also realize the deformation of the position of the local light-emitting area and synchronous changes with the gesture position.
[0005] In order to achieve the above object, the present invention adopts the following technical solutions:
[0006] In the first aspect, the present invention discloses a system for contactless direction identification and sliding control addressing of LEDs, comprising a sensor component, an LED light component and a main controller, wherein the main controller is respectively connected to the sensor component and the LED light component, the LED light component comprises a plurality of LED lights distributed linearly, the sensor component comprises a plurality of first sensors and a second sensor, the plurality of first sensors are distributed linearly, the plurality of first sensors and the second sensors are respectively used to receive gesture signals and send them to the main controller, the main controller is used to generate a first control instruction according to the gesture signals of the plurality of first sensors, and is used to generate a light switch instruction or a second control instruction according to the gesture signals of the second sensor, so as to control the plurality of linearly distributed LED lights according to the first control instruction, the light switch instruction and the second control instruction.
[0007] Preferably, the LED lamp assembly includes M LED lamps distributed linearly, and the sensor assembly includes N first sensors, wherein M≥N so that each of the first sensors corresponds to one or more LED lamps.
[0008] Preferably, the LED lamp assembly comprises a plurality of addressable LED lamps distributed linearly.
[0009] Preferably, the plurality of first sensors and the second sensors are all infrared sensors, and each of the first sensors includes an infrared transmitting module and an infrared receiving module, and the second sensor includes an infrared transmitting module and two infrared receiving modules.
[0010] In a second aspect, the present invention discloses a method for controlling the system according to the first aspect, comprising the following steps:
[0011] S1: the main controller monitors whether a first valid gesture signal from the second sensor is received, if yes, executes step S2, if no, executes step S3;
[0012] S2: the main controller generates a light on / off instruction and controls the LED light assembly to turn on or off according to the light on / off instruction, and then executes step S3;
[0013] S3: Determine whether the LED lamp assembly is in a light-on state. If yes, execute steps S4 and S6 simultaneously. If no, return to step S1.
[0014] S4: the main controller monitors whether it receives gesture signals from a plurality of the first sensors, if yes, executes step S5, if no, returns to step S1;
[0015] S5: determining whether the gesture signals received from the plurality of first sensors are valid; if so, generating a first control instruction and controlling the LED lamp assembly according to the first control instruction; if not, returning to step S1;
[0016] S6: The main controller monitors whether a second valid gesture signal from the second sensor is received. If so, a second control instruction is generated and the LED lamp assembly is controlled according to the second control instruction. If not, the main controller returns to step S1.
[0017] Preferably, step S1 specifically includes: the second sensor determines whether a gesture moving along the first direction is collected, and if so, the second sensor sends a first valid gesture signal to the main controller, and the main controller queries the first valid gesture signal of the second sensor through I2C communication, then executes step S2, if not, executes step S3.
[0018] Preferably, step S5 specifically includes:
[0019] S51: collecting first gesture information, determining whether the duration of the collected first gesture information is greater than or equal to a first preset time, if yes, determining it as a valid signal and saving the current position of the first gesture information as the starting point of the first gesture information, and then executing step S52, otherwise returning to step S1;
[0020] S52: monitoring whether a second gesture signal is collected within a second preset time after the first preset time, if yes, executing step S53, otherwise executing step S57;
[0021] S53: Determine whether the duration of the second gesture information collected is greater than or equal to a third preset time. If yes, determine it as a valid signal and save the current position of the second gesture information as the starting point of the second gesture information, and then execute step S54; otherwise, execute step S57;
[0022] S54: Determine the movement trajectories of the first gesture information and the second gesture information. If the two are in relative motion or opposite motion, execute step S55. If the two are in the same direction, return to step S51.
[0023] S55: respectively obtaining a first moving distance between the final landing point and the starting point of the first gesture information and a second moving distance between the final landing point and the starting point of the second gesture information, calculating a difference between the first moving distance and the second moving distance, generating a range change instruction for the light emitting areas of the plurality of LED lights distributed linearly according to the difference between the first moving distance and the second moving distance, and executing step S56. During this period, if any one of the first gesture information and the second gesture information is released, returning to step S1;
[0024] S56: the main controller synchronously adjusts the light emitting area ranges of the corresponding plurality of LED lamps according to the generated range change instructions of the light emitting areas of the plurality of LED lamps distributed linearly;
[0025] S57: generating a position change instruction of a plurality of linearly distributed light-emitting areas of the LED lights according to a third moving distance between the current position of the first gesture information and the starting point, and executing step S58. During this period, if the gesture of the first gesture information is released, returning to step S1;
[0026] S58: The main controller synchronously adjusts the positions of the corresponding light-emitting areas of the plurality of LED lamps according to the position change instructions of the light-emitting areas of the plurality of LED lamps that are linearly distributed.
[0027] Preferably, the LED lamp assembly includes a plurality of addressable LED lamps distributed linearly, wherein step S56 specifically includes: the main controller sends addressable LED light control information according to the change range instruction of the light-emitting areas of the plurality of linearly distributed LED lamps in the SPI single bus communication mode, so as to synchronously adjust the light-emitting area range of the plurality of linearly distributed addressable LED lamps; step S58 specifically includes: the main controller sends addressable LED light control information according to the position change instruction of the light-emitting areas of the plurality of linearly distributed LED lamps in the SPI single bus communication mode, so as to synchronously adjust the position of the light-emitting areas of the plurality of linearly distributed addressable LED lamps.
[0028] Preferably, step S6 specifically includes:
[0029] S61: the second sensor determines whether a gesture moving along the second direction or a blocking hovering gesture is collected. If there is a gesture moving along the second direction, step S62 is executed; if there is a blocking hovering gesture, step S63 is executed; if there is none, the process returns to step S1;
[0030] S62: the second sensor sends a second A valid gesture signal to the main controller, and the main controller queries the second A valid gesture signal of the second sensor in an I2C communication manner, and then generates a mode change instruction, and the main controller synchronously adjusts the mode of the LED lamp assembly currently emitting light according to the mode change instruction;
[0031] S63: The second sensor sends a second B valid gesture signal to the main controller. The main controller queries the second B valid gesture signal of the second sensor through I2C communication, and generates a brightness change instruction. The main controller synchronously adjusts the brightness of the currently emitting LED lamp assembly according to the brightness change instruction.
[0032] Preferably, step S63 specifically includes:
[0033] S631: Determine whether the duration of the blocking hovering gesture is greater than or equal to a fourth preset time, if yes, execute step S632, otherwise return to step S1;
[0034] S632: the second sensor sends a second B valid gesture signal to the main controller, and the main controller queries the second B valid gesture signal of the second sensor in an I2C communication manner, and generates a brightness change instruction;
[0035] S633: The main controller synchronously adjusts the brightness of the currently emitting LED lamp component according to the brightness change instruction, and at the same time, the second sensor continues to determine whether the blocking hovering gesture is still collected. If so, the main controller continues to adjust the brightness of the currently emitting LED lamp component according to the brightness change instruction. If not, the main controller stops adjusting the brightness of the currently emitting LED lamp component.
[0036] Compared with the prior art, the beneficial effects of the present invention are as follows: the non-contact direction recognition and sliding control addressing LED system and control method thereof proposed in the present invention collect gesture signals through the cooperation of multiple first sensors and a single second sensor to control multiple LED lights, thereby realizing the local reduction and expansion of the light-emitting area of the linear lighting fixture, and also realizing the change of the position of the local light-emitting area and the synchronous change with the gesture position, etc., so that the user can enjoy the local lighting and lighting atmosphere of the light rather than the overall lighting, and the gestures can be quickly adjusted and can interact synchronously, and the user experience effect is greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a structural schematic diagram of a system for non-contact direction recognition and sliding control addressing LEDs according to a preferred embodiment of the present invention;
[0038] Figure 2 yes Figure 1 A schematic diagram of a sensor component collecting gesture signals;
[0039] Figure 3 yes Figure 1 A schematic diagram of the expansion and reduction of the light emitting area of the LED lamp assembly and the overall movement of the light emitting area;
[0040] Figure 4 The present invention is a flowchart of a control method of a system for contactless direction recognition and sliding control addressing LEDs according to a preferred embodiment of the present invention. DETAILED DESCRIPTION
[0041] The following is a detailed description of the embodiments of the present invention. It should be emphasized that the following description is only exemplary and is not intended to limit the scope and application of the present invention.
[0042] It should be noted that when a component is referred to as being "fixed to" or "disposed on" another component, it can be directly on the other component or indirectly on the other component. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element. In addition, connection can be used for both fixing and circuit / signal communication.
[0043] It should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the embodiments of the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0044] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0045] With the development of technology, users' demands for lighting fixtures are becoming more and more diversified, while existing linear lighting fixtures can only achieve changes in the overall effect of lighting fixtures, but cannot achieve changes in the local reduction and expansion of the luminous area of linear lighting fixtures, nor can they achieve deformation of the position of the local luminous area and synchronous changes with the position of the gesture, so it is impossible to enjoy the local lighting and lighting atmosphere of the light. The inventors have found through research that the reflective infrared sensor technology currently used usually uses a single sensor, and the light source uses ordinary LEDs, and the operation instructions are single, resulting in the inability to present more interactive effects of gestures and lights.
[0046] In order to solve the above problems, the present invention adopts N+X sensors and cooperates with addressable LED combination to realize gesture linkage effect, wherein N represents N sensors distributed linearly to realize two-handed and one-handed gesture instructions to synchronize the changes of light areas, and X represents 1 left and right direction sensor to realize the switching of light brightness, color or dynamic mode and switch state.
[0047] like Figure 1As shown, an embodiment of the present invention discloses a system for contactless direction recognition and sliding control addressing of LEDs, comprising a sensor assembly 10, an LED lamp assembly 20 and a main controller 30, wherein the main controller 30 is connected to the sensor assembly 10 and the LED lamp assembly 20 respectively, specifically, the sensor assembly 10 is connected to the input end of the main controller 30 via an I2C bus, and the LED assembly 20 is connected to the output end of the main controller 30 via an SPI bus. The LED lamp assembly 20 comprises a plurality of LED lamps 21 distributed linearly, the sensor assembly 10 comprises a plurality of first sensors 11 and a second sensor 12, the plurality of first sensors 11 are distributed linearly, the plurality of first sensors 11 and the second sensors 12 are respectively used to receive gesture signals and send them to the main controller 30, the main controller 30 is used to generate a first control instruction according to the gesture signals of the plurality of first sensors 11, and is used to generate a light switch instruction or a second control instruction according to the gesture signal of the second sensor 12, so as to control the plurality of LED lamps 21 distributed linearly according to the first control instruction, the light switch instruction and the second control instruction.
[0048] In this embodiment, the LED lamp assembly 20 includes M LED lamps 21 (LED Pixel 1 to LED Pixel M), wherein each LED lamp 21 is an addressable LED lamp, which is a pixel LED and can realize single-point control. In conjunction with the sensor assembly 10, the translation of the light emitting position can be realized with a smooth transition instead of a jump transition, which is impossible for ordinary LEDs.
[0049] The sensor assembly 10 includes N first sensors 11 (Sensor 1 to Sensor N) and a second sensor 12 (X Sensor), wherein M≥N so that each first sensor 11 corresponds to one or more LED lights 21. The working principles of the multiple first sensors 11 and the second sensors 12 are the same, both using infrared sensors, and judging by infrared reflection reception, wherein each first sensor 11 includes an infrared transmitting module (IR) and an infrared receiving module (IRM), so two adjacent first sensors 11 are required to comprehensively judge the direction of gesture movement, and the second sensor 12 includes an infrared transmitting module (IR) and two infrared receiving modules (IRM), so the direction of gesture movement can be judged by a single second sensor 12.
[0050] The non-contact direction recognition and sliding control addressing LED system proposed in the preferred embodiment of the present invention, the entire system architecture is composed of N+X sensors, M addressable LEDs and a main controller, an IR sensor is used as a gesture signal acquisition unit, an I2C bus is used as an input communication method, and an SPI bus is used as an output communication method. Within the effective distance range in front of the sensor, the displacement and orientation signals generated by the gesture occlusion are used as synchronization signals for the light state and effect, forming an interactive effect of light and gesture.
[0051] like Figure 2 As shown, the input unit uses N first sensors 11 to be linearly distributed, and collects the motion trajectory information of double gesture blocking and simultaneous back-and-forth translation operation (opposite motion or relative motion) as the synchronization instruction for expanding or reducing the light area, or a single gesture blocking hovering on one of the position sensors of the 1st to N first sensors 11 as the synchronization instruction for the adjusted light area position movement; the input unit also uses a second sensor 12 (X-type directional sensor) to collect single gesture blocking left and right translation signals as the synchronization signal for light color or dynamic mode switching and switch switching, or a single gesture blocking hovering on the X-type sensor, and the hovering duration as the overall brightness change signal. The N first sensors 11 and the second sensor 12 are interrelated, and the state of the switch switching signal of the second sensor 12 is the prerequisite for the operation of the N first sensors 11. Only when the second sensor 12 switches the LED light assembly to the light-on state, the N first sensors 11 can control the LED light assembly.
[0052] like Figure 3 As shown, the 1st to Mth LED lamps 21 (using addressable LED lamps) are connected to Figure 2 The gesture signals formed by the first to N first sensors 11 shown in FIG. 1 are synchronized and changed in the same proportion, including the expansion, reduction, and left-right translation effects of the luminous area. Figure 2 The gesture signal formed by the second sensor 12 (X-type directional sensor) changes synchronously, including the brightness, color or dynamic mode of the luminous area and the switch state adjustment and switching.
[0053] like Figure 4 As shown, another preferred embodiment of the present invention discloses a method for controlling the above system, comprising the following steps:
[0054] S1: the main controller 30 monitors whether a first valid gesture signal from the second sensor 12 is received, if yes, executes step S2, if no, executes step S3;
[0055] Specifically, step S1 includes: the second sensor 12 determines whether a gesture moving along a first direction (for example, a gesture moving from left to right, or a gesture moving from right to left) is collected. If so, the second sensor 12 sends a first valid gesture signal to the main controller 30. The main controller 30 queries the first valid gesture signal of the second sensor 12 by I2C communication, and then executes step S2. If not, executes step S3.
[0056] In this step, the main controller 30 continuously queries the state of the second sensor 12 in an I2C communication manner, and generates a light on / off instruction when it is detected that the second sensor collects a gesture moving along the first direction.
[0057] S2: The main controller 30 generates a light on / off instruction and controls the LED lamp assembly 20 to turn on or off the light according to the light on / off instruction, and then executes step S3;
[0058] S3: The main controller 30 determines whether the LED lamp assembly 20 is in the light-on state. If yes, steps S4 and S6 are executed simultaneously. If no, the main controller 30 returns to step S1.
[0059] S4: the main controller 30 monitors whether it receives gesture signals from the plurality of first sensors 11, and if so, executes step S5, and if not, returns to step S1;
[0060] In this step, the main controller 30 starts to query the feedback information of the 1st to Nth first sensors in a round-robin manner in the light-on state, so as to monitor whether the gesture signals of the multiple first sensors 11 are received.
[0061] S5: The main controller 30 determines whether the gesture signals received from the plurality of first sensors 11 are valid. If so, a first control instruction is generated and the LED lamp assembly 20 is controlled according to the first control instruction. If not, the main controller 30 returns to step S1.
[0062] Specifically, step S5 includes:
[0063] S51: collecting first gesture information, determining whether the duration of the collected first gesture information is greater than or equal to the first preset time T1, if yes, determining it as a valid signal and saving the current position of the first gesture information as the starting point of the first gesture information, and then executing step S52, otherwise returning to step S1;
[0064] In this step, by judging whether the duration of the first gesture information is greater than or equal to the first preset time T1, it is determined whether the first gesture information is a valid signal, thereby preventing misoperation.
[0065] S52: monitoring whether a second gesture signal is collected within a second preset time T2 after the first preset time T1, if yes, executing step S53, otherwise executing step S57;
[0066] S53: Determine whether the duration of the collected second gesture information is greater than or equal to the third preset time T3. If so, determine it as a valid signal and save the current position of the second gesture information as the starting point of the second gesture information, and then execute step S54; otherwise, execute step S57;
[0067] The third preset time T3 in this step may be the same as the first preset time T1. By judging whether the duration of the second gesture information is greater than or equal to the third preset time T3, it is determined whether the second gesture information is a valid signal, thereby preventing misoperation.
[0068] S54: Determine the movement trajectories of the first gesture information and the second gesture information. If the two are in relative motion or opposite motion, determine it as a valid signal and execute step S55. If the two are in the same direction, determine it as an invalid signal and return to step S51.
[0069] In this step, when judging the motion trajectories of the first gesture information and the second gesture information, if there is a static and a dynamic relative motion (movement towards each other) or opposite motion (movement away from each other), or two simultaneous dynamic relative motions (movement towards each other) or opposite motions (movement away from each other), it can be judged as a valid signal and step S55 is executed. If both are simultaneous dynamic movements in the same direction, it is judged as an invalid signal and the process returns to step S51.
[0070] S55: respectively obtaining a first moving distance between the final landing point and the starting point of the first gesture information and a second moving distance between the final landing point and the starting point of the second gesture information, calculating a difference between the first moving distance and the second moving distance, generating a range change instruction for the light emitting areas of the plurality of linearly distributed LED lights according to the difference between the first moving distance and the second moving distance, and executing step S56. During this period, if any one of the first gesture information and the second gesture information is released, returning to step S1;
[0071] The range of change of the light-emitting area specifically corresponding to the range of change of the light-emitting area of the plurality of LED lights with linear distribution generated is proportional to the absolute value of the difference between the first moving distance and the second moving distance, that is, the greater the absolute value of the difference between the first moving distance and the second moving distance, the greater the range of change of the light-emitting area, and the smaller the absolute value of the difference between the first moving distance and the second moving distance, the smaller the range of change of the light-emitting area. In addition, when the first gesture information and the second gesture information are relative movements, the range of change of the corresponding light-emitting area is a shrinking transformation, and when the first gesture information and the second gesture information are opposite movements, the range of change of the corresponding light-emitting area is an expanding transformation.
[0072] Taking the example of the first gesture information (left hand gesture) moving 1 unit to the left and the second gesture information (right hand gesture) moving 3 units to the right, that is, the final landing point of the first gesture information is on the left side of its starting point. At this time, the first moving distance can be a negative value, that is, -1 unit, and the final landing point of the second moving distance is on the right side of its starting point. At this time, the second moving distance can be a positive value, that is, 3 units. The difference between the first moving distance and the second moving distance is calculated as = the second moving distance - the first moving distance = 4 units. Since the first gesture information and the second gesture information are in opposite movements, an expansion range instruction of the luminous area should be generated accordingly, and it is an expansion range instruction of the luminous area corresponding to a moving distance of 4 units.
[0073] Taking the example of the first gesture information (left hand gesture) moving 2 units to the right and the second gesture information (right hand gesture) moving 4 units to the left, that is, the final landing point of the first gesture information is on the left side of its starting point. At this time, the first moving distance can be a positive value, that is, 2 units, and the final landing point of the second moving distance is on the right side of its starting point. At this time, the second moving distance can be a negative value, that is, -4 units. The difference between the first moving distance and the second moving distance is calculated = the second moving distance - the first moving distance = -6 units. Since the first gesture information and the second gesture information are relative motions, a corresponding instruction to reduce the range of the luminous area should be generated, and it is an instruction to reduce the range of the luminous area corresponding to a moving distance of 6 units.
[0074] S56: The main controller 30 synchronously adjusts the light emitting area ranges of the corresponding multiple LED lamps according to the generated range change instruction of the light emitting area of the multiple LED lamps distributed linearly; specifically, the main controller 30 sends the addressable LED lamp control information according to the range change instruction of the light emitting area of the multiple LED lamps distributed linearly in the SPI single bus communication mode, so as to synchronously adjust the light emitting area ranges of the multiple addressable LED lamps distributed linearly;
[0075] In this step, the main controller 30 sends addressable LED light control information in a SPI single bus communication mode to synchronously adjust the light emitting area range of the LED light assembly 20 .
[0076] S57: generating a position change instruction of the light-emitting areas of the plurality of linearly distributed LED lights according to the third moving distance between the current position of the first gesture information and the starting point, and executing step S58. During this period, if the gesture of the first gesture information is released, returning to step S1;
[0077] Among them, the generated position change instruction of the light-emitting area of multiple linearly distributed LED lights is specifically to move all currently lit LED lights a predetermined distance, and the predetermined distance of the movement is proportional to the third moving distance between the current position of the first gesture information and the starting point, that is, the larger the third moving distance between the current position of the first gesture information and the starting point, the longer the predetermined distance, and the smaller the third moving distance between the current position of the first gesture information and the starting point, the shorter the predetermined distance, and the direction of movement of all lit LED lights should also be the same as the direction of the third moving distance between the current position of the first gesture information and the starting point.
[0078] S58: The main controller 30 synchronously adjusts the positions of the corresponding light-emitting areas of the plurality of LED lamps according to the position change instruction of the light-emitting areas of the plurality of LED lamps distributed linearly; specifically, the main controller 30 sends the addressable LED lamp control information according to the position change instruction of the light-emitting areas of the plurality of LED lamps distributed linearly in the SPI single bus communication mode, so as to synchronously adjust the positions of the light-emitting areas of the plurality of addressable LED lamps distributed linearly;
[0079] In this step, the main controller 30 sends addressable light control information in a SPI single bus communication mode to synchronously adjust the light emitting area position of the LED lamp assembly 20 .
[0080] Through step S5, when the LED lamp assembly is in the on state, by receiving gesture signals from multiple first sensors, when a double gesture operation is detected, the light-emitting areas of the multiple LED lamps can be controlled to shrink or expand according to the relative movement or opposite movement of the double gestures. Specifically, when the double gestures are in relative movement, the light-emitting areas of the multiple LED lamps are reduced, and when the double gestures are in opposite movement, the light-emitting areas of the multiple LED lamps are expanded, wherein the ratio of the reduction or expansion of the light-emitting area is proportional to the distance of the relative movement or opposite movement of the double gestures; when a single gesture operation is detected, the moving position of the light-emitting areas of the multiple LED lamps can be controlled according to the moving position of the single gesture, specifically, for example, if the single gesture moves one unit to the right, the light-emitting areas of the multiple LED lamps also move one unit to the right, and if the single gesture moves one unit to the left, the light-emitting areas of the multiple LED lamps also move one unit to the left, wherein the distance the light-emitting area moves is proportional to the distance the single gesture moves.
[0081] S6: The main controller 30 monitors whether a second valid gesture signal from the second sensor is received. If yes, a second control instruction is generated and the LED lamp assembly is controlled according to the second control instruction. If no, the process returns to step S1.
[0082] Specifically, step S6 includes:
[0083] S61: the second sensor determines whether a gesture moving along a second direction (for example, a gesture moving from right to left, or a gesture moving from left to right, but it should be noted that the second direction is different from the first direction, for example, the second direction is opposite to the first direction) or a blocking hovering gesture is collected. If there is a gesture moving along the second direction, step S62 is executed; if there is a blocking hovering gesture, step S63 is executed; if there is none, return to step S1;
[0084] In this embodiment, the second valid gesture signal includes a second A valid gesture signal generated when the second sensor detects a gesture of moving along the second direction and a second B valid gesture signal generated when the second sensor detects a blocking hovering gesture.
[0085] S62: the second sensor sends a second A valid gesture signal to the main controller 30. The main controller 30 queries the second A valid gesture signal of the second sensor in an I2C communication manner, and then generates a mode change instruction. The main controller 30 synchronously adjusts the mode of the LED lamp assembly currently emitting light according to the mode change instruction.
[0086] S63: the second sensor sends a second B valid gesture signal to the main controller 30. The main controller 30 queries the second B valid gesture signal of the second sensor in an I2C communication manner, and then generates a brightness change instruction. The main controller 30 synchronously adjusts the brightness of the LED lamp assembly currently emitting light according to the brightness change instruction.
[0087] Wherein, step S63 specifically includes:
[0088] S631: Determine whether the duration of the blocking hovering gesture is greater than or equal to the fourth preset time T4, if yes, execute step S632, otherwise return to step S1;
[0089] S632: The second sensor 12 sends a second B valid gesture signal to the main controller 30. The main controller 30 queries the second B valid gesture signal of the second sensor 12 in an I2C communication manner, and generates a brightness change instruction;
[0090] S633: the main controller 30 synchronously adjusts the brightness of the currently emitting LED lamp assembly 20 according to the brightness change instruction, and the second sensor 12 continues to determine whether the blocking hovering gesture is still collected. If yes, the main controller 30 continues to adjust the brightness of the currently emitting LED lamp assembly 20 according to the brightness change instruction; if not, the main controller 30 stops adjusting the brightness of the currently emitting LED lamp assembly 20;
[0091] In this step, the second sensor 12 continuously adjusts the brightness of the currently luminous LED lamp assembly 20 according to the duration of the collected occluding hovering gesture. In a specific example, the brightness of the LED lamp assembly 20 adopts a round-trip conversion operation from bright to dark and then from dark to bright, or from dark to bright and then from bright to dark. Specifically, whether to change to bright first or to dark first can be opposite to the previous conversion, similar to a light switch instruction (the previous time was a light off instruction, and the corresponding next time was a light on instruction, and the corresponding next time was a light off instruction), that is, the previous time ended from bright to dark, and the corresponding next time is a round-trip conversion operation from dark to bright and then from bright to dark, and the previous time ended from dark to bright, and the corresponding next time is a round-trip conversion operation from bright to dark and then from dark to bright.
[0092] Through step S6, it can be achieved that when the LED light assembly is in the light-on state, by receiving the second valid gesture signal of the second sensor, the second valid gesture signal includes a second A valid gesture signal and a second B valid gesture signal, which respectively correspond to the signals generated when the second sensor collects a gesture of moving along the second direction and a blocking hovering gesture. When the second sensor collects a gesture of moving along the second direction, that is, when the main controller receives the second A valid gesture signal, the LED light assembly is controlled to switch between multiple colors and multiple dynamic modes; and when the second sensor collects a blocking hovering gesture, that is, when the main controller receives the second B valid gesture signal, the brightness of the LED light assembly is controlled to change from bright to dark and then from dark to bright, or from dark to bright and then from bright to dark.
[0093] The gesture referred to in the embodiment of the present invention is not a real gesture or shape, but only a reflection signal of an occlusion of a hand. There is no need to judge whether it is the left hand or the right hand, but only to judge whether it is one gesture information or two gesture information.
[0094] Based on the non-contact direction recognition and sliding control addressing LED system provided by the preferred embodiment of the present invention and the above-mentioned control method, the local reduction and expansion of the light-emitting area of the linear lighting fixture is realized, and the change of the position of the local light-emitting area and the synchronous change with the gesture position are also realized, so that the user can enjoy the local lighting and lighting atmosphere rather than the overall lighting. The gestures can be quickly adjusted and can interact synchronously, and the user experience effect is greatly improved.
[0095] The background section of the present invention may contain background information about the problem or environment of the present invention, rather than describing the prior art by others. Therefore, the content contained in the background section is not an admission by the applicant that the prior art is available.
[0096] The above content is a further detailed description of the present invention in combination with specific / preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, without departing from the concept of the present invention, it can also make several substitutions or modifications to these described embodiments, and these substitutions or modifications should be regarded as belonging to the protection scope of the present invention. In the description of this specification, the description of reference terms "an embodiment", "some embodiments", "preferred embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in combination with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily target the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, in the absence of mutual contradiction, the technical personnel in this field can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples. Although the embodiments of the present invention and their advantages have been described in detail, it should be understood that various changes, substitutions and modifications can be made herein without departing from the scope defined by the attached claims.
Claims
1. A method for controlling a system for contactless direction recognition and sliding control addressing LEDs, characterized in that: The system includes a sensor component, an LED lamp component and a main controller, wherein the main controller is connected to the sensor component and the LED lamp component respectively, wherein the LED lamp component includes a plurality of LED lamps distributed linearly, wherein the sensor component includes a plurality of first sensors and a second sensor, wherein the plurality of first sensors are distributed linearly, wherein the plurality of first sensors and the second sensors are respectively used to receive gesture signals and send them to the main controller, wherein the main controller is used to generate a first control instruction according to the gesture signals of the plurality of first sensors, and is used to generate a light switch instruction or a second control instruction according to the gesture signals of the second sensor, so as to control the plurality of LED lamps distributed linearly according to the first control instruction, the light switch instruction and the second control instruction; The method comprises the following steps: S1: the main controller monitors whether a first valid gesture signal from the second sensor is received, if yes, executes step S2, if no, executes step S3; S2: the main controller generates a light on / off instruction and controls the LED light assembly to turn on or off according to the light on / off instruction, and then executes step S3; S3: Determine whether the LED lamp assembly is in a light-on state. If yes, execute steps S4 and S6 simultaneously. If no, return to step S1. S4: the main controller monitors whether it receives gesture signals from a plurality of the first sensors, if yes, executes step S5, if no, returns to step S1; S5: determining whether the gesture signals received from the plurality of first sensors are valid; if so, generating a first control instruction and controlling the LED lamp assembly according to the first control instruction; if not, returning to step S1; S6: The main controller monitors whether a second valid gesture signal from the second sensor is received. If so, a second control instruction is generated and the LED lamp assembly is controlled according to the second control instruction. If not, the main controller returns to step S1.
2. The method according to claim 1, characterized in that The LED lamp assembly includes M LED lamps distributed linearly, and the sensor assembly includes N first sensors, wherein M≥N, so that each of the first sensors corresponds to one or more LED lamps.
3. The method according to claim 1, characterized in that The LED lamp assembly includes a plurality of addressable LED lamps distributed linearly.
4. The method according to claim 1, characterized in that: The first sensors and the second sensors are all infrared sensors, and each of the first sensors includes an infrared transmitting module and an infrared receiving module, and the second sensors include an infrared transmitting module and two infrared receiving modules.
5. The method according to claim 1, characterized in that Step S1 specifically includes: the second sensor determines whether a gesture moving along the first direction is collected. If so, the second sensor sends a first valid gesture signal to the main controller. The main controller queries the first valid gesture signal of the second sensor through I2C communication, and then executes step S2. If not, executes step S3.
6. The method according to claim 1, characterized in that Step S5 specifically includes: S51: collecting first gesture information, determining whether the duration of the collected first gesture information is greater than or equal to a first preset time, if yes, determining it as a valid signal and saving the current position of the first gesture information as the starting point of the first gesture information, and then executing step S52, otherwise returning to step S1; S52: monitoring whether the second gesture information is collected within a second preset time after the first preset time, if yes, executing step S53, otherwise executing step S57; S53: Determine whether the duration of the second gesture information collected is greater than or equal to a third preset time. If yes, determine it as a valid signal and save the current position of the second gesture information as the starting point of the second gesture information, and then execute step S54; otherwise, execute step S57; S54: Determine the movement trajectories of the first gesture information and the second gesture information. If the two are in relative motion or opposite motion, execute step S55. If the two are in the same direction, return to step S51. S55: respectively obtaining a first moving distance between the final landing point and the starting point of the first gesture information and a second moving distance between the final landing point and the starting point of the second gesture information, calculating a difference between the first moving distance and the second moving distance, generating a range change instruction for the light emitting areas of the plurality of LED lights distributed linearly according to the difference between the first moving distance and the second moving distance, and executing step S56. During this period, if any one of the first gesture information and the second gesture information is released, returning to step S1; S56: the main controller synchronously adjusts the light emitting area ranges of the corresponding plurality of LED lamps according to the generated range change instructions of the light emitting areas of the plurality of LED lamps distributed linearly; S57: generating a position change instruction of a plurality of linearly distributed light-emitting areas of the LED lights according to a third moving distance between the current position of the first gesture information and the starting point, and executing step S58. During this period, if the gesture of the first gesture information is released, returning to step S1; S58: The main controller synchronously adjusts the positions of the corresponding light-emitting areas of the plurality of LED lamps according to the position change instructions of the light-emitting areas of the plurality of LED lamps that are linearly distributed.
7. The method according to claim 6, characterized in that The LED lamp assembly includes a plurality of addressable LED lamps distributed linearly, wherein step S56 specifically includes: the main controller sends addressable LED lamp control information according to the range change instruction of the light-emitting areas of the plurality of linearly distributed LED lamps in the SPI single bus communication mode, so as to synchronously adjust the range of the light-emitting areas of the plurality of linearly distributed addressable LED lamps; step S58 specifically includes: the main controller sends addressable LED lamp control information according to the position change instruction of the light-emitting areas of the plurality of linearly distributed LED lamps in the SPI single bus communication mode, so as to synchronously adjust the position of the light-emitting areas of the plurality of linearly distributed addressable LED lamps.
8. The method according to claim 1, characterized in that Step S6 specifically includes: S61: the second sensor determines whether a gesture moving along the second direction or a blocking hovering gesture is collected. If there is a gesture moving along the second direction, step S62 is executed; if there is a blocking hovering gesture, step S63 is executed; if there is none, the process returns to step S1; S62: the second sensor sends a second A valid gesture signal to the main controller, and the main controller queries the second A valid gesture signal of the second sensor in an I2C communication manner, and then generates a mode change instruction, and the main controller synchronously adjusts the mode of the LED lamp assembly currently emitting light according to the mode change instruction; S63: The second sensor sends a second B valid gesture signal to the main controller. The main controller queries the second B valid gesture signal of the second sensor through I2C communication, and generates a brightness change instruction. The main controller synchronously adjusts the brightness of the currently emitting LED lamp assembly according to the brightness change instruction.
9. The method according to claim 8, characterized in that Step S63 specifically includes: S631: Determine whether the duration of the blocking hovering gesture is greater than or equal to a fourth preset time, if yes, execute step S632, otherwise return to step S1; S632: the second sensor sends a second B valid gesture signal to the main controller, and the main controller queries the second B valid gesture signal of the second sensor in an I2C communication manner, and generates a brightness change instruction; S633: The main controller synchronously adjusts the brightness of the currently emitting LED lamp component according to the brightness change instruction, and at the same time, the second sensor continues to determine whether the blocking hovering gesture is still collected. If so, the main controller continues to adjust the brightness of the currently emitting LED lamp component according to the brightness change instruction. If not, the main controller stops adjusting the brightness of the currently emitting LED lamp component.
Citation Information
Patent Citations
Gesture control lighting device and terminal equipment
CN214627446U