Summary of the invention
The technical problems to be solved in the utility model provides a kind ofly can cut off the electricity supply when the power consumption equipment standby automatically, and good, the easy to operate supply socket electricity-saving control device of fail safe.
The technical scheme that addresses the above problem is: the utility model socket is provided with ac power input end, the socket aperture ac power output, control circuit, it is characterized in that: described ac power input end is connected with control circuit by rectification circuit, control circuit is provided with cpu controller, between ac power input end and ac power output, be serially connected with master switch control assembly by cpu controller control, be provided with the current sample parts in the AC power output loop, its sampled signal output is connected with the cpu controller input, and the cpu controller input is connected with the switching signal parts that can send switch controlling signal.
The further scheme of the utility model is: ac power input end is connected with described rectification circuit by step-down transformer.
Operation principle of the present utility model is: the attaching plug of power consumption equipment is inserted the utility model socket aperture ac power output, promptly can be the power consumption equipment power supply, and socket is to control turning on and off of itself and ac power input end by cpu controller, when the switching signal parts when cpu controller sends switching signal, cpu controller is in conjunction with the current socket output sampled signal that receives of this device, carry out sending control signal after the data processing, its data handling procedure is: if socket is to be in on-state when receiving switching signal, then cpu controller is delayed time a period of time, and repeatedly sample by sample circuit during this time, with the set point of the sampled value that obtains and CPU inside relatively, if the sampled signal that receives is less than set point, cpu controller can judge that power consumption equipment has been in holding state, control the output AC power source of master switch control assembly time delayed turn-off socket this moment, if the sampled signal that receives is greater than set point, can judge that power consumption equipment is in running order (switching signal that is received is for adjusting the signal of operating state), keeps the operating state of original energized this moment; If socket is to be in off state when receiving switching signal, cpu controller can judge that switching signal is a starting-up signal, sends control signal this moment at once, connects the interchange out-put supply of socket by the master switch control assembly.Sampling circuit can continue the row sampling of going on later on, greater than set point, promptly keeps on-state as if the data of sampling, if the data of sampling then are judged as holding state less than set point, promptly turn-offs or time delayed turn-off interchange out-put supply.
The utility model can cut off power supply automatically when detecting the stand-by operation state, reach energy-conservation and purpose of safety, and has the easy to operate advantage of use.
The further scheme AC power of the utility model is connected with rectification circuit by transformer, the control circuit and the isolation of AC power input circuit that can make rectification circuit and power by rectification circuit, improved the device fail safe, thereby can reduce security performance requirement the control circuit parts.
Embodiment
The present embodiment is a kind of electricity-saving control device that is used for plugs and sockets, and the plug of plugs and sockets is that ac power input end, socket aperture are ac power outputs, and control circuit board is contained in the housing of plugs and sockets.
Control circuit is powered by ac input end, and ac power input end is connected with rectification circuit by transformer, and rectification circuit output end is connected with the feeder ear of control circuit.
Control circuit is provided with cpu controller, cpu controller adopts the STC12C5201AD single-chip microcomputer, the single-chip microcomputer output is connected with relay R ELAY-SPST coil by switch driving circuit, the switch contact of relay is serially connected between socket ac power input end and the ac power output socket aperture as the master switch control assembly, is used to control the break-make of AC power output.
In socket AC power output loop, be provided with the current sample parts, these routine current sample parts are to be contained in the current transformer that exchanges in the output loop, this current transformer be enclosed within the relay switch contact with as being connected on the lead between the socket aperture of ac output end, ac current signal by the output of induction socket, the aanalogvoltage of gathering is done sampled signal, be input to single-chip microcomputer.
The switching signal parts that this device is connected with the cpu controller input be for can receiving the HS0038A2 infrared remote receiver of infrared remote-controlled signal, and its output is connected with single-chip microcomputer input on the socket by connecting lead.
This example also is provided with a manual switching signal parts S2, be connected on single-chip microcomputer 13 pin and+5 volts of power supplys between, when by these parts after cpu controller sends manual ringing, cpu controller carries out sending control signal again after the data processing with to receive infrared remote-controlled signal the same.
Fig. 3 is this routine structural representation: the circuit board of control circuit is contained in the housing 1 of supply socket, also be provided with simultaneously one with supply socket housing 1 for dividing the switch control box 2 of body structure, the switch control box is connected with supply socket housing 1 by the connection lead 3 of spinning out, described switching signal parts are contained in the switch control box 2, and the switching signal parts are electrically connected with the cpu controller input by connecting lead.
Switch control box 2 is connected with supply socket housing 1 by the connection lead 3 of tape insulation layer, connects lead and passes the insulating barrier outer wall at supply socket housing position by pressure-ray film 4 and housing relative fixed.
Usually supply socket will be installed in power consumption equipment bottom or hidden place, butt joint transmit button signal is very inconvenient like this, for example when switching signal is the wireless remote control signal, power consumption equipment bottom or hidden place are not easy to receive this signal, when switching signal is manual ringing, power consumption equipment bottom or hidden place are not easy operation again, and this routine switch control box can space out by the connection lead and the supply socket of spinning out, be arranged on and receive remote signal or carry out manually operated position easily, therefore, can prevent the generation of Control Failure phenomenon, and easy to use.
Fig. 2 is the present embodiment circuit diagram.
Power circuit:
J1, the J2 terminal is the AC220V ac input end, J1 input (L end), J2 input (N end) connect two inputs of step-down transformer, behind the ac buck, voltage stabilizing circuit output+24V the DC power supply that full bridge rectifier, C2, C12 filter circuit, the Z1 that the output of transformer and D1---D4 form connect with R4 and constitute, and further pass through R12, R13, U2 circuit of three-terminal voltage-stabilizing integrated and electrochemical capacitor C4, the C5 filter circuit is exported stable+5V DC power supply.
Wherein+and 24V provides operating voltage for the relay of control circuit, and+5V provides operating voltage for the cpu controller of control circuit, infrared receiving-member.
The cpu controller circuit:
CPU adopts the STC12C5201AD singlechip chip, and 4,5 pin that Y1 crystal oscillator, C9, C10 receive single-chip microcomputer constitute oscillation source; CPU input 12 pin are connected with+5 volts of voltages by resistance R 5, and by hand switch key S1 ground connection, the function of hand switch key S1 is manually to turn on and off the master switch control assembly.
6 pin of CPU are the input pin of infrared signal, link to each other with the output pin of HS0038 A2 infrared remote receiver by CON3, receive the switching signal of extraneous remote controller, and DC power supply provides power supply by CON3 for infrared remote receiver.13 pin are connected with+5 volts of voltages with R11 by manual ringing switch S 2, thereby can accept the operation of extraneous hand switch signal.
The 15 pin output LED of CPU, relay drive signal, the directly work of driving LED, relay.Pin 1 is a resetting pin, and 16,8 pin are the working power pin of CPU.
Sample circuit:
Sample circuit is a current sampling circuit, sample unit is to be connected on the current transformer ZMCT-204D that exchanges in the output loop, this current transformer volume is less, can be contained in the Socket casing, be enclosed within being connected on the lead between relay switch contact and the socket aperture: when external load is worked, exchanging output loop has electric current to flow through, this moment, current transformer had induced voltage to produce, the current transformer output is successively by resistance R 9, the filter circuit that C6 forms, the rectification circuit that rectifying tube D6 forms, C7, R10, C8, the filtering stable amplitude circuit that Z2 forms is connected with single-chip microcomputer input 11 pin, single-chip microcomputer is sampled to the voltage of input, the data of gathering compare with the data of inside, in conjunction with the infrared remote-controlled signal that receives, the output control signal corresponding is gone the work of control relay and the indication of indicator light to output pin 15.
Cpu controller output 15 pin are connected with switching tube Q1 control base stage, switching tube Q1 one end ground connection, one end is connected with+24V power supply, constitute switch driving circuit, relay R ELAY-SPST is serially connected in this switch drive loop, the switch contact K2 of relay is serially connected between ac power input end J1 and the ac power output J4, the break-make of control socket AC power output.
This routine course of work is: infrared remote receiver, S2 are placed the position that can receive remote controller signal with power consumption equipment, when single-chip microcomputer receives remote signal by infrared receiving-member or receive the switching signal that S2 sends:
If this moment, socket was in on-state, undertaken by following program: the one fen kind of delaying time, sample circuit is repeatedly sampled, the set point of sampled value and CPU inside is compared, if the sampled signal that receives is less than set point, judge that promptly power consumption equipment is a holding state, this moment, single-chip microcomputer sent the shutoff control signal, turn-offed the AC power of socket output by relay contact; If sampled signal is greater than comparing data, can judge that power consumption equipment is an operating state, remote controller sends is to adjust working state signal (as the gear shift of changing platform, air conditioner of television set etc.), and this moment, single-chip microcomputer was kept the state of a control of original connection AC power output;
When socket is in off state, cpu controller one is received infrared remote-controlled signal, can be judged as is starting-up signal, sends control signal at once, connects by switch block and exchanges out-put supply, sampling circuit is sampled later on, if the data of sampling can judge that greater than set point power consumption equipment is an operating state, then keeps on-state, if the data of sampling less than set point (holding state), were then turn-offed after one minute and are exchanged out-put supply.
With the television set is example, and television set is inserted this energy-conservation socket to attaching plug under off state, when the user wants to see TV, presses the start key of on ﹠ off switch S1, S2 or remote controller, and television set gets electric operate as normal.When the user finishes watching TV and turns off television set with remote controller, spin out the signal that the infrared receiving terminal that connects on the lead has also received shutdown, single-chip microcomputer is handled the signal that samples, and cuts off standby power after one minute automatically, realizes electricity-saving function automatically.Also can manually click on ﹠ off switch S1, cut off standby power.
This device can adopt the single-chip microcomputer deal with data, and whether detection equipment is in holding state automatically, in case detect holding state, promptly automatic time delay cuts off socket power, reaches energy-conservation purpose.
The above; it only is preferred embodiment of the present utility model; be not that the utility model is done any pro forma restriction; every foundation technical spirit of the present utility model all still belongs to the protection range of technical solutions of the utility model to any simple modification, equivalent variations and modification that above embodiment did.