Invention content
Present invention aims at a kind of intelligent socket with defencive function is provided, it includes voltage detecting circuit, mistake to have
Detection circuit module including current detection circuit, electric-leakage detection circuit, temperature sensing circuit, ensures intelligent socket from many aspects
Safe handling, and only take up less volume resource.
To reach above-mentioned purpose, the present invention refers to that a kind of intelligent socket with defencive function, the intelligent socket include
Socket circuit module, relay control switch circuit module, MCU control circuit module, detection circuit module, communication interface mould
Block;
The socket circuit module includes mains connection, power cord, feeder ear, mains connection to connect alternating current,
And by alternating current by power cord to be transmitted to feeder ear, power cord includes firewire and zero curve;
On the power line, control terminal is electric with MCU control circuit module for the relay control switch circuit module series connection
Connection, according to the control instruction of MCU control circuit module to cut off/turn-on power line;
The communication interface module is electrically connected to MCU control circuit module, to realize MCU control circuit module and user
The data interaction at end;
The detection circuit module includes voltage detecting circuit, over-current detection circuit, electric-leakage detection circuit, temperature detection electricity
Road;
The voltage detecting circuit includes the first bridge rectifier being sequentially connected electrically, the first pressure unit, the second decompression
Unit, univoltage converting unit and the first filter unit;
First pressure unit, the second pressure unit all have two input terminals and two output ends, univoltage conversion
There are two input terminal and an output ends for unit tool;
Two input terminals of first bridge rectifier are electrically connected with power cord, two outputs of the first bridge rectifier
End is electrically connected with two input terminals of the first pressure unit;
Two input terminals of second pressure unit are electrically connected with two output ends of the first pressure unit, the second decompression
Two output ends of unit are electrically connected to two input terminals of univoltage converting unit;
First bridge rectifier generates the alternating current for flowing through power cord is converted into direct current, then by conversion
DC power transmission to the first pressure unit, direct current is transmitted to list after the first pressure unit, the second pressure unit are depressured successively
Voltage conversion unit, univoltage converting unit export a first voltage and detect signal;
First filter unit is electrically connected the output end and MCU control circuit module of univoltage converting unit, will
It is transmitted to MCU control circuit module after the first voltage detection signal filtering that univoltage converting unit generates;
The over-current detection circuit includes the first current sampling unit being sequentially connected electrically, amplifying unit, the second filtering list
The output end of member, the second filter unit is electrically connected to MCU control circuit module;
The firewire of the first current sampling unit electric connection of power supply line, induction flow through the electric current of firewire and will sense
Electric current is converted into the first induced voltage;
First induced voltage is converted into second voltage detection after amplifying unit amplification, the second filtering unit filters again
Signal transmission is to MCU control circuit module;
The electric-leakage detection circuit includes the second current sampling unit being electrically connected to each other and earth leakage protective chip, the second electricity
The firewire and zero curve for flowing sampling unit electric connection of power supply line, the difference acquisition by comparing electric current on firewire and zero curve flow through ground wire
Leakage current and the leakage current of acquisition is converted into the second induced voltage, the second induced voltage is transferred to earth leakage protective chip,
Earth leakage protective chip exceeds given threshold in response to the second induced voltage, sends an electric leakage signal to MCU control circuit module;
The temperature sensing circuit includes the divider resistance and thermistor being electrically connected to each other, and divider resistance is not electric with temperature-sensitive
One end of resistance connection connect with a regulated power supply, and one end that thermistor connect with divider resistance is grounded, and thermistor and is divided
One end of piezoresistance connection is electrically connected to MCU control circuit module, and the voltage of the tie point is defined as tertiary voltage inspection
Survey signal;
The MCU control circuit module is in response to any one in the following conditions, 1) first voltage surveys signal and is more than the
One voltage threshold, 2) second voltage detection signal is more than second voltage threshold value, the 3) electric leakage signal that electric-leakage detection circuit is sent, 4)
Tertiary voltage detects signal and is less than tertiary voltage threshold value, generates a shutoff signal;
The MCU control circuit module has a configuration part, to set first voltage threshold value, second voltage threshold value, the
Three voltage thresholds;
The relay control switch circuit module is instructed in response to the cut-out of MCU control circuit module, cut-out socket electricity
The power cord of road module.
By the above technical scheme of the present invention, compared with existing, significant advantageous effect is, it includes voltage inspection to have
Detection circuit module including slowdown monitoring circuit, over-current detection circuit, electric-leakage detection circuit, temperature sensing circuit, ensures from many aspects
The safe handling of intelligent socket, and only take up less volume resource.
It should be appreciated that as long as aforementioned concepts and all combinations additionally conceived that describe in greater detail below are at this
Sample design it is not conflicting in the case of can be viewed as the disclosure subject matter a part.In addition, required guarantor
All combinations of the theme of shield are considered as a part for the subject matter of the disclosure.
Can be more fully appreciated from the following description in conjunction with attached drawing present invention teach that foregoing and other aspect, reality
Apply example and feature.The feature and/or advantageous effect of other additional aspects such as illustrative embodiments of the present invention will be below
Description in it is obvious, or by according to present invention teach that specific implementation mode practice in learn.
Specific implementation mode
In order to know more about the technology contents of the present invention, spy lifts specific embodiment and institute's accompanying drawings is coordinated to be described as follows.
Various aspects with reference to the accompanying drawings to describe the present invention in the disclosure, shown in the drawings of the embodiment of many explanations.
It is not intended to cover all aspects of the invention for embodiment of the disclosure.It should be appreciated that a variety of designs and reality presented hereinbefore
Those of apply example, and describe in more detail below design and embodiment can in many ways in any one come it is real
It applies, this is because design disclosed in this invention and embodiment are not limited to any embodiment.In addition, disclosed by the invention one
A little aspects can be used alone, or otherwise any appropriately combined be used with disclosed by the invention.
In conjunction with Fig. 1, the present invention refers to that a kind of intelligent socket with defencive function, the intelligent socket include socket circuit
Module, relay control switch circuit module, MCU control circuit module, detection circuit module, communication interface module.
The socket circuit module includes mains connection, power cord, feeder ear, mains connection to connect alternating current,
And by alternating current by power cord to be transmitted to feeder ear, power cord includes firewire and zero curve.
On the power line, control terminal is electric with MCU control circuit module for the relay control switch circuit module series connection
Connection, according to the control instruction of MCU control circuit module to cut off/turn-on power line.
MCU control circuit module includes an ESP32 chips.
The communication interface module is electrically connected to MCU control circuit module, to realize MCU control circuit module and user
The data interaction at end.
For example, MCU control circuit module is connected to network, then the hand by network and user by communication interface module
Machine, PC machine realize that data interaction, user remotely send control instruction by mobile phone, PC machine to MCU control circuit module, cut-out or
Intelligent socket is connected in person, realizes and is controlled the switch for being connected to the electric appliance on intelligent socket indirectly.
In some instances, also there is the intelligent socket wifi indicator lights, wifi indicator lights to be electrically connected to MCU controls
Circuit module, to react the communication state of MCU control circuit module.
The intelligent socket also has a soft-touch control module.
The soft-touch control module includes that two membrane keyboards and a singly-bound touch chip, and described two membrane keyboards are electrically connected to
Singly-bound touches the input terminal of chip, and the output end that singly-bound touches chip is electrically connected to MCU control circuit module.
The singly-bound touches chip and uses UTouth01B.
The intelligent socket has one to touch indicator light, touches indicator light and is electrically connected to MCU control circuit module, to straight
See the working condition of reaction intelligent socket.
During the use of intelligent socket, it will usually which the failure of appearance generally has overvoltage, overcurrent, overload, electric leakage, pine
De-, short circuit etc., for these types of failure, it is as follows that the present invention designs detection circuit module:
The detection circuit module includes voltage detecting circuit, over-current detection circuit, electric-leakage detection circuit, temperature detection electricity
Road.
Each detection circuit of detection circuit module is illustrated respectively below.It should be appreciated that following several detection electricity
Road needs to realize that fault detect as comprehensive as possible is made to prevent the volume of intelligent socket excessive using the structure most simplified
Increase at cost, this is the structure design general character of following several detection circuits for the intelligent socket.
One, voltage detecting circuit
Voltage value on power cord is very high, such as 220V electric mains, directly judges the voltage of such amplitude
It is an abnormally dangerous and unpractical action, the present invention will flow through the high voltage city of power cord by voltage detecting circuit
Electricity is converted into detecting signal compared with the first voltage of low amplitude value, judges to use for MCU control circuit module.
In conjunction with Fig. 2, the voltage detecting circuit includes the first bridge rectifier 11, the first pressure unit being sequentially connected electrically
12, the first pressure unit 13, univoltage converting unit 14 and the first filter unit 15.
First pressure unit 12, the first pressure unit 13 all have two input terminals and two output ends, univoltage
There are two input terminal and an output ends for the tool of converting unit 14.
Two input terminals of first bridge rectifier 11 are electrically connected with power cord, two of the first bridge rectifier 11
Output end is electrically connected with two input terminals of the first pressure unit 12.
Two input terminals of first pressure unit 13 are electrically connected with two output ends of the first pressure unit 12, and first
Two output ends of pressure unit 13 are electrically connected to two input terminals of univoltage converting unit 14.
First bridge rectifier 11 generates the alternating current for flowing through power cord is converted into direct current, then by conversion
DC power transmission to the first pressure unit 12, direct current is after the first pressure unit 12, the first pressure unit 13 are depressured successively
It is transmitted to univoltage converting unit 14, univoltage converting unit 14 exports a first voltage and detects signal.
First filter unit 15 is electrically connected the output end and MCU control circuit mould of univoltage converting unit 14
Block is transmitted to MCU control circuit module after filtering the first voltage detection signal that univoltage converting unit 14 generates.
For example, the alternating current that the alternating current for flowing through power cord is 220V, is converted into after 11 rectification of the first bridge rectifier
The direct current of 308V, in conjunction with Fig. 2, No. 2 feet of the first bridge rectifier 11, No. 3 foot electric connection of power supply lines, No. 1 foot exports direct current
High pressure 308V, No. 4 feet export high direct voltage 0V, which is converted into direct current by the alternating current on power cord
And it is transmitted to the first pressure unit 12.
In view of the first bridge rectifier 11 tool is there are two output end, the first pressure unit 12 and to the first pressure unit 13
It is a symmetrical structure.
Wherein one side, including at least two divider resistance R1 and R2 of first pressure unit, 12 symmetrical structure, the two points
Resistance value proportional numerical value between piezoresistance is larger, and purpose has two:
First purpose, partial pressure, for exporting direct current 308V, it is assumed that the resistance value ratio of R1 and R2 is 20:A in 1, Fig. 2
The voltage of point is about 14-15V.
High pressure is isolated, it should be understood that on 11 each connecting pin of the first bridge rectifier is high pressure, right in second purpose
The personal safety of user threatens, and two divider resistances that larger resistance value ratio is arranged may be implemented that high pressure is effectively isolated
Effect, protection intelligent socket are safe to use.
The voltage of A points is transferred to the first pressure unit 13 and is further depressured, and the first pressure unit 13 is by two
Symmetrical resistance is constituted, and the voltage signal of the B points after the decompression of the first pressure unit 13 is about 2V or so, it is ensured that electric appliance and user
Safety.
Corresponding, the voltage signal of B ' is identical with B points, about 2V or so.
By it is preceding it is found that through the first pressure unit 13 do further decompression after, at present in the voltage detecting circuit tool there are two
Identical output voltage terminal, the purpose of setting univoltage converting unit 14 is precisely in order to the merging of the two output voltage terminals is become
One output voltage terminal.In the present invention, we are realized by a difference amplifier, two input terminals point of the difference amplifier
It is not electrically connected the resistance of a similar resistance, to realize that the output of former multiple univoltage, the output voltage are defined as first voltage
Detect signal.
First voltage detection signal is sent to MCU control circuit module, the first filter after the filtering of the first filter unit 15 again
Wave unit 15 is the circuits RC, once first voltage threshold value of the first voltage detection signal beyond setting, MCU control circuit module
Judge that the voltage for flowing through the intelligent socket power cord is over-pressed.For example, the conventional output valve of first voltage detection signal is
2V, first voltage threshold value is 2.5V, and when a certain moment, the output valve of first voltage detection signal has reached 2.5V or more, MCU controls
Circuit module processed judges that the intelligent socket needs line of cutting off the power as early as possible using exception at this time.
Two, over-current detection circuit
Over-current detection circuit detection is to flow through the electric current of power cord whether to exceed given threshold, such as when socket overload,
But due to MCU control circuit module preferred process be voltage signal, the effect of over-current detection circuit is will to flow through electricity
The electric current of source line is converted into detecting signal compared with the second voltage of small magnitude, and the second voltage detection signal that conversion is generated is sent
Further judgement is done to MCU control circuit module to use.
In conjunction with Fig. 3, the over-current detection circuit includes the first current sampling unit 21, the amplifying unit being sequentially connected electrically
22, the output end of the second filter unit 23, the second filter unit 23 is electrically connected to MCU control circuit module.
The firewire of first current sampling unit, 21 electric connection of power supply line, induction flow through the electric current of firewire and will sense
Electric current be converted into the first induced voltage.
First induced voltage is converted into second voltage after the amplification of amplifying unit 22, the filtering of the second filter unit 23 again
Signal transmission is detected to MCU control circuit module.
Preferably, the second filter unit 23 is similarly the circuits RC, and an operational amplifier may be used in amplifying unit 22.
In some instances, first current sampling unit 21 include the first current transformer, the second bridge rectifier,
First sampling resistor, polar capacitor.
The input terminal of first current transformer is electrically connected with the firewire of power cord, output end and the second bridge rectifier
Input terminal electrical connection, the high current of firewire side is converted into the first induced current compared with fractional value, the first induced current is
One alternating current needs to be rectified into direct current through the second bridge rectifier.
The both ends of first sampling resistor are electrically connected two output ends of the second bridge rectifier, will be through the second bridge
The first induced current after formula rectifier rectification is converted into the first induced voltage.
The polar capacitor is connected in parallel on the first sampling resistor both ends, to be filtered to the first induced voltage.
Polar capacitor reverse polarity connection in order to prevent, the present invention can also one nonpolarity of parallel connection be electric again at polar capacitor both ends
Hold, further ensures that the safety of over-current detection circuit.
A second voltage threshold value is preset in MCU control circuit module, when second voltage detection signal exceeds second
Voltage threshold, MCU control circuit module are the current anomaly for judging to flow through intelligent socket at this time, in fact it could happen that overload, short circuit etc.
Dangerous electricity consumption behavior, needs line of cutting off the power as early as possible.
Three, electric-leakage detection circuit
Under the situations such as electric leakage is usually happened at socket failure, socket loosens, detection is needed to flow through the leakage current of ground wire,
Same over-current detection circuit needs the leakage current that will be detected to be converted into voltage letter for the ease of MCU control circuit resume module
Number.
In conjunction with Fig. 4, the electric-leakage detection circuit includes the second current sampling unit 31 being electrically connected to each other and earth leakage protective
Chip, the firewire and zero curve of 31 electric connection of power supply line of the second current sampling unit, by the difference for comparing electric current on firewire and zero curve
Value obtains the leakage current for flowing through ground wire and the leakage current of acquisition is converted into the second induced voltage, and the second induced voltage is transferred to
Earth leakage protective chip, earth leakage protective chip exceed given threshold in response to the second induced voltage, send an electric leakage signal to MCU controls
Circuit module processed.
VG54123A chips may be used in the earth leakage protective chip.
In other examples, second current sampling unit 31 include the second current transformer, the second sampling resistor,
Rectification unit.
The input terminal of second current transformer is electrically connected with the firewire of power cord and zero curve respectively, and output end is connected to
Second sampling resistor both ends, the second current transformer is by current differential on comparison zero curve and firewire to obtain the leakage for flowing through ground wire
Electric current, the second sampling resistor are converted into voltage signal to the leakage current for incuding the second current transformer, voltage signal warp
The second induced voltage is generated after rectification unit rectification.
Preferably, the rectification unit includes being connected in parallel on the second sampling resistor both ends, opposite polarity two diodes, with
Circuit structure is simplified as far as possible.
In order to ensure the safe handling of earth leakage protective chip, the rectification unit and earth leakage protective chip-in series have buffering electricity
Resistance.
Four, temperature sensing circuit
When there is overcurrent-overvoltage or loosens etc. abnormal in socket, it is possible to electric spark occur, lead to the temperature liter of socket
Height, therefore the present invention designs a temperature sensing circuit, by the temperature of test socket, to judge whether socket overload, mistake occurs
Stream, electric spark etc. are abnormal.
In conjunction with Fig. 5, the temperature sensing circuit includes the divider resistance and thermistor being electrically connected to each other, and divider resistance is not
The one end being connect with thermistor is connect with a regulated power supply, one end ground connection that thermistor is not connect with divider resistance, temperature-sensitive
One end that resistance is connect with divider resistance is electrically connected to MCU control circuit module, and the voltage of the tie point is defined as
Three voltage detection signals.
For example, it is assumed that divider resistance is identical with the initial resistance value of thermistor, the voltage of regulated power supply is 5V, C point (temperature-sensitives
One end that resistance is connect with divider resistance) voltage value should be 2.5V, when intelligent socket temperature increase when, thermistor
Resistance value is reduced with the raising of temperature, and the voltage value of C points also decreases, when will decrease to tertiary voltage threshold value or less, MCU controls
Circuit module processed judges socket temperature anomaly at this time, in fact it could happen that dangerous electricity consumption behavior, line of cutting off the power.
In conclusion the MCU control circuit module is in response to any one in the following conditions, 1) first voltage surveys letter
Number be more than first voltage threshold value, 2) second voltage detection signal be more than second voltage threshold value, 3) electric-leakage detection circuit send leakage
Electric signal, 4) tertiary voltage detection signal is less than tertiary voltage threshold value, generates a shutoff signal.
The relay control switch circuit module is electrically connected with socket circuit module, MCU control circuit module respectively, root
It is instructed according to the cut-out of MCU control circuit module to cut off the cut-out of socket circuit module.
The MCU control circuit module has a configuration part, to set first voltage threshold value, second voltage threshold value, the
Three voltage thresholds, to adapt to the application of intelligent socket in different situations.
In other examples, the intelligent socket also has AC-DC isolated power supply modules, AC-DC isolated power supply modules
It is connected electrically between power cord and MCU control circuit module.
There are two effects for AC-DC isolated power supplies module:
First effect, the alternating current alternating current for flowing through power cord is converted into for MCU control circuit module, detection circuit mould
The DC low-voltage that block work uses.
Second effect, buffer action is played between power cord and MCU control circuit module.
AC-DC isolated power supply modules are referred to example designed, designed circuit in the prior art, such as shown in Fig. 6,
Existing AC-DC isolated power supplies chip, such as SM7205 etc. may be used.
AC-DC isolated power supply modules in Fig. 6 convert generate voltage into 5V, the operating voltage of MCU control circuit module
For 3.3V.It is therefore preferred that the invention also includes a power supply module, the power supply module includes the first voltage stabilizing being electrically connected to each other
The output voltage of power supply and voltage conversion circuit, the first regulated power supply constitutes one second voltage stabilizing electricity after voltage conversion circuit is converted
Source.For example, the first regulated power supply is the output end of AC-DC isolated power supply modules, it is assumed that be 5V, which converts electricity through voltage
The output voltage of 3.3V is generated after the conversion of road, the output voltage of the 3.3V is used as the second regulated power supply.
Fig. 7 is the structure chart of one of which voltage conversion circuit.
To which the present invention refers to a kind of intelligent socket with defencive function, and it includes voltage detecting circuit, overcurrent inspection to have
Detection circuit module including slowdown monitoring circuit, electric-leakage detection circuit, temperature sensing circuit, ensures the safety of intelligent socket from many aspects
It uses, and only takes up less volume resource.
Although the present invention has been disclosed as a preferred embodiment, however, it is not to limit the invention.Skill belonging to the present invention
Has usually intellectual in art field, without departing from the spirit and scope of the present invention, when can be used for a variety of modifications and variations.Cause
This, the scope of protection of the present invention is defined by those of the claims.