CN114352132A - Electromagnetic lock control circuit and control method - Google Patents

Electromagnetic lock control circuit and control method Download PDF

Info

Publication number
CN114352132A
CN114352132A CN202111453390.4A CN202111453390A CN114352132A CN 114352132 A CN114352132 A CN 114352132A CN 202111453390 A CN202111453390 A CN 202111453390A CN 114352132 A CN114352132 A CN 114352132A
Authority
CN
China
Prior art keywords
resistor
pin
electromagnetic lock
mcu
optocoupler
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111453390.4A
Other languages
Chinese (zh)
Inventor
丁万年
洪文洁
林翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Returnstar Interactive Technology Group Co ltd
Original Assignee
Returnstar Interactive Technology Group Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Returnstar Interactive Technology Group Co ltd filed Critical Returnstar Interactive Technology Group Co ltd
Priority to CN202111453390.4A priority Critical patent/CN114352132A/en
Publication of CN114352132A publication Critical patent/CN114352132A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides an electromagnetic lock control circuit and a control method in the technical field of electromagnetic locks, wherein the circuit comprises an MCU, an output isolation driving module, an input isolation module, a configuration module, an interface J1 and a power module; the input end of the MCU is connected with the input isolation module and the configuration module, and the output end of the MCU is connected with the output isolation driving module; the interface J1 is respectively connected with the output isolation driving module and the input isolation module; the power supply module is respectively connected with the MCU, the output isolation driving module, the input isolation module and the configuration module. The invention has the advantages that: the compatibility and the use convenience of the electromagnetic lock control circuit are greatly improved.

Description

Electromagnetic lock control circuit and control method
Technical Field
The invention relates to the technical field of electromagnetic locks, in particular to a control circuit and a control method of an electromagnetic lock.
Background
The type of electromagnetic lock is including magnetism formula and two kinds of magnetic-motive formula, and the basic principle is all for the electromagnetic lock circular telegram, carries out the switching action of lock after producing magnetic force, so drive circuit switch lock just will control the break-make electricity of electromagnetic lock, and control circuit carries out different controls to the electromagnetic lock according to the signal of opening the door of difference. The door opening signal includes the door opening signal and the door signal that opens the door outward in the door, and the door signal that opens the door outward is provided by the non-auto-lock key switch, and the door signal that opens the door outward is provided after discerning the information of legal identity by the entrance guard's equipment that possesses identification, for example, the module of punching the card, fingerprint module, face identification module etc..
Traditional multi-media center control does not have a circuit interface used for controlling the electromagnetic lock, a small number of multi-media center controls have IO input and output functions, the purpose of controlling the electromagnetic lock can be indirectly achieved through IO, but the defects that system connection is complex, setting is complex, only part of electromagnetic locks can be adapted to and the like exist, and limitation is large.
Therefore, how to provide an electromagnetic lock control circuit and a control method thereof to improve the compatibility and the use convenience of the electromagnetic lock control circuit becomes a technical problem to be solved urgently.
Disclosure of Invention
The invention aims to provide an electromagnetic lock control circuit and a control method thereof, so as to improve the compatibility and the use convenience of the electromagnetic lock control circuit.
In a first aspect, the present invention provides an electromagnetic lock control circuit, which includes an MCU, an output isolation driving module, an input isolation module, a configuration module, an interface J1, and a power module;
the input end of the MCU is connected with the input isolation module and the configuration module, and the output end of the MCU is connected with the output isolation driving module; the interface J1 is respectively connected with the output isolation driving module and the input isolation module; the power supply module is respectively connected with the MCU, the output isolation driving module, the input isolation module and the configuration module.
Further, the output isolation driving module comprises an optical coupler U1, an optical coupler U2, a triode Q1, a triode Q2, a diode D1, a diode D2, a relay K1, a relay K2, a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5, a resistor R6, and a fuse F1;
pin 1 of the optocoupler U1 is connected with the resistor R1, pin 2 is connected with the MCU, pin 3 is connected with the resistor R2, and pin 4 is connected with the output end of the diode D1, pins 1 and 2 of the relay K1 and the power module; the base electrode of the triode Q1 is connected with the resistor R2 and the resistor R3, the collector electrode of the triode Q1 is connected with the input end of the diode D1 and the pin 4 of the relay K1, and the emitter electrode of the triode Q1 is connected with the resistor R3 and grounded; the resistor R1 is connected with the power supply module; one end of the fuse F1 is connected with a pin 3 of the relay K1, and the other end of the fuse F1 is connected with a pin 2 of the relay K2 and a pin 1 of the interface J1;
pin 1 of the optocoupler U2 is connected with the resistor R4, pin 2 is connected with the MCU, pin 3 is connected with the resistor R5, and pin 4 is connected with the output end of the diode D2, pin 1 of the relay K2 and the power module; the base electrode of the triode Q2 is connected with the resistor R5 and the resistor R6, the collector electrode of the triode Q2 is connected with the input end of the diode D2 and the pin 4 of the relay K2, and the emitter electrode of the triode Q2 is connected with the resistor R6 and grounded; pin 3 of the relay K2 is connected to pin 2 of the interface J1.
Further, the input isolation module comprises an optical coupler U3, an optical coupler U4, an optical coupler U5, a resistor R7, a resistor R8, a resistor R9, a resistor R10, a resistor R11, and a resistor R12;
a pin 1 of the optocoupler U3 is connected with a resistor R8, a pin 2 is connected with a pin 4 of the interface J1, a pin 3 is grounded, and the pin 4 is connected with a resistor R7 and an MCU; a pin 1 of the optocoupler U4 is connected with a resistor R10, a pin 2 is connected with a pin 5 of the interface J1, a pin 3 is grounded, and a pin 4 is connected with a resistor R9 and the MCU; a pin 1 of the optocoupler U5 is connected with a resistor R12, a pin 2 is connected with a pin 6 of an interface J1, a pin 3 is grounded, and a pin 4 is connected with a resistor R11 and an MCU;
the resistor R7, the resistor R8, the resistor R9, the resistor R10, the resistor R11 and the resistor R12 are all connected with the power module.
Further, the configuration module includes a toggle switch S1, a resistor R13, a resistor R14, a resistor R15, a resistor R16, and a resistor R17;
pins 1, 2, 3, 4 and 5 of the dial switch S1 are respectively connected with one ends of a resistor R13, a resistor R14, a resistor R15, a resistor R16 and a resistor R17, and pins 6, 7, 8, 9 and 10 are all grounded; the other ends of the resistor R13, the resistor R14, the resistor R15, the resistor R16 and the resistor R17 are connected with the MCU and the power module.
Furthermore, pins 1 and 2 of the interface J1 are connected to the output isolation driver module, pin 3 is grounded, and pins 4, 5, and 6 are connected to the input isolation module.
In a second aspect, the present invention provides a control method for a control circuit of an electromagnetic lock, including the following steps:
step S10, the MCU receives configuration data including lock type, contact type, working mode and delay time through a configuration module;
and S20, the MCU receives a door opening signal, and outputs a corresponding level signal to the electromagnetic lock sequentially through the output isolation driving module and the interface J1 based on the configuration data and the door opening signal so as to control the electromagnetic lock.
Further, in step S10, the lock type is a magnetic-attraction type or a magnetic-drive type, and is configured by a switch corresponding to pin 1 of the dial switch S1;
the contact type is a dry contact or a wet node, and the contact type is configured through a switch corresponding to a pin 2 of a dial switch S1;
the working mode is an automatic mode or a manual mode, and is configured through a switch corresponding to a pin 3 of a dial switch S1;
the delay time duration is configured through a switch corresponding to the pin 4 and the pin 5 of the dial switch S1, and a 4-gear time duration is preset.
Further, the step S20 is specifically:
in the configuration data, when the lock type is a magnetic type, the MCU outputs a high level to the optocoupler U2 based on a received door opening signal so as to disconnect the relay K2, and the electromagnetic lock is powered off through a pin 2 of the interface J1 so as to execute an unlocking action of the electromagnetic lock; the MCU outputs low level to the optocoupler U2 based on the received door opening signal, and then performs unlocking action of the electromagnetic lock;
when the lock is of a magnetic type, the MCU outputs a low level to the optocoupler U2 based on a received door opening signal so as to switch on the relay K2, and the electromagnetic lock is electrified through a pin 2 of the interface J1 so as to execute the unlocking action of the electromagnetic lock; the MCU outputs high level to the optocoupler U2 based on the received door opening signal, and then executes the locking action of the electromagnetic lock;
when the contact type is a dry contact, the MCU outputs a high level to the optocoupler U1 to enable the optocoupler U1 to be in a cut-off state; the MCU outputs a level signal to the optocoupler U2 based on the received door opening signal, so that the pin 1 and the pin 2 of the interface J1 only have two actions of on and off to control the on and off of the electromagnetic lock;
when the contact type is a wet contact, the MCU outputs a low level to the optocoupler U1 to switch on the relay K1, and the fuse F1 outputs a high level to a pin 2 of the relay K2; the MCU outputs a level signal to the optocoupler U2 based on the received door opening signal, so that a pin 1 and a pin 2 of the interface J1 are in an electrified state and a non-electrified state to control the on-off state of the electromagnetic lock;
when the working mode is the automatic mode, the MCU outputs a low level to the optocoupler 2 to switch on the relay K2 based on the received door opening signal, the electromagnetic lock is electrified through a pin 2 of an interface J1 to further execute the unlocking action of the electromagnetic lock, and after the unlocking action is kept for the delay time, the MCU outputs a high level to the optocoupler U2 to further execute the locking action of the electromagnetic lock;
when the working mode is the manual mode, the MCU outputs a low level to the optocoupler 2 to switch on the relay K2 based on the received door opening signal, the electromagnetic lock is powered on through a pin 2 of an interface J1, the unlocking action of the electromagnetic lock is further executed, and when the door opening signal is not detected, the optocoupler U2 outputs a high level, and the locking action of the electromagnetic lock is further executed.
The invention has the advantages that:
by arranging the interface J1, corresponding pins can be selected to be connected into the electromagnetic lock according to requirements so as to adapt to electromagnetic locks of different models and reduce the complexity of system wiring; by setting the dial switch S1 comprising 5 switches, the configuration data of lock types, contact types, working modes and delay duration can be set for the MCU through the dial switch S1, and the method is simple and convenient; owing to support magnetism to inhale the formula, magnetic type, dry contact, wet node, automatic mode, manual mode, can inhale magnetism in order to drive on the market and lock and magnetic lock, compatibility is strong, can set up to manual mode or automatic mode according to the user demand of difference, it is nimble convenient, the drive of electromagnetic lock can be configured into dry contact and wet contact, the user can only purchase the lock body cooperation and use, also can reform transform on original access control system, the at utmost reduces and uses and reform transform the cost, final very big promotion electromagnetic lock control circuit's compatibility and use convenience.
Drawings
The invention will be further described with reference to the following examples with reference to the accompanying drawings.
Fig. 1 is a schematic circuit block diagram of an electromagnetic lock control circuit according to the present invention.
Fig. 2 is a circuit diagram of an output isolation driver module of the present invention.
Fig. 3 is a circuit diagram of an input isolation module of the present invention.
Fig. 4 is a circuit diagram of a configuration module of the present invention.
Fig. 5 is a circuit diagram of the interface J1 of the present invention.
FIG. 6 is a flow chart of a control method of the electromagnetic lock control circuit according to the present invention.
Description of the labeling:
100-an electromagnetic lock control circuit, 1-MCU, 2-output isolation drive module, 3-input isolation module, 4-configuration module, 5-power module.
Detailed Description
The technical scheme in the embodiment of the application has the following general idea: the interface J1 is arranged to select corresponding pins to be connected into the electromagnetic lock according to requirements so as to adapt to electromagnetic locks of different models, and complexity of system wiring is reduced; a dial switch S1 comprising 5 switches is arranged to configure lock types, contact types, working modes and delay time, so that the configuration complexity is reduced; through supporting magnetism to inhale lock and magnetism dynamic lock, manual mode and automatic mode, dry contact and wet contact, the different electromagnetic lock of adaptation and application scene finally realize promoting electromagnetic lock control circuit's compatibility and use convenience.
Referring to fig. 1 to 6, a preferred embodiment of an electromagnetic lock control circuit 100 according to the present invention includes an MCU1, an output isolation driving module 2, an input isolation module 3, a configuration module 4, an interface J1, and a power module 5;
the MCU1 is configured to receive configuration data configured by the configuration module 4, read a door-opening signal, and output an unlocking control signal by using different control logics according to the configuration data, and in specific implementation, it is only necessary to select an MCU capable of implementing this function from the prior art, and the MCU is not limited to any model, for example, an MCU of the STM32F103 series of ST corporation, and the control program is well known by those skilled in the art, which can be obtained by those skilled in the art without creative work; the output isolation driving module 2 is used for receiving an unlocking control signal output by the MCU1 and outputting the unlocking control signal through the interface J1; the input isolation module 3 is used for isolating the interface J1 and the MCU1 so as to improve the circuit stability; the configuration module 4 is used for configuring unlocking control logic (lock type, contact type, working mode and delay time duration); the interface J1 is provided with a door lock control pin (pin 1, pin 2), a signal ground pin (pin 3), an indoor unlocking signal pin (pin 4), an outdoor unlocking signal pin (pin 5) and a state signal pin (pin 6), and part of the electromagnetic lock with the door lock on-off state output function is connected with the state signal pin, and the interface J1 can also comprise a wiegand protocol interface signal pin during specific implementation; the power module 5 is used for supplying power to the electromagnetic lock control circuit 100, in the figure, VCC is used for supplying power to the MCU1, and VDD is used for supplying power to other circuit modules;
the input end of the MCU1 is connected with the input isolation module 3 and the configuration module 4, and the output end of the MCU1 is connected with the output isolation driving module 2; the interface J1 is respectively connected with the output isolation driving module 2 and the input isolation module 3; the power module 5 is respectively connected with the MCU1, the output isolation driving module 2, the input isolation module 3 and the configuration module 4.
The output isolation driving module 2 comprises an optocoupler U1, an optocoupler U2, a triode Q1, a triode Q2, a diode D1, a diode D2, a relay K1, a relay K2, a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5, a resistor R6 and a fuse F1; the diode D1 is used as a freewheeling diode to provide a release path for the energy stored in the coil of the relay K1, and to quickly reduce the induced voltage to protect the transistor Q1, because when the transistor Q1 is turned from on to off, the input coil of the relay K1 will generate an induced electromotive force, which may cause breakdown damage of the transistor Q1; the optical coupler U1 and the optical coupler U2 are used for carrying out electrical isolation protection on the MCU 1;
pin 1 of the optocoupler U1 is connected with a resistor R1, pin 2 is connected with the MCU1, pin 3 is connected with a resistor R2, and pin 4 is connected with the output end of the diode D1, pins 1 and 2 of the relay K1 and the power module 5; the base electrode of the triode Q1 is connected with the resistor R2 and the resistor R3, the collector electrode of the triode Q1 is connected with the input end of the diode D1 and the pin 4 of the relay K1, and the emitter electrode of the triode Q1 is connected with the resistor R3 and grounded; the resistor R1 is connected with the power module 5; one end of the fuse F1 is connected with a pin 3 of the relay K1, and the other end of the fuse F1 is connected with a pin 2 of the relay K2 and a pin 1 of the interface J1;
pin 1 of the optocoupler U2 is connected with a resistor R4, pin 2 is connected with the MCU1, pin 3 is connected with a resistor R5, and pin 4 is connected with the output end of the diode D2, pin 1 of the relay K2 and the power module 5; the base electrode of the triode Q2 is connected with the resistor R5 and the resistor R6, the collector electrode of the triode Q2 is connected with the input end of the diode D2 and the pin 4 of the relay K2, and the emitter electrode of the triode Q2 is connected with the resistor R6 and grounded; pin 3 of the relay K2 is connected to pin 2 of the interface J1.
The working principle of the output isolation driving module 2 is illustrated by the optocoupler U1, the triode Q1, the diode D1, the relay K1, the resistor R1, the resistor R2 and the resistor R3:
when MCU1 goes to opto-coupler U1 output high level, the inside emitting diode of opto-coupler U1 is not bright, and opto-coupler PN junction ends, triode Q1's base is stabilized at low level through resistance R3 ground connection, triode Q1 ends, relay K1 does not act, relay K1's output disconnection. When MCU1 exports the low level to opto-coupler U1, the inside emitting diode of opto-coupler U1 lights, and the opto-coupler PN junction switches on, triode Q1's base voltage reaches the voltage of switching on the condition after for resistance R2 and resistance R3 with VDD partial pressure, triode Q1 switches on, relay K1 switches on, relay K1 output is closed.
The input isolation module 3 comprises an optical coupler U3, an optical coupler U4, an optical coupler U5, a resistor R7, a resistor R8, a resistor R9, a resistor R10, a resistor R11 and a resistor R12;
a pin 1 of the optocoupler U3 is connected with a resistor R8, a pin 2 is connected with a pin 4 of an interface J1, a pin 3 is grounded, and the pin 4 is connected with a resistor R7 and an MCU 1; a pin 1 of the optocoupler U4 is connected with a resistor R10, a pin 2 is connected with a pin 5 of an interface J1, a pin 3 is grounded, and a pin 4 is connected with a resistor R9 and an MCU 1; a pin 1 of the optocoupler U5 is connected with a resistor R12, a pin 2 is connected with a pin 6 of an interface J1, a pin 3 is grounded, and a pin 4 is connected with a resistor R11 and an MCU 1;
the resistor R7, the resistor R8, the resistor R9, the resistor R10, the resistor R11 and the resistor R12 are all connected with the power module 5.
The optocoupler U3, the resistor R7, and the resistor R8 illustrate the working principle of the input isolation module 3:
when the optocoupler U3 does not receive a trigger signal, a light emitting diode inside the optocoupler U3 is not bright, a PN junction is cut off, a pin 4 of the optocoupler U3 is pulled up by a resistor R7 and then is input to the MCU1, and the MCU1 receives a high-level signal. Pin 3 ground connection of opto-coupler U3, when opto-coupler U3 received trigger signal, the inside emitting diode of opto-coupler U3 lights, and the PN junction switches on, MCU1 receives low level signal.
The configuration module 4 comprises a dial switch S1, a resistor R13, a resistor R14, a resistor R15, a resistor R16 and a resistor R17;
pins 1, 2, 3, 4 and 5 of the dial switch S1 are respectively connected with one ends of a resistor R13, a resistor R14, a resistor R15, a resistor R16 and a resistor R17, and pins 6, 7, 8, 9 and 10 are all grounded; the other ends of the resistor R13, the resistor R14, the resistor R15, the resistor R16 and the resistor R17 are connected with the MCU1 and the power module 5.
The electromagnetic lock, whether magnetic attraction type or magnetic motive type, can be uniformly divided into 1, power-on unlocking and power-off locking; 2. powering on and off the lock, and powering off and unlocking the lock; then, the power supply is divided into a power supply with an electromagnetic lock and a power supply without the electromagnetic lock according to actual installation requirements; the configuration module 4 is configured to configure a control logic according to the type and installation requirement of the electromagnetic lock, the switch corresponding to pin 1 of the dial switch S1 is configured to configure the type of the lock, the switch corresponding to pin 2 is configured to configure the type of a contact (a dry contact has 2 states of on and off, no polarity exists between the two contacts, and polarity exists between the two contacts), the switch corresponding to pin 3 is configured to configure the working mode of the electromagnetic lock (automatic mode: after receiving an unlocking signal, the electromagnetic lock is opened and automatically closed after a certain time delay; manual mode: after receiving the unlocking signal, the electromagnetic lock is kept opened until the unlocking signal disappears, and the electromagnetic lock is immediately closed), the switches corresponding to pins 4 and 5 are configured to configure the time delay in the automatic mode, 4-step time length can be set according to binary number, where the example is set to 3S, 6s, 9s and 12s, if more time gears are needed, the number of the bits of the dial switch can be increased, and if the delay time length of each gear is needed to be modified, the execution code of the MCU1 needs to be modified.
Pins 1 and 2 of the interface J1 are connected with the output isolation driving module 2, pin 3 is grounded, and pins 4, 5 and 6 are connected with the input isolation module 3.
The electromagnetic lock control circuit 100 can be applied to a central control device with a network centralized control function, the MCU1 reserves a hardware communication interface and a software communication interface, a user can directly edit configuration data on a cloud platform controlled in a network and send the edited configuration data to the MCU1, and the priority of the configuration data received by the MCU1 through the communication interface is higher than the setting of the configuration module 4. In specific implementation, a wiegand protocol interface can be added, after a user performs identity verification on an external door unlocking device outside a door, the external door unlocking device sends identity verification information to the MCU1 through the wiegand protocol interface, and the MCU1 sends the authentication information to the cloud platform to perform identity verification and then performs unlocking.
The invention discloses a better embodiment of a control method of an electromagnetic lock control circuit, which comprises the following steps:
step S10, the MCU receives configuration data including lock type, contact type, working mode and delay time through a configuration module;
and S20, the MCU receives a door opening signal, and outputs a corresponding level signal to the electromagnetic lock sequentially through the output isolation driving module and the interface J1 based on the configuration data and the door opening signal so as to control the electromagnetic lock.
In the step S10, the lock is of a magnetic type or a magnetic type and is configured by a switch corresponding to pin 1 of the dial switch S1;
the contact type is a dry contact or a wet node, and the contact type is configured through a switch corresponding to a pin 2 of a dial switch S1;
the working mode is an automatic mode or a manual mode, and is configured through a switch corresponding to a pin 3 of a dial switch S1;
the delay time duration is configured through a switch corresponding to the pin 4 and the pin 5 of the dial switch S1, and a 4-gear time duration is preset.
The step S20 specifically includes:
in the configuration data, when the lock type is a magnetic type, the MCU outputs a high level to the optocoupler U2 based on a received door opening signal so as to disconnect the relay K2, and the electromagnetic lock is powered off through a pin 2 of the interface J1 so as to execute an unlocking action of the electromagnetic lock; the MCU outputs low level to the optocoupler U2 based on the received door opening signal, and then performs unlocking action of the electromagnetic lock;
when the lock is of a magnetic type, the MCU outputs a low level to the optocoupler U2 based on a received door opening signal so as to switch on the relay K2, and the electromagnetic lock is electrified through a pin 2 of the interface J1 so as to execute the unlocking action of the electromagnetic lock; the MCU outputs high level to the optocoupler U2 based on the received door opening signal, and then executes the locking action of the electromagnetic lock;
when the contact type is a dry contact, the MCU outputs a high level to the optocoupler U1 to enable the optocoupler U1 to be in a cut-off state; the MCU outputs a level signal to the optocoupler U2 based on the received door opening signal, so that the pin 1 and the pin 2 of the interface J1 only have two actions of on and off to control the on and off of the electromagnetic lock;
when the contact type is a wet contact, the MCU outputs a low level to the optocoupler U1 to switch on the relay K1, and the fuse F1 outputs a high level to a pin 2 of the relay K2; the MCU outputs a level signal to the optocoupler U2 based on the received door opening signal, so that a pin 1 and a pin 2 of the interface J1 are in an electrified state and a non-electrified state to control the on-off state of the electromagnetic lock;
when the working mode is the automatic mode, the MCU outputs a low level to the optocoupler 2 to switch on the relay K2 based on the received door opening signal, the electromagnetic lock is electrified through a pin 2 of an interface J1 to further execute the unlocking action of the electromagnetic lock, and after the unlocking action is kept for the delay time, the MCU outputs a high level to the optocoupler U2 to further execute the locking action of the electromagnetic lock; the delay time length is selected based on the 4 th bit and the 5 th bit of the dial switch S1, the 4 th bit and the 5 th bit of the dial switch S1 are combined in pairs to have 4 conditions, and the MCU presets a gear of the delay time length for each condition;
when the working mode is the manual mode, the MCU outputs a low level to the optocoupler 2 to switch on the relay K2 based on the received door opening signal, the electromagnetic lock is powered on through a pin 2 of an interface J1, the unlocking action of the electromagnetic lock is further executed, and when the door opening signal is not detected, the optocoupler U2 outputs a high level, and the locking action of the electromagnetic lock is further executed.
In summary, the invention has the advantages that:
by arranging the interface J1, corresponding pins can be selected to be connected into the electromagnetic lock according to requirements so as to adapt to electromagnetic locks of different models and reduce the complexity of system wiring; by setting the dial switch S1 comprising 5 switches, the configuration data of lock types, contact types, working modes and delay duration can be set for the MCU through the dial switch S1, and the method is simple and convenient; owing to support magnetism to inhale the formula, magnetic type, dry contact, wet node, automatic mode, manual mode, can inhale magnetism in order to drive on the market and lock and magnetic lock, compatibility is strong, can set up to manual mode or automatic mode according to the user demand of difference, it is nimble convenient, the drive of electromagnetic lock can be configured into dry contact and wet contact, the user can only purchase the lock body cooperation and use, also can reform transform on original access control system, the at utmost reduces and uses and reform transform the cost, final very big promotion electromagnetic lock control circuit's compatibility and use convenience.
Although specific embodiments of the invention have been described above, it will be understood by those skilled in the art that the specific embodiments described are illustrative only and are not limiting upon the scope of the invention, and that equivalent modifications and variations can be made by those skilled in the art without departing from the spirit of the invention, which is to be limited only by the appended claims.

Claims (8)

1. An electromagnetic lock control circuit, characterized by: comprises an MCU, an output isolation driving module, an input isolation module, a configuration module, an interface J1 and a power module;
the input end of the MCU is connected with the input isolation module and the configuration module, and the output end of the MCU is connected with the output isolation driving module; the interface J1 is respectively connected with the output isolation driving module and the input isolation module; the power supply module is respectively connected with the MCU, the output isolation driving module, the input isolation module and the configuration module.
2. The electromagnetic lock control circuit of claim 1, wherein: the output isolation driving module comprises an optical coupler U1, an optical coupler U2, a triode Q1, a triode Q2, a diode D1, a diode D2, a relay K1, a relay K2, a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5, a resistor R6 and a fuse F1;
pin 1 of the optocoupler U1 is connected with the resistor R1, pin 2 is connected with the MCU, pin 3 is connected with the resistor R2, and pin 4 is connected with the output end of the diode D1, pins 1 and 2 of the relay K1 and the power module; the base electrode of the triode Q1 is connected with the resistor R2 and the resistor R3, the collector electrode of the triode Q1 is connected with the input end of the diode D1 and the pin 4 of the relay K1, and the emitter electrode of the triode Q1 is connected with the resistor R3 and grounded; the resistor R1 is connected with the power supply module; one end of the fuse F1 is connected with a pin 3 of the relay K1, and the other end of the fuse F1 is connected with a pin 2 of the relay K2 and a pin 1 of the interface J1;
pin 1 of the optocoupler U2 is connected with the resistor R4, pin 2 is connected with the MCU, pin 3 is connected with the resistor R5, and pin 4 is connected with the output end of the diode D2, pin 1 of the relay K2 and the power module; the base electrode of the triode Q2 is connected with the resistor R5 and the resistor R6, the collector electrode of the triode Q2 is connected with the input end of the diode D2 and the pin 4 of the relay K2, and the emitter electrode of the triode Q2 is connected with the resistor R6 and grounded; pin 3 of the relay K2 is connected to pin 2 of the interface J1.
3. The electromagnetic lock control circuit of claim 1, wherein: the input isolation module comprises an optical coupler U3, an optical coupler U4, an optical coupler U5, a resistor R7, a resistor R8, a resistor R9, a resistor R10, a resistor R11 and a resistor R12;
a pin 1 of the optocoupler U3 is connected with a resistor R8, a pin 2 is connected with a pin 4 of the interface J1, a pin 3 is grounded, and the pin 4 is connected with a resistor R7 and an MCU; a pin 1 of the optocoupler U4 is connected with a resistor R10, a pin 2 is connected with a pin 5 of the interface J1, a pin 3 is grounded, and a pin 4 is connected with a resistor R9 and the MCU; a pin 1 of the optocoupler U5 is connected with a resistor R12, a pin 2 is connected with a pin 6 of an interface J1, a pin 3 is grounded, and a pin 4 is connected with a resistor R11 and an MCU;
the resistor R7, the resistor R8, the resistor R9, the resistor R10, the resistor R11 and the resistor R12 are all connected with the power module.
4. The electromagnetic lock control circuit of claim 1, wherein: the configuration module comprises a dial switch S1, a resistor R13, a resistor R14, a resistor R15, a resistor R16 and a resistor R17;
pins 1, 2, 3, 4 and 5 of the dial switch S1 are respectively connected with one ends of a resistor R13, a resistor R14, a resistor R15, a resistor R16 and a resistor R17, and pins 6, 7, 8, 9 and 10 are all grounded; the other ends of the resistor R13, the resistor R14, the resistor R15, the resistor R16 and the resistor R17 are connected with the MCU and the power module.
5. The electromagnetic lock control circuit of claim 1, wherein: pins 1 and 2 of the interface J1 are connected with the output isolation driving module, pin 3 is grounded, and pins 4, 5 and 6 are connected with the input isolation module.
6. A control method of an electromagnetic lock control circuit is characterized in that: the method requires the use of a control circuit according to any of claims 1 to 5, comprising the steps of:
step S10, the MCU receives configuration data including lock type, contact type, working mode and delay time through a configuration module;
and S20, the MCU receives a door opening signal, and outputs a corresponding level signal to the electromagnetic lock sequentially through the output isolation driving module and the interface J1 based on the configuration data and the door opening signal so as to control the electromagnetic lock.
7. The control method of the electromagnetic lock control circuit according to claim 6, characterized in that: in the step S10, the lock is of a magnetic type or a magnetic type and is configured by a switch corresponding to pin 1 of the dial switch S1;
the contact type is a dry contact or a wet node, and the contact type is configured through a switch corresponding to a pin 2 of a dial switch S1;
the working mode is an automatic mode or a manual mode, and is configured through a switch corresponding to a pin 3 of a dial switch S1;
the delay time duration is configured through a switch corresponding to the pin 4 and the pin 5 of the dial switch S1, and a 4-gear time duration is preset.
8. The control method of the electromagnetic lock control circuit according to claim 7, characterized in that: the step S20 specifically includes:
in the configuration data, when the lock type is a magnetic type, the MCU outputs a high level to the optocoupler U2 based on a received door opening signal so as to disconnect the relay K2, and the electromagnetic lock is powered off through a pin 2 of the interface J1 so as to execute an unlocking action of the electromagnetic lock; the MCU outputs low level to the optocoupler U2 based on the received door opening signal, and then performs unlocking action of the electromagnetic lock;
when the lock is of a magnetic type, the MCU outputs a low level to the optocoupler U2 based on a received door opening signal so as to switch on the relay K2, and the electromagnetic lock is electrified through a pin 2 of the interface J1 so as to execute the unlocking action of the electromagnetic lock; the MCU outputs high level to the optocoupler U2 based on the received door opening signal, and then executes the locking action of the electromagnetic lock;
when the contact type is a dry contact, the MCU outputs a high level to the optocoupler U1 to enable the optocoupler U1 to be in a cut-off state; the MCU outputs a level signal to the optocoupler U2 based on the received door opening signal, so that the pin 1 and the pin 2 of the interface J1 only have two actions of on and off to control the on and off of the electromagnetic lock;
when the contact type is a wet contact, the MCU outputs a low level to the optocoupler U1 to switch on the relay K1, and the fuse F1 outputs a high level to a pin 2 of the relay K2; the MCU outputs a level signal to the optocoupler U2 based on the received door opening signal, so that a pin 1 and a pin 2 of the interface J1 are in an electrified state and a non-electrified state to control the on-off state of the electromagnetic lock;
when the working mode is the automatic mode, the MCU outputs a low level to the optocoupler 2 to switch on the relay K2 based on the received door opening signal, the electromagnetic lock is electrified through a pin 2 of an interface J1 to further execute the unlocking action of the electromagnetic lock, and after the unlocking action is kept for the delay time, the MCU outputs a high level to the optocoupler U2 to further execute the locking action of the electromagnetic lock;
when the working mode is the manual mode, the MCU outputs a low level to the optocoupler 2 to switch on the relay K2 based on the received door opening signal, the electromagnetic lock is powered on through a pin 2 of an interface J1, the unlocking action of the electromagnetic lock is further executed, and when the door opening signal is not detected, the optocoupler U2 outputs a high level, and the locking action of the electromagnetic lock is further executed.
CN202111453390.4A 2021-12-01 2021-12-01 Electromagnetic lock control circuit and control method Pending CN114352132A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111453390.4A CN114352132A (en) 2021-12-01 2021-12-01 Electromagnetic lock control circuit and control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111453390.4A CN114352132A (en) 2021-12-01 2021-12-01 Electromagnetic lock control circuit and control method

Publications (1)

Publication Number Publication Date
CN114352132A true CN114352132A (en) 2022-04-15

Family

ID=81096672

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111453390.4A Pending CN114352132A (en) 2021-12-01 2021-12-01 Electromagnetic lock control circuit and control method

Country Status (1)

Country Link
CN (1) CN114352132A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115963750A (en) * 2022-12-14 2023-04-14 山东有人物联网股份有限公司 Dry and wet node acquisition circuit, method, terminal equipment and computer storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115963750A (en) * 2022-12-14 2023-04-14 山东有人物联网股份有限公司 Dry and wet node acquisition circuit, method, terminal equipment and computer storage medium

Similar Documents

Publication Publication Date Title
CN205136752U (en) Energy -conserving drive arrangement of low pressure electromagnetic type electrical apparatus
CN106774210A (en) A kind of smart jack, appliance control system and smart jack control method
CN114352132A (en) Electromagnetic lock control circuit and control method
CN112498138A (en) Electronic lock driving circuit of direct-current charging gun
CN108092361A (en) The battery protecting circuit of low standby power loss and car emergency startup power supply
CN217106533U (en) Electromagnetic lock control circuit
CN104345729A (en) Current-loop communication loop-based power supply control circuit
CN103669252B (en) A kind of gate automatically
CN105202250A (en) Energy-saving drive device for low-voltage electromagnetic type electric appliance
CN209200761U (en) The power transfer device of vehicle-mounted T-BOX, vehicle-mounted T-BOX
CN101504577A (en) Remote control computer power supply socket apparatus and its remote control method
CN105137890A (en) Fan and water pump controller for building
CN204423381U (en) A kind of gate inhibition's smart card controller be arranged on metal decking
CN101643098A (en) Energy-saving automatically-warning battery theft-preventing alarm device and control method thereof
CN100557627C (en) A kind of long distance vehicle recognition system
CN105225465B (en) Automatic power switch remote controler with IP address safety lock
CN110737222B (en) Manual and automatic switching on and switching off circuit and method of isolation circuit system
CN208282283U (en) Air-conditioning, air-conditioner control system and outdoor unit switching circuit
CN208061126U (en) Power supply enables circuit
CN215580959U (en) Garage door motor control circuit
CN108448725B (en) Power supply control circuit and control method
CN218038115U (en) 4G intelligent door lock
CN207282846U (en) A kind of intelligent socket of the double protection functions with electron key
CN204983986U (en) Intelligence lock system
CN2160171Y (en) General infrared remote control switch for household electric appliance power source

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination