A parameter configuration device of a modular lighting system, a modular lighting system

CN120730576BActive Publication Date: 2026-08-18FUJIAN MANEWAIOT LIGHTING CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511011688.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-07-22
Publication Date
2026-08-18
Estimated Expiration
2045-07-22

AI Technical Summary

Technical Problem

这种参数调整方式在现场施工中存在较多不便

Benefits of technology

[0018] Technical Solution 1 provides a parameter configuration device for a modular lighting system, comprising an input module and a main control module. The input module includes a set of physical DIP switches and a parallel-to-serial conversion circuit. The main control module is configured to read the parallel signals set by the DIP switches serially, parse the quantities in the first and second dimensions, and generate drive signals accordingly. This device, by employing a specific physical input module and coordinating with the real-time calculations of the main control module, changes the on-site construction method of modular lighting systems, solving the inconveniences of existing technologies such as cumbersome configuration processes, reliance on specialized software and personnel, time-consuming processes, and poor flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120730576B_ABST
    Figure CN120730576B_ABST
Patent Text Reader

Abstract

The application discloses a parameter configuration device of a modular lighting system, and the modular lighting system, and relates to the technical field of lighting systems. The parameter configuration device comprises an input module and a main control module. The input module comprises a group of physical dial switches and a parallel-to-serial conversion circuit. The dial switches are used for generating a group of parallel digital signals representing lighting unit layout parameters. The conversion circuit is connected with the dial switches through a plurality of switch positions. The input end of the main control module is connected with the serial output end of the conversion circuit. The output end of the main control module is used for connecting the lighting unit. The main control module is configured to read the parallel digital signals in the form of receiving serial data. A first preset part of the parallel digital signals is parsed as the number of the lighting units in a first dimension, and a second preset part of the parallel digital signals is parsed as the number of the lighting units in a second dimension. The main control module generates a driving signal according to the number in the first dimension and the number in the second dimension, and outputs the driving signal through the output end. The technical scheme can improve the convenience of the modular lighting system in field construction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of light emission control technology, specifically to a parameter configuration device for a modular lighting system and a modular lighting system. Background Technology

[0002] In the field of modern architectural and interior decorative lighting, large-area light-emitting systems, such as luminous film, composed of multiple standardized light-emitting units, have become an important lighting solution. These systems, by combining multiple basic light-emitting units, can form a continuous, uniform light-emitting surface and adapt to different size and shape requirements.

[0003] In the actual construction and installation process, the final overall size and unit layout of such modular lighting systems often need to be adjusted in real time according to the specific site environment and design requirements. Construction workers may need to cut or splice the lighting units to precisely match the specific installation space. This results in uncertainty in the total number of lighting units contained in the final luminous surface, as well as the number of these units arranged in rows and columns.

[0004] Existing technologies typically rely on a programmable controller to address such layout variability. After physical installation, this controller must be configured to understand the final layout of the light-emitting units. The current common configuration method involves construction workers using an external computing device, such as a laptop or dedicated handheld device, connected to the controller via a data cable. Subsequently, specific configuration software needs to be run on this device, and the determined layout parameters, such as the number of rows and columns, must be manually entered into the software interface. Finally, this configuration information is written to and saved to the controller. This parameter adjustment method presents significant inconvenience during on-site construction. Summary of the Invention

[0005] The purpose of this invention is to overcome the above-mentioned defects or problems in the background art and to provide a parameter configuration device and a modular lighting system. This technical solution can improve the convenience of installing the modular lighting system in on-site construction.

[0006] To achieve the above objectives, the present invention adopts the following technical solution:

[0007] Technical Solution 1: A parameter configuration device for a modular lighting system, the modular lighting system comprising multiple light-emitting units connected serially and independently addressable, comprising: an input module, the input module comprising a set of physical DIP switches and a parallel-to-serial conversion circuit, the DIP switches being used to generate a set of parallel digital signals characterizing the layout parameters of the light-emitting units, the multiple parallel input terminals of the conversion circuit being connected to multiple switch positions of the DIP switches; and a main control module, the input terminal of the main control module being connected to the serial output terminal of the conversion circuit, the output terminal of the main control module being used to connect to the light-emitting units; wherein, the main control module is configured to: read the parallel digital signals in a manner that receives serial data; parse a first preset portion of the parallel digital signals into the number of light-emitting units in a first dimension, and parse a second preset portion of the parallel digital signals into the number of light-emitting units in a second dimension; and generate driving signals based on the numbers in the first and second dimensions, for output through the output terminal.

[0008] Technical Solution 2 based on Technical Solution 1: The main control module is further configured to parse the third preset part of the parallel digital signal into a scene identifier, and select a corresponding lighting effect algorithm from its internal memory according to the scene identifier.

[0009] Technical Solution 3, based on Technical Solution 1: The conversion circuit is one or more cascaded parallel input serial output shift registers.

[0010] Technical Solution 4 based on Technical Solution 1: The main control module internally stores coordinate mapping instructions, and the main control module executes the coordinate mapping instructions to convert the two-dimensional logical coordinates of the light-emitting unit into a one-dimensional physical index.

[0011] Technical Solution 5 based on Technical Solution 1: The driving signal is a timing data stream conforming to the single-bus communication protocol.

[0012] Technical solution six based on technical solution five: The main control module includes a direct memory access controller and a hardware peripheral. The main control module is configured to work in conjunction with the hardware peripheral using the direct memory access controller to generate the timing data stream.

[0013] Technical solution seven based on technical solution one: The input module and the main control module are integrated on the same printed circuit board.

[0014] In addition, the present invention also provides technical solution eight: a modular lighting system, comprising: a light-emitting matrix, the light-emitting matrix including a plurality of independently addressable light-emitting units connected in a serial manner; and a parameter configuration device as described in any one of technical solutions one to nine, wherein the output terminal of the main control module of the parameter configuration device is electrically connected to the data input terminal of the light-emitting matrix.

[0015] Technical solution nine based on technical solution eight: The independently addressable light-emitting unit is a light-emitting diode with an integrated driver chip.

[0016] Technical solution ten based on technical solution nine: The light-emitting diodes are arranged in an array, and their data pins are connected serially in a serpentine wiring manner.

[0017] As can be seen from the above description of the present invention, compared with the prior art, the present invention has the following beneficial effects:

[0018] Technical Solution 1 provides a parameter configuration device for a modular lighting system, comprising an input module and a main control module. The input module includes a set of physical DIP switches and a parallel-to-serial conversion circuit. The main control module is configured to read the parallel signals set by the DIP switches serially, parse the quantities in the first and second dimensions, and generate drive signals accordingly. This device, by employing a specific physical input module and coordinating with the real-time calculations of the main control module, changes the on-site construction method of modular lighting systems, solving the inconveniences of existing technologies such as cumbersome configuration processes, reliance on specialized software and personnel, time-consuming processes, and poor flexibility.

[0019] One of the core innovations of this solution lies in its input module design, which uses physical DIP switches as parameter input components. The deterministic physical state (closed or open) of the mechanical switch can directly and stably generate high and low level signals recognizable by digital circuits. This is fundamentally different from existing technologies. Existing technologies rely on software interfaces running on external computing devices. This process involves multiple complex software and hardware layers, including operating systems, graphical user interfaces, specific applications, and data communication. Compatibility issues, software errors, or communication failures in any of these layers can lead to configuration failures. This solution completely bypasses these complex intermediate layers. On-site construction personnel do not need any computer or software operation skills; they can set the layout parameters of the light-emitting units simply by toggling the switch. This greatly reduces the technical requirements for operators, shortens training time, and thus reduces project labor costs. Furthermore, the state of the DIP switch is mechanically locked and non-volatile, permanently retaining its settings even after a power outage. This ensures high reliability and durability of the configuration information and avoids the risk of configuration loss due to unexpected power outages or controller restarts.

[0020] The introduction of a parallel-to-serial conversion circuit in the input module is key to achieving efficient collaboration between the input module and the main control module, and optimizing the overall system architecture. A DIP switch is essentially a parallel signal source; setting, for example, 16-bit parameters requires 16 switch bits. Direct connection would occupy 16 valuable general-purpose input / output (GPIO) pins of the main control module. This is a significant burden for cost-sensitive microcontrollers with limited pin resources. A parallel-to-serial conversion circuit, such as a shift register, utilizes time-division multiplexing to convert these 16 spatially parallel signals into a single serial data stream in a time-division multiplexed manner. This conversion is not merely a change in signal form, but also a physical reduction in data compression and simplification of the transmission channel. Through this collaborative effort, the main control module can accurately receive all 16 bits or more of parallel input information using only a very small number of pins (typically 2 to 3, including data, clock, and latch lines). The advantages of this design are multifaceted. First, it frees the main control module from excessive pin usage, allowing these saved pin resources to be used for other more important functions, such as connecting sensors, controlling wireless communication modules, or reserving them for future functional expansion. This significantly improves the integration and scalability of the entire device without increasing the hardware cost and packaging complexity of the main control module. Second, it makes expanding the entire input system exceptionally simple. If more parameters need to be configured, only more conversion circuit chips need to be cascaded on the circuit, while the interface hardware and software reading logic of the main control module require almost no modification, demonstrating excellent system scalability.

[0021] However, simply using physical DIP switches is insufficient for configuring the parameters of the modular recruitment system. The main control module, designed in conjunction with the input module, is another core innovation of this solution. The program embedded within the main control module can precisely perform bitwise operations and parsing on this serial data stream according to preset rules, restoring different data segments (the first preset part and the second preset part) and assigning them clear physical meanings, namely the number of light-emitting units in the first and second dimensions. This process is purely digital logic operation, characterized by its speed and high reliability. More importantly, the main control module does not merely obtain the parameters; rather, based on the accurately parsed size parameters, it dynamically adjusts its internal data structure (such as the size of the display buffer) and generates matching drive signals.

[0022] Therefore, this solution uses physical DIP switches to receive user operations, transmits signals through parallel-to-serial conversion circuits, and relies on the main control module to convert physical settings into precise drive signals. With a simple, reliable, and low-cost hardware and software architecture, it realizes flexible on-site parameter configuration functions that previously required complex software systems and professional personnel. This greatly facilitates on-site construction of lighting systems and improves the convenience, work efficiency, and overall economy of modular lighting systems during on-site construction, installation, and commissioning.

[0023] In technical solution two, by parsing the third preset part of the parallel digital signal into a scene identifier and calling the internally stored lighting effect algorithm accordingly, the system is given the ability to dynamically adjust the displayed content. Users do not need to learn new operating methods or use new interfaces; they can still quickly and clearly select from dozens of preset dynamic or static lighting effects through the single, intuitive physical interaction of toggling a physical switch.

[0024] In technical solution three, the parallel-to-serial conversion circuit is further limited to one or more cascaded parallel-input serial-output shift registers, which brings excellent system scalability and low marginal cost. Shift registers are stable and inexpensive industry-standard components. By using a cascading approach, the system can be easily expanded to support more parameter input bits, for example, from 16 bits to 24 bits or 32 bits. This provides structural support for future functional enhancements, such as adding parameter inputs for brightness adjustment and dynamic effect speed control, making product upgrades and iterations simple and feasible.

[0025] In technical solution four, the main control module is further defined to store coordinate mapping instructions internally, enabling the drive signals generated by the main control module to be precisely matched with any physical layout. In the actual installation of modular lighting systems, to simplify physical wiring and reduce cable length and connector count, the data lines of the light-emitting units typically employ an efficient serpentine wiring method. However, this wiring method results in a non-linear, interleaved relationship between the physical one-dimensional index of the light-emitting unit and its logical coordinates in a two-dimensional matrix (e.g., column x, row y). Without coordinate mapping, software algorithm developers must handle this complex physical index conversion when writing each lighting effect, making algorithm development extremely difficult and error-prone. By embedding and executing coordinate mapping instructions in the main control module, the system can automatically and in real-time accurately convert the intuitive, standard two-dimensional logical coordinates (x, y) used by the upper-level lighting effect algorithm into a one-dimensional physical index that the driver chip can recognize. This ensures that the final output drive signal can precisely control each light-emitting unit. This is the fundamental technical guarantee that distinguishes this invention from existing technologies that call fixed configuration files, achieving true dynamic adaptability.

[0026] In technical solution five, the driving signal is further defined as a timing data stream conforming to the single-bus communication protocol, which can simplify the wiring complexity of terminal applications and reduce construction costs.

[0027] In Technical Solution Six, the main control module is further defined to utilize its Direct Memory Access Controller (DMI) to work collaboratively with hardware peripherals to generate timing data streams. Single-bus communication protocols have extremely stringent requirements for signal timing accuracy. Relying solely on CPU software delays to generate signals would consume significant CPU computing resources and could lead to timing errors due to system interrupts, causing abnormal lighting displays. Employing DMA technology completely frees high-precision, high-volume data transfer tasks from the CPU, allowing dedicated hardware to handle them directly. This ensures the accuracy and stability of the drive signal timing and also enables the CPU to process other tasks in parallel, such as real-time monitoring of DIP switch status changes, thereby significantly improving the overall performance and response speed of the device.

[0028] Technical Solution 7 further specifies that the input module and main control module are integrated onto the same printed circuit board. Integrating all core control components onto a single PCB makes the entire parameter configuration device compact, facilitating miniaturization and standardized production. Simultaneously, the shorter wiring paths effectively enhance the device's resistance to electromagnetic interference and improve its reliability in complex construction environments.

[0029] Technical solution eight provides a modular lighting system, including a light-emitting matrix and the parameter configuration device described in any of the above. Because the lighting system adopts the above-mentioned parameter configuration device, the physical layout of the light-emitting matrix can be easily adjusted and configured during on-site construction, thereby improving the convenience of on-site construction.

[0030] In technical solution nine, the independently addressable light-emitting units are further specified as light-emitting diodes with integrated driver chips. By integrating the driving logic into each light-emitting diode, each light-emitting point becomes an intelligent node, eliminating the need to design complex external constant current or constant voltage driving circuits for the entire matrix, thus further reducing the overall complexity and cost of the system.

[0031] Technical Solution Ten further specifies that the LEDs are connected in series using a serpentine wiring pattern. Serpentine wiring is the most convenient physical installation method with the shortest wiring path. When this wiring method is combined with the aforementioned coordinate mapping instructions, it constitutes a complete, low-cost solution integrating hardware and software, making on-site construction more efficient. Attached Figure Description

[0032] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments are briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0033] Figure 1 This is a schematic diagram of a modular lighting system according to an embodiment of the present invention;

[0034] Figure 2 This is a schematic diagram of the circuit module of the parameter configuration device according to an embodiment of the present invention;

[0035] Figure 3 This is a circuit diagram of the parameter configuration device involved in an embodiment of the present invention.

[0036] Explanation of key figure labels:

[0037] Light-emitting matrix 10; Light-emitting unit 11;

[0038] Parameter configuration device 20; input module 21; main control module 22; DIP switch 23; shift register 24. Detailed Implementation

[0039] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are preferred embodiments of the present invention and should not be considered as excluding other embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.

[0040] Unless otherwise expressly defined, the use of terms such as "first," "second," or "third" in the claims, description, and accompanying drawings of this invention is for distinguishing different objects and not for describing a specific order.

[0041] Unless otherwise expressly defined, in the claims, description, and accompanying drawings of this invention, the use of directional terms such as "center," "lateral," "longitudinal," "horizontal," "vertical," "top," "bottom," "inner," "outer," "upper," "lower," "front," "rear," "left," "right," "clockwise," and "counterclockwise" to indicate orientation or positional relationships is based on the orientation and positional relationships shown in the accompanying drawings and is only for the convenience of describing the invention and simplifying the description, and is not intended to indicate or imply that the device or element referred to must have a specific orientation or be constructed and operated in a specific orientation, and therefore should not be construed as limiting the specific scope of protection of this invention.

[0042] Unless otherwise expressly defined, the terms "fixed connection" or "fixed connection" used in the claims, description and drawings of this invention should be interpreted broadly to refer to any connection in which there is no displacement or relative rotation relationship between the two parties, including non-removable fixed connection, detachable fixed connection, integral connection and fixed connection by other means or components.

[0043] In the claims, description and accompanying drawings of this invention, the terms "comprising," "having," and variations thereof are used to mean "including but not limited to."

[0044] Terminology Definition

[0045] To enable those skilled in the art to better understand the technical solutions of the present invention, the main terms involved in this application are defined as follows:

[0046] Independently addressable light-emitting unit 11: refers to a light-emitting diode (LED) with an integrated driver control chip. This integrated chip enables it to have independent data reception and processing capabilities, allowing the main control module 22 to precisely control the color and brightness of each light-emitting unit 11 on the link via a serial data bus without affecting other units.

[0047] Physical DIP switch 23: refers to a manual mechanical switch array packaged in a standard dual in-line package (DIP). Each switch bit can be set to one of two stable physical states, "on" or "off," to collectively generate a multi-bit, non-volatile binary code that directly corresponds to a set of preset configuration parameters.

[0048] Parallel digital signal: refers to a set of multi-bit digital signals generated simultaneously by the states of all switches of physical DIP switch 23. Each bit of the signal is transmitted through an independent physical channel, and their combined value instantly represents the layout parameters set by the user.

[0049] Parallel-to-serial conversion circuit: refers to an electronic circuit that can convert multiple parallel input digital signals into a single serial data stream output under the control of a clock signal. In this invention, its function is to convert the parallel digital signal generated by the DIP switch 23 into serial data that can be received by the main control module 22 through a small number of pins.

[0050] Main control module 22: refers to a core processing unit, usually a microcontroller (MCU). It has a specific program embedded in it, which is configured to perform functions such as reading serial data, parsing data according to preset rules, performing logical operations and data processing, and finally generating and outputting drive signals in a specific format.

[0051] Drive signal: refers to the electrical signal generated by the main control module 22, used to control the working state of all light-emitting units 11. In this invention, it specifically refers to a timing data stream conforming to a single-bus communication protocol, which contains instruction information such as the address, color, and brightness of each light-emitting unit 11 in the light-emitting matrix 10.

[0052] Coordinate mapping instruction: refers to a specific algorithm or program code embedded inside the main control module 22. Its function is to automatically convert the two-dimensional logical coordinates (e.g., column x, row y) used in the lighting effect algorithm into the corresponding one-dimensional physical index address according to the actual physical arrangement of the light-emitting units 11 (e.g., serpentine wiring), so as to ensure that the drive signal can accurately act on the correct light-emitting unit 11.

[0053] Serpentine cabling: refers to a physical cabling method that connects individual units serially in a two-dimensional matrix. Data signal lines are connected from one end to the other in the first row, then in reverse in the second row, and again in reverse in the third row, forming a continuous serpentine path. This method aims to simplify physical connections and shorten the total cable length.

[0054] Light-emitting matrix 10: refers to a two-dimensional array physically arranged from multiple independently addressable light-emitting units 11, which is the main light-emitting component of the modular lighting system.

[0055] Scene identifier: refers to a value parsed from a specific part of a parallel digital signal. This value serves as a unique code, used to select and invoke a specific lighting effect algorithm from multiple sets of algorithms stored internally in the main control module 22.

[0056] Lighting effect algorithm: refers to a pre-written software program stored in the program memory of the main control module 22. Based on a specific mathematical model, time variable, or random number, this program is responsible for calculating the color and brightness that each light-emitting unit 11 in the light-emitting matrix 10 should present at a certain moment, thereby generating static or dynamic visual effects.

[0057] Two-dimensional logical coordinates: These refer to the coordinate pairs that conceptually describe the position of the light-emitting unit 11 in a two-dimensional matrix. They are usually represented as (x, y) or (row, column) and are the standard coordinate system used by the lighting effect algorithm for graphics calculation.

[0058] One-dimensional physical index: refers to the actual sequential position number of the light-emitting unit 11 on the physical serial data link. This index determines which light-emitting unit 11 receives the specific color data packet in the timing data stream sent by the main control module 22.

[0059] Single-bus communication protocol: refers to a communication protocol that can complete serial data transmission using only a single data line. It distinguishes between "0" and "1" codes by precisely controlling the duration ratio of high and low levels of signal pulses, thereby achieving data encoding and transmission.

[0060] Direct Memory Access Controller (DMA): This refers to a dedicated hardware unit within a microcontroller. It is configured to transfer data at high speed directly between memory (such as a display buffer) and hardware peripherals (such as an SPI interface) without intervention from the central processing unit (CPU), in order to generate timing-precise drive signals.

[0061] Hardware peripherals: refer to hardware modules integrated within a microcontroller that perform specific functions. In this invention, it specifically refers to modules that can be used to generate precise timing signals, such as a Serial Peripheral Interface (SPI) or an advanced timer with pulse width modulation (PWM) functionality.

[0062] Example

[0063] This invention relates to a modular lighting system, which includes a light-emitting matrix 10 and a parameter configuration device 20.

[0064] The light-emitting matrix 10 comprises multiple independently addressable light-emitting units 11 connected in a serial manner. Specifically, each independently addressable light-emitting unit 11 is a light-emitting diode (LED) with an integrated driver control chip, such as an RGB LED product based on models like WS2812B or SK6812. Each light-emitting unit 11 contains internal driving logic, enabling its color and brightness to be independently controlled by the main control module 22. These light-emitting units 11 are arranged in an array to form a two-dimensional light-emitting matrix 10. In terms of physical connection, the data output pin of the previous light-emitting unit 11 is connected to the data input pin of the next light-emitting unit 11 via a wire, forming a long serial data link. To simplify field wiring, a serpentine wiring method is typically used, i.e., the first row is serial from left to right, the second row from right to left, the third row from left to right again, and so on.

[0065] As one specific implementation method, refer to Figure 1 The diagram illustrates the physical layout of a light-emitting matrix 10. Specifically, these light-emitting units 11 are arranged in an array to form a two-dimensional light-emitting matrix 10 with 3 rows and 8 columns.

[0066] Reference Figure 2 and Figure 3The modular lighting system includes a parameter configuration device 20 comprising an input module 21 and a main control module 22. The input module 21 includes a set of physical DIP switches 23 and a parallel-to-serial conversion circuit. The DIP switches 23 generate a set of parallel digital signals characterizing the layout parameters of the light-emitting unit 11. Multiple parallel input terminals of the conversion circuit are connected to multiple switch positions of the DIP switches 23. The input terminal of the main control module 22 is connected to the serial output terminal of the conversion circuit, and the output terminal of the main control module 22 is used to connect to the light-emitting unit 11.

[0067] Furthermore, the main control module 22 is configured to: read the parallel digital signal in a manner that receives serial data; parse the first preset portion of the parallel digital signal into the number of the light-emitting units 11 in the first dimension, and parse the second preset portion of the parallel digital signal into the number of the light-emitting units 11 in the second dimension; and generate a driving signal based on the number in the first dimension and the second dimension, so as to output it through the output terminal.

[0068] Specifically, the input module 21 consists of two 8-bit physical DIP switches 23 and two 74HC165 type parallel-input serial-output shift registers 24. The two DIP switches 23 provide a total of 16 independent switching bits for generating 16-bit parallel digital signals. One end of each switching bit is grounded, and the other end is connected to the power supply via a pull-up resistor, and also connected to the parallel input pin of one of the shift registers 24. The two shift registers 24 are cascaded, with the serial output of the first register connected to the serial data input of the second, thus expanding the two 8-bit inputs into a 16-bit input bus. The main control module 22 only needs to connect to the cascaded shift registers 24 via three to four control lines (e.g., data lines, clock lines, latch lines) to read the states of all 16 DIP switches 23.

[0069] The core of the main control module 22 can be a microcontroller (MCU) with sufficient flash memory and random access memory (RAM), such as the STM32G0 series or ESP32 series. The MCU's program has a fixed set of parameter parsing rules. In this embodiment, the 16-bit serial data read by the MCU is defined as follows: the 8-bit binary value set by the first 8-bit DIP switch 23 (SW1) is directly defined as the column number (trajectory direction) of the light-emitting matrix 10, with a settable range of 0 to 255. The 8-bit data from the second 8-bit DIP switch 23 (SW2) is split, with the lower 4 bits defined as the row number (vertical direction) of the light-emitting matrix 10, with a settable range of 0 to 15. Based on the parsed row and column numbers, the MCU first determines the validity of the parameters; for example, neither the row nor column number can be zero. After successful verification, the MCU uses a dynamic memory allocation function (such as malloc) to create a framebuffer in RAM with a size exactly matching the total number of pixels in the matrix, used to store the color data of each light-emitting unit 11.

[0070] The main control module 22 is further configured to parse the third preset portion of the parallel digital signal into a scene identifier, and select a corresponding lighting effect algorithm from its internal memory based on the scene identifier. Specifically, the high 4 bits of the second 8-bit DIP switch 23 (SW2) are defined as the scene identifier (Scene ID). These 4 bits can generate 16 different values ​​from 0 to 15, each uniquely corresponding to a pre-programmed lighting effect stored in the MCU's Flash program memory. The MCU's internal program contains a selection structure (such as a switch-case statement or an array of function pointers) that calls the corresponding scene effect function based on the read scene ID value. These functions are specific lighting effect algorithm implementations; for example, the rainbow loop effect function achieves color flow by continuously iterating hue values ​​and mapping them according to pixel coordinates, while the starlight twinkling effect function simulates a starry sky by randomly selecting pixels to light up and letting their brightness decay over time.

[0071] Furthermore, the conversion circuit is one or more cascaded parallel-input serial-output shift registers 24. Specifically, two industry-standard 74HC165 shift register 24 chips are used. The serial output pin (Q7) of the first 74HC165 is connected to the serial data input pin (DS) of the second 74HC165, thus achieving cascading. This design allows the main control module 22 to read 16 bits of data at once using the same serial read timing. To improve the reliability of the circuit operation, a 0.1μF ceramic decoupling capacitor is connected in parallel between the power supply pin (VCC) and ground (GND) of each 74HC165 chip to filter out high-frequency noise on the power line and prevent it from interfering with the chip logic.

[0072] Furthermore, the main control module 22 internally stores coordinate mapping instructions. The main control module 22 executes these coordinate mapping instructions to convert the two-dimensional logical coordinates of the light-emitting unit 11 into a one-dimensional physical index. Specifically, since the light-emitting unit 11 physically uses serpentine wiring, its sequential index on the serial data link is inconsistent with its logical coordinates (x, y) in the two-dimensional matrix. Therefore, the main control module 22 has a fixed coordinate transformation function. This function receives the logical coordinates x and y passed from the lighting effect algorithm as input and determines the parity of the y coordinate. If y is even (representing rows 0, 2, 4, etc.), the data in that row is arranged from left to right, and its one-dimensional index is directly calculated as y*width + x. If y is odd (representing rows 1, 3, 5, etc.), the data in that row is arranged from right to left, and its one-dimensional index is calculated as y*width + (width - 1 - x), where width is the logical width (number of columns) of the matrix. With the automatic conversion of this instruction, upper-layer application algorithm developers do not need to worry about the complex wiring at the bottom layer, and can directly use the standard two-dimensional coordinate system to design lighting effects.

[0073] Furthermore, the driving signal is a timing data stream conforming to a single-bus communication protocol. Specifically, this timing data stream follows the single-bus return-to-zero code protocol commonly used by independently addressable LEDs, such as the protocol used by the WS2812B. The main control module 22 needs to generate a 24-bit data packet (usually in GRB order) for each light-emitting unit 11 in the matrix, representing the color of that point. All data packets are concatenated to form a continuous long data stream, which is sent through a single data output pin. To ensure the integrity of the signal during transmission from the main control module 22 to the first light-emitting unit 11, especially over long transmission distances, a 330-500 ohm protection resistor should be connected in series between the data output pin of the main control module 22 and the data line to suppress signal reflection and overshoot. Simultaneously, a high-speed logic level buffer such as a 74HCT245 can be added after this pin to shape the signal and enhance its driving capability, ensuring steep signal edges and meeting the timing requirements of the protocol.

[0074] The main control module 22 includes a direct memory access controller and a hardware peripheral. The main control module 22 is configured to work collaboratively with the hardware peripheral using the direct memory access controller to generate the timing data stream. Specifically, to generate single-bus protocol signals with precise timing requirements without continuously occupying central processing unit (CPU) resources, this embodiment uses a hardware peripheral combined with a direct memory access (DMA) controller. One implementation method is to utilize the MCU's SPI (Serial Peripheral Interface) peripheral. The SPI clock frequency is set to an integer multiple of the data bit rate (e.g., 800kHz) (e.g., 2.4MHz or 3.2MHz), and a single data bit of the single-bus protocol is simulated by sending specific 3-bit or 4-bit code patterns. For example, sending the codeword "110" generates a "logic 1" level waveform in the protocol, and sending "100" generates a "logic 0" level waveform. Another method is to utilize the MCU's advanced timer and its PWM (Pulse Width Modulation) output function. The timer period is set to the duration of a single data bit in the single-bus protocol (e.g., 1.25 microseconds). The duration of the high level is precisely controlled by changing the PWM duty cycle, thereby generating different pulse width signals representing "0" and "1" codes. In both methods, a DMA controller is configured to directly read 24-bit color data from the display buffer in RAM and automatically and continuously send the converted codewords to the SPI data register or update the timer's duty cycle register. The entire data stream transmission process is automatically completed by the DMA and hardware peripherals, requiring no CPU intervention. The CPU can then process the calculations for the next frame of animation or respond to changes in the state of the DIP switch 23 in parallel, significantly improving the overall system performance and refresh rate.

[0075] In this embodiment, the input module 21 and the main control module 22 are integrated on the same printed circuit board. Specifically, the physical DIP switch 23, the shift register chip 24, the main control module 22 MCU, and other peripheral components (such as decoupling capacitors, pull-up resistors, crystal oscillators, etc.) are all laid out and soldered on the same PCB, forming a compact control board. This integrated design simplifies the system structure and facilitates standardized production and installation. Simultaneously, because the routing paths of critical signals are confined within a single PCB, the paths are short and the layout is controllable, effectively reducing crosstalk between signals and sensitivity to external electromagnetic interference, thus improving the overall stability and reliability of the device. Furthermore, a standard firmware update interface, such as an SWD debugging interface or a UART serial interface, should be reserved on this PCB so that the program of the main control module 22 can still be updated after the product leaves the factory to fix potential problems or add new lighting effects.

[0076] The modular lighting system involved in this embodiment includes a parameter configuration device 20, which comprises an input module 21 and a main control module 22. The input module 21 includes a set of physical DIP switches 23 and a parallel-to-serial conversion circuit. The main control module 22 is configured to read the parallel signals set by the DIP switches 23 in a serial manner, parse out the quantities in the first and second dimensions, and generate drive signals accordingly. By employing a specific physical input module 21 and cooperating with the real-time calculations of the main control module 22, this device changes the on-site construction method of modular lighting systems, solving the inconveniences of existing technologies such as cumbersome configuration processes, reliance on specialized software and personnel, time-consuming processes, and poor flexibility.

[0077] This embodiment uses two specific examples to further illustrate the complete workflow of the system.

[0078] Example 1 uses an 8x10 light matrix 10 that needs to be configured on-site, and uses the system default light scene 0 (e.g., static white light) as an example.

[0079] Step 1: Parameter Setting

[0080] On-site construction personnel operate the two 8-bit DIP switches 23 (SW1 and SW2) on the parameter configuration device 20. Assume that DIP switch 23 in the ON position represents logic "0" (ground), and in the OFF position represents logic "1" (connected to a high level through a pull-up resistor). The following steps are included:

[0081] 1. Set the number of columns (10 columns): Set the value to 10 on SW1. The 8-bit binary representation of 10 is 00001010. The operator needs to turn the 2nd and 4th bits of SW1 (counting from the right, representing 2^1 and 2^3) to ON, and turn the remaining 6 bits to OFF.

[0082] 2. Set the number of rows (8 rows): Set the value to 8 in the lower 4 bits (bits 0-3) of SW2. The 4-bit binary representation of 8 is 1000. The operator needs to switch the 4th bit (bit 3) of SW2 to ON and the remaining lower 3 bits (bits 0-2) to OFF.

[0083] 3. Set Scene ID (0): Use the default scene; no changes are needed. Set the value to 0 (0000) in the high 4 bits (bits 4-7) of SW2. Personnel must turn all 4 bits to OFF.

[0084] After the operation is completed, the 16 switch positions together generate a parallel 16-bit digital signal with a value of 0000 1000 00001010.

[0085] Step 2: Signal Acquisition and Transmission

[0086] 1. Parallel Signal Latching: The aforementioned 16-bit parallel signals are input in real time to the 16 parallel input pins of the two cascaded 74HC165 shift registers 24. The main control module 22 MCU latches these 16 parallel level states into the shift register 24 by briefly pulling it low and then pulling it high on its latch (LOAD / PL) pin connected to the shift register 24.

[0087] 2. Parallel to Serial Conversion: The MCU then generates 16 clock pulses on its controlled clock (CLOCK / CLK) pin. Driven by each clock pulse, shift register 24 shifts out one bit of data to its serial output. Since the two registers are cascaded, the MCU eventually receives a complete 16-bit data stream (0000100000001010) serially on its data input (DATA_IN / Q7) pin.

[0088] Step 3: Signal Analysis and Processing

[0089] 1. Parameter Extraction: After receiving the 16-bit data, the program in the MCU parses it using bitwise operations. This includes: extracting the lower 8 bits (00001010) and converting them to decimal to get the column number = 10; extracting the higher 8 bits (00001000) and then extracting the lower 4 bits (1000) from them, converting them to decimal to get the row number = 8; and extracting the higher 4 bits (0000) from the higher 8 bits (00001000) and converting them to decimal to get the scene ID = 0.

[0090] 2. Memory allocation and algorithm selection, including: After the MCU verifies the parameters are valid, it calculates the total number of pixels as 10 * 8 = 80. Then, it dynamically allocates a display buffer of 80 pixels in RAM. Based on scene ID = 0, the MCU locates and calls the lighting effect function corresponding to scene 0, i.e., the static white light function, in its internal scene function library.

[0091] Step 4: Drive signal generation and output

[0092] 1. Effect Calculation: The static white light function starts executing, which sets the 24-bit GRB color values ​​of all 80 pixels in the display buffer to white (e.g., G=255, R=255, B=255).

[0093] 2. Signal Encoding: The MCU's DMA controller is activated and begins automatically reading 24-bit color data from the display buffer, one pixel at a time. For each data bit (0 or 1), the DMA, along with a hardware peripheral (such as SPI or a timer), generates a specific timing waveform conforming to the WS2812 protocol on the data output pin. Specifically: Encoding "1": Generates a pulse with a total period of 1.25 microseconds, where a high level lasts approximately 0.8 microseconds and a low level lasts approximately 0.45 microseconds. Encoding "0": Generates a pulse with a total period of 1.25 microseconds, where a high level lasts approximately 0.4 microseconds and a low level lasts approximately 0.85 microseconds.

[0094] 3. Signal Output: Finally, the MCU's data output pin will output a continuous timing data stream consisting of 80*24=1920 of the aforementioned pulses. This data stream is transmitted through wires to the data input terminal of the first light-emitting unit 11 of the 8x10 light-emitting matrix 10.

[0095] 4. Matrix Display: After receiving and processing the first 24 bits of data, the first emitting unit 11 lights itself up and forwards the remaining data stream to the next unit. This process is carried out sequentially among the 80 units until all units in the entire matrix have received their own color data and refreshed their display, presenting a static white light effect.

[0096] Example 2 uses the example of configuring a 3x4 light matrix 10 on-site and selecting light scene number 5 (e.g., rainbow loop effect).

[0097] Step 1: Parameter Setting

[0098] 1. Set the number of columns (4 columns): Set the value to 4 on SW1. The 8-bit binary representation of 4 is 00000100. The operator needs to switch the 3rd bit of SW1 (counting from the right, representing 2^2) to ON, and the remaining 7 bits to OFF.

[0099] 2. Set the number of rows (3 rows): Set the value 3 in the lower 4 bits (bits 0-3) of SW2. The 4-bit binary representation of 3 is 0011. The operator needs to switch the first and second bits (bits 0, bit 1) of SW2 to ON, and the third and fourth bits (bits 2, bit 3) to OFF.

[0100] 3. Set Scene ID (No. 5): Set the value 5 to the high 4 bits (bits 4-7) of SW2. The 4-bit binary representation of 5 is 0101. Personnel need to switch bits 6 and 8 (bits 5, bit 7) of SW2 to ON, and bits 5 and 7 (bits 4, bit 6) to OFF.

[0101] After the operation is completed, the 16 switch positions together generate a parallel 16-bit digital signal with a value of 0101 0011 00000100.

[0102] Step 2: Signal Acquisition and Transmission

[0103] 1. Parallel Signal Latching: The aforementioned 16-bit parallel signals are input in real time to the 16 parallel input pins of the two cascaded 74HC165 shift registers 24. The main control module 22 MCU latches these 16 parallel level states into the shift register 24 by briefly pulling it low and then pulling it high on its latch (LOAD / PL) pin connected to the shift register 24.

[0104] 2. Parallel to Serial Conversion: The MCU then generates 16 clock pulses on its controlled clock (CLOCK / CLK) pin. Driven by each clock pulse, shift register 24 shifts out one bit of data to its serial output. Since the two registers are cascaded, the MCU eventually receives a complete 16-bit data stream (0101001100000100) serially on its data input (DATA_IN / Q7) pin.

[0105] Step 3: Signal Analysis and Processing (Internal to Main Control Module 22)

[0106] 1. Parameter Extraction: After receiving the 16-bit data, the program in the MCU parses it using bitwise operations. The lower 8 bits (00000100) are extracted and converted to decimal to obtain the column number (4). The higher 8 bits (01010011) are extracted, and the lower 4 bits (0011) are extracted from them, converted to decimal to obtain the row number (3). The higher 4 bits (0101) are extracted from the higher 8 bits (01010011) and converted to decimal to obtain the scene ID (5).

[0107] 2. Memory Allocation and Algorithm Selection: After the MCU verifies the parameters, it calculates the total number of pixels as 4*3=12. Then, it dynamically allocates a display buffer of 12 pixels in RAM. Based on scene ID=5, the MCU locates and calls the lighting effect function corresponding to scene number 5, namely the rainbow loop function, in its internal scene function library.

[0108] Step 4: Drive signal generation and output

[0109] 1. Effect Calculation: The rainbow loop function starts to execute. It calculates the 24-bit GRB color value that each of the 12 pixels should have at the current time point, and correctly writes the calculation results into the one-dimensional physical index position corresponding to the 12 pixels in the display buffer through coordinate mapping instructions.

[0110] 2. Signal Encoding: The MCU's DMA controller is activated and begins automatically reading 24-bit color data from the display buffer, one pixel at a time. For each data bit (0 or 1), the DMA, along with a hardware peripheral (such as SPI or a timer), generates a specific timing waveform conforming to the WS2812 protocol on the data output pin. Specifically: Encoding "1": Generates a pulse with a total period of 1.25 microseconds, where a high level lasts approximately 0.8 microseconds and a low level lasts approximately 0.45 microseconds. Encoding "0": Generates a pulse with a total period of 1.25 microseconds, where a high level lasts approximately 0.4 microseconds and a low level lasts approximately 0.85 microseconds.

[0111] 3. Signal Output: Finally, the MCU's data output pin will output a continuous timing data stream consisting of 12*24=288 of the aforementioned pulses. This data stream is transmitted through wires to the data input terminal of the first light-emitting unit 11 of the 3x4 light-emitting matrix 10.

[0112] 4. Matrix Display: After receiving and processing the first 24 bits of data, the first emitting unit 11 lights itself up and forwards the remaining data stream to the next unit. This process is carried out sequentially among the 12 units until all units in the entire matrix have received their own color data and refreshed their display, presenting a rainbow-like cyclical lighting effect.

[0113] After this, the system enters the main loop, continuously repeating step four, dynamically changing the lighting effects by constantly calculating and sending new data frames. If the installer flips the switch again, the system will detect the change and repeat the entire process from step two onwards to adapt to the new parameter settings.

[0114] The foregoing description of the specifications and embodiments is intended to explain the scope of protection of this invention, but does not constitute a limitation on the scope of protection of this invention. Modifications, equivalent substitutions, or other improvements to the embodiments of this invention or a portion thereof that can be obtained by those skilled in the art through logical analysis, reasoning, or limited experimentation, based on the teachings of this invention or the foregoing embodiments, in conjunction with common knowledge, general technical knowledge, and / or existing technology, should all be included within the scope of protection of this invention.

Claims

1. A parameter configuration device for a modular lighting system, the modular lighting system comprising multiple light-emitting units (11) connected in a serial manner and independently addressable, characterized in that, include: The input module (21) includes a set of physical DIP switches (23) and a parallel-to-serial conversion circuit. The DIP switches (23) are used to generate a set of parallel digital signals characterizing the layout parameters of the light-emitting unit (11). The multiple parallel input terminals of the conversion circuit are connected to multiple switch positions of the DIP switches (23). and The main control module (22) has its input terminal connected to the serial output terminal of the conversion circuit, and its output terminal is used to connect to the light-emitting unit (11). The main control module (22) is configured as follows: The parallel digital signal is read in a manner that receives serial data; The first preset portion of the parallel digital signal is parsed as the number of light-emitting units (11) in the first dimension, and the second preset portion of the parallel digital signal is parsed as the number of light-emitting units (11) in the second dimension; A drive signal is generated based on the quantity in the first and second dimensions, and output through the output terminal.

2. The parameter configuration device for a modular lighting system as described in claim 1, characterized in that, The main control module (22) is also configured to parse the third preset part of the parallel digital signal into a scene identifier, and select a corresponding lighting effect algorithm from its internal memory according to the scene identifier.

3. The parameter configuration device for a modular lighting system as described in claim 1, characterized in that, The conversion circuit is one or more cascaded parallel input serial output shift registers (24).

4. The parameter configuration device for a modular lighting system as described in claim 1, characterized in that, The main control module (22) stores coordinate mapping instructions. The main control module (22) executes the coordinate mapping instructions to convert the two-dimensional logical coordinates of the light-emitting unit (11) into a one-dimensional physical index.

5. The parameter configuration device for a modular lighting system as described in claim 1, characterized in that, The drive signal is a timing data stream conforming to a single-bus communication protocol.

6. The parameter configuration device for a modular lighting system as described in claim 5, characterized in that, The main control module (22) includes a direct memory access controller and a hardware peripheral. The main control module (22) is configured to work in conjunction with the hardware peripheral using the direct memory access controller to generate the timing data stream.

7. The parameter configuration device for a modular lighting system as described in claim 1, characterized in that, The input module (21) and the main control module (22) are integrated on the same printed circuit board.

8. A modular lighting system, characterized in that, include: The light emission matrix (10) includes a plurality of independently addressable light emission units (11) connected in a serial manner; as well as The parameter configuration device (20) as described in any one of claims 1 to 7, wherein the output terminal of the main control module (22) of the parameter configuration device (20) is electrically connected to the data input terminal of the light emission matrix (10).

9. A modular lighting system as described in claim 8, characterized in that, The independently addressable light-emitting unit (11) is a light-emitting diode with an integrated driver chip.

10. A modular lighting system as described in claim 9, characterized in that, The light-emitting diodes are arranged in an array, and their data pins are connected serially in a serpentine wiring manner.

Citation Information

Patent Citations

  • VoIP Interface Using By USB Apparatus and VoiceCommunication User Environment Modeling

    KR1020060110499A

  • Apparatus and method for decoding a key press

    US20060132331A1