Summary of the invention
In view of this, the application provides a kind of electric energy metered system, cannot obtain the problem of the independent electricity consumption situation of each high-power home appliance for solving user in prior art.
To achieve these goals, the existing scheme proposed is as follows:
A kind of electric energy metered system, comprising:
Microcontroller, load master control borad, Zigbee communication unit and home gateway;
Described microcontroller is connected with Zigbee communication unit with described load master control borad respectively, for obtain and store the load of mating with described load master control borad power information, obtain the steering order that described Zigbee communication unit sends, the duty of the load master control borad control load mated by described control command according to described steering order;
Described home gateway, for the control signal sent according to the user that gets, to generate and by described Zigbee communication unit to described microcontroller sending controling instruction.
Preferably, in above-mentioned electric energy metered system, described microcontroller comprises:
Resolution unit, for resolving the steering order got, obtains address information and the switching value information of load master control borad corresponding described in described steering order.
Preferably, in above-mentioned electric energy metered system, described power information comprises:
The voltage of load, electric current, power, power factor and information about power.
Preferably, in above-mentioned electric energy metered system, described microcontroller comprises:
Computing unit, for calculating according to the power information of the load got and store the average power of preset time period internal burden and average power consumption.
Preferably, in above-mentioned electric energy metered system, described microcontroller also comprises:
Encryption equipment, is encrypted storage data for adopting predetermined manner.
Preferably, in above-mentioned electric energy metered system, also comprise:
The power-fail detection circuit that input end is connected with electrical network, output terminal is connected with described microcontroller, for when grid cut-off, sends power-off signal to described microcontroller.
Preferably, in above-mentioned electric energy metered system, described microcontroller also comprises:
Flash memories, for storing the current power information got when getting power-off signal.
Preferably, in above-mentioned electric energy metered system, also comprise:
The power information collecting unit be connected with described microcontroller, for gathering and storing the total power information of user.
Preferably, in above-mentioned electric energy metered system, also comprise:
Wireless remote control device, for transmitting control signal to described Zigbee communication unit.
Preferably, in above-mentioned electric energy metered system, the course of work of described microcontroller after the power information getting described load also comprises:
Determine according to the power information of described load and the running status of storage electric loading and the temporal information corresponding to current operating conditions.
As can be seen from above-mentioned technical scheme, electric energy metered system disclosed in the present application is known, microcontroller in described electric energy metered system obtains by load master control version and stores the power information of each load, and user can obtain the detailed electricity consumption data of each load equipment within a period of time according to the power information of the load equipment stored in described microcontroller.
Embodiment
Monthly total power information can only be obtained by metering outfits such as ammeters of the prior art to solve user, and the problem of the power information of specific consumer can not be checked, this application discloses a kind of electric energy metered system.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
See Fig. 1, disclosed in the embodiment of the present application, electric energy metered system comprises:
Microcontroller 1, load master control borad 2 and Zigbee communication unit 3 and home gateway 4;
Described microcontroller 1 is connected with described load master control borad 2 with described Zigbee communication unit 3, for obtain and store the load of mating with described load master control borad 2 power information, obtain the steering order that described Zigbee communication unit 3 sends, and according to the duty of load master control borad 2 control load of described steering order by mating with described control command;
Described home gateway 4 is connected with described Zigbee communication unit by wireless router, for the control signal sent according to the user got, generate and the steering order matched to described microcontroller 1 generation with described control signal by described Zigbee communication unit 3, described Zigbee communication unit is the Wireless Telecom Equipment with Zigbee function, described Zigbee is a kind of Radio Transmission Technology based on IEEE802.15.4 standard, can meet the demands such as telemonitoring, control and sensor network application.。
Known by technical scheme disclosed in the above embodiments of the present application, described microcontroller is by obtaining and storing the power information of each load, and user can obtain the detailed electricity consumption data of this load equipment within a period of time according to the power information of the load equipment stored in described microcontroller.
Be understandable that, in the above embodiments of the present application, directly can be connected by data-interface between described microcontroller 1 with described load master control borad 2, certainly conveniently data transmission, also can carry out data interaction by described Zigbee communication unit 3 between the two.
Be understandable that, when adopting described Zigbee communication unit to realize the data interaction between described microcontroller and load master control borad, described Zigbee communication unit also can according to the power information of the load equipment got by described load master control borad, to described microcontroller feedback load equipment by the state after controlling and the current power information of load, certainly, if when described load is broken down, also by the abnormality of described Zigbee communication unit active reporting load, to guarantee that user can Timeliness coverage and handling failure equipment, be understandable that, in order to ensure the reliability of described Zigbee communication unit, the radio frequency chip that described Zigbee communication unit uses can be the radio frequency chip of model for CC2500 of TI company.
Be understandable that, user is by the running status of load master control borad control load in daily life, and all corresponding load master control borad of each load, therefore, described microcontroller in technical scheme disclosed in the present application obtains the power information of described load by described load master control borad, by the power information got according to being stored in storer after predetermined manner process, user is namely by reading the data in described storer, thus obtain the power information of each load equipment, be understandable that, user can select the power information of handling procedure to the described load got preset to process according to self-demand, the power information of handling procedure to described load such as by presetting processes, calculate the voltage of load, electric current, power and power factor etc., therefore a computing unit can also be comprised in above-mentioned microcontroller, for according to adopting pre-set programs and the power information of load that gets to calculate and storing the average power of described load in preset time period and average power consumption etc., wherein said Preset Time can according to the demand sets itself of user, such as: 1 minute, 1 hour etc.
Be understandable that, conveniently user checks the data message of storage, during the electricity consumption data of described microcontroller to autostore load equipment January, then needs to store the clock information mated with current data simultaneously.Described clock information can be produced by the timer models of single-chip microcomputer, and namely by " soft clock " that the pre-set programs of single-chip microcomputer realizes, the temporal information that " soft clock " comprises can have year, month, day, hour, min, second." soft clock " mode of employing eliminates clock chip, namely simplifies circuit and again reduces cost.The starting point of clock signal can be when load just powers on, and microcontroller can obtain clock signal by Zigbee communication unit from home gateway or load master control borad.Because " soft clock " of single-chip simulation is compared with clock chip, precision has allowed certain gap, therefore after long-play, described clock signal and true time offset excessive, every certain cycle, described microcontroller needs once to proofread described clock signal every preset time period.
When described electric energy metered system is when powering on, described microcontroller obtains current clock signal by described load master control borad, thus according to the status information of this load equipment of the clock signal autostore power of nearest one month, information about power and the household electrical appliances that get, can certainly obtain current clock signal by the network equipment.When after described electric energy metered system work, described load master control borad obtains the power information of load equipment by standard interface, and the power information got is sent to described microcontroller.
Certainly, be understandable that, conveniently user carries out Long-distance Control to load equipment, make user without the need to also controlling the duty of described load when described device context, Zigbee communication unit in above-mentioned electric energy metered system with can be connected with home gateway, described home gateway is another high-tech product bringing people the information age, it is by existing computer networking technology, by household electrical appliances various in family and equipment networking, by network for people provide various abundant, variation, personalized, convenient, comfortable, the service of safety and efficiently.When user needs Long-distance Control load equipment, send corresponding control signal by wireless network to described Zigbee communication unit, and then control the duty of described load by described microcontroller and load master control borad.Therefore described microcontroller can also comprise a resolution unit, after described microcontroller gets the steering order of described Zigbee communication unit transmission, by described resolution unit, described steering order is resolved, determine the control object (the load master control borad corresponding to described steering order) that described steering order is corresponding and action message corresponding to described steering order, and this action message is sent to the load master control borad mated with described steering order, described load master control borad controls according to the duty of described action message to load, described action message comprises: the unlatching of load, the switching etc. of the mode of operation of closedown and load.
Be understandable that, the quantity of the load control panel be connected with described microcontroller can make setting by oneself according to user's request, and the equal corresponding displacement address information of each load, after described microcontroller gets the steering order of described Zigbee communication unit forwards, carry out described steering order resolving the address information that can obtain described load.
It is appreciated of course that, conveniently user obtains the power information of the load of storage and can store the power information of more load, a storage unit can also be comprised in the above embodiments of the present application, the data message that described storage unit obtains described power information process for storing described power information and described microcontroller, the type of described storage unit can be selected voluntarily according to the demand of user, such as, storage unit in the above embodiments of the present application can be the storage unit of AT24C64 for model, it is appreciated of course that, in order to make the data content in the described storage unit of reading that user can be convenient, above-mentioned electric energy metered system can also comprise a touch screen, for selecting/reading the storage data in described storage unit.
Be understandable that, in order to improve the security of user power utilization information, described microcontroller can also comprise an encryption equipment, for when described microcontroller stores data, predetermined manner is adopted to be encrypted stored data, wherein, when storing the data of required storage, default password can be selected to be encrypted, maliciously to be revealed to prevent the power information of user.
Be understandable that, the situation causing data to run off to prevent accident power-off occurs, described electric energy metered system in the above embodiments of the present application can also comprise a power-fail detection circuit, the input end of described power-fail detection circuit is connected with electrical network, output terminal is connected with described microcontroller, for judging the running status of electrical network, when grid cut-off, send a power-off signal to described microcontroller.It is appreciated of course that correspondence is provided with a flash memories in described microcontroller, for storing immediately and current data process after getting described power-off signal.The concrete structure of described power-fail detection circuit can be power-fail detection circuit disclosed in an embodiment any in prior art, as long as can ensure that it can send power-off signal to described microcontroller when grid cut-off, conveniently described power-fail detection circuit is described, front-end circuit 501 and back-end circuit 502 can be comprised see Fig. 2 and Fig. 3 power-fail detection circuit 5 disclosed in the present application, described front-end circuit 501 is for being converted into low pressure square-wave signal by the 220V alternating current of electrical network, see Fig. 1, described front-end circuit 501 comprises: the negative electrode of diode is connected with electrical network the photosphere device ISO2 of anode by resistance R1 ground connection, the output head grounding of the MOS device of described optical coupler ISO2, the other end is connected with power supply by resistance R2, the common port of described resistance R2 and MOS device is as the output terminal of described front-end circuit 501, export PWR_DOWN signal, namely when there is electric current in electrical network, luminescent device in optocoupler ISO2 is luminous, described MOS device conducting, the power supply of described front-end circuit 501 is by resistance R2 and optical coupler ground connection, front-end circuit 501 output low level signal.See Fig. 3, described back-end circuit 502 is made up of TLC555ID timer and its peripheral circuit, described TLC555ID timer is mainly used in the PWR_DOWN signal got to be converted to the level signal of mating with it, when there is 220V alternating current in electrical network, PWR_DOWN signal is low level signal, the PD_INT pin of described TLC555ID timer exports high level signal, when there is not 220V alternating current in electrical network, namely when power down, described PWR_DOWN signal is high level signal, the PD_INT pin output signal of described TLC555ID timer becomes low level, thus, when power down, generation negative edge look-at-me is given described microcontroller by PD_INT pin, and described microcontroller utilizes this look-at-me to carry out power down protection process.
Be understandable that, described electric energy metered system is except can to except in subscriber household, the power information of each load equipment stores, also can the power information total to user measure, therefore the described electric energy metered system in the above embodiments of the present application can also comprise a power information collecting unit, described power information collecting unit is for gathering and storing the total power information of user, the power consumption total to user measures, be understandable that, the equipment that power information total to user in prior art gathers and measures is varied, power information collecting unit in the above embodiments of the present application can be the electric energy measuring equipment of any one type in prior art, in order to reduce the cost of described power information collecting unit, improve measuring accuracy, described power information collecting unit can be selected when gathering electric current to adopt copper-manganese sampling resistor, which is compared to traditional current transformer acquisition mode, effectively can solve current transformer and easily occur saturated problem, certainly, filtering and interference suppressor can also be increased at the Collection circuit place of the computation chip of described power information collecting unit, to ensure the stability of measuring accuracy and metering circuit further.The computation chip of described information acquisition unit can adopt the CS5463 computation chip of Cirrus Logic company to build.Described CS5463 chip can use the shunt of low cost or mutual inductor to measure electric current, uses divider resistance or voltage measuring transformer voltage.The voltage measurement of described power information collecting unit adopts divider resistance to realize, as shown in Figure 4, the high pressure of electrical network 220V is successively through divider resistance R3-R8 dividing potential drop, obtain the low-voltage alternating-current small-signal of millivolt level in resistance R9 both sides, this signal is sent into voltage acquisition passage VIN-and VIN+ of CS5463 chip.The current measurement of power information collecting unit uses copper-manganese resistance to realize, as shown in Figure 4, this signal, through copper-manganese resistance R10, at the low pressure small-signal of the mV level that resistance R10 both sides obtain, is sent into front end electricity current acquisition passage IIN-and IIN+ of CS5463 chip by electrical network big current.As shown in Figure 5; ac small signal is sent to described CS5463 chip internal by the voltage channel of described CS5463 chip and current channel and peripheral circuit; and in order to make the input signal of two passages controlled within the scope of certain voltage, also can at described voltage and current channel setting protection diode.And described current channel place also can be provided with filter inductance and voltage dependent resistor (VDR), with the antijamming capability strengthened between two passages and the accuracy ensureing data acquisition.
Be understandable that, conveniently the duty of user to described load controls, electric energy metered system in the above embodiments of the present application can also comprise a wireless remote control device, described wireless remote control device is used for transmitting control signal to described Zigbee communication unit, be understandable that, described wireless remote control device can for the opertaing device directly transmitted control signal to described Zigbee communication unit by infrared signal, can certainly for the mobile terminal device transmitted control signal to described Zigbee communication unit by wireless network and described home gateway.
Be understandable that, conveniently user checks the moving law of monthly load equipment, with the reasonable arrangement daily schedule, in described electric energy metered system in the above embodiments of the present application, the course of work of described microcontroller after the power information getting described load can also comprise: the power information according to described load obtains and the running status of memory load, and according to the temporal information corresponding to clock signal memory load current operating conditions, the temporal information that wherein load current operating conditions is corresponding can comprise: the start-up time of current state, and the information such as length working time of current state.
Be understandable that, the overall power consumption of the described conversion efficiency in order to the power supply that economizes on resources, improves, reduction module, the power supply of described electric energy metered system can adopt NCP1015 non-isolated scheme to design.The power supply of wherein said electric energy metered system can comprise the first power circuit and the second source circuit of series connection, described first power circuit and second source circuit all adopt Switching Power Supply scheme to design, the input end of the described first power circuit output terminal that is connected with electrical network is connected with the computation chip in described power information collecting unit, described first power circuit can adopt NCP1015 non-isolated scheme to arrange, it can adopt dynamic self-powered (DSS) technology, therefore the operating voltage of NCP1015 chip can directly be drawn by drain electrode, therefore ancillary coil is eliminated compared to traditional technical scheme, simplify circuit, decrease the volume shared by transformer, also reduce production cost simultaneously, the output voltage of described first power circuit can according to user's request sets itself, the output voltage of such as described first power circuit can be 5VDC, namely described first power circuit is the change-over circuit of 220VAC-5VDC, described second source circuit is used for providing operating voltage to described computation chip and described microcontroller, it can be the voltage conversion circuit of 5VDC-3V3DC, the core devices of this second source circuit can adopt the DC/DC switching power source chip TPS5401 of TI company, compared to the step-down LDO of routine, conversion efficiency is high.The circuit theory diagrams of described first power circuit can for shown in Fig. 6, and the circuit theory diagrams of described second source circuit can for shown in Fig. 7.
In order to ensure the security of equipment further, reduce the stability that electric energy metered system runs the impact of load master control borad, proof load equipment, the anti-interference strengthening equipment and security, microcontroller described in the above embodiments of the present application and can use the communication interface of isolation between described load master control borad can be such as SPI interface or UART interface.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.