General speed controller for electricity generator
Technical field
The present invention relates to the control technology field, especially a kind ofly be used to control the all-purpose gasoline engine controller of general alternator speed with the control output voltage frequency.
Background technology
The mobile model supply unit such as engine-driven alternating current generator, in order to stablize its output frequency, adopts mechanical speed governors to come stabilized frequency usually, but there is following shortcoming: the first, and the generator frequency stabilization poor-performing of this form; The second, change the position that will after engine operation, could determine the mechanical speed governors bar in joining, therefore, probably during ato unit for the first time understand driving, bring very big danger; The 3rd, produce, regulate complicated.
Summary of the invention
The objective of the invention is provides a kind of frequency stabilization performance good in order to overcome the shortcoming that prior art exists, and speed governing safety is produced, general speed controller for electricity generator easy to adjust.
The technical scheme of general speed controller for electricity generator of the present invention is: it is characterized in that comprising frequency detecting control circuit and stepper motor driving circuit, the frequency detecting control circuit comprises frequency detection circuit and single chip microcontroller MCU, frequency detection circuit is made up of rectification circuit, step-down filter circuit and comparison circuit, and rectification circuit comprises rectifier diode D
2, D
3, D
4, D
5With ceramic disc capacitor C
6, C
7, C
16, C
19The step-down filter circuit comprises resistance R
4, R
5, R
7, diode D
6, D
7And capacitor C
17, C
18Comparison circuit comprises resistance R
6, R
8, capacitor C
15, diode D
9And comparator U, comparator output terminal connects single chip microcontroller MCU input; Stepper motor driving circuit has stepper motor driver, and the stepper motor driver input is connected with single chip microcontroller MCU output, and the stepper motor driver output is connected with stepping motor M; The control circuit power supply is provided through rectifying and voltage-stabilizing by flywheel magneto AC power AC input.
General speed controller for electricity generator of the present invention, according to output voltage control rotating speed, frequency detection circuit is used for the tach signal of detection of engine, and tach signal is through rectifier diode D
2, D
3, D
4, D
5With ceramic disc capacitor C
6, C
7, C
16, C
19The rectification circuit of forming is converted to the half-wave voltage signal of doubling frequency, and this signal passes through resistance R
4, R
5, diode D
6, D
7, resistance R
7And capacitor C
17, C
18Forming maximum voltage behind the step-down filter circuit of forming is the pulse signal of 1.4V, again through resistance R 6, R
8, capacitor C
15, diode D
9The comparison circuit that reaches comparator U composition obtains clean stable square-wave signal and gives chip microprocessor MCU, chip microprocessor MCU carries out high-speed computation with tach signal and given rotating speed, the utilization pid algorithm obtains the rotating step number of stepping motor, move thereby engine is stabilized on certain rotating speed, make velocity-stabilization degree height; And behind the use electronic speed regulation, need not the workman and intervene, the procedure auto-control rotating speed has reduced the workman and has changeed the hidden danger that the auxiliary tone joint brings.
General speed controller for electricity generator of the present invention, its described control circuit power supply is diode D
8Ceramic disc capacitor C in parallel
20After connect electrochemical capacitor C respectively
8, ceramic disc capacitor C
9, C
10And three terminal integrated voltage stabilizer U
3, U
4Input, three terminal integrated voltage stabilizer U
3Output connect electrochemical capacitor C
11With ceramic disc capacitor C
13, three terminal integrated voltage stabilizer U
4Output connect electrochemical capacitor C
12With ceramic disc capacitor C
14, C
21, two three terminal integrated voltage stabilizer U
3, U
4Earth terminal ground connection, in power circuit, rectification circuit becomes interchange into the direct current of pulsation, and inserts electrochemical capacitor C after rectification circuit
8, utilize its charge-discharge characteristic, make pulsating dc voltage after the rectification become relatively galvanic current and press electrochemical capacitor C
8After be connected to three terminal integrated voltage stabilizer (being linear voltage decreasing type DC/DC transducer) and electrochemical capacitor C
11And C
13, make direct voltage more stable.Its ceramic disc capacitor C
1, C
5Two ends respectively with ground and quartz oscillator B
1Two ends connect, quartz oscillator B
1Two ends connect the crystal oscillator connecting pin of single chip microcontroller MCU respectively, obtain the clock source of single-chip microcomputer work by quartz oscillator and single-chip microcomputer internal oscillator circuit.The resetting pin of its single chip microcontroller MCU connects by resistance R
2, R
1, diode D
1, electrochemical capacitor C
2The external reset circuit of forming, diode D
1Help when Vdd cuts off the power supply capacitor C
2Carry out repid discharge.Its described single chip microcontroller MCU is high speed 16 8-digit microcontrollers.Its described stepper motor driver is the TA7774 stepper motor driver.
Description of drawings
Fig. 1 is the circuit block diagram of general speed controller for electricity generator of the present invention;
Fig. 2 is the circuit diagram of general speed controller for electricity generator of the present invention.
Embodiment
The invention discloses a kind of general speed controller for electricity generator, as shown in Figure 1 and Figure 2, it is characterized in that: comprise frequency detecting control circuit 1 and stepper motor driving circuit 2, frequency detecting control circuit 1 comprises frequency detection circuit 11 and single chip microcontroller MCU, frequency detection circuit 11 is made up of rectification circuit, step-down filter circuit and comparison circuit, and rectification circuit comprises rectifier diode D
2, D
3, D
4, D
5With ceramic disc capacitor C
6, C
7, C
16, C
19The step-down filter circuit comprises resistance R
4, R
5, R
7, diode D
6, D
7And capacitor C
17, C
18Comparison circuit comprises resistance R
6, R
8, capacitor C
15, diode D
9And comparator U, comparator U output connects single chip microcontroller MCU input; Stepper motor driving circuit 2 has stepper motor driver 21, and stepper motor driver 21 inputs are connected with single chip microcontroller MCU output, and stepper motor driver 21 outputs are connected with stepping motor M; Control circuit power supply 3 is provided through rectifying and voltage-stabilizing by flywheel magneto AC power AC (being generally 12V) input.According to output voltage control rotating speed, frequency detection circuit is used for the tach signal of detection of engine, and tach signal is through rectifier diode D
2, D
3, D
4, D
5With ceramic disc capacitor C
6, C
7, C
16, C
19The rectification circuit of forming is converted to the half-wave voltage signal of doubling frequency, and this signal passes through resistance R
4, R
5, diode D
6, D
7, resistance R
7And capacitor C
17, C
18Forming maximum voltage behind the step-down filter circuit of forming is the pulse signal of 1.4V, again through resistance R
6, R
8, capacitor C
15, diode D
9The comparison circuit that reaches comparator U composition obtains clean stable square-wave signal and gives chip microprocessor MCU, chip microprocessor MCU carries out high-speed computation with tach signal and given rotating speed, the utilization pid algorithm obtains the rotating step number of stepping motor, move thereby engine is stabilized on certain rotating speed, make velocity-stabilization degree height.Its control circuit power supply 3 is diode D
8Ceramic disc capacitor C in parallel
20After connect electrochemical capacitor C respectively
8, ceramic disc capacitor C
9, C
10And three terminal integrated voltage stabilizer U
3, U
4Input, three terminal integrated voltage stabilizer U
3Output connect electrochemical capacitor C
11With ceramic disc capacitor C
13, three terminal integrated voltage stabilizer U
4Output connect electrochemical capacitor C
12With ceramic disc capacitor C
14, C
21, two three terminal integrated voltage stabilizer U
3, U
4Earth terminal ground connection, by electrochemical capacitor C
8, C
11, C
12And three terminal integrated voltage stabilizer U
3, U
4Filter action, can obtain highly stable clean waveform signal.Its ceramic disc capacitor C
1, C
5Two ends respectively with ground (being ground connection) and quartz oscillator B
1Two ends connect, quartz oscillator B
1Two ends connect the crystal oscillator connecting pin of single chip microcontroller MCU respectively, and quartz oscillator B has been arranged
1, single-chip microcomputer has just had stable work clock.When Vdd powers on speed when too slow, need outside electrify restoration circuit, can be by resistance R
2, R
1, diode D
1, electrochemical capacitor C
2The external reset circuit of forming connects the resetting pin of single chip microcontroller MCU, diode D
1Help when Vdd cuts off the power supply capacitor C
2Carry out repid discharge, when reality is made, should select suitable R
1To guarantee R
1The pressure drop at two ends can not violated the device electrical code, also should select suitable R
2With limit static discharge (ESD) or when excessively electrically stress (EOS) causes the MCLR/Vpp pin to damage from external capacitive C
2Flow into the electric current of MCLR.When selecting single chip microcontroller MCU for use, can select 16 8-digit microcontrollers at a high speed actual, as 30F series (as 30F2010), AVR series or 51 series; Stepper motor driver 21 can be selected TA7774 or L619 for use, and the L619 voltage range is big, and peripheral circuit is simple, but price is high slightly; Comparator U generally selects LM293 for use, its low price, and temperature range is big, can be 85 ℃ of operate as normal.