A kind of intelligent modules insert row controllable based on the time and its control method
Technical field
The present invention relates to a kind of intelligent modules insert row controllable based on the time and its control method, belong to smart electronicses
Product technical field.
Background technology
With the improvement of living standards, the electrical equipment of family is more and more, when original insert row does not have position, can only separately change
One, not only waste, and connect up complexity, cause inconvenience.
The straight cutting of power supply one when many in daily life, or standby, or work, it would be desirable to which one can be from dynamic circuit breaker
Electricity, the insert row of automatic power;Burnout phenomenon often occurs for existing insert row, and safety coefficient is relatively low, seriously endangers the person peace of people
Entirely;People have active demand for Intelligent fixed time insert row, it is desirable to which insert row automatic safe operation, safety under conditions of nobody open
It is dynamic, automatic to close.
Although power consumption is smaller during power standby in daily life, accumulation over time, this power consumption figures are also phase
When considerable, the consciousness of present energy-conserving and environment-protective is not met.
The content of the invention
In view of the shortcomings of the prior art, the invention discloses a kind of intelligent modules insert row controllable based on the time;
The invention also discloses the control method of above-mentioned insert row;
The design of insert row module of the present invention, realizes expansible removable, and original insert row still can use, not only side
Just, and save.
The technical scheme is that:
A kind of intelligent modules insert row controllable based on the time, including main insert row module and several insert row modules, institute
State main insert row module and several described insert row modules are sequentially connected, the main insert row module is included with A/D translation interfaces
Single-chip microcomputer, the insert row module include relay and be connected with the relay current transducer, voltage transmitter,
Header6X2 interfaces, the single-chip microcomputer connect the relay by the Header6X2 interfaces.
Single-chip microcomputer is according to the difference of A/D translation interfaces, the insert row module of expansible varying number.
It is connected by jack with the insert row module of docking of plug with single-chip microcomputer, the insert row module has timing control
System, display power consumption, over-current detection, power off in standby state of electric function, single-chip microcomputer output control signal, by the jack of insert row module and are inserted
Head reception signal is simultaneously transmitted, and the relay drive circuit of the relay is driven after control signal amplification, control after
The break-make of electrical equipment, and then control the break-make of electrical equipment.
According to currently preferred, clock module that the main insert row module also includes being connected respectively with the single-chip microcomputer,
Input module, display module, power module and memory module;
The clock module is used to control main insert row template and insert row module fixed point to be powered or power off;For example, user requires
7 points of every morning is auto-power on, then is controlled by clock module.The input module is used for input through keyboard;For example, user
The power consumption of electrical equipment above insert row module 1 is checked, then numeral 1 is inputted by input module, will above display module
Show the power consumption of electrical equipment in insert row module 1.The display module is used to show power consumption;The power module is used for single
Piece machine is powered;The memory module is used to store voltage letter caused by current signal caused by current transducer and voltage transmitter
Number.
According to currently preferred, the single-chip microcomputer model MSP430F5438A;The intelligent modules insert row bag
Main insert row module and three insert row modules are included, three insert row modules include:Insert row module 1, insert row module 2 and insert row module 3;Institute
State the model DS1302 of clock module;The input module refers to button;The display module refers to LCD liquid crystal display screen;
The power module includes 12V lithium batteries and model LM7812 three-terminal voltage-stabilizing chip.
Model DS1302 clock modules are the clock modules of comparative maturity, and system time is provided by DS1302 chips,
DS1302 chips can provide correct time for device, and have external stand-by power supply, and during power-off, clock module remains to
Normal operation, can effectively ensure that the stability of whole control system operation, and DS1302 needs external 32768Hz crystal oscillator, is
Chip provides clock source.The 12V lithium batteries are steady by the direct current designed by LM7812 three-terminal voltage-stabilizings chip according to prior art
Piezoelectricity source circuit is powered for single-chip microcomputer.The memory module refers to the store function carried inside MSP430F5438A single-chip microcomputers.
According to currently preferred, relay is powered using 24V power supplys.
According to currently preferred, the main insert row module side and the insert row module side be respectively equipped with jack one to
Jack 11, the insert row module opposite side be provided with respectively with the plug one that jack one to jack 11 matches to plug 11,
That is jack, the plug of 10 a pair of matchings, jack, the plug of described 10 a pair of matchings are divided into three groups, wherein, first to five pair
Jack, the plug matched somebody with somebody are first group, and jack, the plug of the 6th to the 8th pair of matching are second group, the 9th to the 10th a pair of matchings
Jack, plug be the 3rd group, each group all includes normally opened contact K1、K2、K3;In first group, the insert row module passes through jack
First, plug one connects the 24V power supplys, and the insert row module is grounded by jack two, plug two, and the main insert row module passes through
Jack three, plug three connect the current signal, and the main insert row module connects the voltage by jack four, plug four and believed
Number, the insert row module connects the main insert row module by jack five, plug five, and the main insert row module controls the insert row
Module;In second group, the main insert row module connects the current signal, the main insert row module by jack six, plug six
The voltage signal is connected by jack seven, plug seven, the insert row module connects the main insert row by jack eight, plug eight
Module, the main insert row module control the insert row module;In 3rd group, the main insert row module passes through jack nine, plug nine
The current signal is connected, the main insert row module connects the voltage signal, the insert row module by jack ten, plug ten
The main insert row module is connected by jack 11, plug 11, the main insert row module controls the insert row module.
According to currently preferred, three buttons, i.e. button 1, button 2, button 3 are equipped with the insert row module, are pressed
Button 1 controls normally opened contact K1Break-make, button 2 controls normally opened contact K2Break-make, button 3 controls normally opened contact K3Break-make.
When insert row module 1 accesses main insert row module, the button 1 of insert row module 1 is pressed, then normally opened contact K1Closure, insert
It is first to be connected respectively with jack one to jack five to plug five, the transmission of information is realized using Header6X2 interfaces, and then to inserting
Row's module 1, which is controlled and current signal, voltage signal are transported in single-chip microcomputer, to be stored, is judged;When access insert row mould
During block 2, the button 2 in insert row module 2 is pressed, the K in insert row module 22Closure, now button 2 does not have quilt in insert row module 1
Press, therefore the K in insert row module 12It is normally opened, will not be with when signal in insert row module 2 transmits by insert row module 1
The signal mixing of insert row module 1, will not occur " problem of running helter-skelter " of signal, ensure that the accurate of signal in each insert row module
Property so that the voltage signal that measures, current signal are accurately and reliably.Similarly, when accessing insert row module 3, insert row need to only be pressed
Button 3 above module 3.
The main insert row module controls the insert row module to carry out the method that electricity consumption is shown, specific steps include:
(1) current transducer by the electrical equipment standard current signal measured by the Header6X2 interfaces export to
MSP430F5438A single-chip microcomputers, MSP430F5438A single-chip microcomputers store to electrical equipment standard current signal;
(2) voltage transmitter by the electrical equipment standard voltage signal measured by the Header6X2 interfaces export to
MSP430F5438A single-chip microcomputers, electrical equipment standard voltage signal is stored in MSP430F5438A single-chip microcomputers;
(3) MSP430F5438A single-chip microcomputers are passed through voltage and current by the relation between power consumption and voltage, electric current
Obtained actual output of power consumption is handled, and is shown in LCD liquid crystal display screen.
The main insert row module controls the method that the insert row module is timed control, and specific steps include:
A, when main insert row module controls the insert row module to realize the control of electrical equipment cut-in time, specific steps
Including:
A, user sets electrical equipment cut-in time by input module, and electrical equipment cut-in time passes through
MSP430F5438A single-chip microcomputers, which are sent to display module, to be shown;
B, MSP430F5438A single-chip microcomputers judge whether current time reaches the electrical equipment and start by existing program
Working time, if it is, MSP430F5438A single-chip microcomputers export high level signal, high level signal driving operational amplification circuit
Conducting, relay coil obtain electric, contact adhesive, and electrical equipment, which is powered, starts working;Otherwise, continue waiting for;
B, when main insert row module controls the insert row module to realize the control of electrical equipment off-air time, specific steps
Including:
C, user sets the electrical equipment off-air time by input module, and the electrical equipment off-air time passes through
MSP430F5438A single-chip microcomputers, which are sent to display module, to be shown;
D, MSP430F5438A single-chip microcomputers judge whether current time reaches the electrical equipment and stop by existing program
Working time, if it is, MSP430F5438A single-chip microcomputers export low level signal, low level signal driving operational amplification circuit
Cut-off, relay coil dead electricity, contact disconnect, and electrical equipment is powered and is stopped;Otherwise, continue waiting for.
The main insert row module controls the method that the insert row module carries out current detecting power on/off, and specific steps include:
(I) present current value of electrical equipment is read, and the present current value of electrical equipment is changed into standard voltage value,
Caused voltage signal is transmitted to MSP430F5438A single-chip microcomputers and is stored in memory module;
(II) step (I) is performed every time t, t span is 0<T≤10s, obtain one group of electric current of electrical equipment
Value { a1, a2 ... an }, wherein, n is positive integer, and n >=3, asks for maximum amax and minimum in { a1, a2 ... an }
Value amin, when any value in { a1, a2 ... an } is not less than the current value of user's setting, if in time T
(amin/amax) it is less than 10% always, then electrical equipment is in holding state, the power-off of single-chip microcomputer control relay, eliminates
Stand-by power consumption, wherein, T span is T>60s;When maximum amax exceedes the current value of user's setting, single-chip microcomputer control
Relay power-off processed.
Beneficial effects of the present invention are:
1st, the intelligent modules insert row that the present invention designs, by increasing detachable insert in existing main insert row module
Module is arranged, makes the use of insert row more convenient, flexible;
2nd, the present invention increases single-chip microcomputer control in main insert row module, increases contact control, electricity in each insert row module
Voltage check device is flowed, same single-chip microcomputer is realized and controls all insert row modules, and single-chip microcomputer is all added without each module, is saved
Production cost is saved;
3rd, each insert row module can realize timed on-off of power, current detecting break-make Electricity Functional, add the safety of insert row
Coefficient, and the auto power off in holding state, stand-by power consumption is eliminated, reduces power consumption, has saved electricity consumption spending.
Brief description of the drawings
Fig. 1 is the logic diagram of the present invention;
Fig. 2 is the structural representation of the present invention;
Fig. 3 is the circuit connection diagram between the main insert row module of the present invention, insert row module 1, insert row module 2.
Embodiment
The present invention is further qualified with reference to Figure of description and embodiment, but not limited to this.
Embodiment 1
A kind of intelligent modules insert row controllable based on the time, including main insert row module and several insert row modules, institute
State main insert row module and several described insert row modules are sequentially connected, the main insert row module is included with A/D translation interfaces
Single-chip microcomputer, the insert row module include relay and be connected with the relay current transducer, voltage transmitter,
Header6X2 interfaces, the single-chip microcomputer connect the relay by the Header6X2 interfaces.
Single-chip microcomputer is according to the difference of A/D translation interfaces, the insert row module of expansible varying number.
It is connected by jack with the insert row module of docking of plug with single-chip microcomputer, the insert row module has timing control
System, display power consumption, over-current detection, power off in standby state of electric function, single-chip microcomputer output control signal, by the jack of insert row module and are inserted
Head reception signal is simultaneously transmitted, and the relay drive circuit of the relay is driven after control signal amplification, control after
The break-make of electrical equipment, and then control the break-make of electrical equipment.
The main insert row module also include be connected respectively with the single-chip microcomputer clock module, input module, display module,
Power module and memory module;
The clock module is used to control main insert row template and insert row module fixed point to be powered or power off;For example, user requires
7 points of every morning is auto-power on, then is controlled by clock module.The input module is used for input through keyboard;For example, user
The power consumption of electrical equipment above insert row module 1 is checked, then numeral 1 is inputted by input module, will above display module
Show the power consumption of electrical equipment in insert row module 1.The display module is used to show power consumption;The power module is used for single
Piece machine is powered;The memory module is used to store voltage letter caused by current signal caused by current transducer and voltage transmitter
Number.
The logic diagram of intelligent modules insert row is as shown in Figure 1 described in embodiment 1.
Embodiment 2
According to intelligent modules insert row described in embodiment 1, its difference is, the single-chip microcomputer model
MSP430F5438A;The intelligent modules insert row includes main insert row module and three insert row modules, three insert row module bags
Include:Insert row module 1, insert row module 2 and insert row module 3;The model DS1302 of the clock module;The input module refers to
Button;The display module refers to LCD liquid crystal display screen;The power module includes 12V lithium batteries and model LM7812's
Three-terminal voltage-stabilizing chip.
Model DS1302 clock modules are the clock modules of comparative maturity, and system time is provided by DS1302 chips,
DS1302 chips can provide correct time for device, and have external stand-by power supply, and during power-off, clock module remains to
Normal operation, can effectively ensure that the stability of whole control system operation, and DS1302 needs external 32768Hz crystal oscillator, is
Chip provides clock source.The 12V lithium batteries are steady by the direct current designed by LM7812 three-terminal voltage-stabilizings chip according to prior art
Piezoelectricity source circuit is powered for single-chip microcomputer.The memory module refers to the store function carried inside MSP430F5438A single-chip microcomputers.
Relay is powered using 24V power supplys.
The main insert row module side and the insert row module side are respectively equipped with jack one to jack 11, the insert row
Module opposite side is provided with to be inserted with the plug one that jack one to jack 11 matches to plug 11, i.e. 10 a pair of matchings respectively
Hole, plug, jack, the plug of described 10 a pair of matchings are divided into three groups, wherein, jack, the plug of first to the 5th pair of matching are
First group, jack, the plug of the 6th to the 8th pair of matching are second group, jacks, the plug the of the 9th to the 10th a pair of matchings
Three groups, each group all includes normally opened contact K1、K2、K3;In first group, the insert row module connects institute by jack one, plug one
24V power supplys are stated, the insert row module is grounded by jack two, plug two, and the main insert row module is connected by jack three, plug three
The current signal is connect, the main insert row module connects the voltage signal by jack four, plug four, and the insert row module is led to
Cross jack five, plug five connects the main insert row module, the main insert row module control insert row module;In second group, institute
State main insert row module and the current signal is connected by jack six, plug six, the main insert row module passes through jack seven, plug seven
The voltage signal is connected, the insert row module connects the main insert row module, the main insert row mould by jack eight, plug eight
Block controls the insert row module;In 3rd group, the main insert row module connects the current signal by jack nine, plug nine,
The main insert row module connects the voltage signal by jack ten, plug ten, and the insert row module passes through jack 11, plug
The 11 connection main insert row modules, the main insert row module control the insert row module.
Three buttons, i.e. button 1, button 2, button 3 are equipped with the insert row module, button 1 controls normally opened contact K1
Break-make, button 2 controls normally opened contact K2Break-make, button 3 controls normally opened contact K3Break-make.
When insert row module 1 accesses main insert row module, the button 1 of insert row module 1 is pressed, then normally opened contact K1Closure, insert
It is first to be connected respectively with jack one to jack five to plug five, the transmission of information is realized using Header6X2 interfaces, and then to inserting
Row's module 1, which is controlled and current signal, voltage signal are transported in single-chip microcomputer, to be stored, is judged;When access insert row mould
During block 2, the button 2 in insert row module 2 is pressed, the K in insert row module 22Closure, now button 2 does not have quilt in insert row module 1
Press, therefore the K in insert row module 12It is normally opened, will not be with when signal in insert row module 2 transmits by insert row module 1
The signal mixing of insert row module 1, will not occur " problem of running helter-skelter " of signal, ensure that the accurate of signal in each insert row module
Property so that the voltage signal that measures, current signal are accurately and reliably.Similarly, when accessing insert row module 3, insert row need to only be pressed
Button 3 above module 3.
The structural representation of intelligent modules insert row is as shown in Figure 2 described in embodiment 2.
Embodiment 3
The main insert row module of embodiment 1 or 2 controls the insert row module to carry out the method that electricity consumption is shown, specific steps bag
Include:
(1) current transducer by the electrical equipment standard current signal measured by the Header6X2 interfaces export to
MSP430F5438A single-chip microcomputers, MSP430F5438A single-chip microcomputers store to electrical equipment standard current signal;
(2) voltage transmitter by the electrical equipment standard voltage signal measured by the Header6X2 interfaces export to
MSP430F5438A single-chip microcomputers, electrical equipment standard voltage signal is stored in MSP430F5438A single-chip microcomputers;
(3) MSP430F5438A single-chip microcomputers are passed through voltage and current by the relation between power consumption and voltage, electric current
Obtained actual output of power consumption is handled, and is shown in LCD liquid crystal display screen.
Embodiment 4
The main insert row module of embodiment 1 or 2 controls the method that the insert row module is timed control, specific steps bag
Include:
A, when main insert row module controls the insert row module to realize the control of electrical equipment cut-in time, specific steps
Including:
A, user sets electrical equipment cut-in time by input module, and electrical equipment cut-in time passes through
MSP430F5438A single-chip microcomputers, which are sent to display module, to be shown;
B, MSP430F5438A single-chip microcomputers judge whether current time reaches the electrical equipment and start by existing program
Working time, if it is, MSP430F5438A single-chip microcomputers export high level signal, high level signal driving operational amplification circuit
Conducting, relay coil obtain electric, contact adhesive, and electrical equipment, which is powered, starts working;Otherwise, continue waiting for;
B, when main insert row module controls the insert row module to realize the control of electrical equipment off-air time, specific steps
Including:
C, user sets the electrical equipment off-air time by input module, and the electrical equipment off-air time passes through
MSP430F5438A single-chip microcomputers, which are sent to display module, to be shown;
D, MSP430F5438A single-chip microcomputers judge whether current time reaches the electrical equipment and stop by existing program
Working time, if it is, MSP430F5438A single-chip microcomputers export low level signal, low level signal driving operational amplification circuit
Cut-off, relay coil dead electricity, contact disconnect, and electrical equipment is powered and is stopped;Otherwise, continue waiting for.
Embodiment 5
The main insert row module of embodiment 1 or 2 controls the method that the insert row module carries out current detecting power on/off,
Specific steps include:
(I) present current value of electrical equipment is read, and the present current value of electrical equipment is changed into standard voltage value,
Caused voltage signal is transmitted to MSP430F5438A single-chip microcomputers and is stored in memory module;
(II) every time t perform step (I), t=10s, obtain electrical equipment one group of current value a1, a2 ...
An }, wherein, n is positive integer, and n >=3, asks for maximum amax and minimum value amin in { a1, a2 ... an }, when a1,
A2 ... an } in any value not less than user setting current value when, if (amin/amax) is always in time T
Less than 10%, then electrical equipment is in holding state, the power-off of single-chip microcomputer control relay, eliminates stand-by power consumption, wherein, T
Span be T=65s;When maximum amax exceedes the current value of user's setting, the power-off of single-chip microcomputer control relay.