Motor control device
10284054 ยท 2019-05-07
Assignee
Inventors
Cpc classification
H02K11/215
ELECTRICITY
H02K29/12
ELECTRICITY
International classification
Abstract
A motor control device is provided that enables smooth rotation control from a low-speed region to a high-speed region. A microcomputer of the motor control device calculates the rotation speed of a rotor from the time between edges that appear per 60 electrical angle at the time of starting the motor, from a signal that is output when a the hall sensor detects the magnetic field of a rotating rotor and, in conjunction with an increase in the rotation speed of the rotor, calculates the rotation speed of a rotor from the time between edges that appear at electrical angles that are larger than the electrical angle 60 in the signal, per 180 electrical angle, per 360 electrical angle, per 900 electrical angle, and per 1800 electrical angle.
Claims
1. A motor control device, comprising: a magnetic field detection section that detects a magnetic field of a permanent magnet rotating together with an output shaft of a motor, and that outputs a signal which is a rectangular wave in which an edge appears per a predetermined number of degrees of electrical angle in accordance with a change in the magnetic field; and a control section that calculates a rotation speed of the output shaft; wherein in a case in which the rotation speed of the output shaft calculated by the control section is less than a first rotation speed, the control section calculates the rotation speed of the output shaft based on a time between edges that appear in said signal per the predetermined number of degrees of electrical angle, in a case in which the rotation speed of the output shaft calculated by the control section is more than or equal to the first rotation speed and less than a second rotation speed, the control section calculates the rotation speed of the output shaft based on a time between edges that appear in said signal per a first electrical angle which is larger than the predetermined number of degrees of electrical angle, the first electrical angle being obtained on the basis of counting of the edge appearing per the predetermined number of degrees of electrical angle in said signal a predetermined first time, and in a case in which the rotation speed of the output shaft calculated by the control section is more than or equal to the second rotation speed, the control section calculates the rotation speed of the output shaft based on a time between edges that appear in said signal per a second electrical angle which is larger than the first electrical angle, the second electrical angle being obtained on the basis of counting of the edge appearing per the predetermined number of degrees of electrical angle in said signal a predetermined second time larger than the predetermined first time.
2. The motor control device of claim 1, wherein the second electrical angle is an electrical angle that corresponds to one rotation of the output shaft, and the first electrical angle has a size that is between the predetermined number of degrees of electrical angle and the second electrical angle.
3. The motor control device of claim 2, wherein the first electrical angle has a size that is an integral multiple of the predetermined number of degrees of electrical angle.
4. The motor control device of claim 1, wherein: the motor is a brushless DC motor, and three of the magnetic field detection sections are provided, respectively corresponding to a U phase, a V phase and a W phase of the brushless DC motor.
5. The motor control device of claim 2, wherein: the motor is a brushless DC motor, and three of the magnetic field detection sections are provided, respectively corresponding to a U phase, a V phase and a W phase of the brushless DC motor.
6. The motor control device of claim 3, wherein: the motor is a brushless DC motor, and three of the magnetic field detection sections are provided, respectively corresponding to a U phase, a V phase and a W phase of the brushless DC motor.
7. The motor control device of claim 1, wherein the control section calculates the rotation speed of the output shaft based on a time between edges that appear in said signal per larger number of degrees of electrical angle stepwisely as the rotation speed of the output shaft increases.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) Exemplary embodiments of the invention will be described in detail with reference to the following figures, wherein:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
DETAILED DESCRIPTION
(10)
(11) The motor unit 10 according to the present exemplary embodiment relates to a three-phase motor with an outer rotor structure in which a rotor 12 is provided at an outer side of a stator 14. The stator 14 is an electromagnet having conductive wire wound around a core member, and is configured by the three phases of a U phase, a V phase and a W phase. The U phase, V phase and W phase of the stator 14 respectively generate a revolving magnetic field as a result of the polarity of the magnetic field generated by the electromagnet being switched by the control of motor control device 20, as described below.
(12) Rotor magnets (not shown in the drawings) are provided inside the rotor 12, and the rotor magnets cause the rotor 12 to rotate by corresponding to the revolving magnetic field generated at the stator 14. A shaft 16 is provided at the rotor 12 and rotates integrally with the rotor 12. While not shown in
(13) The stator 14 is mounted at the motor control device 20 via an upper case 18. The motor control device 20 is provided with a substrate 22 of the motor control device 20 and with a heat sink 24, which diffuses heat generated from elements on the substrate 22. A lower case 60 is attached to the motor unit 10, which is configured to include the rotor 12, the stator 14 and the motor control device 20.
(14)
(15) The respective drains of the inverter FETs 44A, 44B, 44C are connected to the positive pole of a vehicle mounted-battery 80 via a choke coil 46 for noise reduction. Further, the respective sources of the inverter FETs 44D, 44E, 44F are connected to the negative pole of a battery 80 via a reverse connection prevention FET 48.
(16) In the exemplary present embodiment, a hall sensor 12B detects the magnetic field of a sensor magnet or the rotor magnet 12A mounted coaxially with the shaft 16. A microcomputer 32 detects the rotation speed and position (rotary position) of the rotor 12 based on the magnetic field detected by the hall sensor 12B, and performs control of the switching of the inverter circuit 40 in accordance with the rotation speed and the rotary position of the rotor 12. In addition, while not shown in
(17) The microcomputer 32 is input with control signals that include a speed command value related to the rotation speed of the rotor 12, from an air conditioner ECU 82, which controls the air conditioning in accordance with switch operation of the air conditioner. Further, a voltage divider circuit 54, which is configured by a thermistor 54A and a resistor 54B, and a current sensor 56, which is provided between inverter the circuit 40 and the negative pole of the battery 80, are connected to the microcomputer 32.
(18) Since the resistance value of the thermistor 54A, which configures the voltage divider circuit 54, changes in accordance with the temperature of the substrate 22 of the circuit, the voltage of the signal output by the voltage divider circuit 54 changes in accordance with the temperature of the substrate 22. The microcomputer 32 calculates the temperature of the substrate 22 based on changes in the voltage of the signal output from the voltage divider circuit 54. In the present exemplary embodiment, for convenience, the signal output from the voltage divider circuit 54 is taken to be a signal based on detection results of the thermistor 54A. Further, in the present exemplary embodiment, the temperature of the substrate 22 of the circuit calculated based on detection results of the thermistor 54A is taken to be the temperature of the substrate 22 of the circuit detected by the thermistor 54A.
(19) The current sensor 56 has, for example, a shunt resistor 56A and an amplifier 56B, which amplifies the potential difference of both ends of the shunt resistor 56A. The microcomputer 32 calculates the current of the inverter circuit 40 based on a signal output by the amplifier 56B.
(20) In the present exemplary embodiment, the signal from the thermistor 54A, the signal output by the current sensor 56, and the signal output by the hall sensor 12B are input to a temperature protection control unit 62 inside the microcomputer 32. The temperature protection control unit 62 calculates the temperature of the elements of the substrate 22, the current of the inverter circuit 40, the rotation speed of the rotor 12, and the like based on the respective input signals. Further, the battery 80, which is a power source, is connected to the temperature protection control unit 62, and the temperature protection control unit 62 detects the voltage of the battery 80 as the power source voltage.
(21) The control signal from the air conditioner ECU 82 is input to the speed control unit 64 inside the microcomputer 32. The speed control unit 64 is also input with a signal output by the hall sensor 12B. The speed control unit 64 calculates a duty ratio for Pulse Width Modulation (PWM) control related to control of the switching of the inverter circuit 40, based on the control signal from air conditioner ECU 82 and the rotation speed and the rotary position of the rotor 12 based on the signal from the hall sensor 12B.
(22) A signal indicating the duty ratio calculated by the speed control unit 64 is input to the PWM output unit 66 and to the temperature protection control unit 62. The temperature protection control unit 62 corrects the duty ratio calculated by the speed control unit 64 based on the temperature of the substrate 22, the rotation speed of the rotor 12 and the load of the circuit of the motor control device 20, and feeds it back to the speed control unit 64. The load on the circuit is, for example, the duty ratio of the voltage generated by the inverter circuit 40, the current of inverter circuit 40, or the power source voltage. In the present exemplary embodiment, the duty ratio of the voltage produced by the inverter circuit 40 is the same as the duty ratio of the voltage that the inverter circuit 40 is caused to produce by the PWM output unit 66. As shown in
(23) Further, a memory 68, which is a storage device, is connected to the temperature protection control unit 62. Programs and the like related to calculation of the rotation speed of the rotor 12, for example, are stored at the memory 68.
(24) The speed control unit 64 feeds back the correction made by the temperature protection control unit 62 to the duty ratio that it calculated itself by means, for example, of a Proportional Integral Controller (PI Controller), and outputs a signal, indicating the duty ratio that has been subjected to this feedback, to the PWM output unit 66. The PWM output unit 66 controls the switching of the inverter circuit 40 so as to produce the voltage of the duty ratio indicated by the input signal.
(25)
(26) Since the rotor magnet 12A has six poles in the case of
(27) Further, as an example, rotation speed N1 is 400 rpm, rotation speed N2 is 650 rpm, rotation speed N3 is 1300 rpm and rotation speed N4 is 2500 rpm.
(28)
(29)
(30) Since the rotor magnet 12C has ten poles, the electrical angle is 900 when the rotor 12 performs a half-rotation and the electrical angle is 1800 when the rotor 12 performs one rotation.
(31) Further, as an example, rotation speed N1 is 250 rpm, rotation speed N2 is 400 rpm, rotation speed N3 is 800 rpm and rotation speed N4 is 1500 rpm.
(32)
(33) The upper level of
(34) Further, since, as described above, the hall sensor U, the hall sensor V and the hall sensor W are respectively mounted at intervals of 120 around the output axis of the rotor 12, the phase of the signal output by the hall sensor W is delayed by 120 with respect to the signal output by the hall sensor U. Further, the phase of the signal output by the hall sensor V is delayed by 120 with respect to the signal output by the hall sensor W.
(35) When sampling signals for rotation speed calculation per 60 electrical angle, edges that are separated at an interval of an electrical angle of 60 are detected in the signals output by each of the hall sensor U, the hall sensor V and the hall sensor W. In
(36) In
(37) When sampling signals for rotation speed calculation per 180 electrical angle, as shown in
(38) Further, as described above, an electrical angle of 60 is the minimum unit of the interval between the edges that appear in the signals output by each of the hall sensor U, the hall sensor V and the hall sensor W, and the above described electrical angle of 180, electrical angle of 360, electrical angle of 900, and electrical angle of 1800 are each integral multiples of the predetermined electrical angle of 60.
(39) The rotation speed of the rotor 12 is calculated from the time between edges detected by the sampling. For example, in the case of sampling signals (edges) for rotation speed calculation per 60 electrical angle, rotation speed N (rpm) of the rotor 12 is calculated by using the following Equation (1), from electrical angle 60 time (s (second)), which is the time between edges that are separated by an electrical angle of 60.
N=60/(electrical angle 60 time30)(1)
(40) Since the rotor magnet 12C has ten poles, when the electrical angle 60 time is multiplied by 30, the time required for the rotor 12 to make one rotation can be calculated in units of seconds. Further, since one minute is sixty seconds, the quotient obtained by dividing 60 by the time required for the rotor 12 to make one rotation is the rotation speed (rpm) of the rotor 12.
(41) In the case of sampling signals for rotation speed calculation per 180 electrical angle, rotation speed N (rpm) of the rotor 12 is calculated by using the following Equation (2), from electrical angle 180 time (s), which is the time between edges that are separated by an electrical angle of 180.
N=60/(electrical angle 180 time10)(2)
(42) In the case of sampling signals for rotation speed calculation per 360 electrical angle, rotation speed N (rpm) of the rotor 12 is calculated by using the following Equation (3), from electrical angle 360 time (s), which is the time between edges that are separated by an electrical angle of 360.
N=60/(electrical angle 360 time5)(3)
(43) In the case of sampling signals for rotation speed calculation per 900 electrical angle, rotation speed N (rpm) of the rotor 12 is calculated by using the following Equation (4), from electrical angle 900 time (s), which is the time between edges that are separated by an electrical angle of 900.
N=60/(electrical angle 900 time2)(4)
(44) In the case of sampling signals for rotation speed calculation per 1800 electrical angle, rotation speed N (rpm) of the rotor 12 is calculated by using the following Equation (5), from electrical angle 1800 time (s), which is the time between edges that are separated by an electrical angle of 1800.
N=60/(electrical angle 1800 time)(5)
(45)
(46)
(47) Electrical angle 180 time T.sub.180 is calculated, using a timer B1 which is reset per three counts of the edge count, by counting the base clock until three counts of the edge count after the reset. The resetting of timer B1 and the starting of counting after the reset are performed by interrupt processing. In the present exemplary embodiment, when calculating electrical angle 180 time T.sub.180, a program is set so as to generate an interrupt event per three counts of the edge count.
(48) Electrical angle 360 time T.sub.360 is calculated, using a timer B2 which is reset per six counts of the edge count, by counting the base clock until six counts of the edge count after the reset. In the present exemplary embodiment, when calculating electrical angle 360 time T.sub.360, a program is set so as to generate an interrupt event per six counts of the edge count.
(49) Electrical angle 900 time T.sub.900 is calculated, using a timer B3 which is reset per fifteen counts of the edge count, by counting the base clock until fifteen counts of the edge count after the reset. In the present exemplary embodiment, when calculating electrical angle 900 time T.sub.900, a program is set so as to generate an interrupt event per fifteen counts of the edge count.
(50) While not shown in
(51) Above, electrical angle 180 time T.sub.180, electrical angle 360 time T.sub.360, electrical angle 900 time T.sub.900, and electrical angle 1800 time T.sub.1800 are calculated using different timers to the timer A, which is used in the calculation of electrical angle 60 time T.sub.60. However, electrical angle 180 time T.sub.180, electrical angle 360 time T.sub.360, electrical angle 900 time T.sub.900, and electrical angle 1800 time T.sub.1800 may be calculated by adding up multiples of the electrical angle 60 time T.sub.60 calculated using timer A.
(52) For example, electrical angle 180 time T.sub.180 is calculated by adding three of electrical angle 60 time T.sub.60, electrical angle 360 time T.sub.360 by adding six of electrical angle 60 time T.sub.60, electrical angle 900 time T.sub.900 by adding fifteen of electrical angle 60 time T.sub.60, and electrical angle 1800 time T.sub.1800 by adding thirty of electrical angle 60 time T.sub.60.
(53)
(54) In a case of a negative determination in the step 800, in a step 804 it is determined whether or not the motor rotation speed N is less than N2 shown in
(55) In a case of a negative determination in the step 804, in a step 808 it is determined whether or not the motor rotation speed N is less than N3 shown in
(56) In a case of a negative determination in the step 808, in a step 812 it is determined whether or not the motor rotation speed N is less than N4 shown in
(57) As explained in the foregoing, in the present exemplary embodiment, the rotation speed of a motor can be accurately calculated by increasing the size of cycles for sampling edges from signals output by the hall sensors, according to increase in the motor rotation speed. As a result, it becomes possible to appropriately perform motor rotation control using a PI controller or the like, and smooth rotation control is enabled from a low-speed region to a high-speed region.