CN206922114U - A kind of electrical source socket and its electric operation control circuit figure - Google Patents
A kind of electrical source socket and its electric operation control circuit figure Download PDFInfo
- Publication number
- CN206922114U CN206922114U CN201720383031.9U CN201720383031U CN206922114U CN 206922114 U CN206922114 U CN 206922114U CN 201720383031 U CN201720383031 U CN 201720383031U CN 206922114 U CN206922114 U CN 206922114U
- Authority
- CN
- China
- Prior art keywords
- socket
- switch
- microcontroller
- infrared
- control
- 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
Links
- 230000006698 induction Effects 0.000 claims description 37
- 238000001514 detection method Methods 0.000 claims description 36
- 230000001939 inductive effect Effects 0.000 claims description 28
- 230000007246 mechanism Effects 0.000 claims description 12
- 238000012544 monitoring process Methods 0.000 claims description 3
- 230000000149 penetrating effect Effects 0.000 claims 1
- 230000036632 reaction speed Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 16
- 239000011159 matrix material Substances 0.000 description 14
- 238000003780 insertion Methods 0.000 description 7
- 230000037431 insertion Effects 0.000 description 7
- 239000002184 metal Substances 0.000 description 7
- 229910052751 metal Inorganic materials 0.000 description 7
- 230000005611 electricity Effects 0.000 description 3
- 238000013507 mapping Methods 0.000 description 3
- RYGMFSIKBFXOCR-UHFFFAOYSA-N Copper Chemical compound [Cu] RYGMFSIKBFXOCR-UHFFFAOYSA-N 0.000 description 2
- 230000000903 blocking effect Effects 0.000 description 2
- 229910052802 copper Inorganic materials 0.000 description 2
- 239000010949 copper Substances 0.000 description 2
- 230000006378 damage Effects 0.000 description 2
- 208000027418 Wounds and injury Diseases 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000012938 design process Methods 0.000 description 1
- 208000014674 injury Diseases 0.000 description 1
- 239000011810 insulating material Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000007935 neutral effect Effects 0.000 description 1
- 230000002980 postoperative effect Effects 0.000 description 1
- 230000001012 protector Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Landscapes
- Switches Operated By Changes In Physical Conditions (AREA)
Abstract
It the utility model is related to a kind of electrical source socket and its control circuit.The power socket control circuit includes at least one socket position, and each socket position includes at least one socket, it is characterised in that the power socket control circuit includes:Each socket is corresponding with two infrared sensing switch, for sensing in respective socket whether insert plug;Relay corresponding with each socket respectively, for controlling the connecting and disconnecting between respective socket and power supply;Controlling switch corresponding with each relay respectively, for controlling corresponding relay connecting and disconnecting;One microcontroller, determine whether that plug inserts for the conducting according to the infrared sensing switch and cut-off state, if it is determined that have, the controlling switch of relay corresponding to connection, otherwise disconnect.Because the reaction speed of microcontroller is faster more accurate, the security performance of product is thus lifted.
Description
[ technical field ] A method for producing a semiconductor device
The utility model relates to an electricity technical field especially relates to a supply socket device and control circuit thereof.
[ background of the invention ]
Electric power is an indispensable energy source in modern daily life. However, since it can cause great damage to human body and even deprive life, we usually set some safety protection measures on the electricity-taking device.
The power socket device, one of the most common power-taking devices, is inevitably free of such a protection device.
For example, in order to prevent fingers, especially fingers of children, or metal objects from being inserted into the socket to cause electric shock, a plastic blocking piece is installed at an opening of the insertion hole of the power socket device, and the blocking piece is pushed out by a spring to seal the insertion hole. Thus, although the safety is improved, the normal plug insertion is difficult, and even the improper force is likely to cause electric shock.
For another example: in order to prevent the shell from leaking electricity due to the failure of an electric appliance and the like, an electric leakage protection device is additionally arranged. When leakage accident occurs, the leakage protector cuts off power supply immediately. However, this is a post-operative protection and still presents a certain risk or injury to the user.
In addition, when no plug is inserted or only one of the jacks is inserted into a metal object, the internal copper sheet of the power socket device is disconnected with a power supply and is not electrified. However, when the two jacks are respectively inserted into the metal objects, the power socket device is powered on; or when the power plug is inserted into the socket to half, the power socket device is also powered on. Therefore, there is still a risk of an electric shock accident.
[ Utility model ] content
The to-be-solved technical problem of the utility model is to provide a power socket device and control circuit who possesses more reliable anti-electric shock function.
In order to solve the technical problem, the utility model provides a following technical scheme:
in one aspect, the present invention provides an electrical outlet device, comprising at least one socket seat, each socket seat at least comprising a socket, each socket seat comprising: a base; the circuit board is arranged on the base; the circuit board is provided with at least one socket; each socket comprises a plurality of plug bushes and a plug bush fixing frame; the plug bush is used for realizing electric connection with an inserted plug; the plug bush fixing frame is fixed on the circuit board and sleeved outside the plug bush for fixing the plug bush; the socket cover is covered on the base, and the circuit board is accommodated in an accommodating space formed between the base and the socket cover; wherein, this circuit board still includes: each socket is correspondingly provided with two infrared induction switches which are arranged on the circuit board at positions corresponding to the plug bushes of the socket; the relay is respectively corresponding to each socket, and the control switch is used for controlling the on and off of each relay; the microcontroller is used for determining whether to switch on the control switch of the corresponding relay according to the on-off state of the infrared induction switch in the socket; the relay is used for controlling connection and disconnection between the corresponding socket and a power supply.
On the other hand, the utility model provides a supply socket control circuit, this supply socket include at least one socket seat, and every socket position includes at least one socket, its characterized in that, this supply socket control circuit includes: each socket is correspondingly provided with two infrared induction switches for inducing whether a plug is inserted into the corresponding socket or not; the relay is respectively corresponding to each socket and is used for controlling the connection and disconnection between the corresponding socket and a power supply; the control switch is respectively corresponding to each relay and used for controlling the corresponding relay to be switched on and off; and the microcontroller is used for determining whether a plug is inserted according to the on-off state of the infrared induction switch, if so, switching on the control switch of the corresponding relay, otherwise, not switching on.
The beneficial effects of the utility model reside in that: the utility model discloses a concrete implementation side adopts infrared induction switch response whether to have the plug to insert the socket, and microcontroller switches on the relay that corresponds the socket when confirming according to the information that infrared induction switch surveyed, makes this socket get the electricity, because microcontroller's reaction rate is faster more accurate, promotes the security performance of product from this.
[ description of the drawings ]
Fig. 1 is an exploded perspective view of a first embodiment of a power outlet device of the present invention;
fig. 2 is an assembled perspective view of a first embodiment of a power outlet device of the present invention;
fig. 3 is a schematic view of an insertion plug according to a first embodiment of the present invention;
fig. 4 is a schematic circuit diagram of a microcontroller controlling an infrared inductive switch and a control switch of a relay according to an embodiment of the power socket device of the present invention;
fig. 5 is a schematic circuit diagram of a group of infrared inductive switches according to a first embodiment of the power socket device of the present invention;
fig. 6 is a schematic diagram of a control circuit of a relay according to a first embodiment of the present invention;
fig. 7 is a pulse diagram of a microcontroller control output terminal according to a first embodiment of the power socket apparatus of the present invention;
fig. 8 is a perspective assembly view of a second embodiment of a power outlet device of the present invention;
fig. 9 is a schematic circuit diagram of a microcontroller controlling an infrared inductive switch and a control switch of a relay according to a second embodiment of the power socket device of the present invention;
fig. 10 is a pulse diagram of the microcontroller control output terminal of a second embodiment of the power socket device according to the present invention;
fig. 11 is a schematic block diagram of a third embodiment of a power outlet device according to the present invention.
Reference numerals:
[ detailed description ] embodiments
In order to make the objects, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the invention.
Furthermore, the technical features mentioned in the embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
Referring to fig. 1 and 2, a first embodiment of a power socket device according to the present invention is shown in a perspective view. The first embodiment of the power socket device comprises:
a base 10;
a circuit board 20 mounted on the base 10;
a socket cover 40 covering the base 10, wherein the circuit board 20 is accommodated in an accommodating space formed between the base 10 and the socket cover 40. In the first embodiment, a 5-port socket is included, and the technical solution of the present invention is described by way of example, but the first embodiment of the present invention is not limited to be used in a 5-port socket.
Wherein, this circuit board 20 includes: an infrared inductive switch 21, a plug bush fixing frame 22, a plug bush 23, a relay 26 and a microcontroller 27 (not shown in fig. 1). The plug bush fixing frame 22 is fixed on the circuit board 20, and is sleeved outside the plug bush 23 for fixing the plug bush 23, and the plug bush fixing frame 22 is made of an insulating material. The infrared sensing switch 21 is used to detect whether an object is inserted into the insertion sleeve 23, and other detecting devices, such as a micro switch, a hall switch, etc., may be used instead of the infrared sensing switch.
The specific embodiments of the present invention all use 5-port sockets as examples for illustration, that is, a socket seat includes a two-port socket and a three-port socket. Therefore, each socket has 5 sockets 23 corresponding to 5 sockets. The two-pin socket needs to detect two pins, and the three-pin socket only needs to detect one live wire (L) pin and one neutral wire (N) pin. Therefore, at least 4 pairs of infrared inductive switches 21 are arranged in a 5-mouth socket. The relay 26 includes a three-pin jack relay 261 and a two-pin jack relay 262; the three-pin jack relay 261 is used for controlling connection and disconnection between the three-pin socket and a power supply; the two-pin socket 262 is used to control the connection and disconnection between the two-pin socket and the power source.
Preferably, the circuit board 20 may further include: and a safety monitoring switch 24 for detecting whether the plug is inserted into the bottom of the socket. The safety detecting switch 24 includes a head 241, a tail 242 and an elastic member 243. The head 241 is disposed through the outer portion of the socket cover 40, the tail 242 is clamped inside the socket cover 40, the elastic member 243 is sleeved outside the tail, the tail 242 sleeved with the elastic member 243 is inserted into the safety switch fixing hole 221 of the socket fixing frame 22, and when the head 24 exposed outside the socket cover 40 is pressed downward by an external force, the elastic member 243 provides a resilient force. Meanwhile, an infrared induction switch 21 is arranged on the circuit board at a position corresponding to the tail 242 of the safety detection switch 24; when the safety detecting switch 21 is pressed, the tail 242 is inserted between the infrared transmitting tube 211 and the infrared receiving tube 212 of the infrared detecting switch 21. Then, at this time, 5 pairs of infrared inductive switches 21 should be included in one 5-port socket site.
Preferably, the circuit board 20 may further include: the indicator lamp 25 includes a three-pin socket indicator lamp 251 and a two-pin socket indicator lamp 252, the three-pin socket indicator lamp 251 is used for indicating whether the three-pin socket is powered on, the two-pin socket indicator lamp 252 is used for indicating whether the two-pin socket is powered on, and the indicator lamp 25 is connected in parallel with the corresponding relay 26 (not shown).
Please refer to fig. 3, a schematic diagram of a position relationship between a plug pin and the ir-responsive switch 21 when the plug is inserted into the socket according to a first embodiment of the present invention. Each pair of infrared inductive switches 21 includes an infrared transmitting tube 211 and an infrared receiving tube 212. The infrared transmitting tube 211 and the infrared receiving tube 212 are disposed inside one of the sockets 23, and are disposed opposite to each other. When the plug 90 is inserted into the socket, the pins 91 of the plug 90 are inserted between the infrared transmitting tube 211 and an infrared receiving tube 212, and at this time, the infrared receiving tube 212 does not receive the infrared rays emitted from the infrared transmitting tube 211.
Referring to fig. 4 and 5, a schematic circuit diagram of a microcontroller controlling an infrared inductive switch according to an embodiment of the present invention is shown.
Since a plurality of infrared transmitting tubes 211 and infrared receiving tubes 212 are present in the circuit diagram, the infrared transmitting tubes 211 are numbered as D1 and D2 for convenience of correspondence. The D1 comprises two infrared emission tubes D1-1 and D1-2 which are connected in parallel; d2 includes two infrared emission tubes D2-1 and D2-2 connected in parallel. The infrared receiving tubes 212 are numbered as Q1-1, Q1-2, Q2-1 and Q2-2. Wherein D1-1 and D1-2 are infrared emission tubes distributed in the same socket (three-pin socket or two-pin socket); similarly, D2-1 and D2-2 are IR emitting tubes distributed in another socket (two-pin socket or three-pin socket).
Two infrared transmitting tubes in the same socket are connected in parallel between two output ends of the microcontroller 27, but the two infrared transmitting tubes connected in parallel are respectively connected between different input ends of the microcontroller and the ground corresponding to the infrared receiving tubes.
Specifically, as shown in fig. 5, the ir transmitting tubes D1-1 and D1-2 are connected in parallel to the output terminals P1.0 and P1.1 of the microcontroller 27, and the ir receiving tube Q1-1 corresponding to the ir transmitting tube D1-1 is disposed between the input terminal P1.6 of the microcontroller 27 and the ground; an infrared receiving tube Q1-2 corresponding to the infrared transmitting tube D1-2 is disposed between the other input terminal P1.5 of the microcontroller 27 and ground.
Similarly, IR emitting tubes D2-1 and D2-2 are connected in parallel to outputs P1.0 and P1.2 of microcontroller 27. An infrared receiving tube Q2-1 corresponding to the infrared transmitting tube D2-1 is arranged between the input end P1.6 of the microcontroller 27 and the ground; an infrared receiving tube Q2-2 corresponding to the infrared transmitting tube D2-2 is disposed between the other input terminal P1.5 of the microcontroller 27 and ground. The connection mode of D3 is shown in the figure, and the principle is the same, and will not be described again.
Please refer to fig. 6, which is a control schematic diagram of a relay according to a first embodiment of the present invention.
Similarly, since there is more than one relay 26, we also number the control switch E corresponding to the relay 26. In the first embodiment, there are two sockets for one socket, and therefore the numbers of the control switches E corresponding to the relays 26 are E1 and E2 in sequence.
As can be seen in fig. 4, the control output of the microcontroller 27 controls the switching off and on of the control switches E1 and E2 of the relay 26. That is, when the microcontroller 27 determines that a plug is inserted into the socket according to the conducted infrared inductive switch, the control output end of the controller 27 controls the conduction of the control switch corresponding to the infrared inductive switch; otherwise, the switch is controlled to be switched off. Preferably, the microcontroller 27 determines whether the control switch E1 or E2 corresponding to the ir-sensitive switch should be turned on according to the turned-on ir-sensitive switch and a preset safety mechanism. Specifically, the security mechanism includes: the control switch corresponding to the infrared induction switch is switched on only when the switching-on time of the infrared induction switch is within a preset range, such as 0.1 second; or the control switch corresponding to the infrared induction switch can be switched off or not switched on when the plug is away from the socket by a certain distance; or if the conducted infrared induction switches are not in the same socket, the corresponding relays are not switched on. The specific content and implementation of the security mechanism is set forth in detail below.
Specifically, as shown in fig. 6, control switch E1 is connected between P1.1 and P1.2 of microcontroller 27. In fig. 6, it can be seen that the relay K1 is connected in series with the switch E11 between the power supply and ground, and the control switch E1 controls the opening and passage of the switch E11. That is, when the control switch E1 is connected between two output terminals of the microcontroller 27 and exceeds a certain threshold, i.e., P1.2 is high and P1.1 is low, the control switch E1 is turned on, so that the switch E11 also reaches the threshold of conduction, the relay K1 is energized, and finally the socket corresponding to the relay K1 is energized. The control switch E1 and the switch E1 may be electronic transistors having a switching function, such as a transistor or a MOS transistor.
Preferably, an LED1 may also be connected in parallel with relay K1 as an indicator light 25 that the socket was successfully energized.
Referring to fig. 7, a schematic diagram of a pulse pattern at an output of the microcontroller 27 in the first embodiment is shown.
P1.1, P1.2, P1.0 output high levels successively. When P1.1 outputs high level and P1.2 is set to high impedance state, the infrared transmitting tubes D1-1 and D1-2 are lighted to emit infrared rays, at this time, if the corresponding infrared receiving tubes Q1-1 and Q1-2 receive the infrared rays, the infrared receiving tubes Q1-1 and Q1-2 are conducted to ground, the input ends P1.5 and P1.6 of the microcontroller 27 become low level, and the microcontroller 27 controls the output end to control the relay corresponding to the infrared inductive switch to be switched on; if a plug is inserted into the socket, the infrared receiving tubes Q1-1 and Q1-2 do not receive infrared rays, and are still in a cut-off state, that is, the input ends P1.5 and P1.6 of the microcontroller 27 are still at a high level, and the microcontroller 27 controls the output end to control the relay corresponding to the infrared sensing switch to be in an off state. That is, the microcontroller 27 controls the corresponding relays to be turned off or on according to the states of the infrared receiving tubes Q1-1 and Q1-2 to be turned on or off. As previously mentioned, the microcontroller 27 may also add a judgment of the safety mechanism to determine the off and on states of the control relay. The high impedance state is a special output state of the output terminal of the microprocessor 27, which is neither high level nor low level, and it is equivalent to turning off the output of P1.2, so that the operation of the whole time sequence is not affected. The output state of high impedance state can be supported in the present microprocessor.
Preferably, as mentioned above, the circuit board 20 may further include a safety detection switch 24, which corresponds to the ir transmitting tube D3-1 and the ir receiving tube Q3-1. The infrared transmitting tube D3-1 is connected between two output terminals of the microcontroller 27 as in the previously described principle. The microcontroller 27 drives the infrared transmitting tube D3-1 to transmit infrared rays, and when the infrared receiving tube Q3-1 can receive infrared rays, it is in a conducting state, and its corresponding output end of the microcontroller 27 is in a low level state; when the infrared receiving tube Q3-1 cannot receive infrared rays, it is in the off state, and its corresponding output terminal of the microcontroller 27 is in the high level state. The microcontroller 27 determines whether to turn on the relay of the corresponding socket by simultaneously detecting the on or off status of the infrared detection switch in the plug bush of the socket and the infrared detection switch corresponding to the safety detection switch 24. Therefore, even if metal objects are inserted into the jacks of the socket at the same time, because the metal objects are not normal plugs, the safety detection switch 24 cannot be pressed down in the middle, and the relay of the socket cannot be conducted, and in fact, if the metal objects are respectively inserted into the two pins of the socket, the probability that the safety detection switch 24 is pressed down again at the same time is extremely low, and the difficulty is also high. Meanwhile, since the head 241 of the safety detection switch 24 is short and small, if we can set it to be 2 mm long, that is, after the bottom 92 (shown in fig. 3) of the plug is 2 mm away from the socket, the safety detection switch 24 springs upward, the tail 242 of the safety detection switch 24 springs out from the corresponding socket, the infrared receiving switch in the socket is turned on, and the microcontroller 27 turns off the relay 26 corresponding to the safety detection switch 24, so that as long as the plug 90 is 2 mm above the socket, the socket is not powered, and the distance of 2 mm, the human hand cannot be inserted into the socket, thereby ensuring the power utilization safety of the user. Thereby, the safety of the socket is further improved. The safety detection switch 24 is used to control the plug to disconnect the relay of the socket to disable the power supply when the plug is at a certain distance from the socket, which is one of the safety mechanisms.
Preferably, the microcontroller 27 may further determine whether two infrared detection switches in the socket sleeve are simultaneously turned on, or whether the time difference of the turn-on is within a preset threshold, for example, 0.1 second, if so, the microcontroller 27 determines that a normal plug is inserted, and controls the relay corresponding to the socket to be turned on; if not, the plug-in is determined to be abnormal, and the corresponding relay is not conducted. Therefore, the electric shock accidents caused by the fact that the metal devices are respectively inserted into the jacks of the socket can be reduced. Of course, if the socket further includes a safety detection switch 24, the microcontroller 27 needs to determine whether two infrared detection switches in the socket plug and the infrared detection switch corresponding to the safety detection switch 24 are turned on simultaneously, or whether the time difference of the turn-on is within a preset threshold. The microcontroller 27 determines whether the on time of the ir-sensing switch is within a predetermined time difference, and the ir-sensing switch is turned on within the predetermined time difference, which is the second safety mechanism.
Preferably, the microcontroller 27 may further determine whether the infrared inductive switches turned on at the same time are safety inductive switches in one socket, and if so, turn on the corresponding relay; if not, the corresponding relay is not switched on. And whether the infrared inductive switch that switches on is in same socket to and the mapping relation between infrared inductive switch and the relay, can all predetermine at circuit design process and microcontroller 27's programming in-process, as the technical personnel in this field basis the utility model discloses a scheme that specific embodiment provided can realize, the utility model discloses a detailed implementation is not repeated. This is the third safety mechanism.
The utility model discloses an among the embodiment one, used microcontroller to carry out detection and control with the precision, inside every power jack, all installed infrared induction switch to each socket seat has all installed independent electromagnetic relay as the switch-on and the disconnection of control power. Under the state that no plug is inserted, all relays are in the disconnected state, and the copper sheets in all power jacks are disconnected with the power supply and are uncharged; when a regular plug is inserted, the internal infrared inductive switch senses the insertion of the plug and sends a signal to the microcontroller, the microcontroller judges according to the received signal and the safety rule, and after the regular plug is inserted, the corresponding relay is controlled to be switched on to provide a power supply. Therefore, the safety performance of the power socket device is greatly improved.
Please refer to fig. 8, a perspective assembly view of a second embodiment of a power socket device according to the present invention. In the second embodiment, the power socket device includes a plurality of socket seats, as shown in the figure, in the second embodiment, we will take 4 socket seats, each of which is a 5-port socket as an example for explanation. As previously described, each of the 5-port receptacles includes a three-port receptacle and a two-port receptacle. The second embodiment will be described by taking a power outlet device including the safety control switch 24 as an example. As mentioned above, each socket position needs 5 pairs of ir-sensing switches, and there are 4 socket positions in total, so that the microcontroller 27 needs to control 20 pairs of ir-sensing switches in total.
Other numbers of sockets can be deduced according to the design principle of the second embodiment.
Referring to fig. 9, the second embodiment of the present invention is a schematic circuit diagram of a microcontroller controlling an infrared inductive switch and a relay.
In the second embodiment, a matrix arrangement and a one-by-one scanning mode are adopted to control the plurality of infrared inductive switches 21. Because of the large number, in order to facilitate description, in the second embodiment, it is still necessary to number the infrared transmitting tube 211, the infrared receiving tube 212, and the relay 26.
Specifically, the serial numbers of the infrared transmitting tubes 211 are as follows in sequence: d1-1, D1-2, D2-1, D2-2, D3-1, D3-2 … … D10-1, D10-2, wherein D1-1 and D1-2 are located in one socket, D2-1 and D2-2 are located in one socket, and so on until D10-1 and D10-2 are located in one socket. The infrared emission tubes are connected in parallel in the same direction to form a group of infrared emission tubes, for example, D1-1, D1-2 are connected in parallel in the same direction to form D1 group of infrared emission tubes, and so on, D10-1 and D10-2 are connected in parallel in the same direction to form D10 group of infrared emission tubes. The infrared transmitting tubes form an infrared transmitting tube matrix.
The infrared receiving tube 212 is numbered as follows: q1-1, Q1-2, Q2-1, Q2-2, Q3-1, Q3-2 … … Q10-1, Q10-2, wherein Q1-1 and D1-1 are a pair of infrared inductive switches 21 which are arranged in a plug bush 23; q1-2 is paired with D1-2, Q2-1 is paired with D2-1, and so on until Q10-2 is paired with D10-2. The infrared receiving tubes form an infrared receiving tube matrix.
Each socket corresponds to one relay 26, so that in the second embodiment, 8 relays are required, and the numbers of the relays 26 are sequentially K1, K2, and K3 … … K8. Each relay K1, K2 and K3 … … K8 respectively corresponds to one control switch E1, E2 and E3 … … E8. A number of these control switches constitute a control switch matrix. The mapping relationship between the control switches E1, E2, E3 … … E8 of the relay 26 and the infrared receiving tubes Q1-1, Q1-2, Q2-1, Q2-2, Q3-1, Q3-2 … … Q10-1 and Q10-2 can be preset in the microcontroller 27 according to the actual condition of the circuit.
The microcontroller 27 controls the infrared inductive switch by using N (N is a natural number greater than or equal to 2) control output terminals. Each control output end is respectively connected with two groups of infrared induction switches in parallel between the other N-1 control output ends, and the two groups of infrared emission tubes are in a reverse manner, so that the N control output ends can actually control N (N-1) groups of infrared induction switches, namely 2N (N-1) infrared induction switches.
Such as: and N is equal to 4, 24 infrared inductive switches can be controlled at most. In the second embodiment, 4 control output terminals P1.0, P1.1, P1.2, and P1.3 are used to control 10 groups of infrared inductive switches.
On the basis, if a control output end is added, N × N +1 groups of switches can be controlled, namely 2N groups of switches can be controlled more. And one group of control switches of the relay is only provided with one electronic switch. Therefore, in the second embodiment, since there are 8 relays, on the premise of the infrared inductive switch matrix, one more output control terminal P1.4 is needed. The (N +1) th input end and the (1) th to the (N) th control output ends respectively control two relay switches, the two relay switches are connected in parallel and reversely, and the directions of the positive electrode and the negative electrode are opposite. If two control switches E1 and E5 are connected between P1.4 and P1.0, E1 is conducted when P1.4 is high and P1.0 is low; otherwise, E5 is conducted; similarly, the P1.4 and the P1.1 are connected with E2 and E6 in parallel and in reverse; the P1.4 and the P1.2 are connected in parallel and reversely with E3 and E7; e4 and E8 are connected in parallel and reversely between P1.4 and P1.3. As shown in particular in fig. 9.
Therefore, two groups of reverse infrared transmitting tubes, or two reverse control switches, or one infrared induction switch and one control switch which are mutually reverse can be connected in parallel between each control output end and the other N-1 control output ends respectively.
It is understood that, in the matrix, the arrangement sequence of the infrared emission tubes Q1-1 to Q10-2 and the arrangement sequence of the control switches K1 to K8 of the relay are only one of the above embodiments, and in fact, the sequence may be arbitrarily arranged in the matrix according to the needs of the circuit designer. It is only necessary to ensure that the mapping relationship between the infrared inductive switch Q and the control switch E provided in the microcontroller 27 is consistent with the actual circuit.
In operation, the microcontroller 27 sequentially drives the infrared emission tubes 211 in the infrared emission matrix D in a scanning manner, and only one group of the infrared emission tubes is driven to emit infrared rays each time. The control switches E1 to E8 of the relay control the corresponding control output to be turned on after the micro controller 27 is judged.
Please refer to the pulse diagram of the control output of the microcontroller 27 shown in fig. 10. Specifically, if the infrared transmitting tubes D1-1 and D1-2 of the D1 group are driven to be lighted up to emit infrared rays, the infrared transmitting tubes of the other D2-D10 groups are all in a turned-off state. When the infrared transmitting tubes D1-1 and D1-2 are lighted, if no object is inserted into the plug bushes corresponding to the infrared transmitting tubes D1-1 and D1-2, the infrared receiving tubes Q1-1 and Q1-2 are both conducted, and two input ends P1.5 and P1.6 of the microcontroller 27 are both at low level; if an object, such as a plug, is simultaneously inserted into the sockets corresponding to the ir transmitting tubes D1-1 and D1-2, then both input terminals P1.5 and P1.6 of the microcontroller 27 are at a high level, and at this time, if the microcontroller 27 determines that a plug is inserted into the socket corresponding to the ir transmitting tube D1 according to the states of the ir receiving tubes Q1-1 and Q1-2 and/or a corresponding safety mechanism, the microcontroller 27 drives the relay K1 corresponding to the ir transmitting tube D1 to be turned on, that is, as shown in fig. 10, P1.4 outputs a high level, p.10 outputs a low level, and P1.1, P1.2, and P1.3 are set to output in a high resistance state, and a dotted line portion in fig. 10 indicates output in a high resistance state, the switch E1 is controlled to be turned on, so that the relay K1 is turned on, and the socket corresponding to the relay K1 can take power.
As described above, the microcontroller 27 drives the D2 groups of ir transmitting tubes D2-1 and D2-2 to light up at the next time sequence, and similarly, only when an object is inserted into the corresponding plug bush of the group of ir transmitting tubes, the microcontroller 27 will drive the relay 26 corresponding to the D2 ir transmitting tube to conduct and take power.
The infrared transmitting tubes of the D3 groups and the infrared transmitting tubes of the D4 groups are sequentially driven in this way, and each group of infrared transmitting tubes and the control switch in the circuit are driven to be started once. Then, the driving is started from the infrared emission tubes of the D1 group in a cycle.
The utility model discloses an in embodiment two, this supply socket device possesses a plurality of seats, and required infrared inductive switch is more, for saving microcontroller's output and reducing the wiring of circuit board, adopts the matrix to arrange infrared emission switch to with the mode of scanning one by one, in proper order and uninterruptedly monitoring whether have the plug to insert in each socket, only when confirming that there is the plug to insert, just can switch on the power of corresponding jack. Therefore, more infrared induction switches can be controlled by fewer microcontroller control output ends, the microcontroller with fewer control output ends is relatively low in price, meanwhile, wiring of the circuit board can be greatly reduced, the area of the circuit board is reduced, and therefore product cost can be saved and product size can be reduced on the premise that product safety performance is guaranteed.
The utility model discloses in embodiment mode two, when a plurality of seats of inserting, the connected mode of matrix has been adopted, by switching on and turn-off of infrared induction switch and relay in all sockets on the microcontroller 27 control socket device, can control 4 infrared induction switch or 2 relay switches between per two control output ends, the regular output height of each control output of microcontroller 27 or low level, make this microcontroller can light the infrared induction switch in each socket one by one, namely, light the infrared induction switch in each socket with the mode of scanning. And determining whether to conduct the corresponding relay switch according to the state of the infrared induction switch and/or other safety mechanisms. The security mechanism mentioned in the second embodiment is the same as that in the first embodiment, and thus, the details are not repeated here.
Referring to fig. 11, a schematic block diagram of a third embodiment of a power outlet device according to the present invention is shown. The third embodiment is different from the first or second embodiment in that the power outlet device includes: besides the microcontroller 27, the infrared emission matrix D, the infrared receiving matrix Q and the relay matrix K, the present invention further includes:
a power detection chip 50 for uninterruptedly detecting the current in the entire power outlet device and transmitting the information obtained by the detection to the microcontroller; the microcontroller determines that the current power is larger than the preset value according to the information sent by the power detection chip, and the control switches of all the relays are switched off. Because the chip is used for detection, the accuracy and the speed are much higher than those of the power-off of the ordinary fuse.
Preferably, the power socket device may further include: and the leakage detection chip 60 is used for detecting whether the electrical appliance inserted into each socket has a leakage phenomenon, when the leakage current reaches a preset value, such as 30ma, the leakage current is fed back to the microcontroller 27, and the microcontroller 27 cuts off all relays, namely, cuts off the power supply of the corresponding socket. Thereby, the safety of the user is protected.
Preferably, the power socket device may further include: and the zero-live wire detection device 70 is used for detecting whether the position of live wire access is correct or not, and when the position is incorrect, an alarm is given and fed back to the microcontroller 27, and the microcontroller 27 cuts off all relays in the relay matrix K. Therefore, the zero line and the live line in the power supply line which are not laid according to the specification exist in certain scenes, such as: for example, when the zero line and the live line are reversely connected during household power wiring, when the power socket device draws power from the system, the socket position of the power socket device cannot be connected with the power supply, and therefore the power utilization safety is guaranteed.
Preferably, the power socket device may further include: a multifunctional digital display 80 for displaying information obtained from the microcontroller 27, such as: various parameters such as current power, voltage, power consumption, insertion position and the like. The parameters such as power and voltage may be the result obtained by the microcontroller 27 through calculation after obtaining information from the power detection chip 50.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, as any modifications, equivalents, improvements and the like made within the spirit and principles of the present invention are intended to be included within the scope of the present invention.
Claims (12)
1. An electrical outlet device comprising at least one outlet socket, each outlet socket comprising at least one outlet, each outlet socket comprising:
a base;
the circuit board is arranged on the base; the circuit board is provided with at least one socket; each socket comprises a plurality of plug bushes and a plug bush fixing frame; the plug bush is used for realizing electric connection with an inserted plug; the plug bush fixing frame is fixed on the circuit board and sleeved outside the plug bush for fixing the plug bush;
the socket cover is covered on the base, and the circuit board is accommodated in an accommodating space formed between the base and the socket cover;
characterized in that, this circuit board still includes:
each socket is correspondingly provided with two infrared induction switches which are arranged on the circuit board at positions corresponding to the plug bushes of the socket;
the relay is respectively corresponding to each socket, and the control switch is used for controlling the on and off of each relay; and
the microcontroller is used for determining whether to switch on the control switch of the corresponding relay according to the on-off state of the infrared induction switch in the socket;
the relay is used for controlling connection and disconnection between the corresponding socket and a power supply.
2. The electrical outlet device of claim 1, wherein each receptacle seat further comprises: and the safety monitoring switch is used for detecting whether the plug is inserted into the bottom of the socket or not, if so, the microcontroller starts the control switch of the corresponding relay, and if not, the control switch of the corresponding relay is not started.
3. The power outlet device of claim 2, wherein the safety detection switch comprises: the infrared induction switch comprises a head part, a tail part, an elastic piece and a corresponding infrared induction switch;
the head part is arranged outside the socket cover in a penetrating way, the tail part is clamped inside the socket cover, the elastic piece is sleeved outside the tail part, and the tail part sleeved with the elastic piece is inserted into the safety switch fixing hole on the plug bush fixing frame;
the infrared inductive switch corresponding to the safety detection switch is arranged on the circuit board at a position corresponding to the tail part; when the safety detection switch is pressed, the tail part can be inserted between the infrared transmitting tube and the infrared receiving tube of the infrared detection switch.
4. The electrical outlet device as claimed in claim 1, wherein the microcontroller determines whether the relay corresponding to the ir-sensing switch should be turned on according to the on or off state of the ir-sensing switch in each electrical outlet and a preset safety mechanism.
5. The electrical outlet device as recited in claim 4, wherein the safety mechanism comprises at least one of:
the microcontroller determines whether the conduction time of the two infrared induction switches in the socket is within a preset range, if so, conduction is performed, otherwise, conduction is not performed; or,
the microcontroller determines whether the conducted infrared induction switch is an infrared induction switch in the same socket, if so, the infrared induction switch is conducted, otherwise, the infrared induction switch is not conducted.
6. The electrical outlet device as claimed in claim 1, wherein the microcontroller controls the ir-emitting tubes and the control switches of all the ir-sensing switches in the electrical outlet device using N control outputs;
wherein, the two infrared transmitting tubes connected in parallel in the same direction form a group of infrared transmitting tubes;
each control output end is respectively connected with the other N-1 control output ends in parallel with two groups of reverse infrared emission tubes, or two reverse control switches, or one infrared induction switch and one control switch which are mutually reverse;
two infrared receiving tubes corresponding to each group of infrared transmitting tubes are respectively connected between two input ends of the microcontroller and the ground; and
the microcontroller controls the output ends to regularly output pulses, so that the microcontroller sequentially lights each group of infrared emission tubes; and determining whether to turn on the control switch of the corresponding relay according to the on and off states of the infrared induction switch.
7. The electrical outlet device as recited in claim 1, further comprising:
the power detection chip is used for uninterruptedly detecting the current in the whole power socket device and sending the information obtained by detection to the microcontroller; and when the microcontroller determines that the current power is greater than the preset value according to the information sent by the power detection chip, the control switches of all the relays are switched off.
8. The electrical outlet device as recited in claim 1, further comprising: the leakage detection chip is used for detecting the leakage current of the electric appliance inserted into each socket and feeding back the leakage current to the microcontroller when the leakage current reaches a preset value; and the microcontroller switches off the control switches of all the relays according to the feedback information of the leakage detection chip.
9. The electrical outlet device as recited in claim 1, further comprising: the zero-live wire detection device is used for detecting whether the position of live wire access is correct or not, and when the position is incorrect, an alarm is given and fed back to the microcontroller; the microcontroller switches off the control switches of all the relays according to the feedback information of the zero live wire detection device.
10. The electrical outlet device as recited in claim 1, further comprising: and the multifunctional digital display is used for displaying the parameter information acquired from the microcontroller.
11. An electrical outlet control circuit, the electrical outlet comprising at least one outlet seat, each outlet seat comprising at least one outlet, the electrical outlet control circuit comprising:
each socket is correspondingly provided with two infrared induction switches for inducing whether a plug is inserted into the corresponding socket or not;
the relay is respectively corresponding to each socket and is used for controlling the connection and disconnection between the corresponding socket and a power supply;
the control switch is respectively corresponding to each relay and used for controlling the corresponding relay to be switched on and off;
and the microcontroller is used for determining whether a plug is inserted according to the on-off state of the infrared induction switch, if so, switching on the control switch of the corresponding relay, otherwise, not switching on.
12. The electrical outlet control circuit as claimed in claim 11, wherein the microcontroller employs N control outputs to control the ir-emitting diodes and the control switches of all the ir-sensing switches in the electrical outlet device;
wherein, the two infrared transmitting tubes connected in parallel in the same direction form a group of infrared transmitting tubes;
each control output end is respectively connected with two groups of reverse infrared emission tubes in parallel with the other N-1 control output ends, or two reverse control switches, or one infrared induction switch and one control switch in the mutual direction;
two infrared receiving tubes corresponding to each group of infrared transmitting tubes are respectively connected between two input ends of the microcontroller and the ground; and
the microcontroller controls the output ends to regularly output pulses, so that the microcontroller sequentially lights each group of infrared emission tubes; and determining whether to turn on the control switch of the corresponding relay according to the on and off states of the infrared induction switch.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201720383031.9U CN206922114U (en) | 2017-04-12 | 2017-04-12 | A kind of electrical source socket and its electric operation control circuit figure |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201720383031.9U CN206922114U (en) | 2017-04-12 | 2017-04-12 | A kind of electrical source socket and its electric operation control circuit figure |
Publications (1)
Publication Number | Publication Date |
---|---|
CN206922114U true CN206922114U (en) | 2018-01-23 |
Family
ID=61305570
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201720383031.9U Active CN206922114U (en) | 2017-04-12 | 2017-04-12 | A kind of electrical source socket and its electric operation control circuit figure |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN206922114U (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106936029A (en) * | 2017-04-12 | 2017-07-07 | 汪智伟 | A kind of electrical source socket and its electric operation control circuit figure |
CN109713521A (en) * | 2019-02-20 | 2019-05-03 | 魏峥 | A kind of socket with from unloading pin function |
-
2017
- 2017-04-12 CN CN201720383031.9U patent/CN206922114U/en active Active
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106936029A (en) * | 2017-04-12 | 2017-07-07 | 汪智伟 | A kind of electrical source socket and its electric operation control circuit figure |
CN109713521A (en) * | 2019-02-20 | 2019-05-03 | 魏峥 | A kind of socket with from unloading pin function |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103293985B (en) | Zero consumption standby circuit | |
CN103502728A (en) | Tubelamp retrofit pin safety implementation using existing ballast and fixture | |
CN204793459U (en) | Safety socket | |
CN105870687B (en) | A kind of power outlet with plug detection function | |
CN106936029A (en) | A kind of electrical source socket and its electric operation control circuit figure | |
CN106981785B (en) | Power interface on-off control circuit and safety power supply device | |
CN206922114U (en) | A kind of electrical source socket and its electric operation control circuit figure | |
CN203617494U (en) | Electric shock prevention socket | |
CN204361335U (en) | A kind of supply socket with plug detection function | |
CN106207652B (en) | Sparkless switch device and electric shock prevention intelligent socket | |
CN201674074U (en) | Smart socket | |
CN204012021U (en) | The attaching plug of belt switch | |
CN210430145U (en) | Wiring device and household appliance | |
CN101431202A (en) | Safety plug | |
CN212659707U (en) | Socket structure | |
CN220475044U (en) | Socket safety power supply circuit and safety socket | |
CN220692463U (en) | Electric connection device | |
CN208315933U (en) | A kind of Safty electronic socket | |
CN215955617U (en) | Self-induction safety socket | |
CN217589654U (en) | Socket capable of automatically controlling on and off | |
CN107528574B (en) | Wireless intelligent device based on traditional mechanical switch | |
CN106329237A (en) | Safety socket | |
CN218850016U (en) | Multi-point touch detection safety socket | |
CN206742590U (en) | A kind of remote control illumination socket of efficiently assembling protection door and Chinese chess big gun magnetic switch | |
CN210927068U (en) | Anti-electric shock inductive switch |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant |