A smart dimming system based on low-voltage power line carrier communication
The intelligent dimming lighting system based on low-voltage power line carrier communication solves the problems of low energy efficiency and light pollution of traditional light sources, realizes precise adjustment and wireless control of light intensity, improves the accuracy and convenience of lighting control, and simplifies the installation process.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- NANJING FORESTRY UNIV
- Filing Date
- 2025-08-08
- Publication Date
- 2026-06-30
AI Technical Summary
Traditional light sources such as fluorescent lamps and incandescent lamps have low energy conversion efficiency, short lifespan, and pollution problems. LED lights have fixed brightness, which causes light pollution. Users have higher requirements for the accuracy of lighting control and the real-time nature of fault detection.
The system employs a smart dimming system based on low-voltage power line carrier communication, enabling wireless and manual switching of lights through remote communication interaction. Combining power line carrier communication and Bluetooth communication, data is transmitted between lighting devices via power line carrier, reducing additional wiring. A Bluetooth wireless gateway is used to enable remote monitoring of home lighting devices.
It enables precise adjustment of light intensity to meet different needs, provides wireless control and energy-saving effects, simplifies the installation process, and automatically adjusts light brightness by combining ambient light detection and user behavior analysis, thereby improving the accuracy and convenience of light control.
Smart Images

Figure CN224439256U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of LED (Light Emitting Diode) driving technology, and in particular to an intelligent dimming lamp system based on low-voltage power line carrier communication. Background Technology
[0002] With societal development, the demand for lighting is constantly increasing. Traditional light sources such as fluorescent lamps and incandescent lamps suffer from problems such as low energy conversion efficiency, short lifespan, and environmental pollution. The invention of LED light sources has effectively solved these problems. LED lights, as green lighting products, are widely used in daily life. The advantages of LED light sources are high energy conversion efficiency, long lifespan, and environmental friendliness; however, their fixed brightness can easily lead to light pollution. Therefore, people have increasingly higher requirements for the accuracy of lighting control and the real-time nature of fault detection. Utility Model Content
[0003] Based on this, an intelligent dimming lighting system based on low-voltage power line carrier communication is provided. The system can dim the lighting system through remote communication interaction, and can switch between wireless and manual lighting modes to meet users' different needs for light source intensity.
[0004] This application provides an intelligent dimming lighting system based on low-voltage power line carrier communication, the system comprising:
[0005] The host computer is used to send dimming commands to the wireless gateway module;
[0006] The wireless gateway module is used to receive dimming commands from the host computer and transmit the dimming commands to each light source node. The wireless gateway module includes a Bluetooth communication unit, a wireless gateway power line carrier communication unit, and a wireless gateway power supply unit. The wireless gateway power supply unit is connected to the Bluetooth communication unit, and the Bluetooth communication unit is connected to each light source node through the wireless gateway power line carrier communication unit.
[0007] Multiple light source nodes are provided, each corresponding to a target LED light source. Each light source node is used to adjust the corresponding target LED light source according to the dimming command. Each light source node includes a microcontroller-based control circuit, a power line carrier communication unit, a button circuit, an LED driver circuit, and a power supply unit. The power line carrier communication unit, button circuit, LED driver circuit, and power supply unit are connected to the microcontroller-based control circuit, and the power supply unit is connected to the LED driver circuit.
[0008] In one embodiment, the microcontroller in the microcontroller-based control circuit is an STM32F103C8 chip.
[0009] In one embodiment, the microcontroller-based control circuit uses the SWD download method. The PA14 pin of the STM32F103C8 chip is connected to pin 4 of the SWD chip, and the PA13 pin of the STM32F103C8 chip is connected to pin 2 of the SWD chip.
[0010] In one embodiment, the button circuit includes a system reset button and a human-machine interaction button, wherein the system reset button is used to determine whether the LED driver circuit module is working properly, and the human-machine interaction button is used to manually perform RGBCW dimming operation in the LED driver circuit module.
[0011] In one embodiment, the LED driving circuit uses a single-wire, return-to-zero code protocol 5-channel low-voltage linear driver chip SM15155E to drive 5 LEDs, 8 LEDs per channel, and the 5 LEDs are red, green, blue, cool white and warm white respectively; wherein the PA7 pin of the STM32F103C8 chip is connected to the DIN pin of the SM15155E chip.
[0012] In one embodiment, the power line carrier communication unit of the light source node uses the KQ-130S chip. The PA8 pin of the STM32F103C8 chip is connected to the RST pin of the KQ-130S chip through a 100-ohm resistor. The PA9 pin of the STM32F103C8 chip is connected to the TX pin of the KQ-130S chip through a 100-ohm resistor. The PA10 pin of the STM32F103C8 chip is connected to the RX pin of the KQ-130S chip through a 100-ohm resistor.
[0013] In one embodiment, the power line carrier communication unit of the wireless gateway uses the KQ-130S chip.
[0014] In one embodiment, the Bluetooth communication unit in the wireless gateway module uses the HC-09 chip, wherein the TX pin of the KQ-130S chip used in the wireless gateway power line carrier communication unit is connected to pin 1 of the HC-09 chip through a 100-ohm resistor, the RX pin of the KQ-130S chip is connected to pin 2 of the HC-09 chip through a 100-ohm resistor, and the +5V pin of the KQ-130S chip is connected to pin 3 of the HC-09 chip.
[0015] The aforementioned intelligent dimming lighting system based on low-voltage power line carrier communication allows for remote dimming of the lighting system, enabling both wireless and manual switching to meet varying user needs for light intensity. By combining power line carrier communication and Bluetooth communication, data transmission between lighting devices is achieved via power line carrier, reducing the need for additional communication cabling. A Bluetooth-enabled wireless gateway then connects the lower-level device information to a mobile device, enabling remote monitoring of home lighting equipment. Attached Figure Description
[0016] Figure 1 This is a structural block diagram of an intelligent dimming lamp system based on low-voltage power line carrier communication in one embodiment;
[0017] Figure 2 This is a minimum system circuit diagram of a microcontroller in one embodiment;
[0018] Figure 3 This is an interface diagram using SWD in one embodiment;
[0019] Figure 4 This is a circuit diagram of the power supply unit in one embodiment;
[0020] Figure 5 This is a circuit diagram of the button circuit in one embodiment;
[0021] Figure 6 This is a circuit diagram of an LED driver circuit in one embodiment;
[0022] Figure 7 This is a circuit diagram of a power line carrier communication receiver in one embodiment;
[0023] Figure 8 Here is a circuit diagram of the power line carrier communication transmitter and a circuit diagram of the wireless gateway module in one embodiment;
[0024] Figure 9 This is a circuit diagram of each light source node in one embodiment;
[0025] Figure 10 This is a main flowchart of an intelligent dimming lamp system based on low-voltage power line carrier communication in one embodiment.
[0026] Figure 11 Here is a flowchart of an LED dimming subroutine in one embodiment;
[0027] Figure 12 Here is a flowchart of a power line carrier receiving subroutine in one embodiment;
[0028] Figure 13 Here is a flowchart of a power line carrier transmission subroutine in one embodiment;
[0029] Figure 14 This is a flowchart of a Bluetooth subroutine in one embodiment. Detailed Implementation
[0030] To make the above-mentioned objects, features, and advantages of this utility model more apparent and understandable, the specific embodiments of this utility model will be described in detail below with reference to the accompanying drawings. Many specific details are set forth in the following description to provide a full understanding of this utility model. However, this utility model can be implemented in many other ways different from those described herein, and those skilled in the art can make similar modifications without departing from the spirit of this utility model. Therefore, this utility model is not limited to the specific embodiments disclosed below.
[0031] In the description of this utility model, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this utility model, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0032] In this utility model, unless otherwise explicitly specified and limited, the terms "installation," "connection," "joining," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components, unless otherwise explicitly limited. Those skilled in the art can understand the specific meaning of the above terms in this utility model according to the specific circumstances.
[0033] In this utility model, unless otherwise explicitly specified and limited, "above" or "below" the second feature can mean that the first feature is in direct contact with the second feature, or that the first feature is in indirect contact with the second feature through an intermediate medium. Furthermore, "above," "on top of," and "over" the second feature can mean that the first feature is directly above or diagonally above the second feature, or simply that the first feature is at a higher horizontal level than the second feature. "Below," "below," and "under" the second feature can mean that the first feature is directly below or diagonally below the second feature, or simply that the first feature is at a lower horizontal level than the second feature.
[0034] In one exemplary embodiment, such as Figure 1 As shown, an intelligent dimming lighting system based on low-voltage power line carrier communication includes:
[0035] The host computer (i.e., the host computer app) consists of an SPP Bluetooth serial port app, used to send dimming commands to the wireless gateway module;
[0036] The wireless gateway module receives dimming commands from the host computer and transmits them to each light source node. The wireless gateway module includes a Bluetooth communication unit, a wireless gateway power line carrier communication unit, and a wireless gateway power supply unit. The power supply unit is connected to the Bluetooth communication unit, which in turn connects to each light source node via the power line carrier communication unit. The host computer application is connected to the Bluetooth communication unit, and sends data to it. The data is then transmitted remotely to the light source nodes via the power line carrier communication module on the wireless gateway module.
[0037] Multiple light source nodes, each corresponding to a target LED light source, and each light source node including a microcontroller-based control circuit (i.e., Figure 1 The system comprises an MCU (Microcontroller Unit), a power line carrier communication unit at the light source node, a button circuit, an LED driver circuit, and a power supply unit at the light source node. These components are used to control the target LED light source according to dimming commands. The power line carrier communication unit, button circuit, LED driver circuit, and power supply unit at the light source node are connected to the microcontroller-based control circuit, and the power supply unit is connected to the LED driver circuit. The primary purpose of the light source node is to control the LED light source at varying distances. The STM32 microcontroller load controls the LED driver section and drives the power line carrier communication module.
[0038] Each light source node includes Light Source 1 node, Light Source 2 node, etc.
[0039] Furthermore, still as Figure 1As shown, the entire microcontroller system typically operates at a frequency of 72MHz. The processing flow is controlled by an ARM microprocessor system, which is the most important and core component. The microcontroller's processing flow includes: receiving user data via a power line carrier communication module, processing and calculating it, and then converting it into signals to drive the LED RGBCW (Red, Green, Blue, Cool White, Warm White light channels). Specifically, the functions of each module include: MCU (microcontroller), which is the control center for data processing, calculation, display, and communication; power supply unit, which provides power to the entire system; button circuit, used for system reset and LED light switching; power line carrier communication module, used for communication between the Bluetooth communication unit and the light source nodes; LED driver circuit, which drives the RGBCW, a total of 24 LEDs; and Bluetooth communication unit, where the host computer APP sends dimming commands to the Bluetooth communication unit, which are then transmitted to the light source nodes via the power line carrier communication module.
[0040] In one exemplary embodiment, the microcontroller used in the microcontroller-based control circuit is an STM32F103C8 chip.
[0041] Specifically, the minimum system circuit diagram of a microcontroller is as follows: Figure 2 As shown, the main display shows the minimum system of the STM32F103 microcontroller, which is the core control and computing center of the entire system. The STM32F103C8 chip's PB1 pin is connected to resistor R2. Its OSCOUT pin is connected to one end of resistor R7 and capacitor C6. Its OSCIN pin is connected to the other end of resistor R7. Its VBAT, VDDA, VDD_1, VDD_2, and VDD_3 pins are connected to the 3.3V power input digital signal pins. Its PA14 pin is connected to pin 4 of the SWD (Serial Wire Debug) chip. Its PA13 pin is connected to pin 2 of the SWD chip. Its VSSA, VSS_1, VSS_2, and VSS_3 pins are grounded.
[0042] This application uses the SWD download method, which is simple and convenient, and the interface is as follows: Figure 3 As shown, pin 1 of the SWD chip is connected to the digital signal pin of the 3.3V power input, and pin 3 of the SWD chip is grounded.
[0043] The hardware resources required in this application are shown in Table 1.
[0044] Table 1
[0045]
[0046]
[0047] Furthermore, a 0805 packaged LED is used to display the operating status of the microcontroller, which facilitates software debugging.
[0048] In an exemplary embodiment, the STM32f103 microcontroller requires a power supply range of 2.0V-3.6V, typically 3.3V. Power line carrier communication requires 12V (actually 10V) and 3.3V, while the three groups of eight LEDs require 24V. The voltage range can usually be determined by consulting the official chip datasheet. Therefore, this application requires a power supply of 3.3V, 10V, and 24V. An AC-DC converter is used to convert the 220V AC mains power to 24V DC, then the 24V DC is stepped down to 10V, and finally converted to 3.3V using an LDO AMS117 (low dropout linear regulator). This power conversion satisfies the system requirements.
[0049] Specifically, the power supply unit is as follows: Figure 4 As shown, connect the live wire and neutral wire to the L and N pins of the ACDC, and then transmit the output 24V to the VIN port of the XL7005A chip. After further voltage reduction, 10V and 3.3V voltages can be obtained from the I and O ports of the AMS1117.
[0050] In one exemplary embodiment, the button circuit includes a system reset button and a human-machine interaction button for testing the LED driver circuit; wherein the system reset button is used to determine whether the LED driver circuit module is working properly, and the human-machine interaction button is used to manually perform RGBCW dimming operation in the LED driver circuit module.
[0051] Specifically, the circuit diagram of the button circuit is as follows: Figure 5As shown, the NEST pin of the STM32F103C8 chip is connected to resistor R8, capacitor C9, and one end of the NRST button. The other end of resistor R8 is connected to the power supply, and the other ends of capacitor C9 and the NRST button are both grounded. The BOOT0 pin of the STM32F103C8 chip is grounded through resistor R10. The human-machine interface button, used in a smart dimming light system based on low-voltage power line carrier communication, is used for manual RGBCW dimming. It is adjusted to a high level via a 10K resistor; pressing it immediately triggers an external interrupt on the microcontroller's I / O port, resulting in a fast response. The system reset button is used to determine if the SM15155E chip in the LED driver circuit module is working properly and allows for simple adjustment and turning off of the light.
[0052] In one exemplary embodiment, the LED driving circuit uses the SM15155E chip, a 5-channel low-voltage linear driver chip with a single-wire, return-to-zero code protocol.
[0053] Specifically, in an intelligent dimming system based on low-voltage power line carrier communication, the LED dimming method employs a 5-channel low-voltage linear driver chip, SM15155E, with a single-wire, return-to-zero code protocol. Its outputs support 65536 grayscale dimming levels, and the lamp color adjustment is smooth and delicate. The SM15155E chip enters standby mode upon receiving a DIN input standby signal, achieving low standby power consumption; simultaneously, it detects DIN input data and automatically exits standby mode. The SM15155E has over-temperature protection; when the internal temperature reaches the over-temperature protection point, it reduces the output current, improving system reliability. The driver circuit drives 5 LEDs, 8 LEDs per channel, representing RGBCW (red, green, blue, cool white, and warm white). Only one pin is needed to control the LED dimming of the entire system. Because there are multiple LEDs, a 24V voltage is required. The 24V AC-DC converter is connected to the VIN pin of the SM15155E chip for power supply. Signals from the microcontroller are received through the DIN port for lighting control, while pin 9 is grounded normally. LED driver circuit, such as Figure 6 As shown, the PA7 pin of the STM32F103C8 chip is connected to the DIN pin of the SM15155E chip.
[0054] In one exemplary embodiment, both the wireless gateway power line carrier communication unit and the light source node power line carrier communication unit use the KQ-130S chip.
[0055] Specifically, both the wireless gateway power line carrier communication unit and the light source node power line carrier communication unit in this application are power line carrier communication modules, both using the KQ-130S, a high-performance, cost-effective power line carrier module suitable for all applications. The KQ-130S connects to the microcontroller via a serial port with a default baud rate of 9600. It is connected to the microcontroller's PA8 pin via a 100-ohm resistor, which also controls the KQ-130S's reset pin. The TX pin of the power line carrier communication module is connected to the microcontroller's RX pin via a 100-ohm resistor, and vice versa. The KQ-130S's +5V pin can be connected to 3.3V, and its +12V pin can be connected to 10V, both operating normally. As a power line carrier communication module, it also needs to be connected to both the live and neutral wires for signal reception.
[0056] In one exemplary embodiment, the power line carrier communication unit of the wireless gateway is the power line carrier communication transmitting circuit, and the power line carrier communication unit of the light source node is the power line carrier communication receiving circuit.
[0057] Power line carrier communication receiver circuit, such as Figure 7 As shown, the PA8 pin of the STM32F103C8 chip is connected to the RST pin of the KQ-130S chip used in the power line carrier communication unit of the light source node through resistor R21. The PA9 pin of the STM32F103C8 chip is connected to the TX pin of the KQ-130S chip through resistor R14. The PA10 pin of the STM32F103C8 chip is connected to the RX pin of the KQ-130S chip through resistor R15. R21, R14 and R15 are all 100 ohms resistors.
[0058] Furthermore, power line carrier communication (PLC) transmitting circuitry is a technology that transmits data signals over power lines. The transmitting circuit first modulates the input digital signal using a modulator to generate an analog signal suitable for power line transmission. This signal is then amplified by a power amplifier and coupled to the power line for transmission via a coupling circuit. During transmission over the power line, a filter removes noise and interference, ensuring that the receiving end can correctly demodulate the original signal. The PLC transmitting circuitry is as follows: Figure 8 As shown, the TX pin of the KQ-130S chip is connected to pin 1 of the HC-09 chip through resistor R6, the RX pin of the KQ-130S chip is connected to pin 2 of the HC-09 chip through resistor R9, the +5V pin of the KQ-130S chip is connected to pin 3 of the HC-09 chip, and the L and N ports are connected to the live wire and neutral wire to transmit data.
[0059] In one exemplary embodiment, the host computer sends a dimming command via Bluetooth communication, and the wireless gateway module receives the dimming command via Bluetooth communication.
[0060] In one exemplary embodiment, Bluetooth communication uses the HC-09 chip.
[0061] Specifically, this application pertains to the HC-09 Bluetooth module based on the Bluetooth Specification BLE protocol. It operates on the 2.4GHz ISM wireless technology and uses GFSK modulation. The module features a maximum transmit power of 0dBm and a receive sensitivity of -93dBm, enabling ultra-long-range communication with mobile phones up to 50 meters in unobstructed environments. The module uses a stamp-hole package, allowing for surface mounting and a suitable size. It employs TI's CC2541 chip, with 256KByte of storage, supports AT commands, and allows users to flexibly change the role (master / slave mode), serial port baud rate, device name, and other parameters. In the system, the HC-09 Bluetooth module primarily handles the connection between the user and node 2, receiving and sending data to node 2, and then communicating remotely with node 1 via the power line carrier communication module on node 2. The connection to the power line carrier module on node 2 is via serial port. Node 2 does not have a microcontroller; the power line carrier communication module directly connects to the Bluetooth module via serial port, using a transparent transmission mode.
[0062] Specifically, the circuit diagram for node 1 is as follows: Figure 9 As shown, node 1 represents each light source node, and the circuit diagram for node 2 remains the same. Figure 8 As shown, node 2 is a wireless gateway module.
[0063] In one exemplary embodiment, an intelligent dimming lighting system based on low-voltage power line carrier communication consists of two parts: a light source node and a Bluetooth wireless gateway. The light source node comprises a control center STM32 microcontroller, an LED driver circuit, a light source node power line carrier communication unit, a button circuit, and a light source node power supply unit. Its main function is to receive carrier information from the Bluetooth gateway to drive the LED chip for dimming and to allow for manual button dimming.
[0064] Further, first initialize the STM32's pins and peripherals, such as the clock system, serial port, and PWM (Pulse Width Modulation). Then configure the HC-09 Bluetooth module's UART (Universal Asynchronous Receiver / Transmitter) communication, initialize the relevant GPIO (General Purpose Input / Output) and PWM for light control, ensuring that the light brightness can be controlled via PWM. Set interrupts and timers to handle real-time tasks. Receive data sent via Bluetooth from the carrier module. Process Bluetooth commands, update the light status, adjust the PWM output according to the commands, and control the light brightness. Return to the main loop, which continues to run, waiting for new Bluetooth commands and repeating the above process. Specifically, the main flowchart is as follows: Figure 10 As shown, after system initialization, it reads Bluetooth data and determines if a manual button press has occurred. If so, it receives the dimming light data; otherwise, it further checks if serial port 1 is interrupted. If not, it returns to repeatedly check for manual button presses. If serial port 1 is interrupted, it checks if the check passes. If it fails, it returns to repeatedly check for manual button presses. If it passes, it receives the dimming light data. After receiving the dimming light data, it processes the data, determining if it is a dimming signal. If so, the data is sent to the LED driver circuit to adjust the LED, and the process of reading Bluetooth data and checking for manual button presses continues. If it is not a dimming signal, it returns to repeatedly check for manual button presses.
[0065] In one exemplary embodiment, the SM15155E intelligent dimming chip is a 5-channel low-voltage linear driver chip with a single-wire, return-to-zero (RZ) code protocol, which has extremely high timing requirements. The SM15155E protocol uses unipolar RZ code, and each symbol must have a low level. Each symbol in this protocol starts with a high level, and the high level duration determines whether it is a "0" or a "1" code. A single SM15155E chip inputs 80 bits of data, including 16 bits each of grayscale data for OUT RGBWY; and 32 bits of data at the end of each frame, including: 5 bits each of current gain data for OUT RGBWY, 2 bits for standby enable (2b'10 for standby), and 5 bits reserved (all 1s recommended). Both grayscale data and current gain data are high-order bit-first. To address the characteristics of this encoding method and short timing cycle, an intelligent dimming lamp system software based on low-voltage power line carrier communication uses the MOSI pin of the STM32's hardware SPI to simulate a PWM waveform to drive the SM15155E. To simulate the timing of the SM15155E using SPI, with the system clock set to 56MHz and the SPI divider set to 8, the SPI communication frequency is 7MHz. 1s / 7MHz ≈ 143ns, meaning the time to transmit one bit of data is approximately 143 nanoseconds (ns). 2 * 143 = 286ns, 6 * 143 = 858ns, which conforms to the communication timing of the SM15155E chip. 11111100high level (hexadecimal: 0XFC) represents a 1 code in the SM15155E; 11000000low level (hexadecimal: 0XC0) represents a 0 code in the SM15155E. The LED dimming subroutine is as follows... Figure 11 As shown, after system initialization, it checks whether there is a signal. If not, the check is repeated. If there is, the data from serial port 1 is read and processed to determine whether it is a dimming signal. If not, the steps of reading and processing the data from serial port 1 are repeated. If it is a dimming signal, the LED dimming driver is activated and the system continues to check whether there is a signal.
[0066] In an exemplary embodiment, the KQ-130S module uses a standard serial interface with a baud rate of 9600. It typically communicates with the microcontroller asynchronously at 9600bps, with a format of one start bit, eight data bits, and one stop bit. The module's operating mode is controlled by the MODE pin; it operates in transparent mode when high or floating, and in custom mode when low. In transparent mode (MODE high or floating), the module does not require initialization, and communication is similar to RS-232. However, due to the numerous loads on the power line and the mutual interference of electrical harmonics, the module may output noisy data. Therefore, synchronization codes are needed for sending and receiving data. The module's transmit buffer is 253 bytes; new data exceeding 253 bytes will not be received. The power line carrier reception subroutine is as follows: Figure 12As shown, after variable initialization, register initialization is performed, serial port data is read, and after data transmission is completed, it is determined whether the data is the same. If they are the same, the steps of reading serial port data and ending data transmission are repeated. If they are not the same, the process ends.
[0067] In an exemplary embodiment, the KQ-130S power line carrier communication module's transmission subroutine is responsible for sending data over the power line. The main steps of the transmission subroutine are as follows: First, data preparation involves assembling the data frames to be transmitted. The first byte of the data frame typically indicates the data length, with subsequent bytes representing the actual data content. Second, mode selection is performed by controlling the MODE pin to select the operating mode. A high level or floating pin indicates transparent mode, while a low level indicates a custom mode. Custom mode is suitable for data transmission requiring precise control. Next, data transmission occurs, writing the prepared data frames into the module's transmission buffer. Each transmitted data frame is ensured to be less than 253 bytes, a limitation of the module's buffer. Then, the transmission process begins, initiating the transmission command. The module automatically modulates and transmits the data frame over the power line. During transmission, the entire data frame is transmitted continuously and without interruption to avoid generating noisy data. Following this is the introduction of a synchronization code, introduced before data transmission for synchronization at the receiving end and to distinguish between noise data and other signals. Finally, error detection is performed; the module has a built-in error detection mechanism to ensure reliable data transmission. If an error is detected, the data frame is retransmitted. The power line carrier transmission subroutine is as follows: Figure 13 As shown, after variable initialization, register initialization is performed. After data is sent, serial port data is read and it is determined whether the data is the same. If they are the same, the steps of sending data and reading serial port data are repeated. If they are different, the process ends.
[0068] In one exemplary embodiment, the design flowchart of the Bluetooth subroutine is as follows: Figure 14 As shown, the variables of the Bluetooth module HC-09 are first initialized, including setting basic parameters such as baud rate and mode. Next, it checks if the Bluetooth module is paired with the device. If pairing is successful, it receives data sent from the mobile phone; otherwise, it continues to wait. After receiving data, it processes the data and sends response data to the device based on the processing result. Finally, it checks for interruptions; if an interruption occurs, the process ends; otherwise, it continues receiving data.
[0069] The smart dimming lamp design project based on low-voltage power line carrier communication has generally achieved its expected goals, successfully realizing functions such as smart dimming, wireless control, and energy saving. However, some shortcomings remain in communication stability, response speed, and compatibility. In the future, further optimization and improvement can significantly enhance the system's performance and user experience, enabling it to play a greater role in smart home and industrial applications. The research and practice of this project provide valuable experience and reference for the development of subsequent related technologies.
[0070] This application provides an intelligent dimming lighting system based on low-voltage power line carrier communication, which successfully achieves intelligent adjustment of light brightness through power line carrier communication technology. Users can precisely adjust the light brightness through the control system to meet the needs of different environments and scenarios. Wireless control is also provided; through the HC-09 Bluetooth module, users can remotely control the lights using smartphones or other Bluetooth devices, achieving convenient wireless operation. The use of the KQ-130S power line carrier module ensures stable data transmission on the power line, avoiding additional wiring requirements and simplifying the installation process. Energy saving is also achieved; the system combines ambient light detection and user behavior pattern analysis to automatically adjust the light brightness, ensuring lighting effects while achieving energy savings.
[0071] This application implements the following main functions: dimming control, which adjusts the brightness of the light through PWM control; remote control of the light's on / off state and brightness via a smartphone application using a Bluetooth module; and successful implementation of low-voltage power line carrier communication via a carrier module.
[0072] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0073] The embodiments described above are merely illustrative of several implementations of this utility model, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the utility model patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this utility model, and these all fall within the protection scope of this utility model. Therefore, the protection scope of this utility model patent should be determined by the appended claims.
Claims
1. A smart dimming light system based on low voltage power line carrier communication, characterized in that, The system includes: The host computer is used to send dimming commands to the wireless gateway module; The wireless gateway module is used to receive dimming commands from the host computer and transmit the dimming commands to each light source node. The wireless gateway module includes a Bluetooth communication unit, a wireless gateway power line carrier communication unit, and a wireless gateway power supply unit. The wireless gateway power supply unit is connected to the Bluetooth communication unit, and the Bluetooth communication unit is connected to each light source node through the wireless gateway power line carrier communication unit. Multiple light source nodes are provided, each corresponding to a target LED light source. Each light source node is used to adjust the corresponding target LED light source according to a dimming command. Each light source node includes a microcontroller-based control circuit, a power line carrier communication unit, a button circuit, an LED driver circuit, and a power supply unit. The power line carrier communication unit, button circuit, LED driver circuit, and power supply unit are connected to the microcontroller-based control circuit, and the power supply unit is connected to the LED driver circuit.
2. The intelligent dimming lamp system based on low-voltage power line carrier communication according to claim 1, characterized in that, The microcontroller-based control circuit uses an STM32F103C8 chip.
3. The smart dimming lamp system based on low-voltage power line carrier communication according to claim 2, characterized in that, In the microcontroller-based control circuit, the microcontroller uses the SWD download method. The PA14 pin of the STM32F103C8 chip is connected to pin 4 of the SWD chip, and the PA13 pin of the STM32F103C8 chip is connected to pin 2 of the SWD chip.
4. The smart dimming lamp system based on low-voltage power line carrier communication according to claim 1, characterized in that, The button circuit includes a system reset button and a human-machine interaction button. The system reset button is used to determine whether the LED driver circuit module is working properly, and the human-machine interaction button is used to manually perform RGBCW dimming operation in the LED driver circuit module.
5. A smart dimming system based on low-voltage power line carrier communication according to claim 2, characterized in that, The LED driving circuit uses a single-wire, return-to-zero code protocol 5-channel low-voltage linear driver chip SM15155E to drive 5 LEDs, 8 LEDs per channel, and the 5 LEDs are red, green, blue, cool white and warm white respectively; the PA7 pin of the STM32F103C8 chip is connected to the DIN pin of the SM15155E chip.
6. The intelligent dimming system based on low-voltage power line carrier communication according to claim 2, characterized in that, The power line carrier communication unit of the light source node uses the KQ-130S chip. The PA8 pin of the STM32F103C8 chip is connected to the RST pin of the KQ-130S chip through a 100-ohm resistor. The PA9 pin of the STM32F103C8 chip is connected to the TX pin of the KQ-130S chip through a 100-ohm resistor. The PA10 pin of the STM32F103C8 chip is connected to the RX pin of the KQ-130S chip through a 100-ohm resistor.
7. The intelligent dimming lighting system based on low-voltage power line carrier communication according to claim 1, characterized in that, The wireless gateway power line carrier communication unit uses the KQ-130S chip.
8. A smart dimming system based on low-voltage power line carrier communication according to claim 7, characterized in that, The Bluetooth communication unit in the wireless gateway module uses the HC-09 chip. The TX pin of the KQ-130S chip used in the wireless gateway power line carrier communication unit is connected to pin 1 of the HC-09 chip through a 100-ohm resistor. The RX pin of the KQ-130S chip is connected to pin 2 of the HC-09 chip through a 100-ohm resistor. The +5V pin of the KQ-130S chip is connected to pin 3 of the HC-09 chip.