Summary of the invention
Present invention preserves former single-phase machinery register table, adopt the single-chip microcomputer scheme of the band metering of a new generation on this basis, machinery combined with electronics realize the design of electromechanical ammeter by increasing Far-infrared communication.Retain the simple and reliable and feature intuitively of original single-phase mechanical type register table equipment, solving by increasing Far-infrared communication function the trouble that former register table needs manual metering simultaneously, adopting palm machine aligning table meter 2 second time within the scope of 5 meters of band Far-infrared communication to complete and checking meter.
In a technical scheme of the present invention, mechanical register is provided with for showing electricity in it, its Curve guide impeller is to be provided with further: capacitance-resistance voltage reduction circuit, DC transfer circuit, Far-infrared communication circuit, ic for energy metering and electricity memory circuit, wherein 220V grid ac voltage through described capacitance-resistance voltage reduction circuit be converted to ± 12V voltage to be to export to DC transfer circuit, Far-infrared communication circuit is connected by described DC transfer circuit, register and ic for energy metering also provide respective operating voltage for it, described electricity memory circuit is coupled in ic for energy metering in order to storing electricity information, described mechanical register connects described electricity memory circuit, described Far-infrared communication circuit connects described electricity memory circuit.
In one embodiment, for the resistance-capacitance depressurization portion in ammeter because the GND of live wire welding system, half-wave rectifying circuit must be used.Half-wave rectification can ensure that GND is connected with input end UL or UN, but full-wave rectification can only utilize the output current of half relatively, the electric current of output just can be made the same with full-wave rectification by described capacitance-resistance voltage reduction circuit.
In one embodiment; described capacitance-resistance voltage reduction circuit comprises device of surge protector and with it and the resistance-capacitance depressurization portion connect; the switching device be coupled with described resistance-capacitance depressurization portion and energy storage device; 220V grid ac voltage is able to surge protection through described device of surge protector; ± 12V is converted into again through described resistance-capacitance depressurization portion; the discharge and recharge to energy storage device is controlled again by described switching device, in order to periodically to export DC voltage VCC to described DC transfer circuit, wherein:
Described device of surge protector comprises voltage dependent resistor (VDR); Described resistance-capacitance depressurization portion comprises resistance and the electric capacity of serial connection; Described switching device comprises duodiode and the triode of coupling; Described energy storage device comprises electrochemical capacitor.
In one embodiment, the paster regulator block that described DC transfer circuit comprises bleeder circuit and is coupled with it, the filtering circuit be coupled with the output terminal of described paster regulator block and freewheeling circuit, described DC voltage VCC is by exporting to paster regulator block to carry out voltage judgement and to export PWM waveform to filtering circuit filtering in addition after described bleeder circuit dividing potential drop, by described freewheeling circuit afterflow, filtered voltage show that+5V voltage supplies described Far-infrared communication circuit and register, wherein:
Described bleeder circuit comprises divider resistance; Described paster regulator block selects BUCK type direct current conversion chip; Described filtering circuit comprises inductance and electric capacity; Described freewheeling circuit comprises electric capacity.
In one embodiment, further for described paster regulator block is coupled a feedback circuit ,+5V voltage, by inputting described feedback circuit after described bleeder circuit dividing potential drop, is fed into paster regulator block by described feedback circuit, to make this+5V voltages keep constant.
In one embodiment, be at least one paster regulator block of described paster regulator block cascade and the filtering circuit that is coupled with it further, in order to being required operating voltage by this+5V voltage transitions.
In one embodiment, the switching device that described Far-infrared communication circuit comprises a 38KHZ square wave circuit for generating and is attached thereto, and connect the infrared transmitting circuit of described switching device, produce control signal to be controlled infrared transmitting circuit by switching device to the transmission of signal and reception by described 38KHZ square wave circuit for generating.
In one embodiment, photoelectric switching circuit is provided with in described electricity memory circuit, information for being rotated by register is converted to several times meter degree pulse electrical signal to the storage array in electricity memory circuit, and signal path is provided with further in described electricity memory circuit, send several times electric pulse signal for ic for energy metering to mechanical register.
Further, inventor provides mentality of designing: 1, mechanical register does not have electric pulse, uses photoelectric gathering apparatus to gather the rotation of register character wheel rotating disk.Such as, have the mark of a black above rotating disk, turning around is exactly a pulse; 2, register has drive ratio, such as a 100:1.Ammeter has meter constant.Such as 1600imp/KWh, if so 1600 pulses represent 1 degree of electricity, and the register of 100:1 represents to drive and is only 1 degree of electricity for 100 times.Here a corresponding relation is just had.That is 16 pulses just drive register.When on register after driving register 100 times, just display 1 degree is electric; 3, computation chip is responsible for electric pulse and is exported to process chip, and process chip accumulated pulse number reaches after certain value by Micro Controller Unit (MCU) driving register.Single-chip microcomputer is by accumulative umber of pulse being saved in storer simultaneously.Mechanical type register is adopted to compare electronics register cost low.
In another technical scheme of the present invention, a kind of electricity metering method of electromechanical ammeter, realized by the aforementioned single-phase register formula ammeter with Far-infrared communication function, its Curve guide impeller is:
1) surge protection is carried out by the 220V grid ac voltage of device of surge protector to reader electric-type ammeter, through resistance-capacitance depressurization portion, described 220V grid ac voltage is clamped to ± 12V DC voltage, controlled the discharge and recharge of energy storage device by described switching device periodically to export DC voltage VCC to described DC transfer circuit, wherein when exporting ﹢ 12V voltage, electric current to be charged to energy storage device by switching device and flows back into GND; When exporting-12V voltage, electric current is charged to energy storage device from GND by switching device, flows back to-12V again by switching device;
2) paster regulator block will be exported to after dividing potential drop to carry out voltage judgement by bleeder circuit, a paster regulator block is started when DC voltage VCC reaches certain voltage value, by described paster regulator block built-in NMOS tube the setting of PWM switch carried out to this DC voltage VCC and export PWM waveform, by filtering circuit by the filtering in addition of this PWM waveform, then obtain+5V voltage to supply infrared transmitting circuit and register by freewheeling circuit;
3) this+5V voltage signal is received to be converted into+3.3V voltage, supply of electrical energy metering circuit by a paster regulator block and the filtering circuit that is coupled with it;
4) obtain power network current and voltage signal by current sampling circuit and voltage sampling circuit, input to processor to calculate electric quantity signal;
5) described processor exports several times electric pulse signal by electricity memory circuit to described mechanical register;
6) described register often degree of counting once, export to electricity memory circuit meter degree pulse signal, be stored in described electricity memory circuit with accumulate mode.
In one embodiment, comprise step further: produce control signal to be controlled an infrared transmitting circuit by switching device to the transmission of signal and reception by 38KHZ square wave circuit for generating, wherein:
When data sending terminal transmits as " 1 ", by described switching device output low level, 38KHZ square-wave signal is clamped to+0.7V voltage through switching device, does not launch infrared signal to control infrared transmitting circuit; When data sending terminal transmits as " 0 ", export high level by described switching device, 38KHZ square-wave signal exports+5V voltage through switch device conductive, launches infrared signal to control infrared transmitting circuit.
Further, in step 1), when next ﹢ 12V voltage exports the cycle, the electric energy that energy storage device stores, by the conducting of described switching device, is flow back into the negative pole of energy storage device by ﹢ 12V voltage by switching device, realizes primary current flowing.
The invention solves the problem that traditional single phase mechanical type register table can not use palm machine to check meter, can realize Far-infrared communication function on traditional register list structure, the area or the low cost market that are applicable to bad environments use.Realize the electromechanical register table that traditional single phase mechanical type register table combines with Far-infrared communication circuit design, cost reduces, and structure is simple, and can meet the traditional register table market of use originally and wish that use palm machine is checked meter the demand of raising the efficiency.
Embodiment
As shown in Figure 1, provide a kind of specific embodiment, the wherein structure of each assembly of detailed description or circuit, but it is not limited to the technical solution.Partial power in electromechanical ammeter of the present invention comprises control circuit, is wherein provided with capacitance-resistance voltage reduction circuit, DC transfer circuit, Far-infrared communication circuit, ic for energy metering and electricity memory circuit.
Capacitance-resistance voltage reduction circuit mainly by voltage dependent resistor (VDR) MOV1, power resistor R10, safety electric capacity C1, diode D1, D2, D3, described diode D1 is TVS pipe, and diode D2, D3 are bilateral diode, electrochemical capacitor E1, E2, Chip-R R19, patch capacitor C2, triode Q1 form.220V voltage carries out surge protection through voltage dependent resistor (VDR) MOV1, and through power resistor R10, the resistance-capacitance depressurization portion clamper that safety electric capacity C1 and diode D1 form is to ± 12V voltage.During ﹢ 12V, electric current is charged by the forward diode of bilateral diode D2 to electrochemical capacitor E2 and patch capacitor C2 and flows back to GND.As-12V, electric current is charged to electrochemical capacitor E1 from GND by the backward dioded of bilateral diode D3, flows back to-12V by the backward dioded of bilateral diode D2.When the next ﹢ 12V cycle, ﹢ 12V makes triode Q1 conducting by Chip-R R19, the electric energy that electrochemical capacitor E1 stores passes through the forward diode of bilateral diode D3 to electrochemical capacitor E2, is flowed back to the negative pole of electrochemical capacitor E1 after patch capacitor C2 charges by triode Q1.
Traditional Far-infrared communication table meter uses Industrial Frequency Transformer to power.Volume is large, and Heavy Weight makes the long-pending increase of PCB surface, and needs to use screw that PCB is fixed on structural member.And register table meter PCB area in the present embodiment is little, lightweight, structural member often adopts the mode of bayonet socket to be fixed in PCB, simplifies assembly technology.The use of transformer means to be needed to redesign structural member to install PCB.This programme uses volume little, and lightweight resistance-capacitance depressurization scheme, directly can use the structural member of original bayonet socket scheme, highly versatile, production cost is low.Meet the demand of resistance-capacitance depressurization market to low cost table meter.
For the resistance-capacitance depressurization portion in ammeter because the GND of live wire welding system, half-wave rectifying circuit must be used.Traditional capacitance-resistance voltage reduction circuit is when input voltage is 50Hz, 220V, and when the safety electric capacity of 390nF size exports 12V voltage, half-wave rectification can only provide 12V, 13mA electric current.Adopt this capacitance-resistance voltage reduction circuit, at equal frequencies, input with voltage, under onesize safety capacitive conditions, 12V can be exported, 26mA electric current, simultaneously live wire also can the GND of welding system, ensure that the safety of circuit, prevents staff from touching circuit because of carelessness and the personal injury that causes.
DC transfer circuit is mainly by resistance R2, and R20, R23, R3, R24, diode D5, patch capacitor C13, C28, C14, C3, electrochemical capacitor E3, E4, paster regulator block U1, U2 form.VCC voltage carries out voltage judgement by the EN pin being input to U1 after R24, R3 dividing potential drop.When VCC voltage reaches certain voltage, U1 starts.U1 is BUCK type direct current conversion chip.By the NMOS tube of U1 inside, PWM switch is carried out to VCC voltage, PWM waveform through inductance L 1, electrochemical capacitor E3, patch capacitor C28 filtering, diode D5 afterflow obtains 5V voltage, and 5V voltage passes through R23, the FB pin connecting U1 after R2, R20 dividing potential drop carries out Voltage Feedback, ensures the 5V voltage of stable output.5V drives for infrared transmitting circuit and register.5V voltage is through paster regulator block U2 voltage stabilizing, and electrochemical capacitor E4, patch capacitor C3 filtering obtains 3.3V and exports.3.3V is for computation chip.
Traditional linear voltage stabilization scheme maximum output current IMAX=maximum input current IIN-chip quiescent current IT, such as adopt 78L05 chip, quiescent current 2mA, above-mentioned resistance-capacitance depressurization electric current maximum output 26mA, maximum output 24mA after linear voltage stabilization chip, this programme adopts Novel MOS cast direct current chip, and conversion efficiency reaches more than 90%, quiescent dissipation 0.3mA.By 90% efficiency calculation, export and maximumly can reach 5V, 56mA, much larger than the 24mA output current of linear voltage stabilization.Considerably increase Far-infrared communication distance.
Far-infrared communication circuit is by Chip-R R25, R1, R11, R4, R32, R15, R33, R35, R5, R36, patch capacitor C15, C22, triode Q2, NOT gate chip U3A, U3B, U3C, U3E, infrared transmitting tube D8, light emitting diode D6, integral type infrared receiving terminal U5, bilateral diode D4 form.R1, R11, C15 and not gate U3A form the square-wave generator of a 38KHZ jointly.Data sending terminal TXD signal is through Chip-R R25 pull-up at ordinary times, and U3B oppositely exports afterwards as low level, and during data sending terminal TXD transmitting " 0 " signal, U3B exports high level.
When data sending terminal TXD signal is " 1 ", U3B output low level, 38KHZ signal through Chip-R R4 by bilateral diode D4 backward dioded clamper at about 0.7V, it is high level after U3E, after Chip-R R15, make triode Q2 end, infrared transmitting tube D8 does not send infrared signal.U3C input voltage is dragged down by paster R32 simultaneously, and U3C exports high level, and light emitting diode D6 is not luminous.
When data transmit circuit TXD signal is " 0 ", U3B exports high level, the backward dioded cut-off of bilateral diode D4, and 38KHZ signal is input to triode Q2 through the reverse laggard R15 that crosses of Chip-R R4 to U3E.Triode Q2 conducting when 38KHZ signal is high level, 5V voltage makes infrared transmitting tube D8 launch infrared signal by triode Q2, Chip-R R35.When 38KHZ is low level, triode Q2 ends, and infrared transmitting tube D8 does not launch infrared signal.The high level that U3B exports simultaneously makes U3C output low level by bilateral diode D4 forward diode, and light emitting diode D6 is used as transmitting indicating lamp by Chip-R R33 luminescence.
Received by integral type infrared receiving terminal U5 when infrared receiver state, R36 and C22 forms one-level RC filtering circuit, is the 5V power supply that analog signal processing chip U5 provides noiseless to disturb.Received IR signal sends data signal end RXD transmission signal by exporting to single-chip microcomputer after Chip-R R5 pull-up.
Traditional Far-infrared communication circuit needs single-chip microcomputer to provide 38KHZ square-wave signal, is modulated by 2 triodes.Often do not have 38KHZ square wave output function for simple single-chip microcomputer, need additional 38KHZ crystal oscillator, not gate or NE555 chip produce 38KHZ signal.This programme adopts 4 not gates in 16 NOT gate chip to complete the modulated process of 38KHZ generation and 38KHZ and TXD signal.2 not gates are in addition used for register and drive, and have accomplished to make the best use of everything.The 38KHZ error of this programme is within the scope of ± 1K, and meet the frequency requirement of infrared receiving terminal to carrier signal, compare and need the outside crystal oscillator adding 38KHZ, the circuit that not gate or NE555 circuit produce 38KHZ signal is more succinct, and cost is lower.
Ic for energy metering is by Chip-R R12, R13, R28, R29, R30, R31, R16, R17, R14, R40, R9, R18, R42, R36, patch capacitor C16, C17, C20, C18, C19, C21, C7, C9, C6, C23, C24, C25, C26, computation chip U4, optocoupler P1, crystal oscillator Y1 form.Computation chip adopts the M430AFE253 single-chip microcomputer of band metering units, and its design and use is orientated as and replaced common pure single-phase measurement chip.M430AFE253 single-chip microcomputer is with again 430 kernels to programme simultaneously, meet the functional requirement of simple single-phase meter, the scheme comparing traditional ADE7755 class chip and microcontroller unit for single-phase register polling list scheme has precision high, and price is low, the advantage that chip area is less.U4 comprises power filter, crystal oscillator, the single-chip microcomputer minimum unit of emulator interface in conjunction with C25, C26, Y1, R9, C24, R40, C9, C7, C6 composition.R12, R13, C16, C17, C20 form current sampling circuit, the current signal on shunt of sampling.R28, R29, R30, R31, R14, R16, R17, C18, C19, C21 form voltage sampling circuit, for input ac voltage signal of sampling.R18, light emitting diode D7 form flashlight circuit, and for pulse instruction, optocoupler P1, Chip-R R42 form impulse output circuit, for calibration.
The scheme that traditional ADE7755 class chip adds single-chip microcomputer needs to carry out calibration by short circuit hardware short circuit point, more and more higher in cost of labor, automated production demand is slowly eliminated more and more urgent today, this programme can carry out calibration by serial ports, calibration parameter is kept in U6, reads calibration parameter get final product accurate measurement after single-chip microcomputer powers on from storage chip U6.
Traditional ADE7755 class chip cannot directly be revised angular difference during 0.5L, and hardware modifications is troublesome poeration again, and extent of amendment is narrow, and segmentation is few.And this programme can carry out software correction to 0.5L angular difference, extent of amendment is large, and segmentation is many.
Traditional ADE7755 class chip voltage current sample road AD only has 16, and road AD is up to 24 in this programme sampling, and precision is higher.
Electricity memory circuit is by Chip-R R7, R8, R26, R27, R38, R39, patch capacitor C5, C10, not gate U3D, U3F, and storage chip U6 forms.The IIC communication interface of storage chip U6 and pull-up resistor R7, R8 composition carries out communication with computation chip U4, preserves calibration parameter and electricity in storage chip U6, preserves for the normal metering and electricity showing meter.During Far-infrared communication, single-chip microcomputer reads real time electrical quantity from storage chip U6.Pin F1, F2 drive register by R38, R39, the pulse produced when patch capacitor C5 is for absorbing register coil switch after carrying out 3.3V to 5V voltage transition respectively through not gate U3D, U3F after R26, R27 pull-up.
Tradition register scheme entirety adopts 5V to power, and therefore register is all for 5V designs.Along with the progress of chip technology, present single-chip microcomputer generally adopts 3.3V to power, and is not suitable for the 5V register that Direct driver is original.Redesigning 3.3V drives register drive current larger than 5V, needs I/O port to have larger driving force.This programme adopts traditional 5V register, and in the NOT gate chip adopting far infrared transmission circuit to use, 2 remaining not gates do level conversion to drive register.Compatible good, drive current is little not to be needed again additionally to increase level dress and changes chip.
Except above preferred embodiment, the present invention also has other embodiment, and those skilled in the art can make various change and distortion according to the present invention, only otherwise depart from spirit of the present invention, all should belong to the scope that claims of the present invention define.