Door opening driving circuit and control method thereof
By configuring the module and the control module to detect the status of the jumper element and configuring the door opening drive circuit to different drive modes, the problem that the existing technology is not compatible with multiple drive modes is solved, and cost reduction and compatibility enhancement are achieved.
Patent Information
- Application Number
- CN202510829417.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-20
- Publication Date
- 2025-10-10
AI Technical Summary
The existing door opening drive circuit is not compatible with the three modes of motor drive, electromagnet drive and anti-snagging motor drive, resulting in high costs.
A door opening drive circuit is designed. The on-off status of the jumper element is detected by the configuration module and the control module, and different drive modes are configured. The corresponding control signal is output to the drive module to achieve compatibility with motor drive, electromagnet drive and anti-hook motor drive.
It achieves compatibility with multiple driving modes, reduces the number of components and lowers costs.
Smart Images

Figure CN120768321A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of control technology, and in particular to a door opening drive circuit and a control method thereof. Background Art
[0002] In the security equipment sector, the safe's door opening drive system is a core component for secure unlocking. Currently, three common safe door opening drive methods are motor drive, electromagnet drive, and anti-snag motor drive. Motor drives require bidirectional power supply for forward and reverse rotation; electromagnet drives require continuous positive power to maintain the closed state; and anti-snag motor drives require not only continuous positive power but also additional data signals to complete the unlocking logic.
[0003] The existing door opening drive circuit cannot be compatible with three drive modes at the same time. Summary of the Invention
[0004] The present invention provides a door opening drive circuit and a control method thereof, which are compatible with multiple drive modes and have low cost.
[0005] In the first aspect, an embodiment of the present invention provides a door opening drive circuit, characterized in that it includes: a configuration module, a control module and a drive module; the configuration module includes a jumper element, and the on-off state of the jumper element is set according to the type of the peripheral to be driven; the control module is respectively connected to the configuration module and the drive module, and the control module is used to detect the on-off state of the jumper element, and configure the door opening drive circuit to the corresponding drive mode according to the on-off state of the jumper element; and is used to output a control signal to the drive module according to the drive mode; the output end of the drive module is connected to the peripheral to be driven, and is used to generate a drive signal according to the control signal, and output the drive signal to the peripheral to be driven.
[0006] Optionally, the control signal includes a first control signal and a second control signal; the driving module includes a first switching unit, a second switching unit and a driving unit; the input end of the first switching unit is connected to the first output end of the control module, the output end of the first switching unit is connected to the first control end of the driving unit, and the first switching unit is used to control the potential of the first control end according to the first control signal; the input end of the second switching unit is connected to the second output end of the control module, the output end of the second switching unit is connected to the second control end of the driving unit, and the second switching unit is used to control the potential of the second control end according to the second control signal; the driving unit is connected in series between the power supply and the reference ground, and is used to output the first driving signal and the second driving signal according to the potential of the first control end and the potential of the second control end.
[0007] Optionally, the driving unit includes a first transistor, a second transistor, a third transistor, a fourth transistor, a first resistor, a second resistor and a first capacitor; the control electrode of the first transistor is connected to the control electrode of the third transistor and serves as a first control end, the first electrode of the first transistor is connected to the power supply, the second electrode of the first transistor, the second electrode of the third transistor and the first end of the first capacitor are connected to the first node, and the first electrode of the third transistor is connected to the reference ground; the control electrode of the second transistor is connected to the control electrode of the fourth transistor and serves as a second control end, the first electrode of the second transistor is connected to the power supply, the second electrode of the second transistor, the second electrode of the fourth transistor and the second end of the first capacitor are connected to the second node, and the first electrode of the fourth transistor is connected to the reference ground; the first end of the first resistor is connected to the reference ground, and the second end of the first resistor is connected to the first control end; the first end of the second resistor is connected to the reference ground, and the second end of the second resistor is connected to the second control end; wherein the first node serves as the first output end of the driving unit, for outputting the first driving signal, and the second node serves as the second output end of the driving unit, for outputting the second driving signal.
[0008] Optionally, the first switching unit includes a third resistor, a second capacitor and a fifth transistor; the first end of the third resistor serves as the input end of the first switching unit, and the second end of the third resistor is connected to the control electrode of the fifth transistor and the first end of the second capacitor; the second end of the second capacitor is grounded; the first electrode of the fifth transistor serves as the output end of the first switching unit, and the second electrode of the fifth transistor is grounded.
[0009] Optionally, the second switching unit includes a fourth resistor, a third capacitor and a sixth transistor; the first end of the fourth resistor serves as the input end of the second switching unit, the second end of the fourth resistor is connected to the control electrode of the sixth transistor and the first end of the third capacitor; the second end of the third capacitor is grounded; the first electrode of the sixth transistor serves as the output end of the second switching unit, and the second electrode of the sixth transistor is grounded.
[0010] Optionally, the configuration module includes a jumper element and a fifth resistor; a first end of the jumper element is connected to the input end of the control module, a second end of the jumper element is connected to the first end of the fifth resistor, and the first end of the fifth resistor is grounded.
[0011] Optionally, the door opening drive circuit further includes at least three interface modules, and the output end of the drive module is connected to the peripheral device to be driven through the corresponding interface module.
[0012] In the second aspect, an embodiment of the present invention provides a control method for a door opening drive circuit, which is applied to the door opening drive circuit provided by any embodiment of the present invention, and the control method includes: setting the on-off state of the jumper element according to the type of the peripheral to be driven; the control module detects the on-off state of the jumper element, and configures the door opening drive circuit to the corresponding drive mode according to the on-off state of the jumper element; the control module outputs the corresponding control signal to the drive module according to the drive mode; the drive module generates a drive signal according to the control signal, and outputs the drive signal to the peripheral to be driven.
[0013] Optionally, the on-off state of the jumper element is set according to the type of the peripheral to be driven: when the type of the peripheral to be driven is a motor, the jumper element is set to the disconnected state; when the type of the peripheral to be driven is an electromagnet or an anti-snagging motor, the jumper element is set to the connected state; the control module detects the on-off state of the jumper element, and configures the door opening drive circuit to the corresponding drive mode according to the state of the jumper element: when the control module detects that the on-off state of the jumper element is the disconnected state, the drive mode of the door opening drive circuit is configured to the motor drive mode; when the control module detects that the on-off state of the jumper element is the connected state, the drive mode of the door opening drive circuit is configured to the electromagnet drive mode or the anti-snagging motor drive mode.
[0014] Optionally, the driving mode includes at least a motor driving mode, an electromagnet driving mode and an anti-hooking motor driving mode; the control signal includes a first control signal and a second control signal; the control module outputs a corresponding control signal to the driving module according to the driving mode, specifically: when the driving mode is a motor driving mode, an electromagnet driving mode or an anti-hooking motor driving mode, the control module outputs a first control signal and a second control signal; the driving module generates a driving signal according to the control signal, specifically: the driving module generates a first driving signal and a second driving signal according to the first control signal and the second control signal; wherein, when the driving mode is a motor driving mode, the first control signal and the second control signal are used to control the forward and reverse rotation of the motor; when the driving mode is an electromagnet driving mode or an anti-hooking motor driving mode, the first control signal is used to control the working state of the electromagnet, and the second control signal is used to control the working state of the anti-hooking motor and the unlocking and locking state.
[0015] The door-opening drive circuit provided by the present invention allows users to set the on / off state of a jumper element based on the type of peripheral to be driven. The control module detects the on / off state of the jumper element, configures the corresponding drive mode, and outputs a control signal, enabling the drive module to adapt to different peripheral types. The door-opening drive circuit provided by the present invention replaces three traditional independent drive circuits with a single drive module, reducing the number of components, addressing the existing technology's inability to accommodate multiple drive modes, and lowering costs.
[0016] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 This is a structural diagram of a door opening drive circuit provided by the relevant technology;
[0019] Figure 2 1 is a schematic structural diagram of a door opening drive circuit provided by an embodiment of the present invention;
[0020] Figure 3 Provided is a schematic structural diagram of a driving module in one embodiment;
[0021] Figure 4 This is a driving timing diagram of an anti-snagging motor provided by an embodiment of the present invention;
[0022] Figure 5 Provided is a structural diagram of a driving module in another embodiment;
[0023] Figure 6 Provided is a schematic diagram of the structure of a configuration module in one embodiment;
[0024] Figure 7 1 is a structural diagram of another door opening drive circuit provided by an embodiment of the present invention;
[0025] Figure 8 This is a flow chart of a control method for a door opening drive circuit provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and the accompanying drawings are used to distinguish similar items and are not necessarily used to describe a particular order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, such that the embodiments of the present invention described herein can be implemented in sequences other than those illustrated or described herein. Furthermore, the terms "including," "having," and any variations thereof are intended to cover non-exclusive inclusions.
[0028] As mentioned in the background, in the prior art, the door opening drive circuit is not compatible with multiple drive modes. To solve the compatibility issue, existing solutions usually integrate the circuits of the three drive modes on the same board and achieve compatibility by controlling different input and output interfaces. Figure 1 This is a schematic diagram of the structure of a door opening drive circuit provided by the related technology. Figure 1 As shown, the existing door opening drive circuit uses the single chip microcomputer 11 as the core control unit, and realizes the control of various safe execution components through different functional drive circuits and peripheral interfaces.
[0029] The drive circuit includes a motor drive circuit 12, an electromagnet drive circuit 13, and an anti-snagging motor drive circuit 14. The peripheral interfaces include a motor interface 15, an electromagnet interface 16, and an anti-snagging motor interface 17, each of which connects to the corresponding actuators (motor M1, electromagnet L1, and anti-snagging motor 18) to achieve the physical transmission of drive signals. Because the motor, electromagnet, and anti-snagging motor each correspond to a separate set of drive circuits, each requires its own power devices, resistors, capacitors, and other components, resulting in high costs.
[0030] In response to the above problems, an embodiment of the present invention provides a door opening drive circuit. Figure 2 This is a schematic diagram of a door opening drive circuit provided by an embodiment of the present invention, referring to Figure 2 The door opening drive circuit includes: a configuration module 10, a control module 20 and a drive module 30.
[0031] The configuration module 10 includes a jumper element JP1 , and the on / off state of the jumper element JP1 is set according to the type of the peripheral device 40 to be driven.
[0032] The control module 20 is connected to the configuration module 10 and the driving module 30 respectively. The control module 20 is used to detect the state of the jumper element JP1 and configure the door opening driving circuit to a corresponding driving mode according to the state of the jumper element JP1; and is used to output a control signal to the driving module 30 according to the driving mode.
[0033] The output end of the driving module 30 is connected to the peripheral device to be driven, and is used to generate a driving signal according to the control signal and output the driving signal to the peripheral device to be driven.
[0034] Specifically, the jumper component JP1 is an electronic component that configures circuit functionality through physical connections (such as insertion, shorting, or disconnection). Its core function is to provide different pathways for the circuit by changing its connectivity, thereby enabling the circuit to achieve different functions. The jumper component JP1 can be a pin header, a surface-mount DIP switch, or a dual in-line package (DIP) switch.
[0035] In one embodiment, before powering on the circuit, the user sets the jumper element on / off based on the type of peripheral to be driven. If the peripheral to be driven is motor M1, remove the jumper cap to disconnect jumper element JP1. If the peripheral to be driven is electromagnet L1 or anti-snag motor 18, install the jumper cap to short-circuit the two pins of jumper element JP1, connecting it.
[0036] The control module 20 may include a microcontroller. Optionally, the control module 20 may include a single chip microcomputer, a digital signal processor (DSP) or a field programmable gate array (FPGA).
[0037] The driving modes of the door opening drive circuit include motor driving mode, electromagnet driving mode and anti-hooking motor driving mode.
[0038] In some embodiments, when the control module 20 detects that the state of the jumper element JP1 is disconnected, the driving mode of the door opening drive circuit is configured as a motor driving mode; when the control module 20 detects that the on-off state of the jumper element JP1 is connected, the driving mode of the door opening drive circuit is configured as an electromagnet driving mode or an anti-hooking motor driving mode.
[0039] When the drive mode is motor drive mode, electromagnet drive mode, or anti-snagging motor drive mode, the control module 20 outputs a first control signal IN1 and a second control signal IN2. The first control signal IN1 and the second control signal IN2 may include a high level and a low level. The drive module 30 is a hardware unit that converts the control signal into a drive signal. The drive module 30 may include an H-bridge power amplifier circuit. The drive module 30 receives the control signal output by the control module 20 and generates a drive signal that meets the requirements of different peripheral devices.
[0040] In some embodiments, the driving module 30 generates a first driving signal OUT1 and a second driving signal OUT2 according to the first control signal IN1 and the second control signal IN2 .
[0041] When the drive mode is motor drive mode, the first control signal IN1 and the second control signal IN2 are used to control the forward and reverse rotation of the motor. When the drive mode is electromagnet drive mode or anti-snagging motor drive mode, the first control signal IN1 is used to control the operating state of the electromagnet, and the second control signal IN2 is used to control the operating state of the anti-snagging motor and the unlocking and locking states. In other words, the second control signal IN2 output by the control module 20 is also transmitted to the data pin of the anti-snagging motor 18, used to transmit an unlocking command to the anti-snagging motor 18 after the anti-snagging motor 18 is powered on.
[0042] The working states of the electromagnet and the anti-snagging motor include power on and power off. The first drive signal OUT1 and the second drive signal OUT2 may include a high level and a low level.
[0043] The door-opening drive circuit provided by the present invention allows users to set the on / off state of a jumper element based on the type of peripheral to be driven. The control module detects the on / off state of the jumper element, configures the corresponding drive mode, and outputs a control signal, enabling the drive module to adapt to different peripheral types. The door-opening drive circuit provided by the present invention replaces three traditional independent drive circuits with a single drive module, reducing the number of components, addressing the existing technology's inability to accommodate multiple drive modes, and lowering costs.
[0044] Optionally, continue to refer to Figure 2 The door opening drive circuit also includes at least three interface modules, and the output end of the drive module 30 is connected to the peripheral device to be driven through the corresponding interface module.
[0045] Specifically, the interface module includes a motor interface 40, an electromagnet interface 50 and an anti-hooking motor interface 60. The first output end and the second output end of the driving module 30 are connected to the motor M1 through the motor interface 40, the first output end of the driving module 30 is connected to the electromagnet L1 through the electromagnet interface 50, and the second output end of the driving module 30 is connected to the anti-hooking motor 18 through the anti-hooking motor interface 60.
[0046] The first output terminal of the driving module 30 is used to output a first driving signal OUT1 , and the second output terminal is used to output a second driving signal OUT2 .
[0047] Figure 3 The following is a schematic diagram of the structure of the driving module in one embodiment. Figure 3 Optionally, the control signal includes a first control signal IN1 and a second control signal IN2 ; the driving module 30 includes a first switching unit 301 , a second switching unit 302 and a driving unit 303 .
[0048] The input end of the first switch unit 301 is connected with the first output end of the control module 20, the output end of the first switch unit 301 is connected with the first control end Ctr1 of the driving unit 303, and the first switch unit 301 is used for controlling the potential of the first control end Ctr1 according to the first control signal IN1.
[0049] The input end of the second switch unit 302 is connected with the second output end of the control module 20, the output end of the second switch unit 302 is connected with the second control end Ctr2 of the driving unit 303, and the second switch unit 302 is used for controlling the potential of the second control end Ctr2 according to the first control signal IN1.
[0050] The driving unit 303 is connected in series between the power supply VBAT and the reference ground GND, and is used for outputting the first driving signal OUT1 and the second driving signal OUT2 according to the potential of the first control end Ctr1 and the potential of the second control end Ctr2.
[0051] Specifically, the user sets the jumper element JP1 to be in the disconnected state, that is, the control module 20 configures the driving mode of the door opening driving circuit to be the motor driving mode:
[0052] When the first control signal IN1 is a low-level signal and the second control signal IN2 is a high-level signal, the first switch unit 301 is turned off according to the first control signal IN1, the potential of the first control end Ctr1 is controlled to be a high potential, the second switch unit 302 is turned on according to the second control signal IN2, and the potential of the second control end Ctr2 is controlled to be a low potential. At this time, the first driving signal OUT1 output by the first output end of the driving unit 303 is a low-level signal, the second driving signal OUT2 output by the second output end of the driving unit 303 is a high-level signal, and the motor rotates forward.
[0053] When the first control signal IN1 is a high-level signal and the second control signal IN2 is a low-level signal, the first switch unit 301 is turned on according to the first control signal IN1, the potential of the first control end Ctr1 is controlled to be a low potential, the second switch unit 302 is turned off according to the second control signal IN2, and the potential of the second control end Ctr2 is controlled to be a high potential. At this time, the first driving signal OUT1 output by the driving unit 30 is a high-level signal, the second driving signal OUT2 output is a low-level signal, and the motor rotates reversely.
[0054] When both the first control signal IN1 and the second control signal IN2 are low-level signals, the first switch unit 301 is turned off according to the first control signal IN1, controlling the potential of the first control terminal Ctr1 to a high level. The second switch unit 302 is turned off according to the second control signal IN2, controlling the potential of the second control terminal Ctr2 to a high level. At this time, the first drive signal OUT1 and the second drive signal OUT2 output by the drive unit 303 are both low-level signals, and the motor stops.
[0055] Similarly, when both the first control signal IN1 and the second control signal IN2 are high, the first switch unit 301 conducts according to the first control signal IN1, controlling the potential of the first control terminal Ctr1 to a low level. The second switch unit 302 conducts according to the second control signal IN2, controlling the potential of the second control terminal Ctr2 to a low level. At this point, the first drive signal OUT1 and the second drive signal OUT2 output by the drive unit 303 are both high, and the motor stops.
[0056] The user sets the jumper element JP1 to the connected state, that is, the control module 20 configures the door opening drive circuit to the electromagnet drive mode or the anti-hook motor drive mode:
[0057] When the first control signal IN1 is high, the first switch unit 301 is turned on according to the first control signal IN1, controlling the potential of the first control terminal Ctr1 to a low level. The first drive signal OUT1 output by the driver unit 303 is a high level signal, and the electromagnet is powered on and attracted. When the first control signal IN1 is low, the first switch unit 301 is turned off according to the first control signal IN1, controlling the potential of the first control terminal Ctr1 to a high level. The first drive signal OUT1 output by the driver unit 303 is a low level signal, and the electromagnet is powered off. When the drive mode is the electromagnet drive mode, the second control signal IN2 can be either a high level signal or a low level signal, and neither affects the output of the first drive signal OUT1.
[0058] When the second control signal IN2 is high, the second switch unit 302 is turned on according to the second control signal IN2, controlling the potential of the second control terminal Ctr2 to a low level. The second drive signal OUT2 output by the drive unit 303 is a high level signal, and the anti-snagging motor is powered on. When the second control signal IN2 is low, the second switch unit 302 is turned off according to the second control signal IN2, controlling the potential of the second control terminal Ctr2 to a high level. The second drive signal OUT2 output by the drive unit 303 is a low level signal, and the anti-snagging motor is powered off. When the drive mode is the anti-snagging drive mode, the first control signal IN1 can be either a high level signal or a low level signal, and neither affects the output of the second drive signal OUT2.
[0059] To summarize the control logic for the motor drive mode, anti-snagging motor drive mode, and electromagnet drive mode, the present invention uses the number "0" to represent a low-level signal, the number "1" to represent a high-level signal, and the letter "x" to represent a high-level signal or a low-level signal. The control logic for the motor drive mode is shown in Table 1, and the anti-snagging motor drive mode and electromagnet drive mode are shown in Table 2.
[0060] Table 1 Control logic of motor drive mode
[0061] IN1 IN2 OUT1 OUT2 Motor status 0 0 0 0 Stall 0 1 0 1 Forward 1 0 1 0 Reversal 1 1 1 1 Stall
[0062] Table 2 Control logic of anti-snagging motor drive mode and electromagnet drive mode
[0063] IN1 IN2 OUT1 OUT2 Motor status 0 x 0 x Electromagnet power off 1 x 1 x Electromagnet powered on x 0 x 0 Anti-snagging motor power off x 1 x 1 Anti-snagging motor powered on
[0064] Figure 4 This is a driving timing diagram of an anti-snagging motor provided by an embodiment of the present invention. Figure 4 In addition to power, the anti-snagging motor also requires a data signal at approximately 50kHz to send the unlock command. The present invention multiplexes the second control signal IN2 into a data signal. After the anti-snagging motor is powered on, the second control signal IN2 is transmitted to the data pin of the anti-snagging motor to send the unlock command to the motor.
[0065] Figure 5 Provided is a structural diagram of a driving module in another embodiment. Figure 5 Optionally, the driving unit 303 includes a first transistor Q1, a second transistor Q2, a third transistor Q3, a fourth transistor Q4, a first resistor R1, a second resistor R2 and a first capacitor C1.
[0066] The control electrode of the first transistor Q1 is connected to the control electrode of the third transistor Q3 and serves as a first control terminal Ctr1. The first electrode of the first transistor Q1 is connected to the power supply VBAT. The second electrode of the first transistor Q1, the second electrode of the third transistor Q3, and the first end of the first capacitor C1 are connected to the first node N1. The first electrode of the third transistor Q3 is connected to the reference ground GND.
[0067] The control electrode of the second transistor Q2 is connected to the control electrode of the fourth transistor Q4 and serves as the second control terminal Ctr2. The first electrode of the second transistor Q2 is connected to the power supply VBAT. The second electrode of the second transistor Q2, the second electrode of the fourth transistor Q4, and the second end of the first capacitor C1 are connected to the second node N2. The first electrode of the fourth transistor Q4 is connected to the reference ground GND. The first end of the first resistor is connected to the reference ground, and the second end of the first resistor is connected to the first control terminal. The first end of the second resistor is connected to the reference ground, and the second end of the second resistor is connected to the second control terminal. The first node serves as the first output terminal of the driving unit 303, which is used to output the first drive signal OUT1. The second node serves as the second output terminal of the driving unit 303, which is used to output the second drive signal OUT2.
[0068] Specifically, the driver unit 303 can be a transistor-based H-bridge driver structure. By controlling the potentials of the first control terminal Ctr1 and the second control terminal Ctr2, it controls the output of the first drive signal OUT1 and the second drive signal OUT2, thereby adapting to the driving requirements of various peripherals such as motors and electromagnets. Its core logic utilizes the switching characteristics of transistors to form different current paths between the power supply VBAT and the reference ground GND, thereby outputting high and low level signals.
[0069] Optionally, the first transistor Q1 and the second transistor Q2 are PMOS transistors, and the third transistor Q3 and the fourth transistor Q4 are NMOS transistors.
[0070] The first transistor Q1 and the third transistor Q3 form a first switch pair. When the potential of the first control terminal Ctr1 is low, the first transistor Q1 is turned on and the third transistor Q3 is turned off. The potential of the first node N1 approaches the power supply VBAT, and the first drive signal OUT1 is high. When the potential of the first control terminal Ctr1 is high, the first transistor Q1 is turned off and the third transistor Q3 is turned on. The first node N1 is grounded, and the first drive signal OUT1 is low.
[0071] The second transistor Q2 and the fourth transistor Q4 form a second switch pair. The principle is similar to that of the first switch pair. The potential of the second control terminal Ctr2 controls the on and off of the second transistor Q2 and the fourth transistor Q4 to achieve high and low level output of the second drive signal OUT2.
[0072] The first resistor R1 and the second resistor R2 act as pull-up resistors. When there is no signal input to the control end, the potential of the first control end Ctr1 and the second control end Ctr2 are pulled to a high level, ensuring that the first transistor Q1 and the second transistor Q2 are in a stable cut-off state to avoid circuit malfunction.
[0073] The first capacitor C1 functions to filter and stabilize the potential, especially when driving an inductive load such as a motor, can absorb the spike voltage generated during the switching of the circuit, protect the transistor from voltage impact, and ensure the stability of the output drive signal.
[0074] Motor driving mode: through different potential combinations of the first control terminal Ctr1 and the second control terminal Ctr2. For example, when the first control terminal Ctr1 is low and the second control terminal Ctr2 is high, the level difference of the first drive signal OUT1 and the second drive signal OUT2 is controlled to realize the forward and reverse rotation of the motor. For example, when the first control terminal Ctr1 is low and the second control terminal Ctr2 is high, the first drive signal OUT1 is a high-level signal and the second drive signal OUT2 is a low-level signal, and the motor rotates forward; otherwise, the motor rotates reversely.
[0075] Electromagnet driving mode or anti-hook motor driving mode: only a single control terminal needs to be controlled, such as the first control terminal Ctr1 controls the electromagnet and the second control terminal Ctr2 controls the anti-hook motor, so that the corresponding output terminal is kept at a high level (power on) or a low level (power off). At this time, the first capacitor C1 can prevent the influence of power fluctuations on the drive signal and ensure the stable operation of the external device.
[0076] With reference to the foregoing description Figure 5 Optionally, the first switching unit 301 comprises a third resistor R3, a second capacitor C2 and a fifth transistor Q5; the first end of the third resistor R3 serves as the input end of the first switching unit 301, the second end of the third resistor R3 is connected to the control electrode of the fifth transistor Q5 and the first end of the second capacitor C2; the second end of the second capacitor C2 is grounded; the first electrode of the fifth transistor Q5 serves as the output end of the first switching unit 301, and the second electrode of the fifth transistor Q5 is grounded.
[0077] Specifically, the specific type of the fifth transistor Q5 is not specifically limited in the embodiments of the present application. For example, the fifth transistor Q5 can be an NPN type transistor.
[0078] The third resistor R3 functions to limit the current, and when the voltage / current of the first control signal IN1 fluctuates, the third resistor R3 limits the current flowing into the control electrode of the fifth transistor Q5, so as to avoid the breakdown of the fifth transistor Q5 due to the instantaneous large current.
[0079] The second capacitor C2 and the third resistor R3 constitute an RC low-pass filter circuit, and the high-frequency noise (such as electromagnetic interference and pulse spike) in the first control signal IN1 is “short-circuited” to the ground by the second capacitor C2, only allowing low-frequency or direct-current control signals to pass, so as to make the level of the control electrode of the fifth transistor Q5 more stable.
[0080] The first switching unit 301 is a transistor-based signal conditioning circuit. Its core function is to perform "level control and filtering and shaping" on the input signal. Ultimately, through the on / off state of the fifth transistor Q5, it outputs a switching signal adapted to the input signal. An external control signal enters through the first end of the third resistor R3 and the first end of the fourth resistor R4. After pre-processing by the low-pass filter circuit formed by the third resistor R3 and the second capacitor C2, it controls the conduction or cutoff of the fifth transistor Q5.
[0081] Continue to refer Figure 5 Optionally, the second switch unit 302 includes a fourth resistor R4, a third capacitor C3 and a sixth transistor Q6; the first end of the fourth resistor R4 serves as the input end of the second switch unit 302, and the second end of the fourth resistor R4 is connected to the control electrode of the sixth transistor Q6 and the first end of the third capacitor C3; the second end of the third capacitor C3 is grounded; the first electrode of the sixth transistor Q6 serves as the output end of the second switch unit 302, and the second electrode of the sixth transistor Q6 is grounded.
[0082] The working principle and functions of the components of the second switch unit 302 are similar to those of the first switch unit 301 . For the similarities, please refer to the detailed explanation of the second switch unit 302 , which will not be repeated in this embodiment.
[0083] Figure 6 Provided is a schematic diagram of the structure of the configuration module in one embodiment. Figure 6 The configuration module 10 includes a jumper element JP1 and a fifth resistor R5; a first end of the jumper element JP1 is connected to the input end of the control module 20, a second end of the jumper element JP1 is connected to a first end of the fifth resistor R5, and the first end of the fifth resistor R5 is grounded.
[0084] If jumper JP1 is shorted between its first and second terminals using a jumper cap, the input of control module 20 will connect to the downstream circuitry via jumper JP1. Because the first terminal of fifth resistor R5 is grounded, the input of control module 20 is pulled to a low level. If jumper JP1 is not shorted, the input of control module 20 is physically disconnected from the downstream circuitry, and the input defaults to a high level.
[0085] When jumper JP1 is shorted, the fifth resistor R5 acts as a pull-down resistor, providing a DC path to ground for the input of control module 20, ensuring a stable low voltage level. Without the fifth resistor R5, the input may exhibit an uncertain voltage level due to parasitic parameters when shorted, causing configuration failure.
[0086] In this embodiment, the configuration module 10 changes the level state of the input terminal of the control module 20 by using the physical connection state of the jumper element JP1, so that the driving mode can be selected in a physical manner, which not only reduces software maintenance costs but also improves user convenience.
[0087] Figure 7 This is a schematic diagram of another door opening drive circuit provided by an embodiment of the present invention, referring to Figure 7 The door opening drive circuit includes: a configuration module 10, a control module 20 and a drive module 30.
[0088] Optionally, continue to refer to Figure 2 The door opening drive circuit also includes at least three interface modules, which include a motor interface 40, an electromagnet interface 50 and an anti-hook motor interface 60.
[0089] The driving module 30 includes a first switching unit 301, a second switching unit 302, and a driving unit 303. Optionally, the first switching unit 301 includes a third resistor R3, a second capacitor C2, and a fifth transistor Q5; the second switching unit 302 includes a fourth resistor R4, a third capacitor C3, and a sixth transistor Q6; and the driving unit 303 includes a first transistor Q1, a second transistor Q2, a third transistor Q3, a fourth transistor Q4, a first resistor R1, a second resistor R2, and a first capacitor C1.
[0090] The configuration module 10 includes a jumper element JP1 and a fifth resistor R5 .
[0091] Continue to refer Figure 7 , the working principle of the door opening drive circuit is:
[0092] Before powering on the circuit, set the jumper element on / off according to the type of peripheral to be driven. If the peripheral to be driven is motor M1, remove the jumper cap to disconnect jumper element JP1. If the peripheral to be driven is electromagnet L1 or anti-snag motor 18, install the jumper cap to short-circuit the two pins of jumper element JP1, connecting it.
[0093] After the circuit is powered on, the control module 20 detects the on / off state of the jumper element JP1. When the control module 20 detects that the state of the jumper element JP1 is disconnected, the drive mode of the door opening drive circuit is configured as the motor drive mode; when the control module 20 detects that the on / off state of the jumper element JP1 is connected, the drive mode of the door opening drive circuit is configured as the electromagnet drive mode or the anti-hook motor drive mode.
[0094] Specifically, the user sets the jumper element JP1 to the disconnected state, that is, the control module 20 configures the door opening drive circuit to a motor drive mode:
[0095] When the first control signal IN1 is a low-level signal and the second control signal IN2 is a high-level signal, the fifth transistor Q5 is turned off according to the first control signal IN1, controlling the potential of the first control terminal Ctr1 to a high potential. The sixth transistor Q6 is turned on according to the second control signal IN2, controlling the potential of the second control terminal Ctr2 to a low potential. At this time, the first transistor Q1 and the fourth transistor Q4 are turned off, the second transistor Q2 and the third transistor Q3 are turned on, the first drive signal OUT1 is a low-level signal, the second drive signal OUT2 is a high-level signal, and the motor rotates forward.
[0096] When the first control signal IN1 is high and the second control signal IN2 is low, the fifth transistor Q5 is turned on according to the first control signal IN1, controlling the potential of the first control terminal Ctr1 to a low level. The sixth transistor Q6 is turned off according to the second control signal IN2, controlling the potential of the second control terminal Ctr2 to a high level. At this time, the first transistor Q1 and the fourth transistor Q4 are turned on, the second transistor Q2 and the third transistor Q3 are turned off, the first drive signal OUT1 is high, the second drive signal OUT2 is low, and the motor rotates in reverse.
[0097] When both the first control signal IN1 and the second control signal IN2 are low-level signals, the fifth transistor Q5 is turned off according to the first control signal IN1, controlling the potential of the first control terminal Ctr1 to a high potential. The sixth transistor Q6 is turned off according to the second control signal IN2, controlling the potential of the second control terminal Ctr2 to a high potential. At this time, the first transistor Q1 and the second transistor Q2 are turned off, the third transistor Q3 and the fourth transistor Q4 are turned on, the first drive signal OUT1 and the second drive signal OUT2 are both low-level signals, and the motor stops.
[0098] Similarly, when both the first control signal IN1 and the second control signal IN2 are high, the fifth transistor Q5 is turned on in response to the first control signal IN1, controlling the potential of the first control terminal Ctr1 to a low level. The sixth transistor Q6 is turned on in response to the second control signal IN2, controlling the potential of the second control terminal Ctr2 to a low level. At this point, the first transistor Q1 and the second transistor Q2 are turned on, the third transistor Q3 and the fourth transistor Q4 are turned off, the first drive signal OUT1 and the second drive signal OUT2 are both high, and the motor stops.
[0099] The user sets the jumper element JP1 to the connected state, that is, the control module 20 configures the door opening drive circuit to the electromagnet drive mode or the anti-hook motor drive mode:
[0100] When the first control signal IN1 is a high-level signal, the fifth transistor Q5 is turned on according to the first control signal IN1, the potential of the first control end Ctr1 is controlled to be a low level, the first transistor Q1 is turned on, the third transistor Q3 is turned off, the first driving signal OUT1 output by the driving unit 303 is a high-level signal, and the electromagnet is powered on; when the first control signal IN1 is a low-level signal, the fifth transistor Q5 is turned off according to the first control signal IN1, the potential of the first control end Ctr1 is controlled to be a high level, the first transistor Q1 is turned off, the third transistor Q3 is turned on, the first driving signal OUT1 output by the driving unit 303 is a low-level signal, and the electromagnet is powered off. When the driving mode is the electromagnet driving mode, the second control signal IN2 can be a high-level signal or a low-level signal, and neither of them affects the output of the first driving signal OUT1.
[0101] When the second control signal IN2 is a high-level signal, the sixth transistor Q6 is turned on according to the second control signal IN2, the potential of the second control end Ctr2 is controlled to be a low level, the second transistor Q2 is turned on, the fourth transistor Q4 is turned off, the second driving signal OUT2 output by the driving unit 303 is a high-level signal, and the anti-hooking motor is powered on; when the second control signal IN2 is a low-level signal, the sixth transistor Q6 is turned off according to the second control signal IN2, the potential of the second control end Ctr2 is controlled to be a high level, the second transistor Q2 is turned off, the fourth transistor Q4 is turned on, the second driving signal OUT2 output by the driving unit 303 is a low-level signal, and the anti-hooking motor is powered off. When the driving mode is the anti-hooking driving mode, the first control signal IN1 can be a high-level signal or a low-level signal, and neither of them affects the output of the second driving signal OUT2.
[0102] Based on the same inventive concept, the embodiment of the present application further provides a control method of the door opening driving circuit, which is applied to the door opening driving circuit provided by any embodiment of the present application. The control method can be executed by a control module, which can be realized in the form of software and / or hardware.
[0103] Figure 8 is a flow chart of the control method of the door opening driving circuit provided by the embodiment of the present application.
[0104] As shown in Figure 8 , the control method comprises:
[0105] S101, setting the on-off state of the jumper element according to the type of the to-be-driven peripheral device.
[0106] Specifically, when the type of the to-be-driven peripheral device is a motor, the jumper element is set to be in the off state; when the type of the to-be-driven peripheral device is an electromagnet or an anti-hooking motor, the jumper element is set to be in the on state.
[0107] S102 , the control module detects the on-off state of the jumper element, and configures the door opening drive circuit to a corresponding drive mode according to the on-off state of the jumper element.
[0108] The control module detects the on-off state of the jumper element and configures the door opening drive circuit to the corresponding drive mode according to the state of the jumper element. Specifically: when the control module detects that the on-off state of the jumper element is in the disconnected state, the drive mode of the door opening drive circuit is configured to the motor drive mode; when the control module detects that the on-off state of the jumper element is in the connected state, the drive mode of the door opening drive circuit is configured to the electromagnet drive mode or the anti-hook motor drive mode.
[0109] S103 : The control module outputs a corresponding control signal to the driving module according to the driving mode.
[0110] The drive modes include at least a motor drive mode, an electromagnet drive mode, and an anti-snagging motor drive mode; and the control signals include a first control signal and a second control signal. Specifically, when the drive mode is the motor drive mode, the electromagnet drive mode, or the anti-snagging motor drive mode, the control module outputs the first control signal and the second control signal.
[0111] S104 : The driving module generates a driving signal according to the control signal, and outputs the driving signal to the peripheral device to be driven.
[0112] The driving module generates the driving signal according to the control signal specifically: the driving module generates the first driving signal and the second driving signal according to the first control signal and the second control signal.
[0113] When the drive mode is motor drive mode, the first control signal and the second control signal are used to control the forward and reverse rotation of the motor. When the drive mode is electromagnet drive mode or anti-snagging motor drive mode, the first control signal is used to control the working state of the electromagnet, and the second control signal is used to control the working state of the anti-snagging motor and the unlocking and locking states.
[0114] The similarities between the control method provided in the embodiment of the present invention and the door opening drive circuit can be referred to the explanation of the door opening drive circuit, which will not be repeated in this embodiment.
[0115] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.
[0116] The above detailed description does not limit the scope of the application. Various modifications, combinations, sub-combinations and alternatives can be made to the detailed description. Any modification, equivalent replacement and improvement etc. made within the spirit and principle of the application shall be included in the scope of the application.
Claims
1. A door opening drive circuit, characterized in that: include: Configuration module, control module and drive module; The configuration module includes a jumper element, and the on / off state of the jumper element is set according to the type of the peripheral device to be driven; The control module is connected to the configuration module and the driving module respectively, and the control module is used to detect the on-off state of the jumper element and configure the door opening driving circuit to a corresponding driving mode according to the on-off state of the jumper element; and for outputting a control signal to the driving module according to the driving mode; The output end of the driving module is connected to the peripheral device to be driven, and is used to generate a driving signal according to the control signal and output the driving signal to the peripheral device to be driven.
2. The door opening drive circuit according to claim 1, characterized in that: The control signal includes a first control signal and a second control signal; the driving module includes a first switch unit, a second switch unit and a driving unit; The input end of the first switch unit is connected to the first output end of the control module, the output end of the first switch unit is connected to the first control end of the drive unit, and the first switch unit is used to control the potential of the first control end according to the first control signal; The input end of the second switch unit is connected to the second output end of the control module, the output end of the second switch unit is connected to the second control end of the drive unit, and the second switch unit is used to adjust the potential of the second control end according to the second control signal; The driving unit is connected in series between a power supply and a reference ground, and is configured to output a first driving signal and a second driving signal according to the potential of the first control terminal and the potential of the second control terminal.
3. The door opening drive circuit according to claim 2, characterized in that: The driving unit includes a first transistor, a second transistor, a third transistor, a fourth transistor, a first resistor, a second resistor and a first capacitor; The control electrode of the first transistor is connected to the control electrode of the third transistor and serves as the first control terminal. The first electrode of the first transistor is connected to the power supply. The second electrode of the first transistor, the second electrode of the third transistor, and the first end of the first capacitor are connected to a first node. The first electrode of the third transistor is connected to the reference ground. The control electrode of the second transistor is connected to the control electrode of the fourth transistor and serves as the second control terminal. The first electrode of the second transistor is connected to a power supply. The second electrode of the second transistor, the second electrode of the fourth transistor, and the second end of the first capacitor are connected to a second node. The first electrode of the fourth transistor is connected to a reference ground. A first end of the first resistor is connected to the reference ground, and a second end of the first resistor is connected to the first control end; A first end of the second resistor is connected to the reference ground, and a second end of the second resistor is connected to the second control end; The first node serves as a first output terminal of the driving unit, for outputting the first driving signal, and the second node serves as a second output terminal of the driving unit, for outputting the second driving signal.
4. The door opening drive circuit according to claim 2, characterized in that: The first switch unit includes a third resistor, a second capacitor and a fifth transistor; The first end of the third resistor serves as the input end of the first switch unit, the second end of the third resistor is connected to the control electrode of the fifth transistor and the first end of the second capacitor; the second end of the second capacitor is grounded; A first electrode of the fifth transistor serves as an output end of the first switch unit, and a second electrode of the fifth transistor is grounded.
5. The door opening drive circuit according to claim 2, characterized in that: The second switch unit includes a fourth resistor, a third capacitor and a sixth transistor; The first end of the fourth resistor serves as the input end of the second switch unit, the second end of the fourth resistor is connected to the control electrode of the sixth transistor and the first end of the third capacitor; the second end of the third capacitor is grounded; A first electrode of the sixth transistor serves as an output end of the second switch unit, and a second electrode of the sixth transistor is grounded.
6. The door opening drive circuit according to claim 1, characterized in that: The configuration module includes a jumper element and a fifth resistor; A first end of the jumper element is connected to an input end of the control module, a second end of the jumper element is connected to a first end of the fifth resistor, and the first end of the fifth resistor is grounded.
7. The door opening drive circuit according to claim 1, characterized in that: It also includes at least three interface modules, and the output end of the driving module is connected to the peripheral device to be driven through the corresponding interface module.
8. A control method for a door opening drive circuit, characterized in that: Applicable to the door opening drive circuit according to any one of claims 1 to 7, the control method comprising: Set the on / off status of the jumper element according to the type of peripheral to be driven; The control module detects the on-off state of the jumper element and configures the door opening drive circuit to a corresponding drive mode according to the on-off state of the jumper element; The control module outputs a corresponding control signal to the driving module according to the driving mode; The driving module generates a driving signal according to the control signal, and outputs the driving signal to the peripheral device to be driven.
9. The control method of the door opening drive circuit according to claim 8, characterized in that: The on / off status of the jumper components is set according to the type of peripheral to be driven: When the type of the peripheral device to be driven is a motor, setting the jumper element to a disconnected state; When the type of the peripheral device to be driven is an electromagnet or an anti-snagging motor, setting the jumper element to a connected state; The control module detects the on / off state of the jumper element and configures the door opening drive circuit to a corresponding drive mode according to the state of the jumper element. Specifically: When the control module detects that the on / off state of the jumper element is an off state, the driving mode of the door opening driving circuit is configured to be a motor driving mode; When the control module detects that the on / off state of the jumper element is in the connected state, the driving mode of the door opening driving circuit is configured to be the electromagnet driving mode or the anti-hook motor driving mode.
10. The control method of the door opening drive circuit according to claim 8, characterized in that: The driving mode includes at least a motor driving mode, an electromagnet driving mode and an anti-snagging motor driving mode; the control signal includes a first control signal and a second control signal; Specifically, the control module outputs a corresponding control signal to the driving module according to the driving mode: When the driving mode is the motor driving mode, the electromagnet driving mode or the anti-snagging motor driving mode, the control module outputs the first control signal and the second control signal; The driving module generates the driving signal according to the control signal specifically: The driving module generates a first driving signal and a second driving signal according to the first control signal and the second control signal; Wherein, when the driving mode is the motor driving mode, the first control signal and the second control signal are used to control the forward and reverse rotation of the motor; When the driving mode is the electromagnet driving mode or the anti-hook motor driving mode, the first control signal is used to control the working state of the electromagnet, and the second control signal is used to control the working state and unlocking and locking state of the anti-hook motor.