Handle lock
Through the Wiegand signal card reader, unlocking input signal and door opening command combined with the handle lock that detects the motor position of the Hall sensor, the safety hazards and power consumption problems of existing door locks are solved, and the safety and low-power design of various unlocking methods are realized.
Patent Information
- Application Number
- CN202422027940.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2034-08-20
AI Technical Summary
The unlocking methods of existing door locks pose safety risks, such as loss of mechanical keys, injury to fingerprint recognition or stains, pendant or forgotten passwords, and the continuous operation of the motor increases power consumption.
Weggan signal card reader, unlocking input signal and door opening command combined with Hall sensor to detect the motor position, judge the door opening conditions through the processor and control the motor operation, providing a variety of unlocking methods to reduce power consumption.
It improves the success rate and convenience of unlocking, enhances safety and reliability, and reduces the power consumption of the entire machine.
Smart Images

Figure CN223075307U_ABST
Abstract
Description
Technical Field
[0001] The utility model belongs to the technical field of electronic circuits, and particularly relates to a handle lock. Background Art
[0002] Most of the door locks on the market currently adopt single unlocking methods such as mechanical keys, fingerprint recognition, and password keyboards. Although these unlocking methods can meet the needs of users, there are security risks. For example, if a mechanical key is used for unlocking, when the mechanical key is lost, it is easy to cause security problems. Another example is that if fingerprint recognition is used for unlocking, when the finger is injured or stained, it cannot be normally unlocked. Another example is that if a password keyboard is used for unlocking, when the password is peeped or forgotten, it will also lead to the occurrence of security problems. In addition, after unlocking, for door locks with motors, the motors keep running, increasing power consumption. Therefore, how to provide a handle lock with higher security and lower power consumption has become an urgent problem to be solved. Content of the Utility Model
[0003] In order to solve all or part of the above problems, the purpose of the utility model is to provide a handle lock.
[0004] According to one aspect of the utility model, a handle lock is provided, including:
[0005] A card reader interface, used to externally connect a Weigand signal card reader, read the Weigand signal transmitted by the Weigand signal card reader, and drive the Weigand signal to a processor;
[0006] An unlocking signal input module, used to receive an unlocking input signal and drive the unlocking input signal to a processor;
[0007] A communication interface, connected to an external communication board, used to receive an opening instruction sent by the external communication board and drive the opening instruction to a processor;
[0008] A processor, connected to the card reader interface, the unlocking signal input module, the communication interface, the Hall sensor input interface, the Hall power supply interface, and the motor drive circuit, used to determine whether the Weigand signal, the unlocking input signal, or the opening instruction meets a preset opening condition. If so, output a motor drive signal to the motor drive circuit and output a first-level drive signal to the Hall power supply interface; determine whether the motor reaches a target position according to the Hall sensor input signal. If so, output a signal to stop the motor from running to the motor drive circuit and output a second-level drive signal to the Hall power supply interface;
[0009] A Hall sensor, used to collect a motor position signal and transmit the motor position signal as a Hall input signal to the Hall sensor input interface;
[0010] A Hall sensor input interface, which is used to receive the Hall input signal transmitted by the Hall sensor and drive the Hall input signal to the processor;
[0011] A Hall power interface, which is connected to the power interface of the Hall sensor and is used to control the power supply to the Hall sensor according to the first-level driving signal output by the processor; and control the power-off of the Hall sensor according to the second-level driving signal output by the processor;
[0012] A motor drive circuit, which is used to drive the motor to operate to open the door according to the motor drive signal; control the motor to stop running according to the stop motor operation signal.
[0013] Further, the Hall power interface includes: MOS transistor Q6;
[0014] A processor, which is used to output a first-level driving signal to the Hall power interface to control the conduction of MOS transistor Q6 to supply power to the Hall sensor; output a second-level driving signal to the Hall power interface to control the cut-off of MOS transistor Q6 to cut off the power supply to the Hall sensor.
[0015] Further, the Hall power interface further includes: resistor R31, resistor R32, capacitor C10;
[0016] The first end of resistor R32 is connected to the processor, the second end of resistor R32 and the second end of resistor R31 are connected to the gate of MOS transistor Q6, the source of MOS transistor Q6 is connected to the power interface of the Hall sensor and the first end of capacitor C10, the second end of capacitor C10 is grounded, and the drain of MOS transistor Q6 and the first end of capacitor R31 are connected to the power supply.
[0017] Further, the card reader interface includes: triode Q4, triode Q8, resistor R4, resistor R5, resistor R7, resistor R9, resistor R10, resistor R11, capacitor C5, capacitor C6;
[0018] The first end of capacitor C5 and the first end of resistor R4 are connected to the Wiegand signal card reader, the second end of capacitor C5 is grounded, the second end of resistor R4 and the first end of resistor R5 are connected to the base of triode Q4, the second end of resistor R5 is grounded, the emitter of triode Q4 is connected to the processor and the first end of resistor R7, the second end of resistor R7 is grounded, and the collector of triode Q4 is connected to the power supply module;
[0019] The first end of capacitor C6 and the first end of resistor R9 are connected to the Wiegand signal card reader, the second end of capacitor C6 is grounded, the second end of resistor R9 and the first end of resistor R10 are connected to the base of triode Q8, the second end of resistor R10 is grounded, the emitter of triode Q8 is connected to the processor and the first end of resistor R11, the second end of resistor R11 is grounded, and the collector of triode Q8 is connected to the power supply module.
[0020] Further, the Hall sensor input interface includes: triode Q9, triode Q10, resistor R12, resistor R13, resistor R16, resistor R17, resistor R18, resistor R19, diode D6, diode D7;
[0021] The collector of triode Q9 and the first end of resistor R12 are connected to 3.3VDC. The base of triode Q9 is connected to the second end of resistor R12 and the positive electrode of diode D6. The negative electrode of diode D6 is connected to the first end of resistor R13. The second end of resistor R13 is connected to the Hall sensor. The emitter of triode Q9 and the first end of resistor R16 are connected to the processor, and the second end of resistor R16 is grounded;
[0022] The collector of triode Q10 and the first end of resistor R17 are connected to 3.3VDC. The base of triode Q10 is connected to the second end of resistor R17 and the positive electrode of diode D7. The negative electrode of diode D7 is connected to the first end of resistor R18. The second end of resistor R18 is connected to the Hall sensor. The emitter of triode Q10 and the first end of resistor R19 are connected to the processor, and the second end of resistor R19 is grounded.
[0023] Further, the processor is further configured to: determine whether the Wiegand signal has the unlocking permission. If so, output a motor drive signal to the motor drive circuit; or, determine whether the unlocking input signal is valid. If so, output a motor drive signal to the motor drive circuit; or, determine whether the door opening instruction is valid. If so, output a motor drive signal to the motor drive circuit.
[0024] Further, the handle lock further includes: a door magnetic interface, connected to the door magnetic, for receiving the door magnetic signal output by the door magnetic and outputting the door magnetic signal to the processor;
[0025] The processor is also configured to: determine the state of the door according to the door magnetic signal.
[0026] Further, the processor is also configured to: send a corresponding state drive signal to the state indicator according to the state of the door;
[0027] The state indicator is used to indicate the corresponding door lock state according to the state drive signal.
[0028] Further, the communication interface is also used to: receive the door state query instruction sent by the external communication board and drive the door state query instruction to the processor;
[0029] The processor is also configured to: output the state of the door to the external communication board through the communication interface.
[0030] Furthermore, the handle lock further includes: a power supply module, which is used to convert the 6VDC input through the power interface into 3.3VDC and supply power to the card reader interface, the unlocking signal input module, the processor, and the Hall sensor input interface.
[0031] As can be seen from the above technical solutions, a handle lock provided by the present utility model has the following beneficial effects:
[0032] The handle lock of the present utility model has multiple unlocking methods and can be unlocked by means of the Weigand signal of the Weigand signal card reader, the unlocking input signal, or the door opening instruction, improving the success rate and convenience of unlocking, and further enhancing the security and reliability of the handle lock. Moreover, the Hall sensor is used to detect whether the motor operation reaches the specified position, thereby determining whether to stop the motor operation and cut off the Hall power supply to reduce the overall power consumption of the machine. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 is a schematic structural diagram of a handle lock according to an embodiment of the present utility model;
[0034] Figure 2 is a schematic circuit diagram of the processor according to an embodiment of the present utility model;
[0035] Figure 3 is a schematic circuit diagram of the power supply module according to an embodiment of the present utility model;
[0036] Figure 4 is a schematic circuit diagram of the card reader interface;
[0037] Figure 5 is a schematic circuit diagram of the Hall power supply interface;
[0038] Figure 6 is a schematic circuit diagram of the Hall sensor input interface;
[0039] Figure 7 is a schematic circuit diagram of the door opening button and the door magnetic interface;
[0040] Figure 8 is a schematic circuit diagram of the buzzer interface;
[0041] Figure 9 is a schematic diagram of the communication interface;
[0042] Figure 10 is a schematic diagram of the indicator light;
[0043] Figure 11 is a schematic diagram of the motor drive circuit. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0044] To better understand the purpose, structure, and function of the present utility model, the following provides a more detailed description of a handle lock of the present utility model with reference to the accompanying drawings.
[0045] Figure 1 It is a schematic structural diagram of a handle lock according to an embodiment of the present utility model. As Figure 1 shown, the handle lock includes:
[0046] A card reader interface 101, which is used to externally connect to a Wiegand signal card reader, read the Wiegand signal transmitted by the Wiegand signal card reader, and drive the Wiegand signal to the processor.
[0047] When the user brings the card close to the Wiegand signal card reader, the Wiegand signal card reader will read the information on the card and convert it into a Wiegand signal. The Wiegand signal card reader transmits the Wiegand signal to the card reader interface, and the card reader interface reads the Wiegand signal transmitted by the Wiegand signal card reader and drives the Wiegand signal to the processor MCU.
[0048] An unlocking signal input module 102, which is used to receive an unlocking input signal and drive the unlocking input signal to the processor.
[0049] Specifically, the unlocking signal input module can be a push-button switch or a touch sensing device, etc. When the push-button switch is pressed or a certain area is touched, the unlocking signal input module will generate an unlocking input signal, and this unlocking input signal will be driven to the processor MCU.
[0050] A communication interface 103, which is connected to an external communication board and is used to receive the door opening instruction sent by the external communication board and drive the door opening instruction to the processor.
[0051] The communication interface can be a serial communication interface or a wireless communication interface, etc. When the external communication board sends a door opening instruction, the communication interface will receive this door opening instruction and drive it to the processor MCU.
[0052] A processor 104, which is connected to the card reader interface, the unlocking signal input module, the communication interface, the Hall sensor input interface, the Hall power supply interface, and the motor drive circuit, is used to determine whether the Wiegand signal, the unlocking input signal, or the door opening instruction meets the preset door opening condition. If so, it outputs a motor drive signal to the motor drive circuit and outputs a first-level drive signal to the Hall power supply interface; it determines whether the motor reaches the target position according to the Hall sensor input signal. If so, it outputs a signal to stop the motor operation to the motor drive circuit and outputs a second-level drive signal to the Hall power supply interface.
[0053] Among them, Figure 2The circuit schematic diagram of the processor according to the embodiment of the present invention. The processor may adopt a CH571F chip. The pins of the CH571F chip are as Figure 2 shown, and no specific description is made here. The CH571F chip integrates a 32-bit RISC processor WCH RISC-V3A microcontroller, supports the RV32IMAC instruction set, hardware multiplication and division, and a low-power two-stage pipeline. On-chip integration of low-power device controllers and transceivers, SPI, 4 serial ports, ADC, touch button detection modules, RTC and other rich peripheral resources; 192KB user application program storage area; with idle mode, pause mode, sleep mode, power-down mode and other low-power modes available. The CH571F chip is connected to a crystal oscillator. Header4 is a 4-wire jumper pad for connecting the SWDCLK pin and the SWDIO pin of the CH571F chip.
[0054] When the user opens the door in any of the above ways, the processor can receive one of the Wiegand signal, unlock input signal or door opening instruction. Then, the processor determines whether the Wiegand signal, unlock input signal or door opening instruction meets the preset door opening condition. More specifically, the processor is further configured to: determine whether the Wiegand signal has the unlock permission. If so, it outputs a motor drive signal to the motor drive circuit. For example, the processor can first restore the Wiegand card number according to the Wiegand signal, and match the Wiegand card number with the preset Wiegand card numbers with unlock permission to determine whether the Wiegand card number has the unlock permission. If it has the unlock permission, it outputs a motor drive signal to the motor drive circuit, thereby starting the motor and opening the door lock.
[0055] Alternatively, the processor MCU will determine whether the unlock input signal is valid. If so, it outputs a motor drive signal to the motor drive circuit. For example, the unlock signal corresponding to unlocking is pre-configured in the processor MCU. For example, the high-level signal unlocks. After obtaining the unlock input signal, it will determine whether this unlock input signal is valid. For example, it determines whether the unlock input signal is a high-level signal. If so, it is determined to be valid, and then a motor drive signal will be output to the motor drive circuit, thereby starting the motor and opening the door lock.
[0056] Alternatively, the processor MCU will determine whether the door opening instruction is valid. If so, it outputs a motor drive signal to the motor drive circuit, thereby starting the motor and opening the door lock. The implementation is similar to determining whether the unlock input signal is valid and will not be elaborated here.
[0057] When the processor MCU outputs a motor drive signal to the motor drive circuit, it outputs a first-level drive signal to the Hall power interface. The first-level drive signal is a low-level drive signal for driving the Hall power interface to supply power to the Hall sensor.
[0058] The Hall sensor 105 is used to collect the motor position signal and transmit the motor position signal as the Hall input signal to the Hall sensor input interface.
[0059] The Hall sensor input interface 106 is used to receive the Hall input signal transmitted by the Hall sensor and drive the Hall input signal to the processor.
[0060] The Hall power interface 107 is connected to the power interface of the Hall sensor and is used to control the power supply to the Hall sensor according to the first level drive signal output by the processor; and, control the power off of the Hall sensor according to the second level drive signal output by the processor.
[0061] Specifically, a Hall sensor is provided inside the handle lock. The Hall sensor is installed on the motor. The power interface of the Hall sensor is connected to the Hall power interface, and the signal interface of the Hall sensor is connected to the Hall sensor input interface. After the processor outputs the motor drive signal to the motor drive circuit, the motor drive circuit 108 will drive the motor to actuate to open the door according to the motor drive signal. In order to be able to detect whether the motor operation reaches the target position, for example, the open door position, the Hall sensor can be started for detection. Therefore, the processor can output the first level drive signal to the Hall power interface, and the Hall power interface controls the power supply to the Hall sensor according to the first level drive signal output by the processor to make the Hall sensor work. When the Hall sensor detects that the motor rotates, a motor position signal will be generated, and then the motor position signal will be transmitted as the Hall input signal to the Hall sensor input interface. The Hall sensor input interface drives the Hall input signal to the processor MCU, and the processor MCU can judge whether the motor reaches the target position (that is, whether the door opening operation has been completed) according to the Hall input signal. If so, the processor MCU will output a signal to stop the motor operation to the motor drive circuit, and will also output the second level drive signal to the Hall power interface. The Hall power interface controls the power off of the Hall sensor according to the second level drive signal output by the processor, cuts off the Hall power supply, thereby turning off the Hall sensor, saving power, and reducing the overall power consumption of the machine. The second level drive signal is a high level signal used to drive the Hall power interface to cut off the power supply to the Hall sensor.
[0062] The motor drive circuit 108 is used to drive the motor to actuate to open the door according to the motor drive signal; control the motor to stop running according to the stop motor operation signal.
[0063] After receiving the motor drive signal output by the processor, the motor drive circuit can drive the motor to actuate to open the door according to the motor drive signal, and after receiving the stop motor operation signal output by the processor, control the motor to stop running according to the stop motor operation signal.
[0064] In an alternative embodiment, the handle lock further includes: a power supply module for converting the 6VDC input through the power interface into 3.3VDC and supplying power to the card reader interface, the unlocking signal input module, the processor, and the Hall sensor input interface. As Figure 3 shown, the power supply module includes: diode D1, capacitor C1, capacitor C3, resistor R1, LDO power supply chip U1, capacitor C4, capacitor C2. The positive pole of diode D1 is connected to the first end of the power interface, the second end of the power interface is grounded, the negative pole of diode D1 is connected to the first end of capacitor C1, the first end of capacitor C3, the first end of resistor R1, and the first end of LDO power supply chip U1. The second ends of capacitor C1 and capacitor C3 are grounded. The second end of resistor R1 is connected to the third end of LDO power supply chip U1. The second end of LDO power supply chip U1 is grounded. The fifth end of LDO power supply chip U1 is connected to the first ends of capacitor C4 and capacitor C2 to output 3.3VDC. The second ends of capacitor C4 and capacitor C2 are grounded.
[0065] More specifically, the power interface can be a standard Micro USB interface and can be directly plugged with a charging cable for charging. The power supply module PMIC is a buck voltage regulator chip that can convert the input voltage from 6VDC to 3.3VDC. This 3.3VDC voltage is used to supply the working current of the entire handle lock. The card reader interface, the unlocking signal input module, the processor MCU, the Hall sensor input interface, etc. all need to use this voltage.
[0066] In an alternative embodiment, Figure 4 is a circuit schematic diagram of the card reader interface. As Figure 4 shown, the card reader interface P3 includes: triode Q4, triode Q8, resistor R4, resistor R5, resistor R7, resistor R9, resistor R10, resistor R11, capacitor C5, capacitor C6;
[0067] The first end of capacitor C5 and the first end of resistor R4 are connected to the Weigen signal card reader. The second end of capacitor C5 is grounded. The second end of resistor R4 and the first end of resistor R5 are connected to the base of triode Q4. The second end of resistor R5 is grounded. The emitter of triode Q4 is connected to the processor and the first end of resistor R7. The second end of resistor R7 is grounded. The collector of triode Q4 is connected to the power supply module;
[0068] The first end of capacitor C6 and the first end of resistor R9 are connected to the Weigen signal card reader. The second end of capacitor C6 is grounded. The second end of resistor R9 and the first end of resistor R10 are connected to the base of triode Q8. The second end of resistor R10 is grounded. The emitter of triode Q8 is connected to the processor and the first end of resistor R11. The second end of resistor R11 is grounded. The collector of triode Q8 is connected to the power supply module.
[0069] More specifically, the triodes Q4 and Q8 serve as the two channels of the card reader interface of the Weigand signal card reader. The Weigand signal card reader outputs two Weigand signals. One passes through the triode Q4 and enters the processor MCU, and the other passes through the triode Q8 and enters the processor MCU. That is, the Weigand signal is isolated and driven by the Q4 S8050 and Q8 S8050 triodes and then connected to the MCU through the IO. The processor MCU will determine whether the Weigand signal has the unlocking permission based on these two Weigand signals. If so, it will output a motor drive signal to the motor drive circuit, thereby starting the motor and opening the door lock.
[0070] In addition, the card reader interface includes: a green light control signal output, including: a resistor R30, a resistor R28, and a triode Q5. Among them, the first end of the resistor R28 is connected to 3.3VDC, the second end of the resistor R28 is connected to the collector of the triode Q5 and is connected to the Weigand signal card reader. The emitter of the triode Q5 is grounded, and the base of the triode Q5 is connected to the processor MCU.
[0071] In an alternative embodiment, Figure 5 is a schematic circuit diagram of the Hall power supply interface, as Figure 5 shown. The Hall power supply interface P7 includes: a MOS tube Q6, a resistor R31, a resistor R32, and a capacitor C10;
[0072] The first end of the resistor R32 is connected to the processor. The second end of the resistor R32 and the second end of the resistor R31 are connected to the gate of the MOS tube Q6. The source of the MOS tube Q6 is connected to the power supply interface of the Hall sensor and the first end of the capacitor C10. The second end of the capacitor C10 is grounded. The drain of the MOS tube Q6 and the first end of the capacitor R31 are connected to the power supply;
[0073] The processor is configured to output a first-level drive signal to the Hall power supply interface to control the MOS tube Q6 to conduct and supply power to the Hall sensor; output a second-level drive signal to the Hall power supply interface to control the MOS tube Q6 to cut off and cut off the power supply to the Hall sensor.
[0074] When it is necessary to detect the Hall state (during the unlocking process of the handle lock), the IO of the MCU becomes low level to drive the Q6 BSS84 field effect tube to conduct and supply power to the Hall sensor. When it is not necessary to detect the Hall state (for example, the handle lock has been opened), the IO of the MCU becomes high level, the Q6 BSS84 is cut off, the Hall sensor loses power supply, and the Hall sensor does not need power supply, thus reducing the overall power consumption of the machine.
[0075] In an alternative embodiment, Figure 6 is a schematic circuit diagram of the Hall sensor input interface, as Figure 6As shown, the Hall sensor input interface P5 includes: triode Q9, triode Q10, resistor R12, resistor R13, resistor R16, resistor R17, resistor R18, resistor R19, diode D6, diode D7;
[0076] The collector of triode Q9 and the first end of resistor R12 are connected to 3.3 VDC. The base of triode Q9 is connected to the second end of resistor R12 and the positive electrode of diode D6. The negative electrode of diode D6 is connected to the first end of resistor R13. The second end of resistor R13 is connected to the Hall sensor. The emitter of triode Q9 and the first end of resistor R16 are connected to the processor, and the second end of resistor R16 is grounded;
[0077] The collector of triode Q10 and the first end of resistor R17 are connected to 3.3 VDC. The base of triode Q10 is connected to the second end of resistor R17 and the positive electrode of diode D7. The negative electrode of diode D7 is connected to the first end of resistor R18. The second end of resistor R18 is connected to the Hall sensor. The emitter of triode Q10 and the first end of resistor R19 are connected to the processor, and the second end of resistor R19 is grounded.
[0078] In an alternative embodiment, the handle lock further includes: a door magnetic interface, connected to the door magnetic, for receiving the door magnetic signal output by the door magnetic and outputting the door magnetic signal to the processor;
[0079] The processor is further configured to: determine the state of the door according to the door magnetic signal, for example, determine whether the door is in an open state or a closed state.
[0080] Figure 7 FIG. is a circuit schematic diagram of the door opening button and the door magnetic interface. That is, the unlocking signal input module and the door magnetic interface in the present application are integrated into an interface P6, as Figure 7 shown, the P6 interface includes: triode Q1, triode Q11, resistor R20, resistor R21, resistor R22, resistor R6, resistor R25, resistor R26, diode D8, diode D12;
[0081] The collector of triode Q11 and the first end of resistor R20 are connected to 3.3 VDC. The base of triode Q11 is connected to the second end of resistor R20 and the positive electrode of diode D8. The negative electrode of diode D8 is connected to the first end of resistor R21. The second end of resistor R21 receives the unlocking input signal. The emitter of triode Q11 and the first end of resistor R22 are connected to the processor, and the second end of resistor R22 is grounded;
[0082] The collector of triode Q1 and the first end of resistor R6 are connected to 3.3 VDC. The base of triode Q1 is connected to the second end of resistor R6 and the positive pole of diode D12. The negative pole of diode D12 is connected to the first end of resistor R25. The second end of resistor R25 receives the door magnetic signal. The emitter of triode Q1 and the first end of resistor R26 are connected to the processor, and the second end of resistor R26 is grounded.
[0083] The door magnetic signal is isolated and driven by triode Q1, S9013. The processor MCU is connected to interface P6 through IO, reads the door magnetic signal, and judges whether the door magnetic signal is valid. For example, when the door magnetic signal is at a high level, it indicates that the door is in the open state; when the door magnetic signal is at a low level, it indicates that the door is in the closed state. Thus, it can be judged whether the door is open or closed.
[0084] The unlocking input signal is isolated and driven by triode Q11, S9013. The processor MCU is connected to interface P6 through IO, reads the unlocking input signal, and judges whether the unlocking input signal is valid. If it is valid, the processor MCU controls the motor to act through the IO driving motor drive circuit.
[0085] In an alternative embodiment, the processor is further configured to: send a corresponding status drive signal to the status indicator according to the status of the door;
[0086] The status indicator is configured to indicate the corresponding door lock status according to the status drive signal.
[0087] Wherein, the status indicator can be a buzzer or an indicator light.
[0088] Figure 8 For the circuit schematic diagram of the buzzer interface, as Figure 8 shown, the buzzer interface includes: diode D13, buzzer SPK, triode Q2, resistor R27. Among them, the negative pole of diode D13 and the first end of the buzzer are connected to 3.3 VDC. The positive pole of diode D13 and the second end of the buzzer are connected to the collector of triode Q2. The base of triode Q2 is connected to the first end of resistor R27. The second end of resistor R27 is connected to the processor, and the emitter of triode Q2 is grounded.
[0089] Among them, diode D13 is a rectifier diode, which is used to prevent the reverse current from flowing. It is used as a protection device to prevent the reverse voltage of the buzzer from damaging the processor or other circuit components.
[0090] The buzzer SPK can emit sound, and is usually used to remind the user of the occurrence of certain events.
[0091] Triode Q2 is used to switch the buzzer. When the triode is turned on, it allows current to flow through the buzzer, making it emit sound.
[0092] The resistor R27 is a current-limiting resistor used to limit the current flowing through the base of the triode and avoid damage to the triode caused by overexcitation.
[0093] Specifically, the processor is also used to: send a corresponding buzzer drive signal to the buzzer according to the state of the door;
[0094] The buzzer is used to emit a corresponding sound wave according to the buzzer drive signal. The buzzer uses a passive piezoelectric buzzer, and the IO of the processor MCU generates a 2.7KHZ frequency to drive the buzzer through the Q2 and S8050 triodes.
[0095] More specifically, when the state of the door is the closed state, the processor MCU will send a high-level signal with a relatively long duration to the buzzer, and the buzzer will emit a long sound under the action of this high-level signal, indicating that the door has been closed. When the state of the door is the open state, the processor MCU will send a low-level signal with a relatively short duration to the buzzer, and the buzzer will emit a short sound under the action of this low-level signal, indicating that the door has been opened.
[0096] Figure 9 It is a schematic diagram of the communication interface, and the specific connection relationship is as Figure 9 shown. The communication interface is also used to: receive the door status query instruction sent by the external communication board and drive the door status query instruction to the processor;
[0097] The processor is also used to: output the state of the door to the external communication board through the communication interface.
[0098] More specifically, the external communication board can be a mobile phone APP, computer software, etc. After the external communication board sends a door status query instruction, the communication interface will drive the door status query instruction to the processor, the processor returns the door status to the communication interface, and the communication interface outputs the door status information to the external communication board. For example, whether the current door is in the open state or the closed state will be transmitted through the communication interface.
[0099] Figure 10 It is a schematic diagram of the indicator light, as Figure 10 shown, including: light-emitting diode D9, resistor R23; the first end of the resistor R23 is connected to 3.3VDC, the second end of the resistor R23 is connected to the positive pole of the light-emitting diode D9, and the negative pole of the light-emitting diode D9 is connected to the processor MCU.
[0100] Figure 11 It is a schematic diagram of the motor drive circuit, as Figure 11 shown. The motor drive circuit includes: resistor R2, resistor R3, resistor R8, triode Q3, triode Q7, diode D11, diode D10, single-pole double-throw relay K1, single-pole double-throw relay K2, motor B1;
[0101] The first end of resistor R3 is connected to the processor MCU, the second end of resistor R3 is connected to the base of transistor Q3, the emitter of transistor Q3 is grounded, the collector of transistor Q3 is connected to the positive electrode of diode D11 and the first end of single-pole double-throw relay K1, the second end of single-pole double-throw relay K1 and the negative electrode of diode D11 are connected to power supply VCC_MOT, the fifth end of single-pole double-throw relay K1 is grounded, the fourth end of single-pole double-throw relay K1 is connected to power supply VCC_MOT, and the third end of single-pole double-throw relay K1 is connected to the first end of motor B1;
[0102] The first end of resistor R8 is connected to the processor MCU, the second end of resistor R8 is connected to the base of transistor Q7, the emitter of transistor Q7 is grounded, the collector of transistor Q7 is connected to the positive electrode of diode D10 and the first end of single-pole double-throw relay K2, the second end of single-pole double-throw relay K2 and the negative electrode of diode D10 are connected to power supply VCC_MOT, the fifth end of single-pole double-throw relay K2 is grounded, the fourth end of single-pole double-throw relay K2 is connected to power supply VCC_MOT, and the third end of single-pole double-throw relay K2 is connected to the second end of motor B1; The first end of resistor R2 is connected to 6VDC, and after passing through resistor R2, 6VDC outputs power supply VCC_MOT.
[0103] The B1 motor is driven by two single-pole double-throw relays K1 and K2 to drive the motor to rotate forward and backward. The MCU drive signal controls the actions of K1 and K2 after being driven by Q3 and Q7. When the motor rotates forward, Q3 conducts, Q7 cuts off, K1 acts, and K2 does not act. When the motor rotates backward, Q7 conducts, Q3 cuts off, K2 acts, and K1 does not act.
[0104] The handle lock provided by the present invention has multiple unlocking methods, and can be unlocked through the Wiegand signal of the Wiegand signal reader, the unlocking input signal or the door opening instruction, which improves the unlocking success rate and convenience, and further improves the safety and reliability of the handle lock. Moreover, the Hall sensor is used to detect whether the motor operation reaches the specified position, so as to determine whether to stop the motor operation and cut off the Hall power supply to reduce the overall power consumption.
[0105] All kinds of modules and circuits mentioned in the present invention are circuits implemented by hardware. Although some of these modules and circuits integrate software, what the present invention intends to protect is the hardware circuit corresponding to the integrated software function, rather than just the software itself.
[0106] It should be noted that unless otherwise specified, the technical terms or scientific terms used in this application should have the ordinary meaning understood by those skilled in the art to which the present invention belongs.
[0107] In this application, unless otherwise clearly specified or limited, the terms "install", "connect", "couple", "fix", etc. shall be understood in a broad sense. For example, it may be a fixed connection, a detachable connection, or integrated; it may be a mechanical connection or an electrical connection; it may be directly connected or indirectly connected through an intermediate medium, and it may be the communication inside two components or the interaction relationship between two components. For those of ordinary skill in the art, the specific meanings of the above terms in this utility model can be understood according to specific circumstances.
[0108] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present utility model, rather than limiting them; although the present utility model has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or equivalently replace some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present utility model, and they should all be covered by the scope of the claims and the description of the present utility model. In particular, as long as there is no structural conflict, the technical features mentioned in each embodiment can be combined in any way. The present utility model is not limited to the specific embodiments disclosed in the text, but includes all technical solutions falling within the scope of the claims.
Claims
1. A handle lock, characterized in that, The handle lock includes: A card reader interface for externally connecting to a Weigand signal card reader, reading the Weigand signal transmitted by the Weigand signal card reader, and driving the Weigand signal to a processor; An unlocking signal input module for receiving an unlocking input signal and driving the unlocking input signal to a processor; A communication interface connected to an external communication board for receiving an opening instruction sent by the external communication board and driving the opening instruction to a processor; A processor connected to the card reader interface, the unlocking signal input module, the communication interface, the Hall sensor input interface, the Hall power interface, and the motor drive circuit, for determining whether the Weigand signal, the unlocking input signal, or the opening instruction meets a preset opening condition. If so, it outputs a motor drive signal to the motor drive circuit and outputs a first-level drive signal to the Hall power interface; it determines whether the motor reaches a target position according to the Hall sensor input signal. If so, it outputs a signal to stop the motor from running to the motor drive circuit and outputs a second-level drive signal to the Hall power interface; A Hall sensor for collecting a motor position signal and transmitting the motor position signal as a Hall input signal to the Hall sensor input interface; A Hall sensor input interface for receiving the Hall input signal transmitted by the Hall sensor and driving the Hall input signal to a processor; A Hall power interface connected to the power interface of the Hall sensor, for controlling the power supply to the Hall sensor according to the first-level drive signal output by the processor; and controlling the power-off of the Hall sensor according to the second-level drive signal output by the processor; A motor drive circuit for driving the motor to act to open the door according to the motor drive signal; and controlling the motor to stop running according to the signal to stop the motor from running; 2. The handle lock according to claim 1, characterized in that, The Hall power interface includes: MOS transistor Q6; A processor for outputting a first-level drive signal to the Hall power interface to control the MOS transistor Q6 to conduct and supply power to the Hall sensor; and outputting a second-level drive signal to the Hall power interface to control the MOS transistor Q6 to cut off and cut off the power supply to the Hall sensor.
3. The handle lock according to claim 2, wherein The Hall power interface further includes: resistor R31, resistor R32, capacitor C10; The first end of the resistor R32 is connected to the processor, the second end of the resistor R32 and the second end of the resistor R31 are connected to the gate of the MOS transistor Q6, the source of the MOS transistor Q6 is connected to the power interface of the Hall sensor and the first end of the capacitor C10, the second end of the capacitor C10 is grounded, and the drain of the MOS transistor Q6 and the first end of the capacitor R31 are connected to the power supply.
4. The handle lock according to any one of claims 1-3, characterized in that, The card reader interface includes: triode Q4, triode Q8, resistor R4, resistor R5, resistor R7, resistor R9, resistor R10, resistor R11, capacitor C5, capacitor C6; The first terminal of capacitor C5 and the first terminal of resistor R4 are connected to the Weigand signal card reader. The second terminal of capacitor C5 is grounded. The second terminal of resistor R4 and the first terminal of resistor R5 are connected to the base of transistor Q4. The second terminal of resistor R5 is grounded. The emitter of transistor Q4 is connected to the processor and the first terminal of resistor R7. The second terminal of resistor R7 is grounded. The collector of transistor Q4 is connected to the power supply module; The first terminal of capacitor C6 and the first terminal of resistor R9 are connected to the Weigand signal card reader. The second terminal of capacitor C6 is grounded. The second terminal of resistor R9 and the first terminal of resistor R10 are connected to the base of transistor Q8. The second terminal of resistor R10 is grounded. The emitter of transistor Q8 is connected to the processor and the first terminal of resistor R11. The second terminal of resistor R11 is grounded. The collector of transistor Q8 is connected to the power supply module.
5. The handle lock according to any one of claims 1 to 3, characterized in that, The Hall sensor input interface includes: transistor Q9, transistor Q10, resistor R12, resistor R13, resistor R16, resistor R17, resistor R18, resistor R19, diode D6, diode D7; The collector of transistor Q9 and the first terminal of resistor R12 are connected to 3.3VDC. The base of transistor Q9 is connected to the second terminal of resistor R12 and the positive electrode of diode D6. The negative electrode of diode D6 is connected to the first terminal of resistor R13. The second terminal of resistor R13 is connected to the Hall sensor. The emitter of transistor Q9 and the first terminal of resistor R16 are connected to the processor. The second terminal of resistor R16 is grounded; The collector of transistor Q10 and the first terminal of resistor R17 are connected to 3.3VDC. The base of transistor Q10 is connected to the second terminal of resistor R17 and the positive electrode of diode D7. The negative electrode of diode D7 is connected to the first terminal of resistor R18. The second terminal of resistor R18 is connected to the Hall sensor. The emitter of transistor Q10 and the first terminal of resistor R19 are connected to the processor. The second terminal of resistor R19 is grounded.
6. The handle lock according to any one of claims 1-3, characterized in that, The processor is further configured to: determine whether the Weigand signal has the unlocking permission. If so, output a motor drive signal to the motor drive circuit; or, determine whether the unlocking input signal is valid. If so, output a motor drive signal to the motor drive circuit; or, determine whether the door opening command is valid. If so, output a motor drive signal to the motor drive circuit.
7. The handle lock according to any one of claims 1 to 3, characterized in that, The handle lock further includes: a door magnetic interface, connected to the door magnetic, for receiving the door magnetic signal output by the door magnetic and outputting the door magnetic signal to the processor; The processor is further configured to: determine the state of the door according to the door magnetic signal.
8. The handle lock according to claim 7, wherein, The processor is further configured to: send a corresponding state drive signal to the state indicator according to the state of the door; The state indicator is configured to indicate the corresponding door lock state according to the state drive signal.
9. The handle lock according to claim 7, characterized in that, The communication interface is further configured to: receive a door state query command sent by an external communication board and drive the door state query command to the processor; The processor is further configured to: output the state of the door to the external communication board through the communication interface.
10. The handle lock according to any one of claims 1-3, characterized in that, The handle lock further includes: a power supply module, configured to convert the 6VDC input through the power interface into 3.3VDC and supply power to the card reader interface, the unlocking signal input module, the processor, and the Hall sensor input interface.