A Dynamic Control System and Method for Ambient Lighting on a Floor Scrubber Based on UART Communication

CN122579418APending Publication Date: 2026-08-14셴젠 동루 테크놀로지 컴퍼니 리미티드
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-17
Publication Date
2026-08-14

AI Technical Summary

Technical Problem

[0004]针对现有技术不足,本发明提供一种基于UART通信的洗地机氛围灯动态控制系统及方法,本发明解决由于现有洗地机氛围灯控制系统采用单一微处理器集中处理并驱动发光器件,且在复杂电磁环境中采用普通模拟电平传输信号极易发生波形畸变,造成主控芯片计算资源占用率过高,以及发光器件出现无规律频闪与指令执行错误的技术问题

Benefits of technology

本发明通过将耗费大量算力的灯效渲染任务从电源主控板剥离,交由显示屏面板配置的光效运算模块作为独立的算法单元进行处理,有效解决了主控芯片计算资源占用率过高的负荷难题。采用纯数字化的UART通信链路替代传统的模拟电平信号传输,有效隔离了大功率无刷电机高速运转时向周围空间辐射的高频电磁干扰,避免了信号发生波形畸变,从而解决了发光器件无规律频闪与指令执行错误的技术痛点。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122579418A_ABST
    Figure CN122579418A_ABST
Patent Text Reader

Abstract

This invention relates to the field of photoelectric control technology for intelligent cleaning equipment, and particularly to a dynamic control system and method for ambient lighting on a floor scrubber based on UART communication. The system includes equipment and a control device. The control device comprises: a status acquisition module that collects the operating level status and converts it into instruction codes; a communication transceiver module that encapsulates the instruction codes into data frames and transmits them via the UART bus; a light effect calculation module that parses the data frames and generates a preset light effect digital stream; and an array driving module that converts the digital stream into a single-line return-to-zero code digital electrical signal to drive a series-connected light-emitting diode array to adjust the transistor current amplitude and control the luminous intensity. This invention effectively reduces the occupancy of main control computing resources and overcomes waveform distortion and flickering problems caused by electromagnetic interference.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of photoelectric control technology for intelligent cleaning equipment, and in particular to a dynamic control system and method for ambient lighting on a floor scrubber based on UART communication. Background Technology

[0002] As intelligent cleaning equipment becomes increasingly complex, intelligent floor scrubbers typically come equipped with a power control board to handle core control tasks such as motor drive and sensor data processing. Regarding human-machine interaction, the front of the floor scrubber usually features a panel ambient light and a corresponding photoelectric control system. Existing centralized photoelectric control architectures generally use a single microprocessor to drive the light-emitting devices, and delegate complex lighting effect rendering calculations to the power control board for centralized processing. Simultaneously, existing hardware communication systems rely on ordinary analog level signals to transmit lighting effect control commands between the control module and the light-emitting devices.

[0003] The aforementioned centralized computing architecture and analog-level communication method have technical flaws in actual operation. The main control chip already bears a heavy data processing task; adding additional lighting effect rendering calculations will overload the core processor, leading to excessive computing resource utilization. Furthermore, when the floor scrubber is running, the high-power brushless motor inside the machine radiates high-frequency electromagnetic interference waves into the surrounding physical space. In complex electromagnetic environments, these high-frequency electromagnetic interference waves can easily couple into the cables transmitting analog signals, generating pulse noise and causing waveform distortion in the analog level signals. Taking the powerful cleaning mode with the brushless motor running at high speed as an example, the microcontroller, after receiving the analog electrical signal with accompanying pulse noise, will output an incorrect duty cycle voltage. This output abnormality ultimately causes the light-emitting devices to exhibit irregular flickering and incorrect lighting effects, and causes a time lag in the feedback of the working status, thus significantly reducing the overall reliability of the photoelectric control system. Summary of the Invention

[0004] To address the shortcomings of existing technologies, this invention provides a dynamic control system and method for ambient lighting on floor scrubbers based on UART communication. This invention solves the technical problems of existing ambient lighting control systems for floor scrubbers, which use a single microprocessor to centrally process and drive the light-emitting devices, and which are prone to waveform distortion when transmitting signals using ordinary analog levels in complex electromagnetic environments. This results in excessively high computational resource consumption of the main control chip, as well as irregular flickering and instruction execution errors in the light-emitting devices.

[0005] To solve the above-mentioned technical problems, the specific contents of the present invention are as follows: In a first aspect, the present invention provides a dynamic control system for ambient lighting of a floor scrubber based on UART communication, including hardware devices and a control device that establishes a communication connection with the hardware devices. The hardware includes a power control board, a UART data bus, a display panel, and a series-connected LED array; the display panel has a built-in data buffer unit; the power control board is connected to the display panel via the UART data bus; the output pins of the display panel are connected to the input terminals of the series-connected LED array; the series-connected LED array contains transistors. The control device includes: The status acquisition module, configured on the power control board, is used to collect the working level status of the floor scrubber, convert the working level status of the floor scrubber into basic lighting mode instruction codes, and send the basic lighting mode instruction codes to the communication transceiver module. The communication transceiver module, configured on the power control board, is used to receive basic lighting mode command codes, encapsulate the basic lighting mode command codes into serial data frames, and send the serial data frames to the light effect calculation module configured on the display panel via the UART data bus. The light effect calculation module is used to receive serial data frames, parse the serial data frames to obtain basic lighting mode instruction codes, extract dynamic light effect parameters based on the basic lighting mode instruction codes, generate a preset light effect digital stream based on the dynamic light effect parameters, and send the preset light effect digital stream to the data buffer unit for storage. The array driver module, configured on the display panel, is used to read the preset light effect digital stream stored in the data buffer unit, convert the preset light effect digital stream into a single-line return-to-zero code digital signal, and send the single-line return-to-zero code digital signal to the series-connected light-emitting diode array; the series-connected light-emitting diode array receives the single-line return-to-zero code digital signal and adjusts the output current amplitude of the transistor according to the single-line return-to-zero code digital signal to control the light intensity.

[0006] Furthermore, the UART communication-based ambient light dynamic control system for floor scrubbers described in this invention includes a series-connected LED array comprising multiple cascaded red, green, and blue LEDs with built-in control circuits; among the red, green, and blue LEDs with built-in control circuits, the data output pins of the red, green, and blue LEDs of the previous stage of the built-in control circuit are connected to the data input pins of the red, green, and blue LEDs of the next stage of the built-in control circuit.

[0007] Furthermore, the UART communication-based ambient light dynamic control system for floor scrubbers of the present invention includes a status acquisition module comprising: The level monitoring unit is used to monitor the level signal of the floor scrubber when it is in self-cleaning mode, drying mode or mechanical failure mode, extract the level change characteristics, and send the level change characteristics to the instruction conversion unit; The instruction conversion unit is used to receive level change characteristics, encode the level change characteristics into basic lighting mode instruction codes carrying status identifiers, and send the basic lighting mode instruction codes to the communication transceiver module.

[0008] Furthermore, in the UART communication-based ambient light dynamic control system for floor scrubbers described in this invention, the communication transceiver module is used to receive basic lighting mode instruction codes, add start bits, data bits, and stop bits to the basic lighting mode instruction codes to encapsulate them into serial data frames, and transmit the serial data frames to the display panel through the UART data bus at a preset baud rate.

[0009] Furthermore, the dynamic light effect parameters of the floor scrubber ambient light dynamic control system based on UART communication described in this invention include frequency parameters, duration parameters, transition rate parameters, and color sequence parameters. The light effect calculation module includes: The protocol parsing unit is used to receive serial data frames, parse the serial data frames to obtain basic lighting mode instruction codes, extract frequency parameters, duration parameters, transition rate parameters and color sequence parameters from the basic lighting mode instruction codes, and send the frequency parameters, duration parameters, transition rate parameters and color sequence parameters to the interpolation generation unit. The interpolation generation unit receives frequency parameters, duration parameters, transition rate parameters, and color sequence parameters, converts the frequency parameters, duration parameters, transition rate parameters, and color sequence parameters into brightness adjustment level sequences and color switching level sequences, and synthesizes the brightness adjustment level sequences and color switching level sequences to output a preset light effect digital stream.

[0010] Furthermore, in the UART communication-based ambient light dynamic control system for floor scrubbers described in this invention, the array drive module transmits the single-line return-to-zero (NRZ) code digital electrical signal to the data input pins of the red, green, and blue LEDs in the first-stage built-in control circuit of the series-connected LED array via the output pins of the display panel. The red, green, and blue LEDs in the first-stage built-in control circuit receive the single-line NRZ code digital electrical signal, extract the cascaded data frames within the single-line NRZ code digital electrical signal, extract the high and low level pulses within the cascaded data frames, and adjust the output current amplitude of the transistors built into the red, green, and blue LEDs in the first-stage built-in control circuit according to the high and low level pulses. The red, green, and blue LEDs in the first-stage built-in control circuit shape and amplify the remaining single-line NRZ code digital electrical signal, and transmit the shaped and amplified single-line NRZ code digital electrical signal to the data input pins of the red, green, and blue LEDs in the next-stage built-in control circuit.

[0011] Furthermore, the floor scrubber ambient light dynamic control system based on UART communication described in this invention further includes a closed-loop feedback module configured on the display panel; the closed-loop feedback module is used to collect electrical response characteristic data of the series-connected light-emitting diode array, encapsulate the electrical response characteristic data into a status feedback data frame, and transmit the status feedback data frame to the power supply main control board via the UART data bus; the power supply main control board receives the status feedback data frame and extracts the electrical response characteristic data.

[0012] Furthermore, the floor scrubber ambient light dynamic control system based on UART communication described in this invention further includes a firmware distribution module configured on the power main control board; the power main control board is connected to an external network interface; the display panel has a built-in storage medium; the firmware distribution module is used to receive new version firmware data packets transmitted from the external network interface, the new version firmware data packets contain light effect parameter library files, the firmware distribution module encapsulates the new version firmware data packets into firmware data frames, and sends the firmware data frames to the display panel through the UART data bus, the display panel receives the firmware data frames, parses and extracts the new version firmware data packets.

[0013] Furthermore, in the UART communication-based ambient light dynamic control system for floor scrubbers described in this invention, the firmware distribution module generates a communication checksum for the firmware data frame, appends the checksum to the firmware data frame, and sends it to the display panel. The display panel verifies the firmware data frame based on the communication checksum, and generates a write failure signal when writing the new version firmware data packet to the storage medium fails, and sends the write failure signal to the firmware distribution module. The firmware distribution module receives the write failure signal from the display panel, generates a rollback command based on the write failure signal, and sends the rollback command to the display panel. The display panel receives the rollback command and restores the boot sector pointer of the storage medium to the initial stable version storage area according to the rollback command.

[0014] Secondly, the present invention provides a dynamic control method for ambient lighting on a floor scrubber based on UART communication, applied to the aforementioned dynamic control system for ambient lighting on a floor scrubber based on UART communication, comprising: Step 1: The status acquisition module collects the working level status of the floor scrubber, converts the working level status of the floor scrubber into basic lighting mode instruction code, and sends the basic lighting mode instruction code to the communication transceiver module. Step 2: The communication transceiver module receives the basic lighting mode instruction code, encapsulates the basic lighting mode instruction code into a serial data frame, and sends the serial data frame to the lighting effect calculation module through the UART data bus. Step 3: The light effect calculation module receives the serial data frame, parses the serial data frame to obtain the basic lighting mode instruction code, extracts the dynamic light effect parameters according to the basic lighting mode instruction code, generates a preset light effect digital stream according to the dynamic light effect parameters, and sends the preset light effect digital stream to the data buffer unit for storage. Step 4: The array driver module reads the preset light effect digital stream stored in the data buffer unit, converts the preset light effect digital stream into a single-line return-to-zero code digital signal, and sends the single-line return-to-zero code digital signal to the series-connected light-emitting diode array; the series-connected light-emitting diode array receives the single-line return-to-zero code digital signal and adjusts the output current amplitude of the transistor according to the single-line return-to-zero code digital signal to control the light intensity.

[0015] Beneficial effects of this invention: This invention effectively solves the problem of excessive computing power consumption in the main control chip by offloading the computationally intensive lighting effect rendering task from the main power control board and entrusting it to the lighting effect calculation module configured on the display panel as an independent algorithm unit. Furthermore, by using a purely digital UART communication link to replace traditional analog level signal transmission, it effectively isolates the high-frequency electromagnetic interference radiated into the surrounding space when the high-power brushless motor is running at high speed, avoiding waveform distortion of the signal and thus solving the technical problems of irregular flickering of the light-emitting device and instruction execution errors.

[0016] This invention converts a preset optical effect digital stream into a single-line return-to-zero code digital electrical signal through an array driver module, driving a series-connected array of light-emitting diodes (LEDs). A single microcontroller controls the entire photoelectric circuit, eliminating the need for an external dedicated constant current drive control chip at the circuit level, thus reducing the overall manufacturing cost of electronic components. During firmware online upgrades, a communication verification mechanism and a continuous retransmission security mechanism are configured. If an upgrade data packet writing failure to the storage medium is detected, the system triggers a failure rollback mechanism, forcibly restoring the boot sector pointer to the initial stable version storage area, ensuring continued stable operation of the device even during upgrade anomalies. Attached Figure Description

[0017] To more clearly illustrate the technical solution of the present invention, the drawings used in the embodiments will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on the drawings without creative effort.

[0018] Figure 1 This is a flowchart illustrating a method for dynamic control of ambient lighting in a floor scrubber based on UART communication, according to the present invention. Detailed Implementation

[0019] To make the technical solution of the present invention clearer, the present invention will be clearly and completely described below with reference to specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0020] In a first aspect, the present invention provides a dynamic control system for ambient lighting of a floor scrubber based on UART communication, including hardware devices and a control device that establishes a communication connection with the hardware devices. The hardware includes a power control board, a UART data bus, a display panel, and a series-connected LED array; the display panel has a built-in data buffer unit; the power control board is connected to the display panel via the UART data bus; the output pins of the display panel are connected to the input terminals of the series-connected LED array; the series-connected LED array contains transistors. The control device includes: The status acquisition module, configured on the power control board, is used to collect the working level status of the floor scrubber, convert the working level status of the floor scrubber into basic lighting mode instruction codes, and send the basic lighting mode instruction codes to the communication transceiver module. The communication transceiver module, configured on the power control board, is used to receive basic lighting mode command codes, encapsulate the basic lighting mode command codes into serial data frames, and send the serial data frames to the light effect calculation module configured on the display panel via the UART data bus. The light effect calculation module is used to receive serial data frames, parse the serial data frames to obtain basic lighting mode instruction codes, extract dynamic light effect parameters based on the basic lighting mode instruction codes, generate a preset light effect digital stream based on the dynamic light effect parameters, and send the preset light effect digital stream to the data buffer unit for storage. The array driver module, configured on the display panel, is used to read the preset light effect digital stream stored in the data buffer unit, convert the preset light effect digital stream into a single-line return-to-zero code digital signal, and send the single-line return-to-zero code digital signal to the series-connected light-emitting diode array; the series-connected light-emitting diode array receives the single-line return-to-zero code digital signal and adjusts the output current amplitude of the transistor according to the single-line return-to-zero code digital signal to control the light intensity.

[0021] The level monitoring unit configured in the status acquisition module monitors the level signals corresponding to different working modes of the floor scrubber in real time by connecting to the general-purpose input / output pins of the power control board. Taking the floor scrubber in self-cleaning mode as an example, the sensor inside the machine outputs a 3.3-volt high-level signal. After the level monitoring unit collects the 3.3-volt high-level signal, it extracts the high-level change characteristics and sends them to the instruction conversion unit. The instruction conversion unit has a pre-built mapping dictionary. After receiving the high-level change characteristics, it encodes the high-level change characteristics into a hexadecimal value "0xA1", which serves as the basic lighting mode instruction code carrying the self-cleaning status identifier. Subsequently, the communication transceiver module receives the basic lighting mode instruction code and sets the preset baud rate of the UART data bus to 115200 bits per second. At the same time, it adds one low-level start bit, eight data bits, and one high-level stop bit to the hexadecimal value "0xA1", combines and encapsulates them into a complete serial data frame in chronological order, and finally transmits it to the display panel through the UART data bus.

[0022] Upon entering the light effect calculation stage, the protocol parsing unit receives and parses the serial data frame, extracting the specific values ​​of the dynamic light effect parameters. These parameters include a 60 Hz frequency parameter, a 2-second duration parameter, and a color sequence parameter that transitions from pure red to pure blue. After receiving these parameters, the interpolation generation unit calls a linear interpolation algorithm to perform mathematical calculations. Within the 2-second duration, the interpolation generation unit calculates the RGB color values ​​of 120 intermediate transition colors on average between pure red (RGB value 255,0,0) and pure blue (RGB value 0,0,255). Finally, the interpolation generation unit converts the RGB color values ​​of the 120 intermediate transition colors into a brightness adjustment level sequence that controls the pulse width of the voltage, synthesizing and outputting a continuously changing preset light effect digital stream.

[0023] In the drive conversion stage, the array drive module follows a strict time duty cycle protocol to convert the preset luminous efficacy digital stream into a single-line return-to-zero (RZ) code digital signal. For example, the array drive module outputs a high-level pulse, holds it for 0.8 microseconds, and then goes low to represent logic "1," and outputs a high-level pulse, holds it for 0.4 microseconds, and then goes low to represent logic "0." The generated single-line RZ code digital signal is transmitted to the red, green, and blue LEDs in the first-stage built-in control circuit of the series-connected LED array. The red, green, and blue LEDs in the first-stage built-in control circuit intercept the first 24 bits of the cascaded data frame and extract the logic pulse values ​​representing the red, green, and blue brightness. Then, based on the logic pulse values, the base control voltage of the constant current drive transistor inside the LED is changed, thereby linearly adjusting the current amplitude output by the transistor to the light-emitting chip (the adjustment range is set to 0 to 20 mA), achieving precise control of the luminous intensity.

[0024] To establish a reliable status monitoring mechanism, the closed-loop feedback module is equipped with a miniature current detection circuit to collect electrical response characteristic data of the series-connected LED array. Specific electrical response characteristic data includes the real-time total operating current value of the LED array and fault circuit interruption alarm codes. The closed-loop feedback module encapsulates the collected real-time total operating current value into a status feedback data frame and transmits it to the power supply main control board. Upon receiving the data, the power supply main control board compares the rated current value with the real-time total operating current value to determine whether there is a short circuit abnormality in the ambient lighting control system.

[0025] During the online upgrade process, the firmware distribution module encapsulates the new firmware data packet containing the light effect parameter library file and performs polynomial division on all bytes of the firmware data frame using a cyclic redundancy check algorithm to generate a 16-bit communication checksum. This checksum is then appended to the end of the firmware data frame and sent to the display panel. If a power or network interruption occurs during the firmware upgrade process, causing the new firmware data packet to fail to be completely written to the storage medium, the display panel generates a write failure signal. Upon receiving the write failure signal, the firmware distribution module generates a rollback instruction in hexadecimal code form. Upon receiving the rollback instruction, the display panel forcibly modifies the address value of the boot sector pointer in the storage medium, which determines the program startup address, to the absolute address backed up in the initial stable version storage area before the upgrade. After the system is powered back on, the microprocessor executes the old stable program based on the restored boot sector pointer, ensuring the continuous and stable operation of the floor scrubber's interactive system.

[0026] Secondly, please refer to Figure 1 This invention provides a dynamic control method for ambient lighting on a floor scrubber based on UART communication, applied to the aforementioned dynamic control system for ambient lighting on a floor scrubber based on UART communication, comprising: Step 1: The status acquisition module collects the working level status of the floor scrubber, converts the working level status of the floor scrubber into basic lighting mode instruction code, and sends the basic lighting mode instruction code to the communication transceiver module. Step 2: The communication transceiver module receives the basic lighting mode instruction code, encapsulates the basic lighting mode instruction code into a serial data frame, and sends the serial data frame to the lighting effect calculation module through the UART data bus. Step 3: The light effect calculation module receives the serial data frame, parses the serial data frame to obtain the basic lighting mode instruction code, extracts the dynamic light effect parameters according to the basic lighting mode instruction code, generates a preset light effect digital stream according to the dynamic light effect parameters, and sends the preset light effect digital stream to the data buffer unit for storage. Step 4: The array driver module reads the preset light effect digital stream stored in the data buffer unit, converts the preset light effect digital stream into a single-line return-to-zero code digital signal, and sends the single-line return-to-zero code digital signal to the series-connected light-emitting diode array; the series-connected light-emitting diode array receives the single-line return-to-zero code digital signal and adjusts the output current amplitude of the transistor according to the single-line return-to-zero code digital signal to control the light intensity.

[0027] In this invention embodiment, when a smart floor scrubber encounters mechanical malfunctions such as water shortage in the clean water tank or hair entanglement in the roller brush during heavy-duty cleaning, the status acquisition module on the power control board collects the working level status triggered by the water level sensor or motor overload pin, converts the working level status into a basic lighting mode instruction code representing a specific fault type, and sends it to the communication transceiver module. The communication transceiver module encapsulates the basic lighting mode instruction code into a serial data frame and sends it to the light effect calculation module on the display panel via the UART data bus. The high-frequency electromagnetic interference radiated by the high-power brushless motor during high-speed operation is successfully isolated through the purely digital UART communication link, solving the technical pain point that traditional analog level signals are prone to waveform distortion in complex electromagnetic environments. The light effect calculation module, as an independent algorithm processing model unit, receives serial data frames and performs protocol parsing to obtain basic lighting mode instruction codes. Based on the basic lighting mode instruction codes, it extracts dynamic light effect parameters covering parameters such as the frequency of rapid warnings, the duration of infinite loops, the rate of sharp transitions, and the sequence of alternating red and yellow colors. The light effect calculation module inputs the extracted dynamic light effect parameters into the internal interpolation generation unit for logical operations, generating a preset light effect digital stream representing the breathing flashing warning effect as the model output. The preset light effect digital stream is then sent to the data cache unit for storage. This removes the computationally intensive lighting effect rendering task from the main power control board, completely solving the problem of excessive load on the main control chip's computing resources. Subsequently, the array drive module reads the preset light effect digital stream stored in the data buffer unit, converts the preset light effect digital stream into a single-line return-to-zero code digital electrical signal and sends it to the series-type light-emitting diode array; the series-type light-emitting diode array receives the single-line return-to-zero code digital electrical signal, extracts the cascaded data frames in the single-line return-to-zero code digital electrical signal, and adjusts the output current amplitude of the built-in transistor of the light-emitting diode according to the high and low level pulses in the cascaded data frames, so as to precisely control the output of the front panel to display a high-brightness fault warning light effect of alternating red and yellow, intuitively guiding the user to troubleshoot mechanical faults of the floor scrubber.

Claims

1. A dynamic control system for ambient lighting on a floor scrubber based on UART communication, characterized in that, This includes hardware devices and control devices that establish communication connections with the hardware devices; The hardware includes a power control board, a UART data bus, a display panel, and a series-connected LED array; the display panel has a built-in data buffer unit; the power control board is connected to the display panel via the UART data bus. The output pins of the display panel are connected to the input terminals of a series-connected LED array; A series-connected light-emitting diode array contains transistors; The control device includes: The status acquisition module, configured on the power control board, is used to collect the working level status of the floor scrubber, convert the working level status of the floor scrubber into basic lighting mode instruction codes, and send the basic lighting mode instruction codes to the communication transceiver module. The communication transceiver module, configured on the power control board, is used to receive basic lighting mode command codes, encapsulate the basic lighting mode command codes into serial data frames, and send the serial data frames to the light effect calculation module configured on the display panel via the UART data bus. The light effect calculation module is used to receive serial data frames, parse the serial data frames to obtain basic lighting mode instruction codes, extract dynamic light effect parameters based on the basic lighting mode instruction codes, generate a preset light effect digital stream based on the dynamic light effect parameters, and send the preset light effect digital stream to the data buffer unit for storage. The array driver module, configured on the display panel, is used to read the preset light effect digital stream stored in the data buffer unit, convert the preset light effect digital stream into a single-line return-to-zero code digital signal, and send the single-line return-to-zero code digital signal to the series-connected light-emitting diode array; the series-connected light-emitting diode array receives the single-line return-to-zero code digital signal and adjusts the output current amplitude of the transistor according to the single-line return-to-zero code digital signal to control the light intensity.

2. The floor scrubber ambient light dynamic control system based on UART communication according to claim 1, characterized in that, The series-connected LED array includes multiple red, green, and blue LEDs with built-in control circuits connected in series. In the red, green, and blue LEDs with built-in control circuits, the data output pins of the red, green, and blue LEDs of the previous stage of the built-in control circuit are connected to the data input pins of the red, green, and blue LEDs of the next stage of the built-in control circuit.

3. The dynamic control system for ambient lighting of a floor scrubber based on UART communication according to claim 2, characterized in that, The status acquisition module includes: The level monitoring unit is used to monitor the level signal of the floor scrubber when it is in self-cleaning mode, drying mode or mechanical failure mode, extract the level change characteristics, and send the level change characteristics to the instruction conversion unit; The instruction conversion unit is used to receive level change characteristics, encode the level change characteristics into basic lighting mode instruction codes carrying status identifiers, and send the basic lighting mode instruction codes to the communication transceiver module.

4. The dynamic control system for ambient lighting of a floor scrubber based on UART communication according to claim 3, characterized in that, The communication transceiver module is used to receive the basic lighting mode command code, add start bits, data bits and stop bits to the basic lighting mode command code to encapsulate it into a serial data frame, and transmit the serial data frame to the display panel through the UART data bus at a preset baud rate.

5. The dynamic control system for ambient lighting of a floor scrubber based on UART communication according to claim 4, characterized in that, Dynamic lighting parameters include frequency parameters, duration parameters, transition rate parameters, and color sequence parameters; The light effect calculation module includes: The protocol parsing unit is used to receive serial data frames, parse the serial data frames to obtain basic lighting mode instruction codes, extract frequency parameters, duration parameters, transition rate parameters and color sequence parameters from the basic lighting mode instruction codes, and send the frequency parameters, duration parameters, transition rate parameters and color sequence parameters to the interpolation generation unit. The interpolation generation unit receives frequency parameters, duration parameters, transition rate parameters, and color sequence parameters, converts the frequency parameters, duration parameters, transition rate parameters, and color sequence parameters into brightness adjustment level sequences and color switching level sequences, and synthesizes the brightness adjustment level sequences and color switching level sequences to output a preset light effect digital stream.

6. The dynamic control system for ambient lighting of a floor scrubber based on UART communication according to claim 5, characterized in that, The array drive module transmits the single-line return-to-zero code digital signal to the data input pins of the red, green, and blue LEDs in the first-stage built-in control circuit of the series LED array through the output pins of the display panel. The red, green, and blue LEDs of the first-stage built-in control circuit receive the single-line return-to-zero code digital signal, extract the cascaded data frames within the single-line return-to-zero code digital signal, extract the high and low level pulses within the cascaded data frames, and adjust the output current amplitude of the transistors built into the red, green, and blue LEDs of the first-stage built-in control circuit according to the high and low level pulses. The red, green, and blue LEDs in the first-stage built-in control circuit shape and amplify the remaining single-line return-to-zero code digital signal, and then transmit the shaped and amplified single-line return-to-zero code digital signal to the data input pin of the red, green, and blue LEDs in the next-stage built-in control circuit.

7. The dynamic control system for ambient lighting of a floor scrubber based on UART communication according to claim 6, characterized in that, The control device also includes a closed-loop feedback module configured on the display panel; the closed-loop feedback module is used to collect electrical response characteristic data of the series-connected light-emitting diode array, encapsulate the electrical response characteristic data into a status feedback data frame, and transmit the status feedback data frame to the power supply main control board via the UART data bus. The power supply main control board receives the status feedback data frame and extracts the electrical response characteristic data.

8. The floor scrubber ambient light dynamic control system based on UART communication according to claim 7, characterized in that, The control device also includes a firmware distribution module configured on the power supply main control board; the power supply main control board is connected to an external network interface; the display panel has a built-in storage medium; the firmware distribution module is used to receive new version firmware data packets transmitted from the external network interface. The new version firmware data packets contain light effect parameter library files. The firmware distribution module encapsulates the new version firmware data packets into firmware data frames and sends the firmware data frames to the display panel through the UART data bus. The display panel receives the firmware data frames, parses them, and extracts the new version firmware data packets.

9. The dynamic control system for ambient lighting of a floor scrubber based on UART communication according to claim 8, characterized in that, The firmware distribution module generates a communication check code for the firmware data frame, appends the communication check code to the firmware data frame, and sends it to the display panel. The display panel verifies the firmware data frame based on the communication check code. When the new version firmware data packet fails to be written to the storage medium, a write failure signal is generated and sent to the firmware distribution module. The firmware distribution module receives the write failure signal from the display panel, generates a rollback command based on the write failure signal, and sends the rollback command to the display panel. The display panel receives the rollback command and restores the boot sector pointer of the storage medium to the initial stable version storage area according to the rollback command.

10. A method for dynamic control of ambient lighting on a floor scrubber based on UART communication, applied to the dynamic control system for ambient lighting on a floor scrubber based on UART communication as described in any one of claims 1 to 9, characterized in that, include: Step 1: The status acquisition module collects the working level status of the floor scrubber, converts the working level status of the floor scrubber into basic lighting mode instruction code, and sends the basic lighting mode instruction code to the communication transceiver module. Step 2: The communication transceiver module receives the basic lighting mode instruction code, encapsulates the basic lighting mode instruction code into a serial data frame, and sends the serial data frame to the lighting effect calculation module through the UART data bus. Step 3: The light effect calculation module receives the serial data frame, parses the serial data frame to obtain the basic lighting mode instruction code, extracts the dynamic light effect parameters according to the basic lighting mode instruction code, generates a preset light effect digital stream according to the dynamic light effect parameters, and sends the preset light effect digital stream to the data buffer unit for storage. Step 4: The array driver module reads the preset light effect digital stream stored in the data buffer unit, converts the preset light effect digital stream into a single-line return-to-zero code digital signal, and sends the single-line return-to-zero code digital signal to the series-connected light-emitting diode array. A series-connected LED array receives a single-line return-to-zero (RZ) code digital signal and adjusts the output current amplitude of the transistors according to the RZ code digital signal to control the luminous intensity.