Method of controlling a brushless DC motor
11356042 · 2022-06-07
Assignee
Inventors
Cpc classification
H02P6/08
ELECTRICITY
H02P6/153
ELECTRICITY
International classification
Abstract
A method of controlling the commutation of a brushless direct current motor includes providing sensors which provide a variable output dependent on rotational angle or the relative position of the stator and rotor of the motor. Output from the sensors is sampled at a time between a past commutation event and the next commutation event to be implemented. An angular position between the rotor and stator is determined at the time. The time of the next commutation event is determined based on the next commutation angle, motor speed, and the determined angular position.
Claims
1. A method of controlling commutation of a brushless direct current motor, said method comprising: providing one or more sensors, said one or more sensors being adapted to provide a variable output dependent on a rotational angle of the brushless direct current motor or a relative position of a stator and a rotor of the brushless direct current motor; sampling the variable output from said one or more sensors at a known time t.sub.n between a past commutation event C.sub.m-1 and a next commutation event C.sub.m to be implemented; determining, based on the sampling, an angular position α.sub.n between the rotor and the stator at the known time t.sub.n; determining a time T.sub.m of the next commutation event C.sub.m based on said known time t.sub.n, an estimated instantaneous motor speed ω at the known time t.sub.n, and the angular position α.sub.n; and providing the time T.sub.m of the next commutation event C.sub.m to a hardware timer to provide the next commutation event C.sub.m at time T.sub.m.
2. The method as claimed in claim 1, wherein the determining the time T.sub.m is further based on a next commutation angle C.sub.m,angle.
3. The method as claimed in claim 1, wherein the time T.sub.m is determined from the equation:
T.sub.m=t.sub.n+(C.sub.m,angle−α.sub.n)/ω where C.sub.m,angle is an angle of the next commutation event C.sub.m.
4. The method as claimed in claim 1, wherein the estimated instantaneous motor speed ω of the brushless direct current motor is determined by determining an angular change in rotation of the brushless direct current motor from the sampled variable output of the one or more sensors at known time t.sub.n and at a time t.sub.n-1 of past commutation event C.sub.m-1.
5. The method as claimed in claim 1, where the estimated instantaneous motor speed ω of the brushless direct current motor is determined from a model of the brushless direct current motor.
6. The method as claimed in claim 1, wherein: the time T.sub.m is determined from the equation:
T.sub.m=t.sub.n+(C.sub.m,angle−α.sub.n)/ω where C.sub.m,angle is an angle of the next commutation event C.sub.m; and the estimated instantaneous motor speed ω of the brushless direct current motor is determined by determining an angular change in rotation of the brushless direct current motor from the sampled variable output of the one or more sensors at known time t.sub.n and at a time t.sub.n-1 of past commutation event C.sub.m-1.
7. A method comprising, performing, by a controller, operations including: receiving a signal from a sensor configured to sense a position of a rotor of a brushless direct current motor; providing a timestamp with the received signal indicating a time the position of the rotor was sensed; determining an angular position of the rotor at the time of the timestamp, based on the received signal; estimating a rotation speed of the rotor at the time of the timestamp, based on the determined angular position of the rotor at the time of the timestamp and a previously determined angular position of the rotor at a previous time; determining a next time for a next change of a commutation of the brushless direct current motor, based on the time of the timestamp, the determined angular position of the rotor, and the estimated rotation speed of the rotor; providing the determined next time for the next change of the commutation to a hardware timer of the controller; and controlling the next change of the commutation of the brushless direct current motor based on an output of the hardware timer according to the determined next time.
8. An apparatus comprising a controller configured to: receive a signal from a sensor configured to sense a position of a rotor of a brushless direct current motor; provide a timestamp with the received signal indicating a time the position of the rotor was sensed; determine an angular position of the rotor at the time of the timestamp, based on the received signal; estimate a rotation speed of the rotor at the time of the timestamp, based on the determined angular position of the rotor at the time of the timestamp and a previously determined angular position of the rotor at a previous time; determine a next time for a next change of a commutation of the brushless direct current motor, based on the time of the timestamp, the determined angular position of the rotor, and the estimated rotation speed of the rotor; provide the determined next time for the next change of the commutation to a hardware timer of the controller; and control the next change of the commutation of the brushless direct current motor based on an output of the hardware timer according to the determined next time.
9. The apparatus of claim 8, wherein the controller further comprises: an analog to digital converter configured to receive the signal from the sensor in analog form, convert the received signal to a digital signal, and generate the timestamp.
10. The apparatus of claim 9, wherein the controller further comprises: a position signal and commutation processor configured to receive the digital signal and timestamp from the analog to digital converter, and determine the next time for the next change of the commutation of the brushless direct current motor.
11. The apparatus of claim 10, wherein the position signal and commutation processor is further configured to receive external parameters to increase a precision of the determination.
12. The apparatus of claim 10, wherein the hardware timer of the controller is configured to receive the determined next time for the next change of the commutation of the brushless direct current motor from the position signal and commutation processor, and generate an event at the determined next time.
13. The apparatus of claim 12, wherein the controller further comprises an inverter logic block configured to receive the generated event from the hardware timer, and provide a commutation control signal to an inverter for a next commutation table entry to control the next change of the commutation of the brushless direct current motor.
14. The apparatus of claim 13, wherein the inverter logic block is further configured to receive the timestamp from the position signal and commutation processor.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The present invention is now described by way of example with reference to the accompanying drawings in which:
(2)
(3)
(4)
(5)
DESCRIPTION OF THE PREFERRED EMBODIMENTS
(6) The present invention provides a method to control BDC motors using simple linear sensors whilst but achieving optimal commutation timing.
(7)
(8) In block commutation, the commutation pattern changes at every block commutation event, in order to change the direction of the stator induced magnetic field. A high timing precision of the commutation event is required. Many angular sensors provide magnetic field raw values requiring signal post processing in order to determine the correct angular position. This processing takes time, making the determination of the commutation event imprecise. As the A/D conversion is on a typical A/D converter is not continuous there is also an undesirable time discretization leading to further error. In addition, scheduling jitter may heavily affect the time precision of the commutation event at high motor speeds. Impacts are torque ripple and lower efficiency.
(9)
(10) Aspects of the invention provide methodology to optimize timing precision of the commutation event in a very cost efficient way. In other aspects, the methodology may be implemented using microcontroller hardware.
(11)
(12) The converted values of the analog signals are shown by reference 14a and the timestamp of the sampling event 14b are provided to the position signal processing logics 15a and commutation logic 15b. The output of commutation logic 15 b is a timestamp 17 which is input to program a hardware timer 19 to provide an event 110 at T.sub.m. Based on this event the inverter logic block 111 is provides commutation control signals to the inverter for the next commutation table entry (either in hardware or via interrupt or DMA). The problem of jitter and meeting the high precision timing of the block commutation event is solved by using the hardware timer module. A time stamp is sent to the commutation controller/inverter logic block 111 from block 15a/15b.
(13) The precision problem of the position and speed estimation due to runtime and processing delays (especially at high motor speeds) is solved by doing processing and calculations in a time-based fashion on the processing sensor data at a (relative) known time in the past. From signal data and past commutation data provided at a previous times (e.g. with a corresponding, known times/time-stamps) the next commutation timing/event is determined.
(14) The time stamp based calculation allows in addition lowering the CPU load at high speeds, because processing time and commutation angle error are uncorrelated.
EXAMPLE 1
(15) Methodology of aspects of the invention will now be described with reference to
(16) The sensor outputs from one or more sensors are sampled at a time t.sub.n, to determine the angular position at the corresponding time-point e.g. α.sub.n. So in other words, the position signal is used (e.g. by logic circuitry) to computes the measured actual motor position α.sub.n (see
(17) The motor (angular) speed is also estimated. This may be based on one or more older timestamp position pairs α.sub.n-1/t.sub.n-1 and/or modeling of the system. So for example the speed of the motor w can be determined from the equation (α.sub.n−α.sub.n-1)/(t.sub.n−t.sub.n-1)
(18) To determine the next desired commutation event/time Tm for the next commutation (C.sub.m), the method calculates the commutation time T.sub.m based on the past measured position α.sub.n, the timestamp t.sub.n of that past position and the instantaneous speed ω of the motor.
(19) In the hardware, the timestamp may be is used to program a hardware timer 19 to provide an event 10 at T.sub.m.
(20) Based on this event the inverter is reconfigured e.g. in block 110 of
(21) So in summary, the next commutation event is (T.sub.m) is a function of t.sub.n, α.sub.n, and ω.
(22) The time of the next commutation event Tm may be
T.sub.m=t.sub.n+(C.sub.m,angle−αn)/ω
where C.sub.m,angle is the next commutation angle.
(23) Of course, the skilled person would be readily aware of other methods or variation which use these basic parameters to determine the timing of the next commutation even.
(24) Extrapolation methodology may optionally be enhanced to compensate for acceleration (measured or estimated based on a model):
(25)
where A(M) is the acceleration derived from the model M
(26) External parameters parameters 16 may be input to block 15a/15b in
(27) If necessary the timestamps may need to be converted between the A/D converter and event timer domains. For this invention no common hardware timer is needed between the event generation and the A/D converter—both timers may in practice run at different clock and have an offset. For the same commutation event T.sub.m the hardware timer value may be updated several times in order to increase accuracy.