Master-slave control lattice screen and driving method thereof
Through the master-slave control dot matrix screen technology, using UART bus and CANFD communication, combined with the input power supply anti-reverse circuit and the BUCK constant voltage power supply module, the cost and complexity problems caused by the increase of the microcontroller of the car light dot matrix screen in the existing technology are solved. Efficient LED control and refresh rate are achieved.
Patent Information
- Application Number
- CN202411184331.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-11-08
AI Technical Summary
Due to structural limitations, existing headlight dot matrix screen technology requires adding microcontrollers to each LED board, resulting in increased production costs and complex software communication logic.
The master-slave control dot matrix screen is adopted to control the load system through the UART bus, including the input power anti-reverse circuit, the system basic power management module, the BUCK constant voltage power supply module, the microcontroller processing module and the serial communication module. The main microcontroller communicates with the body CANFD. , receive and process vehicle body messages, and control the grayscale and pixels of the LED through the linear line scan chip driver module.
It realizes normal communication without adding microcontrollers, reduces costs, and supports high refresh rate LED control, meeting the diverse needs of the car light industry.
Smart Images

Figure CN118918830A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent vehicle-mounted display, and in particular to a master-slave control dot matrix screen and a driving method thereof. Background Art
[0002] The current car light dot matrix screen technology on the market has structural limitations, and many LEDs communicate across boards. However, the linear chip used on the light board is SPI communication, which requires adding a single-chip microcomputer to each LED board, increasing production costs and making the software communication logic complicated. Summary of the invention
[0003] In view of the deficiencies in the prior art, the technical solution adopted by the present invention to solve the technical problems is: a master-slave control dot matrix screen, including a drive system and a load system, the drive system is connected to the vehicle body, and controls the load system through a UART bus, the drive system includes an input power anti-reverse circuit, a system basic power management module, a BUCK constant voltage power supply module, a single-chip microcomputer processing module and a serial communication module, the system basic power management module, the BUCK constant voltage power supply module, the single-chip microcomputer processing module and the serial communication module are connected in sequence, and the input power anti-reverse circuit is respectively connected to the vehicle body, the system basic power management module and the BUCK constant voltage power supply module through a BAT bus.
[0004] Preferably, the input power anti-reverse circuit includes a diode D1, an anti-reverse MOS tube Q1 and a switch MOS tube Q2, the positive electrode of the diode D1 is connected to the body output terminal BAT+, and the positive electrode of the diode D1 and the body output terminal BAT+ are respectively connected in series with a resistor R1, a filter capacitor C2, a filter capacitor C1 and a TVS tube T1, the negative electrode of the diode D1 is connected to the pin 2 of the anti-reverse MOS tube Q1, the pin 1 of the anti-reverse MOS tube Q1 is connected to the pin 3 of the switch MOS tube Q2, and the pin 3 of the anti-reverse MOS tube Q1 is connected in series with a resistor R1, a filter capacitor C2, a filter capacitor C1 and a TVS tube T1. An inductor L1 is connected, a resistor R2 and a voltage regulator D2 are respectively connected in series between the pin 1 of the anti-reverse MOS tube Q1 and the cathode of the diode D1, the pin 1 of the switch MOS tube Q2 is connected to the power supply KL15, the pin 2 of the switch MOS tube Q2 is grounded, a current-limiting resistor R3 is connected in series between the pin 1 of the anti-reverse MOS tube Q1 and the pin 3 of the switch MOS tube Q2, a resistor R6 is connected in series between the pin 1 of the switch MOS tube Q2 and the power supply KL15, and a resistor R11 is connected in series between the resistor R6 and the pin 2 of the switch MOS tube Q2.
[0005] Preferably, the system basic power management module includes a chip U2, the model of the chip U2 is UJA1196, and the pin 2 of the chip U2 is connected to the single-chip microcomputer processing module, the pin 7 of the chip U2 is connected to the vehicle body, the pins 5 and 13 of the chip U2 are LDOs integrated inside the chip, which are used to power external components, the pins 3, 9, 10, and 20 of the chip U2 are the output, input, clock line, and chip select line of the SPI respectively, the pins 17 and 18 of the chip U2 are connected to the vehicle body through the common mode inductor L4, and the transistor Q3 is connected in series to the pin 15 of the chip U2.
[0006] Preferably, the BUCK constant voltage power supply module includes a DCDC constant voltage power supply chip U4, the model of the DCDC constant voltage power supply chip U4 is TI's LM61460, and the DCDC constant voltage power supply chip U4 has a built-in MOS tube, pins 8 and 9 of the DCDC constant voltage power supply chip U4 are power supply pins of the chip, pin 10 of the DCDC constant voltage power supply chip U4 provides a stable and high-speed main frequency, and pin 4 of the DCDC constant voltage power supply chip U4 is a FB fault feedback pin.
[0007] Preferably, the single-chip microcomputer processing module includes a master single-chip microcomputer and a slave single-chip microcomputer, one end of the master single-chip microcomputer is connected to the system basic power management module through the CAN bus, and the other end is connected to the slave single-chip microcomputer through the UART bus, the master single-chip microcomputer communicates with the vehicle body CANFD, receives and processes the vehicle body message and controls the grayscale and pixels of half of the LEDs, and the slave single-chip microcomputer is used to receive the message information sent by the master single-chip microcomputer and control the grayscale and pixels of half of the LEDs.
[0008] Preferably, the master single-chip microcomputer and the slave single-chip microcomputer are both S32K312NHTOMPAST.
[0009] Preferably, the serial communication module includes two CAN transceivers U1, the model of the CAN transceiver U1 is TITCAN1044, pins 1 and 4 of the CAN transceiver U1 are respectively connected to the main microcontroller for sending and receiving serial port command information, and a filter capacitor C11 is connected in series to pin 1 of the CAN transceiver U1, and a filter capacitor C19 is connected in series to pin 4 of the CAN transceiver U1.
[0010] Preferably, the load system includes a line scanning chip driving module and an LED load module, the line scanning chip driving module includes two linear line scanning chips U8, the linear line scanning chip U8 model is MAX25630, pins 3, 4, 8, and 9 of the linear line scanning chip U8 are powered for the high side of the channel, pins 41-43, 20-39, and 16-18 of the linear line scanning chip U8 are powered for the low side of the chip, and pins 1 and 47 of the linear line scanning chip U8 are respectively connected to the single-chip microcomputer processing module to receive and read and write serial port instructions.
[0011] Preferably, the LED load module includes two LED drivers, the LED driver model is MAX25630, the two LED drivers respectively control the low side and high side of the LED, and the two drivers are respectively connected to the BUCK constant voltage power supply module through the linear scanning chip U8.
[0012] The present invention also discloses a driving method for a master-slave control dot matrix screen, comprising the following steps:
[0013] S1. The system basic power chip U2 has a built-in watchdog and an internal integrated LDO to power the MCU. It can wake up the vehicle body from sleep mode and control the static current. The system basic power chip U2 generates a synchronous clock and uses multiple I / Os to output display data in parallel. It sends display data to the main microcontroller according to the data clock edge.
[0014] S2, the main MCU communicates with the vehicle body CANFD, receives and processes the vehicle body message, sends instructions to the line scanning chip driver module to control the grayscale and pixels of half of the LEDs, and receives the message information sent by the main MCU from the MCU and also sends instructions to the line scanning chip driver module to control the grayscale and pixels of half of the LEDs;
[0015] S3, linear scanning chip U8 receives and reads and writes serial port commands to control the on and off and grayscale of a single LED.
[0016] The beneficial effects of the present invention are as follows:
[0017] The present invention has the ability to drive thousands of dot matrix screens and refresh animations. Through the coordination between the single-chip microcomputer processing module and the system basic power management module, the CAN message of the vehicle body is received and analyzed, the main single-chip microcomputer communicates with the vehicle body CANFD, and the slave single-chip microcomputer receives the main single-chip microcomputer signal and instructs the load system. The linear chip used in the scanning chip driving module is UART communication, and normal communication can be achieved without adding a single-chip microcomputer to the light board, that is, the linear chip and MCU are not on the same board, which is in line with the diversity of the current car lamp industry. The refresh rate supported reaches 1MB / S, and the two serial ports send and receive data simultaneously, with a higher refresh rate. The lighting and grayscale of a single LED in the LED load module can be controlled, and cross-board communication is supported, effectively reducing costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is a structural block diagram of the present invention;
[0019] Figure 2 It is a schematic diagram of the input power anti-reverse circuit;
[0020] Figure 3 It is a schematic diagram of the basic power management module of the system;
[0021] Figure 4 This is a schematic diagram of the BUCK constant voltage power supply module;
[0022] Figure 5 It is a schematic diagram of the single-chip microcomputer processing module;
[0023] Figure 6 It is a schematic diagram of the serial communication module;
[0024] Figure 7 This is a schematic diagram of the scanning chip driver module;
[0025] Figure 8 is a schematic diagram of the LED load module. DETAILED DESCRIPTION
[0026] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments:
[0027] like Figure 1 As shown, a master-slave control dot matrix screen includes a drive system and a load system. The drive system is connected to the vehicle body and controls the load system through a UART bus. The drive system includes an input power anti-reverse circuit, a system basic power management module, a BUCK constant voltage power supply module, a single-chip microcomputer processing module and a serial communication module. The system basic power management module, the BUCK constant voltage power supply module, the single-chip microcomputer processing module and the serial communication module are connected in sequence. The input power anti-reverse circuit is respectively connected to the vehicle body, the system basic power management module and the BUCK constant voltage power supply module through a BAT bus.
[0028] like Figure 2 As shown, the input power supply reverse protection circuit includes a diode D1, a reverse protection MOS tube Q1 and a switch MOS tube Q2. The positive electrode of the diode D1 is connected to the body output terminal BAT+, and the positive electrode of the diode D1 and the body output terminal BAT+ are respectively connected in series with a resistor R1, a filter capacitor C2, a filter capacitor C1 and a TVS tube T1. The cathode of the diode D1 is connected to the pin 2 of the reverse protection MOS tube Q1, the pin 1 of the reverse protection MOS tube Q1 is connected to the pin 3 of the switch MOS tube Q2, and the pin 3 of the reverse protection MOS tube Q1 is connected in series with a resistor R1, a filter capacitor C2, a filter capacitor C1 and a TVS tube T1. Inductor L1, a resistor R2 and a voltage regulator D2 are connected in series between pin 1 of the anti-reverse MOS tube Q1 and the cathode of the diode D1, pin 1 of the switch MOS tube Q2 is connected to the power supply KL15, pin 2 of the switch MOS tube Q2 is grounded, a current-limiting resistor R3 is connected in series between pin 1 of the anti-reverse MOS tube Q1 and pin 3 of the switch MOS tube Q2 to prevent current from breaking through Q2, a resistor R6 is connected in series between pin 1 of the switch MOS tube Q2 and the power supply KL15, and a resistor R11 is connected in series between the resistor R6 and pin 2 of the switch MOS tube Q2.
[0029] When BAT has power, the voltage between GS is greater than the MOS turn-on voltage, and the switch MOS tube Q2 is turned on; when BAT has no power, the switch MOS tube Q2 is closed to prevent the positive and negative poles of the power supply from being connected in reverse; when the KL15 signal is at a high level, the voltage between GS is greater than the turn-on voltage, the switch MOS tube Q2 is turned on, and the GS voltage of the anti-reverse MOS tube Q1 is greater than the turn-on voltage, that is, the VBAT network has voltage; when the KL15 signal is at a low level, the G pole of the anti-reverse MOS tube Q1 is suspended, and the VBAT network has no voltage.
[0030] like Figure 3 As shown, the basic power management module of the system includes chip U2. The chip U2 model is UJA1196, which integrates CAN transceiver and LDO, interacts with the vehicle body bus, and provides 5V power supply to the single-chip microcomputer processing module; Pin 2 of chip U2 is connected to the single-chip microcomputer processing module, and pin 7 of chip U2 is connected to the vehicle body. Pin 2 and pin 7 are serial communication lines of UART OverCAN, which are connected to the single-chip microcomputer and communicate with the vehicle body. Pin 2 is for writing and pin 7 is for reading; Pins 5 and 13 of chip U2 are LDOs integrated inside the chip, which are used to power external components; Pins 3, 9, 10, and 20 of chip U2 are SPI output, input, clock line, and chip select line, respectively, which interact with the single-chip microcomputer to control chip U2 through SPI; Pins 17 and 18 of chip U2 are connected to the vehicle body through common mode inductor L4, so that the EMC experimental performance is stable; Pin 15 of chip U2 is connected in series with transistor Q3, and the power of the chip is shared by the transistor to improve heat.
[0031] like Figure 4 As shown, the BUCK constant voltage power supply module includes a DCDC constant voltage power supply chip U4. The model of the DCDC constant voltage power supply chip U4 is TI's LM61460, which supports a driving current of 6A. Since the pixel screens on the market are multi-particle and have small current characteristics, this chip can cover the current required by the pixel screen; the DCDC constant voltage power supply chip U4 has a built-in MOS tube, which makes the cost lower; pins 8 and 9 of the DCDC constant voltage power supply chip U4 are the power supply pins of the chip, and C34-37 capacitors are placed for filtering to make the power supply more stable; pin 10 of the DCDC constant voltage power supply chip U4 provides a stable and high-speed main frequency, so that the chip can provide a constant voltage value for stable switching; pin 4 of the DCDC constant voltage power supply chip U4 is the FB fault feedback pin, that is, when the chip fails, it feedbacks a high-level fault state.
[0032] like Figure 5As shown, the MCU processing module includes a master MCU and a slave MCU. One end of the master MCU is connected to the system basic power management module through the CAN bus, and the other end is connected to the slave MCU through the UART bus. The master MCU communicates with the vehicle body CANFD, receives and processes the vehicle body message and controls the grayscale and pixels of half of the LEDs. The slave MCU is used to receive the message information sent by the master MCU and control the grayscale and pixels of half of the LEDs. The two master and slave MCUs operate simultaneously, which shortens the software processing time. The master MCU and the slave MCU are both S32K312NHTOMPAST, and their resources are: 2M flash, 192KB RAM, 6ch FlexCAN (FD), 4ch SPI, 2ch IIC, support chip-level functional safety ASIL B, sufficient functional resources, making the logic of the entire circuit more complete, including an 8M internal crystal oscillator, and an external crystal oscillator can be configured. A 16M external crystal oscillator is selected to obtain a higher clock frequency.
[0033] like Figure 6 As shown, the serial communication module includes two CAN transceivers U1. The model of CAN transceiver U1 is TITCAN1044. Pins 1 and 4 of CAN transceiver U1 are respectively connected to the main microcontroller for sending and receiving serial command information. Pin 1 of CAN transceiver U1 is connected in series with filter capacitor C11, and pin 4 of CAN transceiver U1 is connected in series with filter capacitor C19 to ensure the stability of communication. When two transceivers are used at the same time, after one of the transceivers sends the serial port, a serial port command is sent to the other transceiver, that is, the command information of the first serial port is used to send the information of the other transceiver, which makes use of the original delay time, makes it more efficient, and shortens the sending and receiving time of the whole system.
[0034] like Figure 7 As shown, the load system includes a line scanning chip driver module and an LED load module. The line scanning chip driver module includes two linear line scanning chips U8. The linear line scanning chip U8 model is MAX25630. The 4*24 channels support row and column scanning and can support a maximum of 72mA. It uses UART serial port communication and the maximum communication rate can reach 1MB / S. Since MAX25630 uses serial port communication, that is, when it is separated from the MCU, the communication stability and EMC test performance can be guaranteed; pins 3, 4, 8, and 9 of the linear line scanning chip U8 are used to power the high side of the channel, and pins 41-43, 20-39, and 16-18 of the linear line scanning chip U8 are used to power the low side of the chip. A single chip can drive 4*24, i.e., 96 LEDs; pins 1 and 47 of the linear line scanning chip U8 are respectively connected to the single-chip microcomputer processing module to receive and read and write serial port instructions.
[0035] like Figure 8As shown, the LED load module includes two LED drivers, the LED driver model is MAX25630, and the LED load end uses OSRAM's 0.2W LED particles, a total of 192 LEDs, which are controlled by two LED drivers to control the low side and high side of the LED respectively. The two drivers are connected to the BUCK constant voltage power supply module through the linear scanning chip U8, and the LED bypass is connected in parallel with a 1nF capacitor to absorb the high-frequency signal of the driving end, so that the experimental performance is better. The power supply of each LED is provided by the DCDC constant voltage power supply chip U4 to provide a stable BUCK voltage.
[0036] A driving method for a master-slave control dot matrix screen comprises the following steps:
[0037] S1. The system basic power chip U2 has a built-in watchdog and an internal integrated LDO to power the MCU. It can wake up the vehicle body from sleep mode and control the static current. The system basic power chip U2 generates a synchronous clock and uses multiple I / Os to output display data in parallel. It sends display data to the main microcontroller according to the data clock edge.
[0038] S2, the main MCU communicates with the vehicle body CANFD, receives and processes the vehicle body message, sends instructions to the line scanning chip driver module to control the grayscale and pixels of half of the LEDs, and receives the message information sent by the main MCU from the MCU and also sends instructions to the line scanning chip driver module to control the grayscale and pixels of half of the LEDs;
[0039] S3, linear scanning chip U8 receives and reads and writes serial port commands to control the on and off and grayscale of a single LED.
[0040] Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field and related fields without creative work should fall within the scope of protection of the present invention. The structures, devices and operating methods not specifically described and explained in the present invention are implemented according to the conventional means in the field unless otherwise specified and limited.
Claims
1. A master-slave control dot matrix screen, Features: The invention comprises a driving system and a load system, wherein the driving system is connected to the vehicle body and controls the load system through a UART bus, wherein the driving system comprises an input power anti-reverse circuit, a system basic power management module, a BUCK constant voltage power supply module, a single-chip microcomputer processing module and a serial port communication module, wherein the system basic power management module, the BUCK constant voltage power supply module, the single-chip microcomputer processing module and the serial port communication module are connected in sequence, and the input power anti-reverse circuit is respectively connected to the vehicle body, the system basic power management module and the BUCK constant voltage power supply module through a BAT bus.
2. A master-slave control dot matrix screen according to claim 1, Features: The input power supply anti-reverse circuit includes a diode D1, an anti-reverse MOS tube Q1 and a switch MOS tube Q2. The positive electrode of the diode D1 is connected to the body output terminal BAT+, and the positive electrode of the diode D1 and the body output terminal BAT+ are respectively connected in series with a resistor R1, a filter capacitor C2, a filter capacitor C1 and a TVS tube T1. The cathode of the diode D1 is connected to the pin 2 of the anti-reverse MOS tube Q1, the pin 1 of the anti-reverse MOS tube Q1 is connected to the pin 3 of the switch MOS tube Q2, and the pin 3 of the anti-reverse MOS tube Q1 is connected in series with a Inductor L1, a resistor R2 and a voltage regulator D2 are respectively connected in series between the pin 1 of the anti-reverse MOS tube Q1 and the cathode of the diode D1, the pin 1 of the switch MOS tube Q2 is connected to the power supply KL15, the pin 2 of the switch MOS tube Q2 is grounded, a current-limiting resistor R3 is connected in series between the pin 1 of the anti-reverse MOS tube Q1 and the pin 3 of the switch MOS tube Q2, a resistor R6 is connected in series between the pin 1 of the switch MOS tube Q2 and the power supply KL15, and a resistor R11 is connected in series between the resistor R6 and the pin 2 of the switch MOS tube Q2.
3. A master-slave control dot matrix screen according to claim 1, Features: The system basic power management module includes a chip U2, the model of which is UJA1196, and pin 2 of chip U2 is connected to the single-chip microcomputer processing module, pin 7 of chip U2 is connected to the vehicle body, pins 5 and 13 of chip U2 are LDOs integrated inside the chip, which are used to power external components, pins 3, 9, 10, and 20 of chip U2 are the output, input, clock line, and chip select line of SPI respectively, pins 17 and 18 of chip U2 are connected to the vehicle body through a common-mode inductor L4, and a transistor Q3 is connected in series to pin 15 of chip U2.
4. A master-slave control dot matrix screen according to claim 1, Features: The BUCK constant voltage power supply module includes a DCDC constant voltage power supply chip U4, the model of the DCDC constant voltage power supply chip U4 is TI's LM61460, and the DCDC constant voltage power supply chip U4 has a built-in MOS tube, pins 8 and 9 of the DCDC constant voltage power supply chip U4 are power supply pins of the chip, pin 10 of the DCDC constant voltage power supply chip U4 provides a stable and high-speed main frequency, and pin 4 of the DCDC constant voltage power supply chip U4 is an FB fault feedback pin.
5. A master-slave control dot matrix screen according to claim 1, Features: The single-chip microcomputer processing module includes a master single-chip microcomputer and a slave single-chip microcomputer. One end of the master single-chip microcomputer is connected to the system basic power management module through the CAN bus, and the other end is connected to the slave single-chip microcomputer through the UART bus. The master single-chip microcomputer communicates with the vehicle body CANFD, receives and processes the vehicle body message and controls the grayscale and pixels of half of the LEDs. The slave single-chip microcomputer is used to receive the message information sent by the master single-chip microcomputer and control the grayscale and pixels of half of the LEDs.
6. A master-slave control dot matrix screen according to claim 5, Features: The models of the master microcontroller and the slave microcontroller are both S32K312NHTOMPAST.
7. A master-slave control dot matrix screen according to claim 6, Features: The serial communication module includes two CAN transceivers U1, the model of the CAN transceiver U1 is TI TCAN1044, pins 1 and 4 of the CAN transceiver U1 are respectively connected to the main microcontroller for sending and receiving serial port command information, and a filter capacitor C11 is connected in series to pin 1 of the CAN transceiver U1, and a filter capacitor C19 is connected in series to pin 4 of the CAN transceiver U1.
8. A master-slave control dot matrix screen according to claim 1, Features: The load system includes a line scanning chip driving module and an LED load module. The line scanning chip driving module includes two linear line scanning chips U8. The linear line scanning chip U8 model is MAX25630. Pins 3, 4, 8, and 9 of the linear line scanning chip U8 are used to power the high side of the channel. Pins 41-43, 20-39, and 16-18 of the linear line scanning chip U8 are used to power the low side of the chip. Pins 1 and 47 of the linear line scanning chip U8 are respectively connected to the single-chip microcomputer processing module to receive and read and write serial port instructions.
9. A master-slave control dot matrix screen according to claim 8, Features: The LED load module includes two LED drivers, the LED driver model is MAX25630, the two LED drivers respectively control the low side and the high side of the LED, and the two drivers are respectively connected to the BUCK constant voltage power supply module through the linear scanning chip U8.
10. A driving method for a master-slave control dot matrix screen, It is characterized in that The following steps are involved: S1. The system basic power chip U2 has a built-in watchdog and an internal integrated LDO to power the MCU. It can wake up the vehicle body from sleep mode and control the static current. The system basic power chip U2 generates a synchronous clock and uses multiple I / Os to output display data in parallel. It sends display data to the main microcontroller according to the data clock edge. S2, the main MCU communicates with the vehicle body CANFD, receives and processes the vehicle body message, sends instructions to the line scanning chip driver module to control the grayscale and pixels of half of the LEDs, and receives the message information sent by the main MCU from the MCU and also sends instructions to the line scanning chip driver module to control the grayscale and pixels of half of the LEDs; S3, linear scanning chip U8 receives and reads and writes serial port commands to control the on and off and grayscale of a single LED.
