Control module
By integrating the power input and CAN bus differential signal pins into the control module and incorporating a built-in power management module, the problems of communication packet loss and interface inconsistencies caused by power ripple in existing technologies are solved. This achieves system stability and reliability, simplifies wiring, and improves the overall adaptability and reliability of operation.
Patent Information
- Application Number
- CN202522758305.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-25
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2035-12-25
AI Technical Summary
In existing industrial automation control, smart home and vehicle electronic systems, the control modules of the distributed architecture are prone to communication packet loss due to power ripple, and the inconsistent interface definitions make installation cumbersome and error-prone.
Design a control module that integrates the power input and CAN bus differential signal pins on the same physical interface, incorporates a power management module for voltage conversion to generate a stable power supply voltage, and manages the operating state of the CAN bus transceiver through mode control signals.
This system achieves unified interface, reduces interconnection complexity and wiring error risk, and improves system reliability, adaptability and long-term operational stability.
Smart Images

Figure CN224985755U_ABST
Abstract
Description
Technical Field
[0001] This utility model relates to the field of control circuit technology, and in particular to a control module. Background Technology
[0002] In industrial automation control, smart home, or automotive electronic systems, a distributed architecture is typically employed. Various functional modules (such as sensor nodes and actuator nodes) are distributed across different locations, exchanging data via a bus. The Controller Area Network (CAN) bus is widely used due to its long transmission distance and strong anti-interference capabilities.
[0003] Currently, traditional connection solutions often involve separate registration of power and communication cables, with inconsistent interface definitions, leading to cumbersome on-site installation and susceptibility to power ripple, which can easily cause packet loss during communication. Utility Model Content
[0004] This utility model provides a control module to reduce the complexity of interconnection and the risk of wiring errors, and to improve the reliability, adaptability and long-term operational stability of the integration.
[0005] A control module, comprising: Main controller; An integrated interface, wherein the integrated interface has at least a power input pin and a CAN bus differential signal pin; The power management module has its input terminal connected to the power input pin and is used to convert the amplitude of the power supply voltage to generate a first power supply voltage and a second power supply voltage. The second power supply voltage is obtained based on the first power supply voltage and is output to the main controller. The CAN bus transceiver is powered by the first supply voltage, its differential signal terminal is connected to the CAN bus differential signal pin, and its signal terminal is connected to the communication terminal of the main controller. At least one control pin of the main controller also outputs a mode control signal to the mode control pin of the CAN bus transceiver.
[0006] In one embodiment, the power management module includes: a buck unit and a low-dropout linear regulator unit cascaded in sequence, wherein: The step-down unit is connected to the power input pin and is used to convert the power supply voltage into the first supply voltage and output it to the power supply terminal of the CAN bus transceiver. The low-dropout linear regulator unit is coupled to the buck unit and the main controller respectively, and is used to convert the first supply voltage to obtain the second supply voltage and output it to the main controller; wherein the establishment of the first supply voltage precedes or is synchronized with the establishment of the second supply voltage.
[0007] In one embodiment, the step-down unit includes: A power conversion chip, the input port of which is connected to the power input pin; An input filtering module is disposed between the power input pin and ground, and connected to the input port; the input filtering module includes a first capacitor, a second capacitor, and a third capacitor connected in parallel; An energy storage module includes a first energy storage inductor, a first end of which is connected to the power switch output port of the power conversion chip, and a second end of which serves as the voltage output terminal of the step-down unit to provide the first power supply voltage. An output filtering module is connected between the voltage output terminal and ground. The output filtering module includes a fourth capacitor, a fifth capacitor, and a sixth capacitor connected in parallel. The first feedback module includes a voltage divider network formed by a first resistor and a second resistor connected in series. The first end of the first resistor is connected to the voltage output terminal, the second end of the first resistor is connected to the first end of the second resistor, the second end of the second resistor is grounded, and the common connection point of the first resistor and the second resistor is connected to the feedback port of the power conversion chip. The bootstrap module includes a seventh capacitor connected between the bootstrap port of the power conversion chip and the power switch output port.
[0008] In one embodiment, the step-down unit includes: The power circuit includes an upper switch and a lower switch connected in series between the power input pin and ground, a second energy storage inductor coupled to the connection node of the upper switch and the lower switch, and an output capacitor and an output resistor connected between the output terminal of the second energy storage inductor and ground, for outputting the first power supply voltage. The feedback circuit, coupled to the power circuit, includes: The feedback branch includes a third resistor and a fourth resistor disposed between the output terminal of the second energy storage inductor and ground to sample the first supply voltage to generate a feedback voltage; An error amplifier is used to compare the feedback voltage with a reference voltage to generate an error voltage; A voltage detection module is used to detect the current signal corresponding to the first terminal of the second energy storage inductor and convert it into a detection voltage; The pulse width modulation generation module generates a switching control signal for driving the upper and lower switching transistors based on the error voltage and the detection voltage. A transient response module is disposed between the pulse width modulation generation module and the error amplifier. The transient response module is configured to: monitor the dynamic change of the feedback voltage, and when the rate of change or instantaneous value of the feedback voltage exceeds a preset transient threshold, generate a transient intervention signal to the pulse width modulation generation module.
[0009] In one embodiment, the voltage detection module includes: a voltage sampler, a voltage-to-current converter, and a conversion resistor, wherein a first terminal of the voltage sampler is coupled to a first terminal of the second energy storage inductor, and a second terminal of the voltage sampler is coupled to a first terminal of the voltage-to-current converter; the second terminal of the voltage-to-current converter is coupled to a first terminal of the conversion resistor and the pulse width modulation generation module, respectively; and the second terminal of the conversion resistor is grounded. The pulse width modulation generation module includes: a clock source for providing a fixed frequency clock signal to initiate each switching cycle; a ramp compensation module for providing a ramp compensation signal; a comparator for comparing the detection voltage superimposed with the ramp compensation signal with the error voltage, and outputting a turn-off signal when the two are equal; a latch unit coupled to the output of the comparator, configured to generate a latch signal based on the turn-off signal and the clock signal; and a drive unit coupled to the output of the latch unit, configured to output the switching control signal to the upper switching transistor and the lower switching transistor based on the latch signal. The transient response module includes: a transient detection unit for monitoring the feedback voltage and determining whether it exceeds a voltage window defined by an upper threshold and a lower threshold; and a transient response control unit for generating the transient intervention signal in response to the output of the transient detection unit when a transient event is detected.
[0010] In one embodiment, the control module satisfies one or more of the following: The CAN bus transceiver also includes a termination matching resistor, the two ends of which are respectively connected to the differential signal output terminal of the CAN bus transceiver; The integrated interface is a four-pin interface, and its pin arrangement is defined as follows: pin 1 is ground, pin 2 is CAN low, pin 3 is CAN high, and pin 4 is high voltage power input. The low-dropout linear regulator unit is a low-dropout linear regulator; The control module further includes a debugging interface, which is connected to the debugging pins and DC voltage output terminal of the main controller.
[0011] In one embodiment, the main controller includes a microprocessor with integrated drive control logic; The control module also includes: A digital tube display module includes at least one digital tube. Each segment selection pin of the digital tube is electrically connected to the first set of general-purpose input / output ports of the microprocessor through a corresponding current-limiting resistor. Each digit selection pin of the digital tube is electrically connected to the second set of general-purpose input / output ports of the microprocessor. A key input module, the output of which is electrically connected to the third set of general-purpose input / output ports of the microprocessor.
[0012] In one embodiment, the control module further includes: The communication and debugging interface module includes a UART interface and an SWD interface. The transmitting and receiving ends of the UART interface are respectively connected to the UART pins of the main controller for communication with the lower-level motor drive board. The SWD interface is connected to the SWD signal pins of the main controller for program burning and debugging.
[0013] In one embodiment, the digital tube display module satisfies one or more of the following: The digital tube display module adopts a dynamic scanning drive connection method. The four digit selection common terminals of the digital tube display module are independently connected to the GPIO pins of the main controller to realize the digit lighting display. A switch driving circuit is provided between the digit selection pin of the digital tube display module and the main controller. The switch driving circuit includes a transistor. The general-purpose input / output pin of the microprocessor controls the lighting and turning off of the corresponding digit digital tube by controlling the on and off of the switch driving circuit.
[0014] In one embodiment, the control module satisfies one or more of the following: A current-limiting resistor is connected in series in the segment selection signal circuit and / or digit selection signal circuit of the digital tube display module; The external clock input pin of the main controller is coupled to a clock circuit, which includes an external crystal oscillator. A button connector provides two button signals: a first button signal connected to the first button input pin of the microprocessor, and a second button signal connected to the second button input pin of the microprocessor.
[0015] By integrating the power input and CAN bus differential signal pins into the same physical interface, the physical unification and simplification of external connectors are achieved, thereby reducing the complexity of system interconnection and the risk of wiring errors. Furthermore, the built-in power management module converts and regulates the input voltage, generating a stable first supply voltage and a derived second supply voltage, providing independent and precise power supplies for the CAN bus transceiver and the main controller, respectively, thus ensuring the operating voltage stability of core components under fluctuating input conditions. Finally, with a stable power supply, the main controller can dynamically manage the operating state of the CAN bus transceiver through mode control signals. This enables the entire system to achieve reliable and interference-resistant communication and control based on a unified interface, power isolation, and stable hardware foundation, thereby significantly improving the reliability, adaptability, and long-term operational stability of the integration. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of this utility model or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this utility model. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1 This is a schematic diagram of the structure of the first control module in the embodiments of this utility model; Figure 2 This is a schematic diagram of the structure of an integrated interface in an embodiment of the present utility model; Figure 3 This is a schematic diagram of the structure of the first step-down unit in the embodiments of this utility model; Figure 4 This is a schematic diagram of the structure of the second type of step-down unit in this embodiment of the present invention; Figure 5 This is a schematic diagram of the structure of a CAN bus transceiver in an embodiment of the present invention; Figure 6 This is a schematic diagram of the structure of the second control module in the embodiments of this utility model. Detailed Implementation
[0018] The following detailed description of preferred embodiments represents the preferred mode for implementing this invention. This description is not intended to be limiting; it is provided to illustrate the general principles of the invention.
[0019] It should be understood that, for ease of understanding of this utility model, the terms "installation," "connection," "coupling," and "installation" in the following description refer to the connection relationships shown in the drawings. For example, "connection" can refer to a permanent connection or a detachable connection. Furthermore, "connection" can also refer to a direct connection or an indirect connection, or a connection via other auxiliary components. Therefore, the above terms should not be construed as limiting the actual connections of the various elements of this utility model.
[0020] It should be understood that the terms "length," "width," "top," "bottom," "front," "rear," "left," "right," "vertical," "horizontal," "upper," "lower," "external," and "internal" refer to the orientation or positioning relationship in the accompanying drawings to facilitate understanding of the present invention, and do not limit the actual position or orientation of the present invention. Therefore, the above terms should not be construed as limiting the actual position of the components of the present invention.
[0021] It should be understood that the terms "first," "second," "an," "a," and "one" in the following description refer to "at least one" or "one or more" in the embodiments. In particular, the term "a" may refer to "one" in one embodiment and "more than one" in another embodiment. Therefore, the above terms should not be construed as limiting the actual number of elements of the present invention.
[0022] To facilitate understanding of this utility model, a more complete description will be given below with reference to the accompanying drawings. Preferred embodiments of this utility model are shown in the drawings. However, this utility model can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the disclosure of this utility model.
[0023] refer to Figure 1 This utility model discloses a structural schematic diagram of a first type of control module, which may include: Main controller 110; An integrated interface 120, which has at least a power input pin 122 and a CAN bus differential signal pin 124; The power management module 130 has its input terminal connected to the power input pin 122 and is used to convert the amplitude of the power supply voltage VDD to generate a first power supply voltage V1 and a second power supply voltage V2. The second power supply voltage V2 is obtained based on the first power supply voltage V1 and is output to the main controller 110. The CAN bus transceiver 140 is powered by the first supply voltage V1, its differential signal terminal is connected to the CAN bus differential signal pin 124, and its signal terminal is connected to the communication terminal of the main controller 110. At least one control pin of the main controller 110 also outputs a mode control signal to the mode control pin of the CAN bus transceiver.
[0024] Specifically, in this embodiment, the integrated interface 120 integrates both the power input pin 122 and the CAN bus differential signal pin 124, so that while power is supplied, the CAN bus differential signal pin 124 can be enabled to achieve signal flow.
[0025] More specifically, an external power supply voltage VDD is input to the power input pin 122. On the one hand, the power supply voltage VDD is directly applied to the power input pin 122; on the other hand, the power management module 130 converts the power supply voltage VDD into a first supply voltage V1, and then converts the first supply voltage V1 into a second supply voltage V2. The first supply voltage V1 is greater than the second supply voltage V2.
[0026] The first power supply voltage V1 is output to the CAN bus transceiver 140 to enable the CAN bus transceiver; the second power supply voltage V2 is output to the main controller 110, which can communicate with the CAN bus transceiver 140 through the control pin, thereby realizing the output of the mode control signal to the CAN bus transceiver 140.
[0027] Thus, based on the mode control signal, at least the following can be achieved: When the system is powered on, it starts up after the main controller 110 stabilizes and initially configures the CAN bus transceiver 140 to silent mode via the control pin.
[0028] After the main controller 110 completes its own initialization, it controls the CAN bus transceiver 140 to switch to normal working mode via the control pin.
[0029] By integrating the power input and CAN bus differential signal pins into the same physical interface, the physical unification and simplification of external connectors are achieved, thereby reducing the complexity of system interconnection and the risk of wiring errors. Furthermore, the built-in power management module converts and regulates the input voltage, generating a stable first supply voltage and a derived second supply voltage, providing independent and precise power supplies to the CAN bus transceiver and the main controller, respectively, thus ensuring the operating voltage stability of core components under fluctuating input conditions. Finally, with a stable power supply, the main controller can dynamically manage the operating state of the CAN bus transceiver through mode control signals. This enables the entire system to achieve reliable and interference-resistant communication and control based on a unified interface, power isolation, and stable hardware foundation, significantly improving the reliability, adaptability, and long-term operational stability of the integrated system.
[0030] In this embodiment, the main controller can be a microprocessor MCU, such as the STM32 series microprocessor.
[0031] In addition, the main controller is equipped with an external crystal oscillator and a start-up capacitor to provide the main controller with a precise high-speed external clock and improve the accuracy of the CAN communication baud rate.
[0032] Optionally, a hardware reset circuit consisting of buttons and capacitors can be provided to support automatic power-on reset and manual forced reset.
[0033] It should be noted that the main controller can use general-purpose computer equipment for data communication and data processing, and the embodiments in this disclosure do not involve any improvement to the specific working method of the computer equipment. The process of the computer equipment acquiring and processing data can be implemented using existing solutions or conventional technical means in the art.
[0034] In this embodiment, see Figure 2 The diagram shown is a structural schematic of an integrated interface in an embodiment of this utility model. Figure 2 As shown, the integrated interface 120 is a four-pin interface, and its pin arrangement is defined as follows: pin 1 (Pin1) is ground (GND), pin 2 (Pin2) is CAN low (e.g., CANL), pin 3 (Pin3) is CAN high (e.g., CANH), and pin 4 (Pin4) is high voltage power input (e.g., +24V).
[0035] This design allows for the simultaneous solution of power supply and communication issues through a single cable, facilitating network setup.
[0036] In some embodiments, the control module further includes a debugging interface, which is connected to the debugging pins and DC voltage output terminal of the main controller.
[0037] In this way, by reserving the SWD debugging interface, it is easy to bring out SWDIO, SWCLK, 3V3 and GND for program download and simulation.
[0038] In this embodiment, see Figure 1 The power management module 130 may include: a step-down unit 132 and a low-dropout linear regulator unit 134 cascaded together, wherein: The step-down unit 132 is connected to the power input pin 122 and is used to convert the power supply voltage VDD into the first power supply voltage V1 and output it to the power supply terminal of the CAN bus transceiver 140; the low dropout linear regulator unit 134 is coupled to the step-down unit 132 and the main controller 110 respectively, and is used to convert the first power supply voltage V1 to obtain the second power supply voltage V2 and output it to the main controller 110; wherein, the establishment of the first power supply voltage V1 precedes or is synchronized with the establishment of the second power supply voltage V2.
[0039] In this way, through a two-stage response, the power supply voltage VDD is first reduced to the first supply voltage V1 during startup and output to the CAN bus transceiver 140, so that the CAN bus transceiver 140 can enter a standby state in advance to prevent interference to the bus at the moment of power-on.
[0040] Subsequently, the first power supply voltage V1 is converted to the second power supply voltage V2 to wake up the main controller 110.
[0041] When the main controller 110 starts up, it executes a self-test program to check whether the power supply voltage is stable. If normal, the main controller 110 initializes the CAN controller and configures the pins to communication mode, thus completing a smooth transition from physical power-on to logical online operation.
[0042] In one embodiment, +24V is converted to +5V, and then +5V is converted to +3.3V.
[0043] See Figure 3 The schematic diagram of the first step-down unit in this embodiment of the present invention is shown below. Figure 3 As shown, the step-down unit 132 may include: The power conversion chip U1 has its input port VIN connected to the power input pin 122; An input filtering module is disposed between the power input pin 122 and ground GND, and is connected to the input port VIN; the input filtering module includes a first capacitor C1, a second capacitor C2, and a third capacitor C3 connected in parallel; The energy storage module includes a first energy storage inductor L1. The first end of the first energy storage inductor L1 is connected to the power switch output port BOOT of the power conversion chip. The second end of the first energy storage inductor L1 serves as the voltage output terminal of the step-down unit 132, which is used to provide the first power supply voltage V1. An output filtering module is connected between the voltage output terminal and ground. The output filtering module includes a fourth capacitor C4, a fifth capacitor C5, and a sixth capacitor C6 connected in parallel. The first feedback module includes a voltage divider network formed by a first resistor R1 and a second resistor R2 connected in series. The first end of the first resistor R1 is connected to the voltage output terminal, the second end of the first resistor R1 is connected to the first end of the second resistor R2, the second end of the second resistor R2 is grounded, and the common connection point of the first resistor and the second resistor is connected to the feedback port FB of the power conversion chip U1. The bootstrap module includes a seventh capacitor C7, which is connected between the bootstrap port SW of the power conversion chip U1 and the power switch output port BOOT.
[0044] Specifically, the step-down unit 132 serves to reduce voltage during the switching on phase: When the MOSFET inside the power conversion chip U1 is turned on, the current path is: VDD (+24V) → first energy storage inductor L1 → output terminal (+5V) → load → ground (GND). At this time, electrical energy is delivered from the input terminal to the load, and at the same time, some energy is stored in the first energy storage inductor L1 (the inductor current increases).
[0045] Switch off phase: When the MOSFET inside the power conversion chip U1 is turned off, the current in the first energy storage inductor L1 cannot change abruptly, so the first energy storage inductor L1 generates a back electromotive force to maintain the current. At this time, a loop is formed: first energy storage inductor L1 → load → ground. That is, the magnetic energy previously stored in the first energy storage inductor L1 is converted into electrical energy to continue supplying power to the load.
[0046] Among them, the first energy storage inductor L1 is a key component for energy storage and current smoothing. It stores energy when the switch is turned on and releases energy when the switch is turned off, smoothing the intermittent switching current into a relatively continuous output current, playing a core role in filtering and voltage reduction.
[0047] To ensure that the output voltage is accurately stabilized at 5V, the circuit samples a voltage from the output terminal (+5V) through a voltage divider network formed by the first resistor R1 and the second resistor R2 connected in series.
[0048] This sampled voltage is fed back to the FB port of the power converter chip U1. The control circuitry inside the power converter chip U1 (such as the error amplifier and PWM controller) continuously compares this feedback voltage with a precise internal reference voltage (e.g., 0.8V).
[0049] If the output voltage deviates from 5V due to load changes, the feedback voltage will also change. The chip will automatically adjust the duty cycle of its internal switches (i.e., the ratio of on to off time) to adjust the energy transferred to the output, ultimately pulling the output voltage back precisely and locking it at 5V.
[0050] In other words, the step-down unit 132 can achieve stable voltage reduction and is particularly suitable for applications with large input / output voltage differences (such as 24V to 5V), which can significantly reduce energy loss and heat generation.
[0051] In some embodiments, see next. Figure 3 The first feedback module may also include an eighth capacitor C8 connected in parallel with the first resistor R1.
[0052] See Figure 4 The schematic diagram of the second type of step-down unit in this embodiment of the present invention is shown below. Figure 4 As shown, the step-down unit 132 may include: The power circuit includes an upper switch MP and a lower switch MN connected in series between the power input pin and ground, a second energy storage inductor L2 coupled to the connection node of the upper switch MP and the lower switch MN, and an output capacitor C9 and an output resistor R3 connected between the output terminal of the second energy storage inductor L2 and ground, for outputting the first power supply voltage V1.
[0053] The feedback circuit, coupled to the power circuit, includes: The feedback branch includes a third resistor R3 and a fourth resistor R4 disposed between the output terminal of the second energy storage inductor L2 and ground, to sample the first supply voltage V1 to generate a feedback voltage. Error amplifier 410 is used to compare the feedback voltage with the reference voltage Vref to generate an error voltage; A voltage detection module is used to detect the current signal corresponding to the first terminal of the second energy storage inductor L2 and convert it into a detection voltage; The pulse width modulation generation module generates a switching control signal for driving the upper and lower switching transistors based on the error voltage and the detection voltage. A transient response module 450 is disposed between the pulse width modulation generation module and the error amplifier 410. The transient response module 450 is configured to: monitor the dynamic change of the feedback voltage, and when the rate of change or instantaneous value of the feedback voltage is detected to exceed a preset transient threshold, generate a transient intervention signal to the pulse width modulation generation module.
[0054] More specifically, the current sensing module includes: a voltage sampler 422, a voltage-to-current converter 424, and a conversion resistor R. sen Specifically, the first terminal of the voltage sampler 422 is coupled to the first terminal of the second energy storage inductor L2, and the second terminal of the voltage sampler 422 is coupled to the first terminal of the voltage-to-current converter 424; the second terminal of the voltage-to-current converter 424 is coupled to the conversion resistor R. senThe first terminal and the pulse width modulation generation module are respectively coupled; the conversion resistor R sen The second end is grounded.
[0055] In other words, through multi-level conversion, the input voltage V is converted... in Sampled voltages of the same type are converted through a switching resistor R. sen This is converted into a second sampling voltage V that the pulse width modulation generation module can recognize. sen .
[0056] The pulse width modulation generation module includes: A clock source is used to provide a fixed-frequency clock signal Clock to start each switching cycle; a ramp compensation module is used to provide a ramp compensation signal; a comparator 432 is used to compare the detected voltage superimposed with the ramp compensation signal with the error voltage, and output a turn-off signal when the two are equal; a latch unit is coupled to the output of the comparator 432 and is configured to generate a latch signal according to the turn-off signal and the clock signal Clock; a drive unit 434 is coupled to the output of the latch unit and is configured to output the switching control signal to the upper switch MP and the lower switch MN according to the latch signal.
[0057] The latch unit includes an RS latch, the S terminal of which is coupled to the output terminal of the comparator 432, the R terminal of which is used to input the clock signal, and the Q terminal of which is coupled to the drive unit 434.
[0058] The working mechanism of the RS latch is as follows: when R=1 and S=0, the output Q=0, indicating that the flip-flop is reset; when R=0 and S=1, the output Q=1, indicating that the flip-flop is set; when R=0 and S=0, the output Q remains unchanged, indicating that the flip-flop retains the previous state.
[0059] Therefore, by changing the state of the S terminal, the state of the RS latch can be switched.
[0060] In some embodiments, if the upper switch MP and the lower switch MN are both turned on, a shoot-through phenomenon will occur, that is, a direct short circuit between the power supply and ground, resulting in a large current, which may damage the switching device or the power supply.
[0061] Based on this, see next. Figure 4 The voltage conversion system may further include: a delay circuit 436, coupled between the latch unit and the drive unit 434, configured to delay the latch signal so that when the switch control signal is output to one of the upper switch transistor MP or the lower switch transistor MN, the other is in an off state.
[0062] In other words, the no-signal time (i.e., dead time) inserted between any two drive signals ensures that the first conversion branch and the second conversion branch will not be turned on simultaneously.
[0063] In some embodiments, the delay circuit 436 can be implemented in the form of RC delay and logic gates.
[0064] In some embodiments, the delay circuit 436 may also be implemented as a dedicated dead-time chip or a digital controller (MCU / FPGA).
[0065] In some embodiments, the transient response module includes: a transient detection unit 442 for monitoring the feedback voltage and determining whether it exceeds a voltage window defined by an upper threshold (VH) and a lower threshold (VL); and a transient response control unit 444 for generating the transient intervention signal in response to the output of the transient detection unit when a transient event is detected.
[0066] Among them, the transient detection unit 442 is a device that supports peak current mode detection, and the transient response control unit 444 can be a multiplexer.
[0067] In some embodiments, see Figure 5 The diagram shown is a structural schematic of a CAN bus transceiver. Figure 5 As shown, the CAN bus transceiver 140 receives digital signals sent by the main controller 100 via CAN_TX1 and converts them into differential voltage signals on the CAN_H and CAN_L lines.
[0068] Meanwhile, the CAN bus transceiver 140 converts the differential signals on the bus into digital signals on the CAN_RX4 pin and sends them back to the main controller 110.
[0069] In some embodiments, V1 powers the CAN bus transceiver 140 through a protection resistor R7, and also powers the CAN bus transceiver 140 directly.
[0070] Furthermore, by setting a filter capacitor C10 to filter out power supply noise, the stable operating performance of the CAN bus transceiver 140 is ensured.
[0071] In some embodiments, the CAN bus transceiver 140 further includes a terminating resistor R6, the two ends of which are respectively connected to the differential signal output terminals of the CAN bus transceiver.
[0072] For example, the terminating matching resistor R6 is coupled between CANH and CANL to eliminate signal reflections and ensure signal integrity.
[0073] In some embodiments, the CAN bus transceiver 140 is connected to the integrated interface 120 and supplies power to the entire device through the power supply voltage VDD introduced by the integrated interface 120.
[0074] In some embodiments, the low-dropout linear regulator unit is a low-dropout linear regulator (LDO). The LDO has low ripple characteristics and can filter out high-frequency noise generated by the first-stage switching power supply, providing a stable logic power supply to the main controller.
[0075] In some embodiments, the control module further includes a debugging interface, which is connected to the debugging pins and DC voltage output terminal of the main controller.
[0076] In other words, using the control module in the example above, a two-stage power management system is employed. To balance high efficiency and low noise, this circuit is designed with a two-stage power architecture of "Switching Regulator + LDO". The first-stage power architecture is used to convert +24V DC to +5V, and the second-stage power architecture is used to convert +5V DC to +3.3V.
[0077] The main controller uses STM32F103CXTX as the core processor.
[0078] The CAN bus transceiver uses the SIT1051T chip to convert the TTL logic levels (CAN_TX / RX) of the main controller into differential signals (CANH / CANL). The CAN bus transceiver is powered by a first-stage power supply (+5V).
[0079] In addition, an SH1.0-4P standard interface was designed, which integrates the power input (+24V / GND) and communication signals (CANH / CANL) into the same connector.
[0080] This circuit is not a simple signal pass-through, but rather achieves intelligent coordination between power supply, communication and peripheral interfaces through the scheduling of the main controller.
[0081] The specific logic is as follows: Power-on startup and timing coordination logic Hardware compatibility: When the system is powered on, a 24V power supply is connected through the integrated interface.
[0082] Collaborative process: First-level response: The TPS54302 starts first, reducing the high voltage to 5V. At this time, the CAN bus transceiver receives power, and the bus enters a standby (recessive) state to prevent interference to the bus at the moment of power-on.
[0083] Second-level response: The SPX3819 then establishes a 3.3V voltage to wake up the main controller.
[0084] Software reset logic: After the main controller starts up, it first executes a self-test program to check whether the power supply voltage is stable. If normal, the main controller initializes the CAN controller and configures the pins to communication mode, thus completing a smooth transition from physical power-on to logical online operation.
[0085] CAN bus transceiver bus communication and command parsing process This is the core working logic of this node, involving close cooperation between the CAN bus transceiver and the main controller: Downlink control flow (receiving instructions): Signal conditioning: When a data packet arrives on the bus, the CAN bus transceiver converts the differential level (CANH / CANL) to the TTL level (RXD) and transmits it to the CAN_RX pin of the main controller.
[0086] ID Filtering and Resolution: The CAN controller hardware filter inside the main controller filters message IDs. The interrupt service routine will only be triggered when the ID matches the local address (or broadcast address).
[0087] Action execution: The main controller parses the data packet content and then controls the corresponding GPIO pin level to drive the peripherals connected to the P3 / P4 interface.
[0088] Uplink feedback process (sending status): Status acquisition: The main controller periodically acquires the status of the P3 / P4 interface or reads sensor values.
[0089] Message Packetization: The main controller packages the data into frame formats that conform to the CAN2.0B protocol.
[0090] Physical transmission: Data is sent to the CAN bus transceiver via the CAN_TX pin, and the CAN bus transceiver converts it into differential signals to drive the bus. If a bus arbitration conflict occurs, the master controller will automatically execute non-destructive arbitration logic and retransmit after a delay.
[0091] Button interaction and configuration logic Hardware setup: Button K1 is connected to the PD0 / PD1 pins of the main controller (specific details depend on the code definition).
[0092] Collaborative work: Mode 1 (Address Setting): Press and hold K1 to power on, and the main controller enters configuration mode. At this time, it receives specific CAN messages through the integrated interface to modify the CAN ID of this node, and writes the new ID to the Flash storage area of the main controller, realizing configuration without removing the shell.
[0093] Mode 2 (Local Reset / Test): When running, a short press of K1 will send a heartbeat packet or test message to the bus, which can be used by installers to quickly verify whether the node is online.
[0094] In practical applications, the inventors further discovered that in applications such as smart home appliances, measuring instruments, or industrial counters, a human-machine interface (HMI) is usually required to display values (such as time, power consumption, and count values) and receive signals from external sensors.
[0095] Existing solutions have several drawbacks: they typically use low-end MCUs paired with dedicated digital tube driver chips (such as the TM1637), increasing BOM costs and PCB layout area. Directly using a low-end MCU (such as an 8-bit machine) to scan the digital tube consumes significant CPU resources, leading to display flickering or data loss when processing high-speed external signals (such as serial communication or sensor pulses). Furthermore, many simple display modules lack universal communication interfaces, making them difficult to integrate into complex control systems and resulting in poor scalability.
[0096] Based on this, the invention proposes an integrated human-computer interaction control circuit.
[0097] Specifically, the main controller includes a microprocessor with integrated drive control logic; Accordingly, see Figure 6 The schematic diagram of the second type of control module of this utility model shown herein further includes: The digital tube display module 620 includes at least one digital tube 621. Each segment selection pin of the digital tube is electrically connected to the first group of general-purpose input / output ports GPIO1 of the microprocessor 610 through a corresponding current-limiting resistor 622. Each digit selection pin of the digital tube 621 is electrically connected to the second group of general-purpose input / output ports GPIO2 of the microprocessor 610. The key input module 630 is electrically connected to the third set of general purpose input / output ports GPIO3 of the microprocessor 610.
[0098] Specifically, the key input module 630 serves as an input. When a key is pressed, it changes the level of the third general-purpose input / output port GPIO3 connected to the microprocessor 610. The microprocessor 610 continuously monitors this port, and after confirming the key action through debouncing, it updates the internal data (such as the count value) that needs to be displayed.
[0099] Next, the digital tube display module 620 starts working as an output: the microprocessor 610 outputs segment code signals to control the on / off state of each segment through the first set of general purpose input / output ports GPIO1 and the current limiting resistor 622, and sequentially selects the corresponding digit selection pins of the digital tube through the second set of general purpose input / output ports GPIO.
[0100] The MCU executes this output segment code-strobe process at an extremely fast speed, utilizing the persistence of vision in the human eye to make multiple digital tubes appear to simultaneously and stably display the information updated by the button operation.
[0101] In some embodiments, the control module further includes: The communication and debugging interface module includes a UART interface and an SWD interface. The transmitting and receiving ends of the UART interface are respectively connected to the UART pins of the main controller for communication with the lower-level motor drive board. The SWD interface is connected to the SWD signal pins of the main controller for program burning and debugging.
[0102] In some embodiments, the digital tube display module satisfies one or more of the following: The digital tube display module adopts a dynamic scanning drive connection method. The four digit selection common terminals of the digital tube display module are independently connected to the GPIO pins of the main controller to realize the digit lighting display.
[0103] A switch driving circuit is provided between the digit selection pin of the digital tube display module and the main controller. The switch driving circuit includes a transistor. The general-purpose input / output pin of the microprocessor controls the lighting and turning off of the corresponding digit digital tube by controlling the on and off of the switch driving circuit.
[0104] In some embodiments, the control module satisfies one or more of the following: A current-limiting resistor is connected in series in the segment selection signal circuit and / or digit selection signal circuit of the digital tube display module.
[0105] The external clock input pin of the main controller is coupled to a clock circuit, which includes an external crystal oscillator.
[0106] A button connector provides two button signals: a first button signal connected to the first button input pin of the microprocessor, and a second button signal connected to the second button input pin of the microprocessor.
[0107] More specifically, the control module in the second embodiment mainly consists of a core control unit, a digital tube display module, a key input module, and a communication interface.
[0108] Hardware architecture and module composition The core control unit includes: a main control chip, which uses an STM32F401CCU6, and is responsible for the logic control of the entire system, dynamic scanning display of the digital tube, key debouncing processing, and communication with the lower-level machine (motor driver board).
[0109] Clock system: An 8MHz external crystal oscillator is connected to the PH0 / PH1 pins. After frequency multiplication by an internal phase-locked loop, a high-speed clock is provided to the system to ensure that the digital tube scanning does not flicker.
[0110] The digital display module includes a 4-digit 7-segment common anode / common cathode LED display driven by direct scanning.
[0111] Segment selection control: The ag and dp segment pins of the digital tube are directly connected to the GPIO ports of the microprocessor (such as PB0-PB7).
[0112] Digit selection control: The four common terminals of the digital tube (DIG1, DIG2, DIG3 and DIG4) are connected to the microprocessor's PA8, PA9, PA10 and PA11 pins.
[0113] Current limiting design: A small resistor (e.g., 22Ω) is connected in series in the segment selection or digit selection circuit to limit the current flowing through the LED, preventing the microprocessor port from burning out, while eliminating the need for expensive dedicated LED driver chips.
[0114] Working principle: The microprocessor uses a dynamic scanning algorithm to alternately light up DIG1~DIG4 at a frequency higher than 60Hz. Utilizing the persistence of vision effect of the human eye, it achieves the visual effect of displaying 4 digits simultaneously. It can display a countdown timer (e.g., 1:30), battery level (100%), or gear position (L-3).
[0115] Interactive input module Interface definition: The button signal is brought out through a connector (e.g., XH2.54-6A).
[0116] Signal logic: S1, S2: Two independent button signals are connected to PA0 and PA1 of the microprocessor respectively.
[0117] Function: S1 can be defined as "mode switching / setting", and S2 can be defined as "confirmation / start / stop".
[0118] Circuit design: In conjunction with internal pull-up / pull-down resistors or external circuitry, high and low level trigger detection is achieved.
[0119] Communication and debugging interface UART communication: UART1_TX (PA9) and UART1_RX (PA10) are introduced.
[0120] Function: Used to connect to the motor drive board. This circuit board acts as a "control panel," sending commands (such as "start water pump" and "set power") to the motor board, and receiving status information (such as "battery voltage" and "motor stall") from the motor board and displaying it on the digital display.
[0121] SWD Debugging: SYS_SWDIO and SYS_SWCLK are brought out for program burning and simulation.
[0122] Software Collaboration Logic Display refresh mechanism: Set a timer interrupt (e.g., trigger every 2ms). In the interrupt service function, pull the pins of DIG1~DIG4 high / low in sequence and output the corresponding segment code data synchronously.
[0123] State machine management: Standby mode: The digital tube is turned off or only displays the time, and the system enters low power consumption mode.
[0124] Operating mode: When the S1 / S2 button on the P1 interface is pressed, the system is woken up, a power-on command is sent via UART, and the digital tube starts a countdown to display the working time.
[0125] Fault mode: If an "overcurrent" signal is received from the motor board via UART, the microprocessor immediately controls the digital tube to flash the fault code (such as Err1).
[0126] In this way, at least the following effects can be achieved: Visual interactive experience: Compared with traditional LED indicator lights, the 4-digit digital tube design in this solution can accurately reflect numerical information, greatly enhancing the product's technological feel and user experience.
[0127] Low cost and high integration: It abandons the dedicated digital tube driver chip (such as TM1637) and directly uses the rich GPIO resources and powerful driving capabilities of STM32F4 for direct drive, which reduces BOM cost and PCB area.
[0128] Modular decoupling design: The "human-machine interaction logic" and "high-power drive logic" are physically separated (this circuit only processes low-voltage signals and controls the high-voltage board through UART), which improves the system's anti-interference capability and maintenance convenience.
[0129] 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.
[0130] 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 control module, characterized in that, include: Main controller; An integrated interface, wherein the integrated interface has at least a power input pin and a CAN bus differential signal pin; The power management module has its input terminal connected to the power input pin and is used to convert the amplitude of the power supply voltage to generate a first power supply voltage and a second power supply voltage. The second power supply voltage is obtained based on the first power supply voltage and is output to the main controller. The CAN bus transceiver is powered by the first supply voltage, its differential signal terminal is connected to the CAN bus differential signal pin, and its signal terminal is connected to the communication terminal of the main controller. At least one control pin of the main controller also outputs a mode control signal to the mode control pin of the CAN bus transceiver.
2. The control module according to claim 1, characterized in that, The power management module includes: a step-down unit and a low-dropout linear regulator unit cascaded together, wherein: The step-down unit is connected to the power input pin and is used to convert the power supply voltage into the first supply voltage and output it to the power supply terminal of the CAN bus transceiver. The low-dropout linear regulator unit is coupled to the buck unit and the main controller respectively, and is used to convert the first supply voltage to obtain the second supply voltage and output it to the main controller; wherein the establishment of the first supply voltage precedes or is synchronized with the establishment of the second supply voltage.
3. The control module according to claim 2, characterized in that, The step-down unit includes: A power conversion chip, the input port of which is connected to the power input pin; An input filtering module is disposed between the power input pin and ground, and connected to the input port; the input filtering module includes a first capacitor, a second capacitor, and a third capacitor connected in parallel; An energy storage module includes a first energy storage inductor, a first end of which is connected to the power switch output port of the power conversion chip, and a second end of which serves as the voltage output terminal of the step-down unit to provide the first power supply voltage. An output filtering module is connected between the voltage output terminal and ground. The output filtering module includes a fourth capacitor, a fifth capacitor, and a sixth capacitor connected in parallel. The first feedback module includes a voltage divider network formed by a first resistor and a second resistor connected in series. The first end of the first resistor is connected to the voltage output terminal, the second end of the first resistor is connected to the first end of the second resistor, the second end of the second resistor is grounded, and the common connection point of the first resistor and the second resistor is connected to the feedback port of the power conversion chip. The bootstrap module includes a seventh capacitor connected between the bootstrap port of the power conversion chip and the power switch output port.
4. The control module according to claim 2, characterized in that, The step-down unit includes: The power circuit includes an upper switch and a lower switch connected in series between the power input pin and ground, a second energy storage inductor coupled to the connection node of the upper switch and the lower switch, and an output capacitor and an output resistor connected between the output terminal of the second energy storage inductor and ground, for outputting the first power supply voltage. The feedback circuit, coupled to the power circuit, includes: The feedback branch includes a third resistor and a fourth resistor disposed between the output terminal of the second energy storage inductor and ground to sample the first supply voltage to generate a feedback voltage; An error amplifier is used to compare the feedback voltage with a reference voltage to generate an error voltage; A voltage detection module is used to detect the current signal corresponding to the first terminal of the second energy storage inductor and convert it into a detection voltage; The pulse width modulation generation module generates a switching control signal for driving the upper and lower switching transistors based on the error voltage and the detection voltage. A transient response module is disposed between the pulse width modulation generation module and the error amplifier. The transient response module is configured to: monitor the dynamic change of the feedback voltage, and when the rate of change or instantaneous value of the feedback voltage exceeds a preset transient threshold, generate a transient intervention signal to the pulse width modulation generation module.
5. The control module according to claim 4, characterized in that, The voltage detection module includes: a voltage sampler, a voltage-to-current converter, and a conversion resistor. The first terminal of the voltage sampler is coupled to the first terminal of the second energy storage inductor, and the second terminal of the voltage sampler is coupled to the first terminal of the voltage-to-current converter. The second terminal of the voltage-to-current converter is coupled to the first terminal of the conversion resistor and the pulse width modulation generation module, respectively. The second terminal of the conversion resistor is grounded. The pulse width modulation generation module includes: a clock source for providing a fixed frequency clock signal to initiate each switching cycle; a ramp compensation module for providing a ramp compensation signal; a comparator for comparing the detection voltage superimposed with the ramp compensation signal with the error voltage, and outputting a turn-off signal when the two are equal; a latch unit coupled to the output of the comparator, configured to generate a latch signal based on the turn-off signal and the clock signal; and a drive unit coupled to the output of the latch unit, configured to output the switching control signal to the upper switching transistor and the lower switching transistor based on the latch signal. The transient response module includes: a transient detection unit for monitoring the feedback voltage and determining whether it exceeds a voltage window defined by an upper threshold and a lower threshold; and a transient response control unit for generating the transient intervention signal in response to the output of the transient detection unit when a transient event is detected.
6. The control module according to claim 1, characterized in that, Meet one or more of the following conditions: The CAN bus transceiver also includes a termination matching resistor, the two ends of which are respectively connected to the differential signal output terminal of the CAN bus transceiver; The integrated interface is a four-pin interface, and its pin arrangement is defined as follows: pin 1 is ground, pin 2 is CAN low, pin 3 is CAN high, and pin 4 is high voltage power input. The low-dropout linear regulator unit is a low-dropout linear regulator; The control module further includes a debugging interface, which is connected to the debugging pins and DC voltage output terminal of the main controller.
7. The control module according to claim 1, characterized in that, The main controller includes a microprocessor with integrated drive control logic; The control module also includes: A digital tube display module includes at least one digital tube. Each segment selection pin of the digital tube is electrically connected to the first set of general-purpose input / output ports of the microprocessor through a corresponding current-limiting resistor. Each digit selection pin of the digital tube is electrically connected to the second set of general-purpose input / output ports of the microprocessor. A key input module, the output of which is electrically connected to the third set of general-purpose input / output ports of the microprocessor.
8. The control module according to claim 7, characterized in that, Also includes: The communication and debugging interface module includes a UART interface and an SWD interface. The transmitting and receiving ends of the UART interface are respectively connected to the UART pins of the main controller for communication with the lower-level motor drive board. The SWD interface is connected to the SWD signal pins of the main controller for program burning and debugging.
9. The control module according to claim 7, characterized in that, The digital tube display module satisfies one or more of the following: The digital tube display module adopts a dynamic scanning drive connection method. The four digit selection common terminals of the digital tube display module are independently connected to the GPIO pins of the main controller to realize the digit lighting display. A switch driving circuit is provided between the digit selection pin of the digital tube display module and the main controller. The switch driving circuit includes a transistor. The general-purpose input / output pin of the microprocessor controls the lighting and turning off of the corresponding digit digital tube by controlling the on and off of the switch driving circuit.
10. The control module according to claim 7, characterized in that, Meet one or more of the following conditions: A current-limiting resistor is connected in series in the segment selection signal circuit and / or digit selection signal circuit of the digital tube display module; The external clock input pin of the main controller is coupled to a clock circuit, which includes an external crystal oscillator. A button connector provides two button signals: a first button signal connected to the first button input pin of the microprocessor, and a second button signal connected to the second button input pin of the microprocessor.
