Summary of the invention
The object of the present invention is to provide a kind of automobile engine cooling fan control system, be used for the engine fan in the Control of Automobile, to realize maximum heat radiation based on four-phase double-wire winding brushless DC motor.Control system has low cost, the characteristics of high reliability.
For achieving the above object, design of the present invention is as follows: at first, select to adopt the four-phase double-wire winding brushless DC motor of a process particular design as controlling object.Make this controlling object not only keep, and, more can embody its odds for effectiveness owing to can realize the energy feedback than the simple advantage of all-wave electric machine structure.
Secondly, at vehicle cooling fan, adopt automobile specified control MCU, to reach the system temperature requirement.Simultaneously, this MCU contains motor control module, with convenient motor is controlled; System needs constantly sampling counter electromotive force of motor in the course of the work, according to the counterelectromotive force detection method, thereby determines motor rotor position, drives four phases in order successively, guarantees that motor obtains correct startup and operation.In addition, carry out self-protection for making controller be in abnormal conditions in system, from hardware point of view, adopt the current Hall sensor, elements such as temperature transducer design following protective function: overcurrent (short circuit) protection, temperature protection, CPU abnormal protection.
By communication module, the system that makes is connected with PC at last, by mode of operations such as PC control rotating speed of motor speeds.
According to above-mentioned inventive concept, the present invention adopts following technological scheme:
A kind of automobile engine cooling fan control system based on four-phase double-wire winding brushless DC motor.It comprises the brshless DC motor of one four phase two-wire winding, a microcontroller, the driver module, communication module, analog signal detection circuit, fault secure circuit, PC and the power module that connect microcontroller, the output control signal of described microcontroller is connected to described motor through described driver module, thereby motor is controlled; Described analog signal detection circuit connects motor, and the counter electromotive force of motor signal is detected, and analogue detection circuitry is sent to microcontroller with testing result then, constitutes to detect the loop; Described fault secure circuit connects described analog signal detection circuit and microcontroller, according to the related output signal of testing circuit, and the operation microcontroller, thus system is played a protective role; Described power module links to each other with microcontroller, and operating voltage is provided; Described microcontroller connects PC by communication module.
Above-mentioned direct current generator adopts existing motor through particular design.Its stator adopts the form of two-wire winding, uses diode-coupled by transistor switch, makes the energy of induced potential feed back to electrical network.
8 monolithic microprocessor XC866-4FR that above-mentioned microcontroller adopts company of Infineon to release, Electric Machine Control dedicated mode in this microprocessor catches/and comparing unit (CCU6) is used for motor is controlled, two independently timer (T12 are wherein arranged, T13), be used for producing pulsewidth modulation (PWM) signal of special control AC motor, and T13 interrupts being used for according to detected rotor-position, carry out the commutation operation, thereby export correct driving sequential.The T12 timer is used for controlling dutycycle, thereby motor speed is controlled.By four tunnel outputs in the module, control four phase motors respectively, conducting in turn runs well motor.Another important module of this microprocessor is exactly one and has multiselect one eight road analog input channel, 10 high-performance AD conversion units (ADC).ADC adopts approximation technique one by one, can change the voltage level of 8 kinds of different analog channels at most.The present invention utilizes 4 tunnel analog channels that the counterelectromotive force of motor is constantly sampled, and other three the tunnel then respectively to temperature, rotating speed, and electric current is sampled, and each parameter is as the input of fault secure circuit, with the proper functioning of protective system.ADC adopts passage to interrupt, and produces passage and interrupt when converting and satisfy selected limit check condition, and the counterelectromotive force that analog sampling is come in carries out zero passage detection, calculates commutation time and assignment simultaneously to the T13 timer.In addition, in little process chip, UART Universal Asynchronous Receiver Transmitter (UART) conduct and the module that external devices interrelates link to each other with PC by serial ports, receive and send messages, to reach the purpose to motor speed control.The unnecessary IO pin of chip is used to connect light emitting diode, uses during in order to debugging.
In the above-mentioned driver module, device for power switching is the IRF2807N channel mosfet of IR company, adopts the MOSFET driving chip IR4426 of the special-purpose low power consumption of two IR companies, two-forty simultaneously.
In the above-mentioned communication module, the Communication Control chip adopts MAX3221 serial communication controlling chip.
In the above-mentioned fault secure circuit, temperature transducer adopts the DS600 temperature transducer of MAXIUM company, and over-current protection circuit mainly adopts current Hall sensors A CS755.
Above-mentioned power module adopts the power supply chip TIE4266-5V of Infineon as the system digits power supply chip, provides the main control MCU of system and digital-to-analog circuit to use.
The present invention compared with prior art, have following conspicuous substantive distinguishing features and remarkable advantage: at first, controlling object of the present invention adopts four phase two-wire winding brushless DC motor without position sensor, both satisfied the automobile-used requirement of designing and developing, needn't adopt the full-bridge control circuit to control motor again, use half-wave circuit instead and also can obtain the effect of full-bridge control circuit, has higher torque output capability, can satisfy the torque performance requirement, therefore, significantly reduce the cost of controller, improved the reliability of inverter, also improve the efficient that motor utilizes, made the reliability and stability of system obtain reinforcement.Secondly, main control chip of the present invention is 8 monolithic microprocessor XC866-4FR that company of Infineon releases, this kind of chip has the Electric Machine Control dedicated mode to catch/comparing unit (CCU6), can control motor easily, this chip is the automotive grade special chip simultaneously, can satisfy automobile-used system works requirement of the present invention in proper functioning in the temperature range-40 °-125 °.In addition, the fault secure circuit of system has added temperature, electric current, and speed detects link, has ensured the normal operation of system.
Embodiment
In conjunction with the accompanying drawings, the present invention is described as follows: the automobile engine cooling fan control system based on four-phase double-wire winding brushless DC motor comprises following hardware and software.
Hardware based on the automobile engine cooling fan control system of four-phase double-wire winding brushless DC motor
As shown in Figure 1; automobile engine cooling fan control system based on four-phase double-wire winding brushless DC motor proposed by the invention mainly comprises microcontroller 2; controller power source module 1; drive circuit 3; four-phase double-wire winding brushless DC motor 4; analog signal detection circuit 5, fault secure circuit 6, communication interface circuit 7 and PC 8.The output control signal of described microcontroller 2 is connected to described motor 4 through described driver module 3, thereby motor 4 is controlled; Described analog signal detection circuit 5 connects motor 4, and motor 4 back-emf signals are detected, and analog signal detection circuit 5 is sent to microcontroller 2 with testing result then, constitutes and detects the loop; Described fault secure circuit 6 connects described analog signal detection circuit 5 and microcontroller 2, according to the related output signal of testing circuit, and operation microcontroller 2, thus system is played a protective role; Described power module 1 links to each other with microcontroller 2, and operating voltage is provided; Described microcontroller 2 connects described PC 8 by described communication module 7.Wherein, four-phase double-wire winding brushless DC motor 4 is controlling object of the present invention, and it has passed through particular design, thereby makes half-wave controlling schemes of the present invention have feasibility and reliability.Microcontroller XC866-4FR is the core of whole system, and it carries out communication by communication module 7 and PC, obtains acceleration parameter and uploads Debugging message; Microcontroller 2 is controlled above-mentioned motor 4 by linking to each other with driver module 3; Analog signal detection circuit 5 links to each other with above-mentioned motor 4, and the sampling counterelectromotive force is delivered to the ADC module of microprocessor 2 and carried out relevant treatment; Simultaneously, fault secure circuit 6 links to each other with above-mentioned analog signal detection circuit 5, by circuit design, each analog amount is monitored and is limited, and guarantees the proper functioning of system; The power supply of whole system is guaranteed by controller power source module 1, so that 12V and 5V power supply to be provided, satisfies the power supply voltage of drive circuit and microcontroller.
The hardware system of native system has following characteristics:
1, adopts four phase two-wire winding brushless DC motor without position sensor as controlling object, both satisfied automobile-used designing requirement, the incomparable advantage of other kind motors such as have simple in structure, efficient, low noise again, starting torque is big, the life-span is long.Simultaneously, needn't adopt the full-bridge control circuit to control motor, adopt half-wave circuit also can have higher torque output capability, can satisfy the torque performance requirement, therefore, greatly reduce the cost of controller, improve the reliability of inverter, also improved the efficient that motor utilizes.
2, microprocessor adopts 8 monolithic microprocessor XC866-4FR that company of Infineon releases, this chip is the automotive grade special chip, can satisfy the system requirements that the present invention is directed to automobile engine cooling fan control in proper functioning in the temperature range-40 °-125 °.
3, the fault secure circuit of system has added temperature, electric current, and speed detects link, has ensured the normal operation of system.
To describe in detail to the system hardware each several part below.
<one 〉, controlling object
Controlling object of the present invention is existing four phase direct current generators through particular design, and referring to Fig. 2, its motor stator adopts the form of two-wire winding, and it is very near that coil turn and circle lean on, and this can cause the magnetic coupling between coil on each magnetic pole.That is to say, be identical in itself in any one magnetic field that has on extremely two coils to produce.Because decoupling zero magnetic field is without any loss, so the magnetic field that is produced by a coil in essence can the energy that it is all turns back in another coil in the twin conductor.The coupling diode that uses can be protected its transistor that is associated in case high voltage also can make the energy of induced potential feed back to electrical network.Referring to Fig. 3, according to the above, just needn't adopt the full-bridge control circuit to control motor, adopt half-wave circuit also can have higher torque output capability, can satisfy the torque performance requirement, therefore, greatly reduce the cost of controller, improve the reliability of inverter, also improved the efficient that motor utilizes.
<two 〉, microprocessor 2
XC866 is the series product of high-performance 8 8-digit microcontroller XC800, examines based on the XC800 with standard 8051 processor compatibilities.Highly integrated interior device of XC866, for example sheet internal oscillator or embedded voltage regulator (thereby can by the single power supply of 3.3V or 5.0V) have therefore possessed many enhancing functions to satisfy new application.In addition, embedded flash memory (Flash) device provides very big flexibility for system development with producing in batches; Compatible ROM device provides cost-effective space for production in enormous quantities.
XC866 is automobile specified control MCU, has the characteristics of low cost, high reliability.This type MCU is 8 bit CPUs, and the automotive grade operating temperature range has powerful Processing capacity and abundant peripheral hardware.Some key properties of XC866 comprise: be used for producing pulse-width signal, have catching/comparing unit (CCU6) of Electric Machine Control dedicated mode; 10 AD conversion units (ADC) of function expansion, have as automatic scan and result add up (be used for anti-mix repeatedly filtering or the result average) etc. characteristic; The UART Universal Asynchronous Receiver Transmitter (UART) of function expansion supports local internet (LIN) to use, and the rudimentary driver of LIN is provided for many devices; Provide different battery saving modes to select, use to satisfy low power consumption; Be used to optimize the intelligent paging mechanism of Interrupt Process, expanded the address realm of the special function register (SFR) of peripheral functionality in the control strip.
Referring to Fig. 4, chip operating voltage is provided by the controller power source module; Chip 27 pins are connected with serial communication module 7 with 28 pins, with the PC communication; Pin 15,16,17,20,22,23,26 link to each other with analog signal detection module 5 respectively, are used for sample detecting four phase counterelectromotive force, speed, temperature and voltage; Pin 32,33,34,35 link to each other with driver module 3, are used for the operation of PWM drive controlling four phase motors; Pin 9,10,30 link to each other with fault secure circuit 6 respectively, thus the normal operation work of protective system.Pin 12,14,13,2 join with four light emitting diodes respectively, play the indicative function of debugging or display system proper functioning.
<three 〉, the power module 1 of controller
Controller MCU employing+5V power supply voltage level.Consider that the system works temperature range is higher, adopt the power supply chip TIE4266-5V of Infineon as the system digits power supply chip, referring to Fig. 5.Power circuit be input as controller primary power supply+12V, from storage battery.Be output as+5V, provide the main control MCU of system and digital-to-analog circuit to use, specified output loading is 200mA.
<four 〉, communication module 7
Communication module 7 main being responsible for of controller are carried out communication contact with upper PC, accept the rotary speed instruction from upper-position unit when carrying out program burn writing download and actual experiment operation.The Communication Control chip adopts MAX3221 serial communication controlling chip, referring to Fig. 6.
<five 〉, driver module 3
According to the performance requirement that the user provides, rated current is 40A.Therefore, the device for power switching that system's main circuit adopts is the IRF2807N channel mosfet of IR company, and maximum operating currenbt can reach 70A.Operating voltage is that 70V satisfies this system's control requirement fully.Driving parameter and main circuit structure characteristics according to this MOSFET, we select the special-purpose MOSFET driving chip IR4426 of two IR companies to constitute the power driving circuit of controller, referring to Fig. 7, its high level is output as+15V, low level is exported 0V, can realize the driving effect of low power consumption, two-forty.
<six 〉, fault secure circuit 6
Carry out self-protection for making controller be in abnormal conditions, designed following protective function from hardware point of view: overcurrent (short circuit) protection, temperature protection, CPU abnormal protection in system.
Referring to Figure 10, temperature transducer adopts the DS600 temperature transducer of MAXIUM company can work in the high-temperature scope, has higher resolution.After the sensor conversion, the voltage signal of representation temperature will be transfused to MCU analog-to-digital conversion passage.Whether MCU is in temperature according to the inner setting judgement system is crossed high state, thereby triggers the too high protection of temperature.Inside temperature protection setting value is-40~+ 125 degree Celsius.
Referring to Fig. 8 and Fig. 9, over-current protection circuit mainly adopts current Hall sensors A CS755, and measuring range is 0-50A, the operating temperature range with broad of can working, and the power circuit design has been simplified in employing+5V power supply greatly.Referring to Fig. 8, its current detecting is output as voltage signal.This signal is sent into over-current protection circuit LM393.When this voltage surpasses circuit protection circuit setting value, comparator will be realized upset, trigger overcurrent (short circuit) protection.Current detection signal will be admitted to MCU analog-digital converter passage simultaneously.
Referring to Fig. 7 and Fig. 8, fault secure circuit is subjected to fault trigger after with the output low level trouble signal, to block PWM output, realize the inverter protection.The simultaneous faults signal also will be sent to MCU.Fault secure circuit is realized auto-lock function, and needing MCU to differentiate back output fault reset signal could reset fault secure circuit.
<seven 〉, the analog signal detection circuit 5
Analogue signal inputs such as the analog signal detection circuit mainly is responsible for detecting the winding back-emf, and dc voltage, DC side electric current, temperature and potentiometer are given, referring to Fig. 9, Figure 10.For back-emf signal and dc voltage signal, by resistor voltage divider circuit with tested voltage transitions to 0-+5V input MCU analog-to-digital conversion passage.
Software design based on the automobile engine cooling fan control system of four-phase double-wire winding brushless DC motor:
The automobile engine cooling fan controller firmware is under windows XP operation system, adopt Keil uVision3 to programme, language mainly adopts the C language, utilizes DAvE software that the related register of main control chip XC866-4FR is configured simultaneously, plays the aided programming effect.
Aspect software algorithm, the present invention adopts the back electromotive force zero-crossing detection method to be used for detecting the position of motor rotor in service.This method is when the brushless direct current motor steady-state operation, ignore under the prerequisite of armature reaction, obtain the key position signal of p-m rotor by detecting the Zero Crossing Point that turn-offs the phase counterelectromotive force, thereby can control the switching of winding current, realize the running of motor.On the other hand, for starting algorithm, the present invention adopts direct startup and acceleration, and then switches to the electric motor starting mode of no sensing operation.
Program circuit in firmware at first, carries out initialization to each module of software systems as shown in figure 11, comprising: the IO port module, and UART serial communication module, the ADC sampling keeps module and CCU6 motor control module.Wherein, for two timer T12 of CCU6, T13 also carries out initialization.Then, drive motor one phase in main program begins to quicken to motor simultaneously, and accelerating process is mainly finished in the T13 of CCU6 interrupts, and by the continuous minimizing commutation time, reaches the effect that raising frequency quickens.Meanwhile, set ADC and interrupt, in breaking therein, constantly judge whether effectively zero passage of counterelectromotive force for passage interrupts.In case determine effective zero passage, then switch to no sensing motor normal operation mode.The timer T12 of CCU6 mainly provides the PWM modulation of drive motor, by the acceleration and deceleration information transmission that PORT COM obtains PC, adjusts motor speed.Another effect that ADC interrupts is exactly to arrive the next retard time between the commutation after calculating the counterelectromotive force zero passage.This software is by twice effective counterelectromotive force zero-crossing timing of intercepting, thereby calculates commutation accurately retard time, and gives timer T13 among the CCU6 value of this retard time, moves thereby finish the motor commutation in the interrupt routine of T13.
Since adopt the half-wave controlling schemes, the whole procedure clear logic, and the commutation order is clear and definite, and the system that makes has reached the operating condition of expection.