Anti-interference electronic lock for unmanned sales counter
Technical Field
The utility model relates to an unmanned sales counter electronic lock technical field especially relates to an unmanned sales counter jam-proof electronic lock.
Background
The unmanned sales counter is a machine which is not limited by time and place, can save capacity and is convenient for transaction, and has the advantage of saving human resources. A consumer opens the door of the unmanned sales counter by scanning a code through the smart phone and closes the door after the goods are taken, so that self-service shopping is completed. The existing electronic lock for the cabinet door of the unmanned sales cabinet mainly comprises an induction unit and a magnetic unit, wherein the induction unit is fixed on the door frame of the cabinet, the magnetic unit is fixed on the door at the opposite position, and the induction unit judges the opening and closing state of the electronic lock for the cabinet door by inducing the change of a magnetic field. However, in the actual use process, some lawbreakers interfere the detection of the induction unit by using the handheld high-power magnetic field generating device, so that the controller generates misjudgment, the electronic lock of the cabinet door is triggered mistakenly, and finally the theft is realized.
So the utility model provides a new scheme to solve the problem.
SUMMERY OF THE UTILITY MODEL
In view of the above situation, in order to overcome the defects of the prior art, the present invention provides an anti-interference electronic lock for an unmanned counter.
The technical scheme for solving the problem is as follows: an anti-interference electronic lock for an unmanned sales counter comprises an induction unit, a magnetic unit, a controller and an alarm unit, wherein the induction unit comprises a magnetic field sensor, an output signal of the magnetic field sensor is connected with the controller through a magnetic field signal monitoring and processing module, and the magnetic field signal monitoring and processing module comprises a signal amplification circuit, a filter circuit and an interference signal comparison circuit; the interference signal comparison circuit comprises an operational amplifier AR2, the signal amplification circuit amplifies the output signal of the magnetic field sensor and then outputs the amplified signal in two paths, one path of signal is output to the in-phase end of the operational amplifier AR2 after frequency selection through the filter circuit, the other path of signal is sent to the inverting end of the operational amplifier AR2 after voltage stabilization through a triode, the operational amplifier AR2 compares and outputs two paths of input signals by utilizing the principle of the comparison circuit, and the controller judges the opening and closing state of the electronic lock according to the output potential value of the operational amplifier AR2 and controls the working state of the alarm unit.
Furthermore, the signal amplification circuit comprises a triode VT1, the base electrode of the triode VT1 is connected with the signal output end of the magnetic field sensor through a capacitor C1 and is connected with a +5V power supply through a resistor R1, the emitter electrode of the triode VT1 is grounded, the collector electrode of the triode VT1 is connected with the +5V power supply through a resistor R2 and is connected with the input end of the filter circuit and the input end of the interference signal comparison circuit through a capacitor C2.
Further, the filter circuit comprises an operational amplifier AR1, an inverting terminal of the operational amplifier AR1 is connected to one end of a resistor R4 and one end of a capacitor C4, the other end of the resistor R4 is connected to an output terminal of the signal amplifying circuit through a capacitor C3, and is connected to a non-inverting terminal and an output terminal of the operational amplifier AR1 through a capacitor C3, the other end of the capacitor C4 is grounded, and an output terminal of the operational amplifier AR1 is connected to the non-inverting terminal of the operational amplifier AR2 through the capacitor C5 and the resistor R8 in sequence.
Furthermore, the interference signal comparison circuit further comprises a resistor R5, one end of the resistor R5 is connected to the output end of the signal amplification circuit, the other end of the resistor R5 is connected to the collector of the transistor VT2 and one end of the resistor R6, the base of the transistor VT2 is connected to the other end of the resistor R6 and the cathode of the zener diode DZ1, the emitter of the transistor VT2 is connected to one end of the resistors R7 and R10, the other end of the resistor R7 and the anode of the zener diode DZ1 are grounded in parallel, and the other end of the resistor R10 is connected to the inverting end of the operational amplifier AR 2.
Further, the isolation output circuit comprises an operational amplifier AR3, the in-phase end of the operational amplifier AR3 is connected with the output end of the operational amplifier AR2 through a voltage stabilizing diode DZ2, and the reverse-phase end of the operational amplifier AR3 is connected with the output end of the operational amplifier AR3 and the input end of the controller through a resistor R9.
Furthermore, the alarm unit comprises a buzzer and a warning lamp, and the control ends of the buzzer and the warning lamp are connected with the output end of the controller.
Through the technical scheme, the beneficial effects of the utility model are that:
1. the circuit of the utility model has simple and ingenious design, can accurately detect the interference of the external magnetic field and form early warning, effectively prevent the theft phenomenon, and the circuit adopts common electronic components on the market, thus being economical and practical, convenient to install and having good practical value;
2. the controller judges the opening and closing state of the electronic lock according to the output potential value of the operational amplifier AR2, and controls the working state of the alarm unit, so that the control effect is accurate and reliable;
3. in order to ensure that the controller can stably receive the output potential value of the operational amplifier AR2, an isolation output circuit is further arranged between the operational amplifier AR2 and the controller, and the safety and the stability of signals received by the controller are ensured.
Drawings
Fig. 1 is a control schematic diagram of the present invention.
Fig. 2 is a schematic circuit diagram of the magnetic field signal monitoring and processing module of the present invention.
Detailed Description
The foregoing and other technical matters, features and effects of the present invention will be apparent from the following detailed description of the embodiments, which is to be read in connection with the accompanying drawings 1 to 2. The structural contents mentioned in the following embodiments are all referred to the attached drawings of the specification.
Exemplary embodiments of the present invention will be described below with reference to the accompanying drawings.
The utility model provides an unmanned sales counter jam-proof electronic lock, includes induction element, magnetic element, controller and alarm unit, and induction element includes magnetic field sensor, and when magnetic element and induction element contact, magnetic field sensor detected magnetic field and shows that cabinet door electronic lock closes, otherwise cabinet door electronic lock opens. In order to prevent the external interference on the detection of the induction unit, the output signal of the magnetic field sensor is connected with the controller through a magnetic field signal monitoring and processing module, and the magnetic field signal monitoring and processing module comprises a signal amplifying circuit, a filter circuit and an interference signal comparison circuit.
The interference signal comparison circuit comprises an operational amplifier AR2, the signal amplification circuit amplifies output signals of the magnetic field sensor and then outputs the amplified signals in two paths, one path of signals is subjected to frequency selection through a filter circuit and then is output to the in-phase end of the operational amplifier AR2, the other path of signals is subjected to voltage stabilization through a triode and then is sent to the inverting end of the operational amplifier AR2, the operational amplifier AR2 compares and outputs two paths of input signals by utilizing the principle of the comparison circuit, and the controller judges the opening and closing states of the electronic lock according to the output potential value of the operational amplifier AR2 and controls the working state of the alarm unit. The alarm unit comprises a buzzer and a warning lamp, and the control ends of the buzzer and the warning lamp are connected with the output end of the controller.
Firstly, a signal amplification circuit is adopted to amplify an output signal of the magnetic field sensor, and the specific amplification principle is as follows: the output signal of the magnetic field sensor is coupled by a capacitor C1, then sent into a triode VT1 for amplification, and output from a collector thereof, thereby improving the strength of the magnetic field detection signal, and then sent into a filter circuit and an interference signal comparison circuit in two paths after being coupled by a capacitor C2. The base electrode of the triode VT1 is connected with the signal output end of the magnetic field sensor through a capacitor C1 and is connected with a +5V power supply through a resistor R1, the emitter electrode of the triode VT1 is grounded, the collector electrode of the triode VT1 is connected with the +5V power supply through a resistor R2 and is connected with the input end of the filter circuit and the interference signal comparison circuit through a capacitor C2.
The filter circuit can carry out frequency selection processing on input signals of the filter circuit, the filter circuit comprises an operational amplifier AR1, the inverting end of the operational amplifier AR1 is connected with one end of a resistor R4 and a capacitor C4, the other end of the resistor R4 is connected with the output end of the signal amplifying circuit through a capacitor C3, the other end of the resistor R3 is connected with the in-phase end and the output end of an operational amplifier AR1, the other end of the capacitor C4 is grounded, and the output end of the operational amplifier AR1 is connected with the in-phase end of an operational amplifier AR2 through the capacitor C5 and the resistor R8 in sequence. The resistors R3 and R4 and the capacitors C3 and C4 form a second-order band-pass filter circuit in the amplification process of the operational amplifier AR1, and the center frequency of the second-order band-pass filter circuit is the same as the output frequency of the magnetic field sensor, so that the effect of effectively filtering other frequency band signals is achieved, namely, the operational amplifier AR1 outputs only when the electronic lock is normally closed. Since the receiving signal value of the operational amplifier AR2 at the non-inverting terminal is the signal amplified by the operational amplifier AR1 and is greater than the receiving signal value of the inverting terminal, the operational amplifier AR2 outputs a high level signal when the electronic lock is normally closed.
When external high-power magnetic field interference exists, most external magnetic field detection signals are filtered by the filter circuit, and the interference signal comparison circuit conducts triode voltage stabilization on input signals and then sends the input signals to the inverting end of the operational amplifier AR 2. The interference signal comparison circuit further comprises a resistor R5, one end of the resistor R5 is connected with the output end of the signal amplification circuit, the other end of the resistor R5 is connected with the collector of the triode VT2 and one end of the resistor R6, the base of the triode VT2 is connected with the other end of the resistor R6 and the cathode of the zener diode DZ1, the emitter of the triode VT2 is connected with one ends of the resistors R7 and R10, the other end of the resistor R7 is connected with the anode of the zener diode DZ1 in parallel and grounded, and the other end of the resistor R10 is connected with the inverting end of the operational amplifier AR 2. In order to ensure the stability of the comparison output signal of the operational amplifier AR2, the triode VT2, the resistor R6 and the zener diode DZ1 form a triode voltage stabilizing circuit to stabilize the voltage of the input signal, and ensure the stability of the signal at the inverting terminal of the operational amplifier AR 2. At this time, the receiving signal value of the inverting terminal of the operational amplifier AR2 is greater than the receiving signal value of the non-inverting terminal, and the operational amplifier AR2 inverts and outputs a low level signal.
In order to ensure that the controller can stably receive the output potential value of the operational amplifier AR2, an isolation output circuit is further arranged between the operational amplifier AR2 and the controller, the isolation output circuit comprises an operational amplifier AR3, the non-inverting end of the operational amplifier AR3 is connected with the output end of the operational amplifier AR2 through a voltage stabilizing diode DZ2, and the inverting end of the operational amplifier AR3 is connected with the output end of the operational amplifier AR3 and the input end of the controller through a resistor R9. After the amplitude of the output signal of the operational amplifier AR2 is stabilized by the voltage stabilizing diode DZ2, the operational amplifier AR3 outputs the signal by using the in-phase proportion amplification principle, thereby playing the role of output isolation and ensuring the safety and stability of the signal received by the controller.
When the utility model is used in concrete, when the electronic lock is in a normal closing state, the conveyer AR2 outputs a high level signal, and the controller judges the electronic lock to be closed according to the received high level signal; when the electronic lock is in a normal opening state, the magnetic field sensor does not detect that the magnetic field output is 0, and the controller does not receive the input signal to judge that the electronic lock is opened. The controller sends the judgment results to the background server. When the external high-power magnetic field interferes with the detection of the magnetic field sensor, no matter the electronic lock is in an open or closed state, the operation amplifier AR2 outputs a low level signal to the controller, so that the output end of the controller sends a control instruction to drive the alarm unit to work, and then the buzzer and the warning lamp are powered on to send an acousto-optic alarm signal to inform background personnel of anti-theft treatment. The judgment process of the controller and the working principle of the control alarm unit are both the existing mature technologies, and are not detailed here.
To sum up, the utility model discloses circuit design is simple ingenious, can be accurate detect and form the early warning to external magnetic field interference, and the effectual phenomenon of preventing burglary takes place. And the circuit all adopts common electronic components on the market, and is economical and practical, and convenient to install, has fine practical value.
The above description is provided for further details of the present invention with reference to the specific embodiments, which should not be construed as limiting the present invention; to the utility model discloses affiliated and relevant technical field's technical personnel are based on the utility model discloses under the technical scheme thinking prerequisite, the extension of doing and the replacement of operating method, data all should fall within the utility model discloses within the protection scope.