CN212965806U - Switch state detection device and storage cabinet - Google Patents

Switch state detection device and storage cabinet Download PDF

Info

Publication number
CN212965806U
CN212965806U CN202022099635.5U CN202022099635U CN212965806U CN 212965806 U CN212965806 U CN 212965806U CN 202022099635 U CN202022099635 U CN 202022099635U CN 212965806 U CN212965806 U CN 212965806U
Authority
CN
China
Prior art keywords
terminal
power supply
common
switch
grounded
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.)
Active
Application number
CN202022099635.5U
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.)
Shandong New Beiyang Information Technology Co Ltd
Weihai New Beiyang Digital Technology Co Ltd
Original Assignee
Shandong New Beiyang Information Technology Co Ltd
Weihai New Beiyang Digital Technology 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 Shandong New Beiyang Information Technology Co Ltd, Weihai New Beiyang Digital Technology Co Ltd filed Critical Shandong New Beiyang Information Technology Co Ltd
Priority to CN202022099635.5U priority Critical patent/CN212965806U/en
Application granted granted Critical
Publication of CN212965806U publication Critical patent/CN212965806U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electronic Switches (AREA)

Abstract

The utility model provides an on-off state detection device and locker relates to the technical field that the switch detected, and on-off state detection device includes: the circuit comprises a single-pole double-throw switch, a controller and a configuration circuit; the switch state detection device can configure the first end of the public end to be communicated with the power supply when the second end of the public end of the single-pole double-throw switch is communicated with the power supply through the normally open terminal or the normally closed terminal, and configure the first end of the public end to be grounded when the second end of the public end is grounded through the normally open terminal or the normally closed terminal.

Description

Switch state detection device and storage cabinet
Technical Field
The utility model belongs to the technical field of the technique that the switch detected and specifically relates to an on off state detection device and locker are related to.
Background
Along with the rapid development of science and technology, intelligent express delivery cabinet, intelligent meal cabinet, intelligent locker such as cabinet are sold to intelligence application more and more extensive. Generally, intelligence locker includes singlechip and a plurality of storage tank, every storage tank includes box and chamber door, the box has the opening, the chamber door is used for opening or closing the opening of box, every storage tank still includes the chamber door detection mechanism that is used for detecting the chamber door state, wherein, chamber door detection mechanism includes micro-gap switch, open the opening of box and the chamber door at the chamber door and close under the open-ended condition of box, micro-gap switch is in different physical state, the singlechip can detect micro-gap switch's physical state, and then judge that the chamber door is in open mode or closed condition.
However, for the storage cabinet of the related art, in the two door states of opening and closing the door, there is inevitably a case that one door state corresponds to the communication of the micro switch, so that the door detection mechanism is in the power consumption state, and if the door state of the door detection mechanism in the power consumption state lasts for a long time, unnecessary energy waste is caused, and meanwhile, the requirement of energy saving is difficult to meet.
SUMMERY OF THE UTILITY MODEL
In view of this, the present invention provides an on/off state detecting device and a storage cabinet to alleviate the above technical problems.
In a first aspect, an embodiment of the present invention provides a switch state detection device, including: the circuit comprises a single-pole double-throw switch, a controller and a configuration circuit; the single-pole double-throw switch comprises a common end, a normally open terminal and a normally closed terminal, wherein the common end, the normally open terminal and the normally closed terminal are respectively provided with a first end and a second end; the controller comprises a switch input end, the first end of the common end is connected with the switch input end of the controller, one of the first end of the normally open terminal and the first end of the normally closed terminal is connected with a power supply, and the other of the first end of the normally open terminal and the first end of the normally closed terminal is grounded; the second end of the common end is alternatively connected with the second end of the normally open terminal or the second end of the normally closed terminal, so as to be connected with the power supply or grounded; the first end of the common terminal is further connected to the configuration circuit, and the configuration circuit configures the first end of the common terminal to be in communication with the power supply when the second end of the common terminal is in communication with the power supply, and configures the first end of the common terminal to be grounded when the second end of the common terminal is grounded.
Preferably, in a possible implementation, the configuration circuit comprises a switching circuit having a control input; the controller comprises a control output end, and the control input end of the switch circuit is connected with the control output end of the controller; when the second end of the public end is communicated with the power supply, the first end of the public end is communicated with the power supply through the switch circuit; when the second end of the common end is grounded, the first end of the common end is grounded through the switch circuit.
Preferably, in one possible embodiment, the switching circuit includes a first switching device and a second switching device; the first switching device and the second switching device each comprise a control input; the controller comprises a first control output end and a second control output end, the control input end of the first switching device is connected with the first control output end of the controller, and the control input end of the second switching device is connected with the second control output end of the controller; the first end of the common terminal can be connected with the power supply through the first switching device, and the first end of the common terminal can be grounded through the second switching device.
Preferably, in a possible implementation, the configuration circuit includes a pull-up resistor, and when the second terminal of the common terminal is communicated with the power supply, the first terminal of the common terminal is communicated with the power supply through the pull-up resistor; and/or the configuration circuit comprises a pull-down resistor, and when the second end of the common end is grounded, the first end of the common end is grounded through the pull-down resistor.
Preferably, in a possible embodiment, the above device further comprises a first timer; the first timer is used for timing the time length of the communication between the second end of the public end and the power supply; the configuration circuit configures the first end of the public end to be communicated with the power supply when the timing duration of the first timer exceeds a first duration; and/or, the device further comprises a second timer; the second timer is used for timing the grounding time of the second end of the public end; the configuration circuit configures the first terminal of the common terminal to be grounded when the timing time of the second timer exceeds a second time.
Preferably, in a possible implementation, the apparatus further includes a first current limiting resistor; the second end of the normally open terminal or the second end of the normally closed terminal is connected with the power supply through the first current limiting resistor; or, the device further comprises a second current limiting resistor, and the second end of the normally open terminal or the second end of the normally closed terminal is grounded through the second current limiting resistor.
In a second aspect, the embodiment of the present invention further provides a storage cabinet, which includes a storage box and the switch state detection device of the first aspect; the storage box comprises a box door and a box body, the box body comprises an opening, and the box door is used for opening or closing the opening of the box body; the single-pole double-throw switch of the switch state detection device is arranged between the box door and the box body; when the box door opens the opening of the box body, the second end of the public end can be connected with one of the second end of the normally open terminal and the second end of the normally closed terminal; when the box door closes the opening of the box body, the second end of the public end can be connected with the other one of the second end of the normally open terminal and the second end of the normally closed terminal.
Preferably, in a possible implementation, an electronic lock is arranged between the box door and the box body; the electronic lock comprises a lock body, the lock body comprises a shell, and the single-pole double-throw switch is arranged in the shell.
Preferably, in a possible embodiment, the electronic lock further comprises a lock catch; the lock body is arranged on the box body, and the lock catch is arranged on the box door; the lock body also comprises a lock hook which can be separated from or matched with the lock catch, and the lock hook is arranged in the shell; when the box door opens the opening of the box body, the lock hook is separated from the lock catch, so that the second end of the public end is connected with one of the second end of the normally open terminal and the second end of the normally closed terminal; when the box door closes the opening of the box body, the lock hook is matched with the lock catch to enable the second end of the public end to be connected with the other one of the second end of the normally open terminal and the second end of the normally closed terminal.
Preferably, in a possible implementation mode, the storage cabinet further comprises a battery power supply device, and the power supply of the storage cabinet is connected with the output end of the battery power supply device through a power conversion circuit.
The embodiment of the utility model provides a following beneficial effect has been brought:
the switch state detection device and the storage cabinet provided by the embodiment of the utility model can configure the first end of the common end of the single-pole double-throw switch to be communicated with the power supply when the second end of the common end of the single-pole double-throw switch is communicated with the power supply through the normally open terminal or the normally closed terminal, and configure the first end of the common end of the single-pole double-throw switch to be grounded when the second end of the common end of the single-pole double-throw switch is grounded through the normally open terminal or the normally closed terminal, so that when the state of the single-pole double-throw switch is changed, the first end and the second end of the common end of the single-pole double-throw switch are configured to be connected with the power supply or grounded simultaneously, thereby the single-pole double-throw switch can not generate current, the switch state detection device does not form a current loop, so that the single-pole double-throw switch is in a state of no power consumption, and the aim of saving energy is fulfilled.
Further, when the storage cabinet comprises the switch state detection device, the single-pole double-throw switch for detecting the state of the box door can be in a non-power-consumption state after the state of the box door is detected to be changed, so that the energy consumption of the storage cabinet can be reduced, and the storage cabinet can meet the energy-saving requirement.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the technical solutions in the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic view of a microswitch;
fig. 2 is a schematic structural diagram of a switch state detection device according to an embodiment of the present invention;
fig. 3 is a schematic circuit diagram of a switching state detection apparatus according to an embodiment of the present invention;
fig. 4 is a schematic circuit diagram of another switching state detection apparatus according to an embodiment of the present invention;
fig. 5 is a schematic circuit diagram of another switching state detection apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural view of a storage box according to an embodiment of the present invention.
Reference numerals: 100-a locker; 101-a box door; 102-a box body; 103-an electronic lock; 10-a controller; 20-configuring the circuit.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and obviously, the described embodiments are some embodiments of the present invention, not all embodiments. Based on the embodiments in the present invention, all other embodiments obtained by the skilled in the art without creative work belong to the protection scope of the present invention.
At present, intelligence locker includes singlechip and a plurality of storage tank, every storage tank includes box and chamber door, the box has the opening, the chamber door is used for opening or closing the opening of box, every storage tank still includes the chamber door detection mechanism who is used for detecting the chamber door state, wherein, chamber door detection mechanism includes micro-gap switch, like the schematic diagram of a micro-gap switch shown in fig. 1, including MCU (Microcontroller Unit), and, with the micro-gap switch S that MCU' S GPIO (General Purpose Input/Output port) is connected, wherein, MCU can represent the singlechip, realize the control of whole locker.
Specifically, in fig. 1, the micro switch S includes a first terminal 1 and a second terminal 2, the first terminal 1 of the micro switch S is grounded, the second terminal 2 of the micro switch S is connected to the power VCC through a pull-up resistor R, and the second terminal 2 of the micro switch S is further connected to an input pin of the single chip microcomputer, that is, to a GPIO pin of the MCU in fig. 1, when the door opens the opening of the box body and the door closes the opening of the box body, the micro switch S is in different physical states, so that the first terminal 1 and the second terminal 2 are in a connected or disconnected state, and the single chip microcomputer determines the on-off state between the first terminal 1 and the second terminal 2 by detecting a signal output from the second terminal, thereby determining the physical state of the micro switch S, and further determining that the door is in the open state or the closed state.
With the stowage bin shown in fig. 1, however, when the first terminal 1 and the second terminal 2 of the microswitch S are connected, a current loop is formed among a power supply VCC, a pull-up resistor R, a micro switch S and a ground GND, a detection circuit of the micro switch S is always in a power consumption state, in the two door states of opening and closing the door, one door state is inevitably corresponding to the state of the microswitch S in which the first terminal 1 and the second terminal 2 are communicated, therefore, for the storage cabinet of the related art, the cabinet door detection mechanism is inevitably in a power consumption state under the state of the cabinet door, when the energy-saving requirement of the storage cabinet is relatively high (for example, when the storage cabinet adopts the battery for power supply), if the duration of the door state, which makes the door detection mechanism in the power consumption state, is long, the related art storage cabinet may not meet the energy-saving requirement.
Based on this, the embodiment of the utility model provides a pair of on off state detection device and locker can effectively alleviate above-mentioned problem.
For the convenience of understanding the present embodiment, a switch state detection device disclosed in the embodiments of the present invention will be described in detail first.
In a possible implementation manner, the embodiment of the present invention provides an on-off state detection device, and in particular, the on-off state detection device is applied to a storage cabinet, such as the schematic structural diagram of an on-off state detection device shown in fig. 2, which includes: single pole double throw switch S1, controller 10 and configuration circuit 20.
Specifically, as shown in fig. 2, the single-pole double-throw switch S1 includes a common terminal COM, a normally open terminal NO, and a normally closed terminal NC, the common terminal COM, the normally open terminal NO, and the normally closed terminal NC having first and second ends, respectively;
the controller 10 comprises a switch input end, the first end of the common end COM is connected with the switch input end of the controller 10, one of the first end of the normally open terminal NO and the first end of the normally closed terminal NC is connected with a power supply, and the other of the first end of the normally open terminal NO and the first end of the normally closed terminal NC is grounded; wherein, what show in fig. 2 is that normally closed terminal NC is connected to power supply VCC, the implementation of normally open terminal NO ground connection, and during concrete implementation, above-mentioned normally open terminal NO and normally closed terminal NC and power supply or grounded connected mode can set up according to the in-service use condition, the embodiment of the utility model provides a do not restrict to this.
Further, a second end of the common terminal COM is alternatively connected to a second end of the normally open terminal NO or a second end of the normally closed terminal NC, so as to be connected to the power supply VCC or grounded; the first end of common port COM still is connected with configuration circuit 20, the embodiment of the utility model provides an in the embodiment configuration circuit can dispose the first end of common port COM to communicate with power supply when the second of common port COM communicates with power supply, perhaps dispose the first end of common port COM to ground connection when the second of common port COM is earthed.
In actual use, the first end of the common terminal COM is the end of the single-pole double-throw switch S1 connected to the controller, and the second end of the common terminal COM is the end of the single-pole double-throw switch S1 connected to the normally open terminal NO or the normally closed terminal NC.
Generally, the first terminal of the common terminal COM of the single pole double throw switch S1 is connected to the switch input terminal GPI of the controller 10, and therefore, the controller 10 can detect the level of the switch input terminal GPI and detect the state of the single pole double throw switch according to the specific settings of the common terminal COM, the normally open terminal NO, and the normally closed terminal NC of the single pole double throw switch and the level of the switch input terminal GPI.
For the sake of understanding, fig. 3 shows a schematic circuit diagram of a switch state detection device based on fig. 2. In fig. 3, a description will be given taking as an example that the first end of the normally closed terminal NC of the single-pole double-throw switch S1 is connected to the power supply VCC through the pull-up resistor R3, and the first end of the normally open terminal NO of the single-pole double-throw switch S1 is grounded.
Specifically, the resistor R1 and the resistor R2 are resistors in the configuration circuit, and assuming that the current configuration situation of the first end of the common terminal COM is that the first end of the common terminal COM is connected to the power supply VCC through the pull-up resistor R1, when the second end of the normally closed terminal NC of the single-pole double-throw switch S1 is connected to the second end of the common terminal COM, since the first end of the common terminal COM and the first end of the normally closed terminal NC are both connected to the power supply VCC, no current is generated on the single-pole double-throw switch S1, and therefore the controller 10 detects that the switch input terminal GPI is at a high level, and accordingly determines that the common terminal COM of the single-pole double-throw switch S1 is connected to the normally closed terminal NC. When the second end of the normally open terminal NO of the single-pole double-throw switch S1 is connected to the second end of the common terminal COM, the first end of the common terminal COM is connected to the power supply VCC, and the first end of the normally open terminal NO is grounded, so that a current is generated in the single-pole double-throw switch S1, and the controller detects that the switch input terminal GPI is at a low level, and accordingly determines that the common terminal COM of the single-pole double-throw switch S1 is connected to the normally open terminal NO. In this way, the controller 10 can determine the state of the single-pole double-throw switch according to the specific setting conditions of the common terminal COM, the normally open terminal NC and the normally closed terminal NO of the single-pole double-throw switch S1 and the level state of the switch input terminal GPI.
In addition, in the above application scenario and in the first case, the second end of the common terminal COM of the single-pole double-throw switch S1 is connected to the power supply VCC through the normally closed terminal NC, NO current is generated in the single-pole double-throw switch S1, and NO current loop is formed in the switch state detection device, at this time, it is not necessary to change the configuration of the first end of the common terminal COM, that is, the configuration of the first end of the common terminal COM is continuously maintained by the configuration circuit until the first end of the common terminal COM is connected to the power supply VCC through the pull-up resistor R1, and in the second case, the second end of the common terminal COM of the single-pole double-throw switch S1 is grounded through the normally open terminal NO, a current is generated in the single-pole double-throw switch, and a current loop is formed in the switch state detection device, which is not beneficial to energy saving when such a state is maintained for a long time, therefore, the configuration of the first end of the common terminal COM can, that is, the first end of the common terminal COM is configured to be grounded through the pull-down resistor R2, and after the first end of the common terminal COM is configured to be grounded through the pull-down resistor R2, since the first end of the common terminal COM and the first end of the normally-open terminal NO are both grounded, NO current will be generated on the single-pole double-throw switch S1, and NO current loop will be formed in the switch state detection device, thereby saving energy.
On the basis of the connection mode of the normally-open terminal NO and the normally-closed terminal NC with the power supply and the ground shown in fig. 3, if the configuration of the current first end of the common terminal COM is that the first end of the common terminal COM is grounded through the pull-down resistor R2, when the second end of the normally-closed terminal NC of the single-pole double-throw switch S1 is communicated with the second end of the common terminal COM, since the first end of the common terminal COM is grounded and the first end of the normally-closed terminal NC is communicated with the power supply VCC, a current is generated in the single-pole double-throw switch S1, and thus the controller 10 detects that the switch input GPI is at a high level (which is implemented by setting the resistances of the pull-down resistor R2 and the resistor R3 to meet the requirement), and accordingly determines that the common terminal COM of the single-pole double-throw switch S1 is communicated with the. When the second end of the normally open terminal NO of the single-pole double-throw switch S1 is communicated with the second end of the common terminal COM, the first end of the common terminal COM and the first end of the normally open terminal NO are both grounded, so that NO current is generated on the single-pole double-throw switch S1, the controller detects that the switch input terminal GPI is at a low level, and accordingly, the common terminal COM of the single-pole double-throw switch S1 is determined to be communicated with the normally open terminal NO. In this way, the controller 10 can determine the state of the single-pole double-throw switch S1 according to the specific setting conditions of the common terminal COM, the normally open terminal NC and the normally closed terminal NO of the single-pole double-throw switch S1 and the level state of the switch input terminal GPI.
In the above application scenario and in the first case, the second terminal of the common terminal COM of the single-pole double-throw switch S1 is connected to the power supply VCC through the normally closed terminal NC, a current will be generated in the single-pole double-throw switch S1, a current loop will be formed in the switch state detection device, when this state is maintained for a long time, it is not favorable for saving energy, therefore, the configuration of the first terminal of the common terminal COM can be changed by the configuration circuit, namely the first terminal of the common terminal COM is configured to communicate with the power supply VCC through the pull-up resistor R1, after the first terminal of the common terminal COM is configured to communicate with the power supply VCC through the pull-up resistor R1, since the first end of the common terminal COM and the normally closed terminal NC are both communicated with the power supply VCC, therefore, no current will be generated in the single-pole double-throw switch S1, and no current loop will be formed in the switch state detection device, thereby achieving power saving. In the second case, the second end of the common terminal COM of the single-pole double-throw switch S1 is grounded through the normally open terminal NO, NO current is generated in the single-pole double-throw switch S1, and NO current loop is formed in the switch state detection device, and at this time, it is not necessary to change the configuration of the first end of the common terminal COM, that is, the configuration of the first end of the common terminal COM is continuously maintained as the first end of the common terminal COM is grounded through the pull-down resistor R2 by the configuration circuit.
Therefore, the switch state detecting device provided by the embodiment of the present invention can configure the first end of the common terminal of the single-pole double-throw switch to be connected to the power supply when the second end of the common terminal of the single-pole double-throw switch is connected to the power supply through the normally open terminal or the normally closed terminal, and configure the first end of the common terminal of the single-pole double-throw switch to be grounded when the second end of the common terminal of the single-pole double-throw switch is grounded through the normally open terminal or the normally closed terminal, by configuring the first end of the common terminal of the single-pole double-throw switch to be connected to the power supply or grounded at the same time, when the state of the single-pole double-throw switch changes, the first end and the second end of the common terminal of the single-pole double-throw switch are configured to be connected to the power supply or grounded at the same time, so that no current is generated on the single-pole double-throw switch, the switch state detection device does not form a current loop, so that the single-pole double-throw switch is in a state of no power consumption, and the aim of saving energy is fulfilled.
Further, as shown in fig. 3, a filter circuit, i.e., an RC filter circuit composed of a resistor R5 and a capacitor C1 in fig. 5, is disposed between the first end of the common terminal COM and the switch input terminal GPI of the controller 10, and the filter circuit is configured to filter a signal input to the switch input terminal GPI, so as to improve the stability of the level detection of the switch input terminal GPI.
Further, in fig. 3, an anti-static diode D1 is further disposed between the first end of the common terminal COM and the switch input terminal GPI of the controller, and is used for protecting the circuit and improving the safety of the circuit.
In practical use, in order to realize the configuration function of the configuration circuit, in an embodiment of the present invention, the configuration circuit includes a switch circuit, the switch circuit has a control input end, the controller includes a control output end, and the control input end of the switch circuit is connected to the control output end of the controller; when the second end of the common end COM of the single-pole double-throw switch is communicated with a power supply VCC, the first end of the common end COM of the single-pole double-throw switch is communicated with the power supply VCC through a switch circuit; when the second terminal of the common terminal COM of the single pole double throw switch is grounded, the first terminal of the common terminal COM of the single pole double throw switch S1 is grounded through the switch circuit.
Further, the above switching circuit includes a first switching device and a second switching device; the first switching device and the second switching device each include a control input terminal; the controller comprises a first control output end and a second control output end, the control input end of the first switching device is connected with the first control output end of the controller, and the control input end of the second switching device is connected with the second control output end of the controller; the first end of the common end of the single-pole double-throw switch can be connected with a power supply through a first switching device, and the first end of the common end of the single-pole double-throw switch can be grounded through a second switching device.
For convenience of understanding, on the basis of fig. 3, fig. 4 further shows a schematic circuit diagram of another switching state detection apparatus, where Q1 is a first switching device, Q2 is a second switching device, a port corresponding to GPO1 on the controller 10 is a first control output, a port corresponding to GPO2 on the controller 10 is a second control output, ports corresponding to the first switching device Q1 and the GPO1 are control input terminals, and a port corresponding to the second switching device Q2 and the GPO2 is also a control input terminal, so that based on the switching state detection apparatus shown in fig. 4, the first switching device Q1 and the second switching device Q2 constitute a switching circuit of the configuration circuit. Specifically, the first switching device Q1 and the second switching device Q2 are usually MOS transistors (Metal Oxide Semiconductor), for example, Q1 is a P-type MOS transistor, Q2 is an N-type MOS transistor, and the like, gates of the MOS transistors are used as control input terminals and are respectively connected to GPO ports of the controller, and the first switching device Q1 and the second switching device Q2 are turned on and off by controlling a level of the gate of the controller, so as to implement functions of the above switching circuit.
Further, as shown in fig. 3 and 4, the configuration circuit further includes a pull-up resistor R1 and/or a pull-down resistor R2; when the second end of the common end COM of the single-pole double-throw switch S1 is communicated with the power supply, the first end of the common end COM is communicated with the power supply through the pull-up resistor R1; when the second terminal of the common terminal COM of the single-pole double-throw switch S1 is grounded, the first terminal of the common terminal COM is grounded through the pull-down resistor R2. For example, when the second terminal of the common terminal COM of the single-pole double-throw switch S1 is connected to the power supply, the controller may output corresponding level signals to the first switching device Q1 and the second switching device Q2 through the GPO1 and the GPO2, respectively, so as to turn on the first switching device Q1, turn off the second switching device Q2, and connect the first terminal of the common terminal COM to the power supply through the pull-up resistor R1, and similarly, when the second terminal of the common terminal COM of the single-pole double-throw switch S1 is grounded, the controller may control the first switching device Q1 to be turned off and the second switching device Q2 to be turned on through the GPO1 and the GPO2, so that the first terminal of the common terminal COM is grounded through the pull-down resistor R2, thereby implementing the configuration function of the configuration circuit.
The configuration circuit shown in fig. 4 is an embodiment disposed at the periphery of the controller 10, and through the configuration circuit shown in fig. 4, the detection output terminal of the single-pole double-throw switch S1 is connected to the input port GPI of the controller, and the first switching device Q1 and the second switching device Q2 are respectively connected to the output port of the controller. In practical use, the configuration circuit may also be an internal integrated circuit of a single chip, and specifically, fig. 5 also shows a schematic circuit diagram of another switch state detection apparatus, where in fig. 5, the configuration circuit is integrated inside the single chip for example, and this implementation may be implemented by a single chip having this function, that is, the functions of the controller and the configuration single line are implemented by a single chip of a corresponding type. For example, the single chip microcomputer can be based on STM32 series, GD32 series, LPC4078 series, LPC2214 series, MKE06 series and MKE18 series.
Specifically, in fig. 5, the configuration circuit is an integrated circuit inside a single chip, the single chip includes a controller 10 and a register set, and the register set may further include a control register, a schmitt trigger, an input data register, and the like. The controller 10 can implement setting of different modes of the configuration circuit by writing a specific value into a corresponding register, based on the circuit diagram shown in fig. 5, a GPI pin of the single-chip microcomputer is connected to the first end of the common terminal COM of the single-pole double-throw switch S1, the level of the single-pole double-throw switch S1 detected by the controller 10 is an analog voltage of the GPI pin of the single-chip microcomputer, which is converted into a TTL digital level signal by a schmitt trigger, and then read by the input data register, and the pull-up resistor R1 and the pull-down resistor R2 can be configured through an output port of the controller 10, so that the embodiment shown in fig. 5 in which the configuration circuit is integrated inside the single-chip microcomputer can also implement the functions of the configuration circuit. And because the configuration circuit is integrated in the singlechip, certain components can be reduced, the design cost is saved, and the overall stability is improved.
Further, in an embodiment of the present invention, the switch state detecting device further includes a first timer; the first timer is used for timing the time length of the communication between the second end of the common end of the single-pole double-throw switch and the power supply; the configuration circuit is used for configuring the first end of the common end of the single-pole double-throw switch to be communicated with the power supply when the timing duration of the first timer exceeds the first duration; and/or, the switch state detection device also comprises a second timer; the second timer is used for timing the time length of grounding the second end of the common end of the single-pole double-throw switch; the configuration circuit is used for configuring the first end of the common end of the single-pole double-throw switch to be grounded when the timing time of the second timer exceeds a second duration.
In a specific implementation, the first timer and the second timer may be connected to a controller of the switch state detection device, or may be directly connected to a common terminal of the single-pole double-throw switch, so as to perform timing when a connection mode of a second terminal of the common terminal changes, and to send a timing condition to the controller and the configuration circuit.
For example, when the second end of the common end COM of the single-pole double-throw switch is changed from the ground state to the state of being communicated with the power supply VCC, the first timer starts to time, and the configuration circuit configures the first end of the common end COM of the single-pole double-throw switch to be communicated with the power supply VCC when the timing time of the first timer exceeds the first time, so that the configuration circuit can be ensured to configure the first end of the common end COM of the single-pole double-throw switch after the switch state is stable, and the reliability of the operation of the switch state detection device is improved. When the second end of the common end COM of the single-pole double-throw switch is changed into a grounding state from a state of being communicated with a power supply VCC, the second timer starts to time, and the configuration circuit configures the first end of the common end COM of the single-pole double-throw switch to be grounded when the timing time of the second timer exceeds a second duration, so that the configuration circuit can be ensured to configure the first end of the common end COM of the single-pole double-throw switch after the switching state is stable, and the working reliability of the switching state detection device is improved.
Further, the switch state detection device further comprises a first current limiting resistor; that is, the resistor R3 in fig. 3 to 5 is connected to the power supply source through the first current limiting resistor R3, at the second end of the normally open terminal NO or the second end of the normally closed terminal NC of the single pole double throw switch S1; alternatively, as shown in fig. 5, the switch state detection device further includes a second current limiting resistor R4, and the second end of the normally open terminal NO or the second end of the normally closed terminal NC of the single-pole double-throw switch S1 is grounded through the second current limiting resistor R4.
It should be understood that, in fig. 2 to fig. 5, the embodiment in which the normally closed terminal NC is connected to the power supply VCC and the normally open terminal NO is connected to the ground is taken as an example for explanation, in other embodiments, the normally closed terminal NC may be connected to the ground and the normally open terminal NO may be connected to the power supply VCC, and the function of the switch state detection device may also be realized similarly, further, for the current limiting resistor, only the first current limiting resistor R3 in the form of a pull-up resistor may be provided, only the second current limiting resistor R4 in the form of a pull-down resistor may be provided, or both the first current limiting resistor R3 and the second current limiting resistor R4 may be provided, and the embodiment of the present invention is not limited thereto.
Further, by adding the first current limiting resistor R3 or the second current limiting resistor R4, it is possible to prevent the power supply VCC from being short-circuited to the ground due to an abnormality in the case where the normally open terminal NO and the normally closed terminal NC of the single pole double throw switch S1 are abnormally short-circuited.
Further, in the case that the configuration circuit includes the pull-up resistor R1 and/or the pull-down resistor R2, in order to ensure that the switch input GPI can input different digital levels (0 or 1) when the single-pole double-throw switch is in different states, the resistances of the first current-limiting resistor R3 (or the second current-limiting resistor R4) and the pull-down resistor R2 (or the pull-up resistor R1) can also satisfy a certain proportion requirement.
For example, in a case where the second end of the normally-open terminal NO of the single-pole double-throw switch or the second end of the normally-closed terminal NC is connected to the power supply VCC through the first current-limiting resistor R3, in order to ensure that the first end of the common terminal COM of the single-pole double-throw switch is configured to be grounded through the pull-down resistor R2, when the second end of the common terminal COM of the single-pole double-throw switch is connected to the power supply VCC, the level received by the switch input terminal GPI is a high level, the resistance of the first current-limiting resistor R3 needs to be sufficiently small, for example, if the resistance of the pull-down resistor R2 is set to be in a range of 25K Ω to 55K Ω, the resistance of the first current-limiting resistor R3 should be at least smaller. For another example, in a case where the second end of the normally-open terminal NO of the single-pole double-throw switch or the second end of the normally-closed terminal NC is grounded through the second current-limiting resistor R4, in order to ensure that the first end of the common terminal COM of the single-pole double-throw switch is configured to be communicated with the power supply VCC through the pull-up resistor R1, when the second end of the common terminal COM of the single-pole double-throw switch is grounded, the level received by the switch input terminal GPI is a low level, the resistance of the second current-limiting resistor R4 needs to be sufficiently small, for example, if the resistance of the pull-up resistor R1 is within a range of 25K Ω to 55K Ω, the resistance of the second current-limiting resistor R4 should be at least smaller than 12.5K Ω. The resistance condition of specific pull-up resistance R1, pull-down resistance R2 to and first current limiting resistance R3 and second current limiting resistance R4 can set up in order to satisfy above-mentioned proportion requirement according to the in-service use condition, the embodiment of the utility model provides a do not restrict to this.
The switch state detection device according to the above-described embodiment can configure the first end of the common terminal of the spdt to be connected to the power supply when the second end of the common terminal of the spdt is connected to the power supply through the normally open terminal or the normally closed terminal, and configure the first end of the common terminal of the spdt to be grounded when the second end of the common terminal of the spdt is grounded through the normally open terminal or the normally closed terminal, so that when the state of the spdt changes, by configuring the first end of the common terminal of the spdt to have the first end and the second end of the common terminal of the spdt connected to the power supply or grounded at the same time, the current is not generated in the spdt, and the current loop is not formed in the switch state detection device, thereby the spdt is in a state where the power is not consumed, the purpose of energy conservation is achieved.
Further, on the basis of the above embodiment, the embodiment of the utility model provides a locker is still provided, including storage tank and above-mentioned on-off state detection device. Fig. 6 is a schematic structural view of a storage box, wherein fig. 6 shows an embodiment in which the storage cabinet includes a predetermined number of storage boxes.
Specifically, as shown in fig. 6, the storage box includes a door and a box body, and only the locker 100, a plurality of storage boxes included in the locker, and the door 101 and the box body 102 of the storage box are shown based on the perspective of the locker in fig. 6, wherein the box body 102 has an opening, and the door 101 is used to open or close the opening of the box body 102.
The single-pole double-throw switch of the switch state detection device is arranged between the box door and the box body; when the box door opens the opening of the box body, the second end of the common end of the single-pole double-throw switch can be connected with one of the second end of the normally open terminal and the second end of the normally closed terminal; when the box door closes the opening of the box body, the second end of the common end of the single-pole double-throw switch can be connected with the other of the second end of the normally-open terminal and the second end of the normally-closed terminal.
Further, in fig. 6, an electronic lock 103 is disposed between the box door 101 and the box body 102; the electronic lock 103 includes a lock body including a housing with a single pole double throw switch disposed therein.
Specifically, the electronic lock further comprises a lock catch; the lock body is arranged in the box body, and then the lock catch is arranged on the box door; the lock body also comprises a lock hook which can be separated from or matched with the lock catch, and the lock hook is arranged in the shell; when the box door opens the opening of the box body, the lock hook is separated from the lock catch, so that the second end of the common end of the single-pole double-throw switch is connected with one of the second end of the normally open terminal and the second end of the normally closed terminal; when the box door closes the opening of the box body, the lock hook is matched with the lock catch to enable the second end of the common end of the single-pole double-throw switch to be connected with the other one of the second end of the normally open terminal and the second end of the normally closed terminal.
Furthermore, the storage cabinet also comprises a battery power supply device, and a power supply source of the storage cabinet is connected with the output end of the battery power supply device through a power supply conversion circuit. Specifically, power supply converting circuit can convert the voltage signal that battery power supply unit exported into the power supply who matches with controller and configuration circuit, like DC5V, or DC3.3V's power supply etc. and the switching condition of specific power supply can set up according to the in-service use condition, the embodiment of the utility model provides a do not restrict this.
The utility model discloses locker, including above-mentioned on-off state detection device, consequently, can make the single-pole double-throw switch that detects the chamber door state be in not power consumptive state after detecting the chamber door state and changing, and then can reduce the energy consumption of locker, make the locker satisfy energy-conserving demand.
The embodiment of the utility model provides a locker, the on-off state detection device who provides with above-mentioned embodiment has the same technical characteristic, so also can solve the same technical problem, reach the same technological effect.
The embodiment of the utility model provides an in, on off state detection device is applied to in the locker for detect the chamber door state of storage tank. The utility model discloses an in other embodiments, on-off state detection device can also be applied to other multiple scenes, for example, on-off state detection device is applied to and is used for detecting the state of the upper cover of printer in the printer, perhaps, on-off state detection device is applied to and is used for detecting the state of cell-phone button in the cell-phone and so on.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the storage cabinet described above may refer to the corresponding process in the foregoing embodiment, and is not described herein again.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present invention can be understood in specific cases for those skilled in the art.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplification of description, but do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above embodiments are only specific embodiments of the present invention, and are not intended to limit the technical solution of the present invention, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: those skilled in the art can still modify or easily conceive of changes in the technical solutions described in the foregoing embodiments or make equivalent substitutions for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A switch state detection device, comprising: the circuit comprises a single-pole double-throw switch, a controller and a configuration circuit;
the single-pole double-throw switch comprises a common end, a normally open terminal and a normally closed terminal, wherein the common end, the normally open terminal and the normally closed terminal are respectively provided with a first end and a second end;
the controller comprises a switch input end, the first end of the common end is connected with the switch input end of the controller, one of the first end of the normally open terminal and the first end of the normally closed terminal is connected with a power supply, and the other of the first end of the normally open terminal and the first end of the normally closed terminal is grounded;
the second end of the common end is alternatively connected with the second end of the normally open terminal or the second end of the normally closed terminal, so as to be connected with the power supply or grounded;
the first end of the common terminal is further connected to the configuration circuit, and the configuration circuit configures the first end of the common terminal to be in communication with the power supply when the second end of the common terminal is in communication with the power supply, and configures the first end of the common terminal to be grounded when the second end of the common terminal is grounded.
2. The switch state detection device of claim 1, wherein the configuration circuit comprises a switching circuit having a control input;
the controller comprises a control output end, and the control input end of the switch circuit is connected with the control output end of the controller;
when the second end of the public end is communicated with the power supply, the first end of the public end is communicated with the power supply through the switch circuit;
when the second end of the common end is grounded, the first end of the common end is grounded through the switch circuit.
3. The switching state detection apparatus according to claim 2, wherein the switching circuit includes a first switching device and a second switching device;
the first switching device and the second switching device each comprise a control input;
the controller comprises a first control output end and a second control output end, the control input end of the first switching device is connected with the first control output end of the controller, and the control input end of the second switching device is connected with the second control output end of the controller;
the first end of the common terminal can be connected with the power supply through the first switching device, and the first end of the common terminal can be grounded through the second switching device.
4. The switch state detection device according to claim 1, wherein the configuration circuit includes a pull-up resistor, and when the second terminal of the common terminal is connected to the power supply, the first terminal of the common terminal is connected to the power supply through the pull-up resistor;
and/or the presence of a gas in the gas,
the configuration circuit comprises a pull-down resistor, and when the second end of the common end is grounded, the first end of the common end is grounded through the pull-down resistor.
5. The switch state detection device according to claim 1, further comprising a first timer;
the first timer is used for timing the time length of the communication between the second end of the public end and the power supply;
the configuration circuit configures the first end of the public end to be communicated with the power supply when the timing duration of the first timer exceeds a first duration;
and/or the presence of a gas in the gas,
the apparatus further comprises a second timer;
the second timer is used for timing the grounding time of the second end of the public end;
the configuration circuit configures the first terminal of the common terminal to be grounded when the timing time of the second timer exceeds a second time.
6. The switch state detection device of claim 1, further comprising a first current limiting resistor;
the second end of the normally open terminal or the second end of the normally closed terminal is connected with the power supply through the first current limiting resistor;
alternatively, the first and second electrodes may be,
the device also comprises a second current limiting resistor, and the second end of the normally open terminal or the second end of the normally closed terminal is grounded through the second current limiting resistor.
7. A storage cabinet, comprising a storage box and the switch state detection device of any one of claims 1 to 6;
the storage box comprises a box door and a box body, the box body comprises an opening, and the box door is used for opening or closing the opening of the box body;
the single-pole double-throw switch of the switch state detection device is arranged between the box door and the box body;
when the box door opens the opening of the box body, the second end of the public end can be connected with one of the second end of the normally open terminal and the second end of the normally closed terminal;
when the box door closes the opening of the box body, the second end of the public end can be connected with the other one of the second end of the normally open terminal and the second end of the normally closed terminal.
8. A cabinet according to claim 7, wherein an electronic lock is provided between the door and the cabinet;
the electronic lock comprises a lock body, the lock body comprises a shell, and the single-pole double-throw switch is arranged in the shell.
9. The stowage bin of claim 8 wherein the electronic lock further comprises a shackle;
the lock body is arranged on the box body, and the lock catch is arranged on the box door;
the lock body also comprises a lock hook which can be separated from or matched with the lock catch, and the lock hook is arranged in the shell;
when the box door opens the opening of the box body, the lock hook is separated from the lock catch, so that the second end of the public end is connected with one of the second end of the normally open terminal and the second end of the normally closed terminal;
when the box door closes the opening of the box body, the lock hook is matched with the lock catch to enable the second end of the public end to be connected with the other one of the second end of the normally open terminal and the second end of the normally closed terminal.
10. The storage cabinet of claim 7, further comprising a battery power supply, wherein the power supply of the storage cabinet is connected to the output of the battery power supply through a power conversion circuit.
CN202022099635.5U 2020-09-22 2020-09-22 Switch state detection device and storage cabinet Active CN212965806U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202022099635.5U CN212965806U (en) 2020-09-22 2020-09-22 Switch state detection device and storage cabinet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202022099635.5U CN212965806U (en) 2020-09-22 2020-09-22 Switch state detection device and storage cabinet

Publications (1)

Publication Number Publication Date
CN212965806U true CN212965806U (en) 2021-04-13

Family

ID=75369652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202022099635.5U Active CN212965806U (en) 2020-09-22 2020-09-22 Switch state detection device and storage cabinet

Country Status (1)

Country Link
CN (1) CN212965806U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113715723A (en) * 2021-09-27 2021-11-30 山东爱德邦智能科技有限公司 Vehicle light control circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113715723A (en) * 2021-09-27 2021-11-30 山东爱德邦智能科技有限公司 Vehicle light control circuit

Similar Documents

Publication Publication Date Title
CN212965806U (en) Switch state detection device and storage cabinet
AU2021294050B2 (en) Battery device control circuit
CN209103121U (en) A kind of instrument sleep-awake circuit
CN110569679A (en) Cover-detaching self-destruction circuit for terminal and control method thereof
CN217406709U (en) Charging bin, earphone and TWS earphone
CN207490595U (en) Power-supplying circuit and electrical equipment
CN204652345U (en) A kind of novel switched amount input circuit
CN108319353A (en) Power supply enables circuit
CN206282158U (en) Low-temperature heat and startup control device
CN208061126U (en) Power supply enables circuit
CN212965358U (en) Broken line detection circuit with load access automatic wake-up function and power bank
CN210324204U (en) A tear lid self-destruction circuit open for terminal
CN207457351U (en) A kind of Port detecting and state latching circuit
CN107817993A (en) A kind of vehicle-mounted MCU application circuits using external house dog
CN217982251U (en) Automatic opening circuit and device for cover opening and electronic equipment
US5963017A (en) Calibration of the battery device for a portable computer system
CN104914441B (en) A kind of self-identifying output intent of photoelectric sensor
CN216145122U (en) Timing controller
CN110890883A (en) Conversion device and system for infrared photoelectric switch signals
CN220399823U (en) Wake-up device of wireless communication module and autonomous mobile device
CN221039849U (en) Sensor control circuit and data acquisition circuit
CN215681824U (en) TWS earphone charging system
CN219611759U (en) Electromechanical device access sensor circuit structure
CN218956772U (en) Signal output circuit and intelligent power module
CN109298323A (en) A kind of low power consumption switch detection circuit

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant