The utility model content
The purpose of this utility model is, provides a kind of based on digital brushless single phase electric machine controller.It can realize the Based Intelligent Control to the brushless single phase motor, and can overcome the shortcoming that the control circuit heating is high, loss is big, the life-span is short, electromagnetic radiation is strong.
The technical solution of the utility model: a kind ofly be characterized in that based on digital brushless single phase electric machine controller it comprises single-chip microcomputer, H bridge drive circuit and Switching Power Supply; The output of the first timer of single-chip microcomputer links to each other with H bridge drive circuit (being used to produce the motor-driven waveform of band dead band control), and H bridge drive circuit connects motor; Switching Power Supply links to each other with single-chip microcomputer with H bridge drive circuit; The second timer output of single-chip microcomputer links to each other with Switching Power Supply, and second timer produces the output of PWM ripple control switching voltage, can regulate the busbar voltage size of exporting to motor by regulating the PWM duty ratio, reaches the purpose of electric machine speed regulation.。
Aforesaid the input of described second timer links to each other with Hall element based in the digital brushless single phase electric machine controller, and Hall element is located on the motor.Second timer is caught the hall signal of motor, is used for the surveying work of motor commutation and rotating speed.
Aforesaid based in the digital brushless single phase electric machine controller, be connected with current sampling circuit on the described H bridge drive circuit, current sampling circuit links to each other with the digital to analog converter of single-chip microcomputer, is used for detecting the electric current of electric motor loop, carries out the over-current detection effect.
Aforesaid described single-chip microcomputer is provided with the program download interface based in the digital brushless single phase electric machine controller, can download and upgrades the control routine of controller.
Aforesaid based in the digital brushless single phase electric machine controller, described H bridge drive circuit is an Electric Machine Control H bridge circuit of being made of standard the metal-oxide-semiconductor of 4 N raceway grooves; Wherein metal-oxide-semiconductor is the high temperature resistant MOS of ROHMRCD040N25 240V high pressure, inner integrated earial drainage diode; The chip for driving of driving N channel MOS is the IR2101 special integrated chip.Metal-oxide-semiconductor is selected the high temperature resistant MOS of ROHM RCD040N25 240V high pressure for use, and inner integrated earial drainage diode has guaranteed the long-term stable operation of power device.The chip for driving of driving N channel MOS is selected the IR2101 special integrated chip, is produced by American I R company, is specifically designed to driven MOS pipe and IGBT.When the H bridge of the full N raceway groove of control, bootstrapping suspension voltage can be provided, obtained on the circuit design simplifying greatly.
Aforesaid based in the digital brushless single phase electric machine controller, described single-chip microcomputer is STM8S103.
Compared with prior art, the utility model implements comparatively simple on hardware circuit, and the single-chip microcomputer low price, helps reducing product cost.The utility model sampled digital intelligent control technology, control performance is stable, has overcome the shortcoming that the heating of conventional hardware scheme is high, loss is big, the life-span is short and electromagnetic radiation is strong.
Embodiment
Below in conjunction with drawings and Examples the utility model is further described, but not as the foundation to the utility model restriction.
Embodiment.A kind of based on digital brushless single phase electric machine controller, as shown in Figure 1, it comprises single-chip microcomputer, H bridge drive circuit and Switching Power Supply; The output of the first timer of single-chip microcomputer links to each other with H bridge drive circuit (being used to produce the motor-driven waveform of band dead band control), and H bridge drive circuit connects motor; Switching Power Supply links to each other with single-chip microcomputer with H bridge drive circuit; The second timer output of single-chip microcomputer links to each other with Switching Power Supply, and second timer produces the output of PMM ripple control switching voltage, can regulate the busbar voltage size of exporting to motor by regulating the PMM duty ratio, reaches the purpose of electric machine speed regulation.。
Aforesaid the input of described second timer links to each other with Hall element based in the digital brushless single phase electric machine controller, and Hall element is located on the motor.Second timer is caught the hall signal of motor, is used for the surveying work of motor commutation and rotating speed.
Aforesaid based in the digital brushless single phase electric machine controller, be connected with current sampling circuit on the described H bridge drive circuit, current sampling circuit links to each other with the digital to analog converter of single-chip microcomputer, is used for detecting the electric current of electric motor loop, carries out the over-current detection effect.
Aforesaid described single-chip microcomputer is provided with the program download interface based in the digital brushless single phase electric machine controller, can download and upgrades the control routine of controller.
Aforesaid based in the digital brushless single phase electric machine controller, described H bridge drive circuit is an Electric Machine Control H bridge circuit of being made of standard the metal-oxide-semiconductor of 4 N raceway grooves; Wherein metal-oxide-semiconductor is the high temperature resistant MOS of ROHMRCD040N25 240V high pressure, inner integrated earial drainage diode; The chip for driving of driving N channel MOS is the IR2101 special integrated chip.Metal-oxide-semiconductor is selected the high temperature resistant MOS of ROHM RCD040N25 240V high pressure for use, and inner integrated earial drainage diode has guaranteed the long-term stable operation of power device.The chip for driving of driving N channel MOS is selected the IR2101 special integrated chip, is produced by American I R company, is specifically designed to driven MOS pipe and IGBT.When the H bridge of the full N raceway groove of control, bootstrapping suspension voltage can be provided, obtained on the circuit design simplifying greatly.
Aforesaid based in the digital brushless single phase electric machine controller, described single-chip microcomputer is STM8S103.
With the STM8S103 single-chip microcomputer is example, and as shown in Figure 2, timer TIM2 produces the output of PWM ripple control switching voltage.Timer TIM1 output port links to each other with the H bridge that metal-oxide-semiconductor is formed, and produces the motor-driven waveform of band dead band control.The ADC1 electric current in the electric motor loop of can sampling carries out the over-current detection effect.Timer TIM2 also catches the hall signal of motor simultaneously, is used for the surveying work of motor commutation and rotating speed.Can download and upgrade the control routine of controller by the program download interface.
Drive motors voltage is by the output of Switching Power Supply partial circuit, and the Switching Power Supply input voltage is 170V~265VAC, output two-way voltage behind rectifier transformer.One tunnel generation+15V voltage, output+5V supplies with single-chip microcomputer and Hall element power supply after 7805 voltage stabilizings.Another road produces maximum+82V voltage, supplies with the busbar voltage that MOS drives the H bridge, is used for drive motors.The timer TIM2 of single-chip microcomputer can produce the PWM ripple, is input to the control port of Switching Power Supply, can regulate the busbar voltage size of exporting to motor by regulating the PWM duty ratio, reaches the purpose of electric machine speed regulation.
The sampling resistor of in the loop of H bridge, having connected; be used to the current of electric of sampling; be input on 10 ADC1 sample port of single-chip microcomputer after the sampled voltage process RC low-pass filtering; by ADC1 load transfer sampled voltage; when current of electric excessive; single-chip microcomputer can be protected automatically when sending overcurrent, prevents that motor from causing that because of overload or stall electric current is excessive, causes hardware circuit and motor to damage.Guarantee the safety and stability of entire controller like this, prolonged useful life.
Its software work principle is:
The software control motor mainly is catching and commutation work motor Hall feedback signal.Hall signal is caught specially by timer TIM2 capture interrupt.When hall signal generation saltus step, timer TIM2 can capture the jumping limit of its rising edge and trailing edge, enters judgement and next step commutation action of carrying out the position in the interrupt service subroutine then.When catching two adjacent hopping edges, timer is also counted the middle time interval, is used to calculate current rotating speed of motor simultaneously.
Motor-driven commutation sequential is produced by timer TIM1, can produce the control waveform in the band dead band of Electric Machine Control special use by the register that timer TIM1 is set.Be input on the chip for driving IR2102 of metal-oxide-semiconductor by single-chip microcomputer timer output end mouth, again by the chip for driving conducting with close metal-oxide-semiconductor.
Detect the current rotating speed of motor at timer TIM2 after, the tachometer value that obtains in PID adjusting program according to rotating speed of target and the current revolution speed calculating error set, and the PWM duty ratio of regulating timer TIM2 output, and then the by-pass cock electric power output voltage, regulate the motor speed purpose thereby reach.
The over-current detection program is to be finished by ADC1, ADC1 is the analog to digital converter of 10 precision, can be with on the sampling resistor; aanalogvoltage converts digital signal to, compares with the overcurrent threshold value of setting in the program, if surpassed threshold value; program just enters guard mode immediately, closes the drive axle metal-oxide-semiconductor.After overcurrent took place, program can be restarted motor at regular intervals in good time.