Utilize microcontroller to realize the data acquisition and the treatment system of illumination apparatus
Technical field
The present invention relates to a kind of data acquisition and treatment system of utilizing microcontroller to realize illumination apparatus, belong to voltage, electric current, power measurement field and the embedded control system field of alternating current.
?
Background technology
Sometimes we may be urgent in the use of light fixture wonders the wherein operating state of a light fixture in numerous light fixtures; Like the operating voltage of light fixture, operating current, active power, apparent power, electric weight etc.; So that we understand the operating state of light fixture and better manage light fixture, the present invention designs in order to address these problems.In traditional illuminator, do not have the parameter measuring equipment in the single light fixture at all, general only in the consumer unit of a circuit, use an electric energy meter measure in the line on the electric weight of all light fixtures, have no idea to understand the electrical quantity of single light fixture at all.
Summary of the invention
To the problems referred to above, the present invention provides a kind of data acquisition and treatment system of utilizing microcontroller to realize illumination apparatus.The present invention can carry out early warning in advance, avoids the generation of worse situation, if break down; Then can real time fail report to the police, and which type fault the prompting user be, and system can carry out fault type according to the data that collect and differentiates; Provide the maintenance proposed projects, improve the efficiency of management.
The technical scheme that the present invention adopts is following:
A kind of data acquisition and treatment system of utilizing the common analog-to-digital converter realization illumination apparatus of microcontroller; It is characterized in that using the common analog-to-digital converter of microcontroller to accomplish to electric current; Voltage; The collection of data such as power and processing procedure, this system mainly are made up of voltage collection circuit module, overvoltage crowbar module, current acquisition I/V change-over circuit module, signal amplification circuit module and A/D change-over circuit module and signal processing module.
Said voltage collection circuit converts the supply voltage of light fixture to low voltage signal that microcontroller can be discerned, then this signal is delivered to the AN1 pin of microcontroller; Voltage collection circuit and overvoltage crowbar have comprised resistance R 1, R2, R3, R4, the R6 of dividing potential drop effect, convert the 220V alternating voltage to the 2.4V alternating current; Resistance R 5, R6 are provided with a static direct current working point for the voltage signal of sampling; Let the 2.4V alternating voltage on the static direct current working point of 2.5V, change up and down; The upper end of resistance R 5 connects the positive VDD5 utmost point of DC reference voltage of 5V; The lower end of resistance R 6 connects the ground Line_Com of 5V DC reference voltage, so because the identical MIC_VOLTAGE1 voltages at nodes of resistance of resistance R 5, R6 is direct current 2.5V; The diode D1, the D2 that play the overvoltage protection effect let MIC_VOLTAGE1 voltages at nodes fluctuation range all the time between negative 0.7V and positive 5.7V, to prevent overtension damage microcontroller.
Said electric current I/V change-over circuit converts the operating current of light fixture to the correspondent voltage signal; Be convenient to the computing that microprocessor carries out the later stage; In the light fixture loop, be connected in series the resistance R 7 of a shunt effect; Because resistance value is fixed, so the operating current of light fixture just can come correspondence by the voltage on the resistance R 7, this voltage signal is transferred to by node LED_OUT and goes to carry out the later stage signal processing in the signal amplification circuit in circuit.
Said signal amplification circuit amplifies the signal that electric current I/the V change-over circuit collects, and delivers to the AN0 pin of microcontroller then.
The digital signal that said microcontroller circuit becomes microcontroller to discern the analog signal conversion of the voltage and current that collects; Digital signal after the conversion is gone out the parameter values such as operating frequency of actual loaded work piece voltage, operating current, power, electric weight, circuit through computed in software; The RX pin of these parameter values through serial ports is transferred to communication apparatus, and sends the user to by communication apparatus and use.
The present invention has realized the isoparametric collection of power, electric current, voltage, electric weight to light fixture, and with these parameters through communication network device real-time pass control centre back.Can let the operating state of each light fixture of user real time grasp whether normal through in the power supply control loop, adding the electric quantity metering functional circuit, can carry out early warning in advance, avoid the generation of worse situation; If break down; Then can real time fail report to the police, and which type fault the prompting user be, and system can carry out fault type according to the data that collect and differentiates; Provide the maintenance proposed projects, improve the efficiency of management.
?
Description of drawings
Fig. 1 is a structured flowchart of the present invention.
Fig. 2 is signal processing microcontroller circuit figure.
Fig. 3 is load current I/V change-over circuit figure.
Fig. 4 is load voltage sample circuit and overvoltage crowbar figure.
Fig. 5 is signal amplification circuit figure.
Embodiment
Disclosed all characteristics in this specification, or the step in disclosed all methods or the process except mutually exclusive characteristic and/or the step, all can make up by any way.
Disclosed arbitrary characteristic in this specification (comprising any claim, summary and accompanying drawing) is only if special narration all can be replaced by other equivalences or the alternative features with similar purpose.That is, only if special narration, each characteristic is an example in a series of equivalences or the similar characteristics.The description to alternative features is to being equal to the description of technical characterictic, must not being regarded as the donation to the public in this specification simultaneously.
Term in this specification (comprising any claim, summary and accompanying drawing) like no specified otherwise, all is defined as the peculiar implication in this area if having the peculiar implication of general sense and this area simultaneously.
As shown in Figure 1; The present invention relates to a kind of data acquisition and treatment system of utilizing the common analog-to-digital converter realization illumination apparatus of microcontroller; It is characterized in that using the common analog-to-digital converter of microcontroller to accomplish to electric current; Voltage, the collection of data such as power and processing procedure, this system mainly are made up of voltage collection circuit module, overvoltage crowbar module, current acquisition I/V change-over circuit module, signal amplification circuit module and A/D change-over circuit module and signal processing module.
As shown in Figure 4; The effect of voltage collection circuit is that the supply voltage with light fixture converts the low voltage signal that microcontroller can be discerned to; Then this signal is delivered to the AN1 pin of microcontroller; Circuit shown in accompanying drawing four, this partial circuit mainly by divider resistance R1, R2, R3, R4, R6 form, these several resistance play a dividing potential drop, purpose is to convert the 220V alternating voltage to the 2.4V alternating current; The effect of resistance R 5, R6 is for the voltage signal of giving sampling a static direct current working point to be set; Let the 2.4V alternating voltage on the static direct current working point of 2.5V, change up and down; The VDD5 that the upper end of resistance R 5 connects is that the DC reference voltage of 5V is anodal; The Line_Com that the lower end of resistance R 6 connects is the ground of 5V DC reference voltage; So because the identical MIC_VOLTAGE1 voltages at nodes of resistance of resistance R 5, R6 is direct current 2.5V, capacitor C 1 plays jamproof effect here, diode D1, D2 here have been the effects of overvoltage protection; Let MIC_VOLTAGE1 voltages at nodes fluctuation range all the time between negative 0.7V and positive 5.7V, can prevent that like this overtension from damaging microcontroller.
As shown in Figure 3; The effect of said electric current I/V change-over circuit is that the operating current with light fixture converts the correspondent voltage signal to, is convenient to the computing that microprocessor carries out the later stage, and circuit is shown in accompanying drawing three; In the light fixture loop, be connected in series resistance R 7; This resistance plays a shunt in this circuit, it is to equal this principle that electric current multiply by resistance value according to voltage in the female law in Europe to design, in circuit since resistance value fix; So it is corresponding that the operating current of light fixture just can be come by the voltage on the resistance R 7, this voltage signal is transferred to by node LED_OUT and goes to carry out the later stage signal processing in the signal amplification circuit.
As shown in Figure 5; The effect of said signal amplification circuit is that the signal that electric current I/the V change-over circuit collects is amplified, and delivers to the AN0 pin of microcontroller then, and circuit is shown in accompanying drawing five; This amplifier works in the homophase amplification mode, and the circuit multiplication factor is that 10 times of input signals add 2.5V.
As shown in Figure 2, said microcontroller circuit has three effects, and first effect is the digital signal that the analog signal conversion with the voltage and current that collects becomes microcontroller to discern.Second effect is the parameter values such as operating frequency that the digital signal after the conversion gone out actual loaded work piece voltage, operating current, power, electric weight, circuit through computed in software.The 3rd effect is that the RX pin of these parameter values through serial ports is transferred to communication apparatus, and sends the user to by communication apparatus and use.
The present invention has realized the isoparametric collection of power, electric current, voltage, electric weight to light fixture, and with these parameters through communication network device real-time pass control centre back.Can let the operating state of each light fixture of user real time grasp whether normal through in the power supply control loop, adding the electric quantity metering functional circuit, can carry out early warning in advance, avoid the generation of worse situation; If break down; Then can real time fail report to the police, and which type fault the prompting user be, and system can carry out fault type according to the data that collect and differentiates; Provide the maintenance proposed projects, improve the efficiency of management.