Based on the electricity digitizer of FPGA and magnetic balance type Hall element
Technical field
The present invention relates to a kind of electricity digitizer, especially relate to a kind of electricity digitizer based on FPGA and magnetic balance type Hall element.
Background technology
Along with the progress of modern science and technology, power shortage situation is since the last century eased, and various novel power load also develops rapidly simultaneously, and the power load structure of modern power systems there occurs great variety.All kinds of rectification, pressure regulation, converter plant and household electrical appliance etc. are used widely.Non-linear, the impact of these power loads and the characteristic of unbalancedness, cause serious pollution to the quality of power supply, is also faced with increasing power quality problem in electrical network.Wherein household electricity problem is the importance being related to national economy life, and country also to strengthen supervision to household electricity and improvement.Meanwhile, all kinds of high and new technology, the fast development of the microcontrollers such as such as DSP, FPGA, also makes the quality of power supply be improved in detection, monitoring and analysis etc., and then is conducive to the problem and the rule that find customer power supply, improve the quality of power supply.
Summary of the invention
Object of the present invention is exactly provide a kind of electricity digitizer based on FPGA and magnetic balance type Hall element to overcome defect that above-mentioned prior art exists.
Object of the present invention can be achieved through the following technical solutions:
A kind of electricity digitizer based on FPGA and magnetic balance type Hall element, this converter is connected on electrical network, it is characterized in that, described converter comprises interconnective magnetic balance type Hall current sensor and fpga chip, described fpga chip comprises the testing circuit, treatment circuit and the suppression signal output apparatus that connect successively, and described magnetic balance type Hall current sensor is connected with electrical network, testing circuit and suppression signal output apparatus respectively.
Described magnetic balance type Hall current sensor comprises two, respectively with the first magnetic balance type Hall current sensor and the second magnetic balance type Hall current sensor, the input end of the first described magnetic balance type Hall current sensor is directly connected with electrical network, output terminal is connected with testing circuit, the input end of the second described magnetic balance type Hall current sensor is connected with electrical network by resistance, and output terminal is connected with testing circuit.
Described testing circuit comprises the current detection circuit and voltage detecting circuit that are connected with treatment circuit respectively, described current detection circuit input end is connected with the first magnetic balance type Hall current sensor, and described voltage detecting circuit input end is connected with the second magnetic balance type Hall current sensor.
Each magnetic balance type Hall current sensor comprises primary coil, secondary coil and Hall element end, described primary coil is connected with electrical network, described testing circuit input end is connected with Hall element end, and the output terminal of described suppression signal output apparatus is connected with secondary coil.
Described treatment circuit processes the electric signal gathered, and comprises the parameter value calculating electric current, voltage, power and power factor (PF), and carries out FFT conversion to the signal gathered, and calculates each harmonic content, obtains THD value.
Compared with prior art, the present invention is reasonable in design, and structure is simple, without the need to adding peripheral hardware a/d conversion device, by current sensor directly and FPGA control chip interconnect; By high-performance and the fast throughput of magnetic balance type Hall element and FPGA control chip, effectively improve accuracy of detection.
Accompanying drawing explanation
Fig. 1 is structural representation of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.
Embodiment
Signal voltage in electrical network is all 220V/380V voltage or higher, utilizes existing electronic installation to measure, cannot directly measure, therefore need to utilize current sensor power network signal to be become the low-voltage signal that can survey and be sent in device.Magnetic balance type Hall current sensor is adopted in the present invention.Current parameters is detected, directly power network signal is accessed the primary coil of sensor; And voltage parameter is detected, change voltage signal into current signal by the resistance R that connects and record.
As shown in Figure 1, converter of the present invention comprises interconnective magnetic balance type Hall current sensor and fpga chip 3, described fpga chip 3 comprises the testing circuit, treatment circuit 33 and the suppression signal output apparatus 34 that connect successively, and described magnetic balance type Hall current sensor is connected with electrical network, testing circuit and suppression signal output apparatus 34 respectively.
Described magnetic balance type Hall current sensor comprises two, respectively with the first magnetic balance type Hall current sensor 1 and the second magnetic balance type Hall current sensor 2, the input end of the first described magnetic balance type Hall current sensor 1 is directly connected with electrical network, output terminal is connected with testing circuit, the input end of the second described magnetic balance type Hall current sensor 2 is connected with electrical network by resistance, and output terminal is connected with testing circuit.
Described testing circuit comprises the current detection circuit 31 and voltage detecting circuit 32 that are connected with treatment circuit respectively, described current detection circuit 31 input end is connected with the first magnetic balance type Hall current sensor 1, and described voltage detecting circuit 32 input end is connected with the second magnetic balance type Hall current sensor 2.
Each magnetic balance type Hall current sensor comprises primary coil, secondary coil and Hall element end, described primary coil is connected with electrical network, described testing circuit input end is connected with Hall element end, and the output terminal of described suppression signal output apparatus is connected with secondary coil.
In Fig. 1, the first magnetic balance type Hall current sensor 1 is for current detecting, if its former and deputy limit coil ratio is n
1, the second magnetic balance type Hall current sensor 2 is for voltage detecting, if its former and deputy limit coil ratio is n
2.Hall element in two current sensors is connected with fpga chip 3, detects the induction current size i in Hall element
1, i
2.According to induction current i
1, i
2size, the suppression current signal i that adjustment fpga chip 3 exports
3, i
4, cancelling out each other in the magnetic field produced of the magnetic field allowing secondary coil produce in magnetism gathering rings and primary coil, thus makes i
1, i
2be 0.Therefore can obtain:
Utilize the acquisition and processing of fpga chip realization to electric signal, then calculate the parameter values such as electric current, voltage, power and power factor (PF), and utilize embedded FFT IP kernel to carry out FFT conversion to the signal gathered, calculate each harmonic content, obtain THD value.By verilog Programming with Pascal Language, sequential control and calculating, transmission process are carried out to links.
It is emphasized that the preferred embodiment of the present invention just sets forth the present invention for helping.Preferred embodiment does not have all details of detailed descriptionthe, does not limit the embodiment that this invention is only described yet.Obviously, according to the content of this instructions, can make many modifications and variations.This instructions is chosen and is specifically described these embodiments, is to explain principle of the present invention and practical application better, thus makes art technician can utilize the present invention well.The present invention is only subject to the restriction of claims and four corner and equivalent.