A kind of switch detection circuit and with the controller of this switch detection circuit
Technical field
The utility model relates to home equipment control device, relates in particular to switch detection circuit and with the controller of this switch detection circuit.
Background technology
The circuit structure of existing home equipment controller as shown in Figure 4, need stir hand switch 8 and to family's electric control unit 2 input electrical signals, family's electric control unit 2 is controlled the break-make of electric-controlled switch 3 according to the electric signal of its reception, and then the power-up state of control household electrical appliances 4, meanwhile, family's electric control unit 2 is also wirelessly connected to console 6 by wireless transmit/receive units 5, by console 6, receives the steering order that mobile phone 7 is sent by remote port, and transfer to an electric control unit 2, and then realize Long-distance Control.
In above-mentioned home equipment controller, hand switch 8 is Chang Kai or normally closed type switch, the hand switch 8 of take is that switch open in usual is example, when hand switch 8 closures, family's electric control unit 2 receives this closure state, and then control electric-controlled switch 3 conductings, household electrical appliances 4 power on, under this state, if user is when remote port utilizes mobile phone 7 to send to require the steering order of household electrical appliances 4 power-off, because hand switch 8 is always in closure state, causes an electric control unit 2 cannot respond this steering order, thereby produce invalid operation.
Utility model content
The technical problems to be solved in the utility model is, for existing home equipment controller, easily produces the deficiencies such as invalid operation, provides a kind of switch detection circuit and with the controller of this switch detection circuit.
For solving the problems of the technologies described above, the utility model adopts following technical scheme.
A switch detection circuit, it includes: a single-pole double-throw switch (SPDT), not after two moved end does not interconnect of described single-pole double-throw switch (SPDT), then be connected in feeder ear; One pulse collection unit, its input end is connected in the moved end of single-pole double-throw switch (SPDT), the pulse signal that described pulse collection unit produces for gathering single-pole double-throw switch (SPDT) moved end, and will after this pulse signal shaping filter, export; One comparing unit, its input end is connected in pulse collection unit, its output terminal is connected in an electric control unit, and this comparing unit is for by voltage and a reference voltage comparison of the pulse signal of pulse collection unit output, and exports noble potential pulse or electronegative potential pulse to an electric control unit.
Preferably, described pulse collection unit is the single-shot trigger circuit that includes 555 timers, the trigger end of described 555 timers is connected in the moved end of single-pole double-throw switch (SPDT) by current-limiting resistance, the signal of the output terminal output of described 555 timers transfers to comparing unit.
Preferably, described comparing unit includes comparer, and the in-phase end of described comparer is connected in the output terminal of pulse collection unit, the anti-phase termination electronegative potential of described comparer, and the output terminal of described comparer is connected in an electric control unit.
With a controller for above-mentioned switch detection circuit, it includes: an electric-controlled switch, and its input end is connected in feeder ear, and its output terminal is connected in household electrical appliances, and described electric-controlled switch is for producing break-make according to the steering order of its reception; An electric control unit, it is connected in electric-controlled switch, and described electric control unit is used for according to the electric signal of its reception to electric-controlled switch sending controling instruction; One wireless transmit/receive units, it is connected in an electric control unit, and described electric control unit is by this wireless transmit/receive units and the mutual communication of console; And above-mentioned switch detection circuit.
Preferably, described electric-controlled switch is relay.
In the disclosed switch detection circuit of the utility model, when user stirs single-pole double-throw switch (SPDT), because two does not interconnect moved end, so moved end is not when switching between moved end for two, because voltage hit produces a pulse signal, pulse collection unit gathers this pulse signal, and by after this pulse signal shaping filter, transfer to comparing unit, family's electric control unit by the noble potential pulse of comparing unit outputting standard or electronegative potential pulse to controller, and then control household electrical appliances power on or power down, wherein, because this switch detection circuit is that family's electric control unit provides pulse signal, therefore, after this pulse, the signal of switch detection circuit output returns to original state, if now recycling mobile phone sends remote control commands to family's electric control unit, family's electric control unit this steering order that can make an immediate response, thereby avoided generation invalid operation.
Accompanying drawing explanation
Fig. 1 is the circuit block diagram of controller.
Fig. 2 is the circuit theory diagrams of pulse collection unit.
Fig. 3 is the circuit theory diagrams of comparing unit.
Fig. 4 is the circuit block diagram of existing home equipment controller.
Embodiment
Below in conjunction with drawings and Examples, the utility model is done to more detailed description.
As shown in Figure 1, the utility model discloses a kind of switch detection circuit 1, this switch detection circuit 1 includes a single-pole double-throw switch (SPDT) 10, a pulse collection unit 11 and a comparing unit 12, wherein:
Not after two moved end does not interconnect of described single-pole double-throw switch (SPDT) 10, then be connected in feeder ear VIN, this feeder ear VIN can be that Alternating Current Power Supply end can be also DC power supply terminal;
The input end of pulse collection unit 11 is connected in the moved end of single-pole double-throw switch (SPDT) 10, the pulse signal that described pulse collection unit 11 produces for gathering single-pole double-throw switch (SPDT) 10 moved ends, and will after this pulse signal shaping filter, export;
The input end of comparing unit 12 is connected in pulse collection unit 11, its output terminal is connected in an electric control unit 2, this comparing unit 12 is for by voltage and a reference voltage comparison of the pulse signal of pulse collection unit 11 output, and exports noble potential pulse or electronegative potential pulse to an electric control unit 2.
In above-mentioned switch detection circuit 1, when user stirs single-pole double-throw switch (SPDT) 10, because two does not interconnect moved end, so moved end is not when switching between moved end for two, because voltage hit produces a pulse signal, pulse collection unit gathers this pulse signal, and by after this pulse signal shaping filter, transfer to comparing unit 12, family's electric control unit 2 by comparing unit 12 output noble potential pulses or electronegative potential pulse to controller, and then control household electrical appliances 4 power on or power down, wherein, because this switch detection circuit 1 is that family's electric control unit 2 provides pulse signal, therefore, after this pulse, the signal of switch detection circuit 1 output returns to original state, if while now utilizing 7 pairs of family's electric control units of mobile phone 2 to send remote control commands, family's electric control unit 2 this steering order that can make an immediate response, thereby avoided generation invalid operation.Based on above-mentioned principle, this switch detection circuit 1 is applicable to being applied to intelligent home device controller, is also applicable to being applied in other remote controls.
As a kind of optimal way, shown in Fig. 1 and Fig. 2, described pulse collection unit 11 is the single-shot trigger circuits that include 555 timer U102, the trigger end TR of described 555 timer U102 is connected in the moved end of single-pole double-throw switch (SPDT) 10 by current-limiting resistance R111, the signal of the output terminal VO output of described 555 timer U102 transfers to comparing unit 12, utilize this 555 timer, the transient pulse of its input can be converted to noble potential pulse or the electronegative potential pulse signal with default time delay, to improve the validity of signal.
In the present embodiment, shown in Fig. 1 and Fig. 3, described comparing unit 12 includes comparer U101, the in-phase end Vin+ of described comparer U101 is connected in the output terminal of pulse collection unit 11, the end of oppisite phase Vin-of described comparer U101 connects electronegative potential, the output end vo ut of described comparer U101 is connected in an electric control unit 2, by this output end vo ut output noble potential pulse or electronegative potential pulse signal.
As shown in Figure 1, with the controller of above-mentioned switch detection circuit 1, include an electric-controlled switch 3, electric control unit 2 and a wireless transmit/receive units 5, wherein,
Electric-controlled switch 3 input ends are connected in feeder ear VIN, and its output terminal is connected in household electrical appliances 4, and described electric-controlled switch 3 produces break-make for the steering order according to its reception, and this electric-controlled switch 3 is relay preferably;
Family's electric control unit 2 is connected in electric-controlled switch 3, described electric control unit 2 for according to the electric signal of its reception to electric-controlled switch 3 sending controling instructions;
Wireless transmit/receive units 5 is connected in an electric control unit 2, and described electric control unit 2 is by this wireless transmit/receive units 5 and the mutual communication of console 6, and this console 6 is for carrying out telecommunication with mobile phone 7.
In the above-mentioned controller with switch detection circuit, the pulse signal that single-pole double-throw switch (SPDT) 10 produces is after shaping, filtering, by comparing unit 12, transfer to an electric control unit 2 again, family's electric control unit 2 is controlled household electrical appliances 4 according to this pulse signal and is powered on or power down, and can not affect the response of 2 pairs of remote control commands of an electric control unit.Does not switch between moved end at two the moved end of this single-pole double-throw switch (SPDT) 10, therefore single-pole double-throw switch (SPDT) 10 is after switching, subsequent conditioning circuit keeps power-up state, make an electric control unit 2 effectively to the duty of household electrical appliances 4, to do further to control, contribute to realize better local and remote control.
The above is the utility model preferred embodiment, is not limited to the utility model, all modifications of making in technical scope of the present utility model, is equal to and replaces or improvement etc., all should be included in the scope that the utility model protects.