Motor control
Abstract
According to some embodiments, a motor controller for controlling a motor includes a position interface configured to receive a motor position signal indicative of a position of the motor, and a pulse width modulation (PWM) unit configured to generate a PWM signal for driving the motor. An angle and speed unit is configured to determine a speed and a position of the motor based on transitions in the motor position signal, wherein transition intervals are defined between the transitions, determine a PWM count of cycles in the PWM signal during a first transition interval of the transition intervals, and update the position of the motor during a second transition interval of the transition intervals based on the PWM count to generate an updated position. A controller is configured to send a control signal for controlling the motor to the PWM unit based on the speed and the updated position.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 1 · Forward citations: 0.
Claims (20 — 3 Independent, 17 Dependent)
- Claim 1Independent Claim
A method for controlling a motor comprising: generating a pulse width modulation (PWM) signal for driving the motor; determining a position of the motor based on transitions in a motor position signal, wherein transition intervals are defined between the transitions; determining a PWM count of cycles in the PWM signal during a first transition interval of the transition intervals; updating the position of the motor during a second transition interval of the transition intervals based on the PWM count to generate an updated position; and controlling the motor based on the updated position.
- Claim 2Depends on #1
The method of claim 1, comprising: determining a position change per PWM cycle metric based on the PWM count and a known position change between the transitions, and updating the position of the motor during one or more transition intervals of the transition intervals based on the position change per PWM cycle metric.
- Claim 3Depends on #2
The method of claim 2, comprising: averaging the position change per PWM cycle metric over multiple transitions to generate an average position change per PWM cycle metric, wherein: updating the position of the motor during the one or more transition intervals is based upon the average position change per PWM cycle metric.
- Claim 4Depends on #1
The method of claim 1, wherein: the motor position signal comprises first encoder pulses and second encoder pulses; and the transitions comprise at least one of rising or falling edges of the first encoder pulses or rising or falling edges of the second encoder pulses.
- Claim 5Depends on #1
The method of claim 1, comprising: executing a transition interrupt service routine responsive to detecting a first transition in the motor position signal; and executing a PWM interrupt service routine responsive to a PWM cycle in the PWM signal, wherein: executing the transition interrupt service routine comprises: determining a position change per PWM cycle metric based on the PWM count and a known position change between the transitions; and setting a transition interrupt flag; and executing the PWM interrupt service routine comprises: responsive to the transition interrupt flag being set, updating the position of the motor based on the first transition and clearing the transition interrupt flag; and responsive to the transition interrupt flag not being set, updating the motor position based on the position change per PWM cycle metric.
- Claim 6Depends on #5
The method of claim 5, comprising: determining a motor speed based on a time interval between at least some of the transitions in the motor position signal, wherein executing the transition interrupt service routine comprises: resetting the time interval to a value corresponding to a minimum motor speed responsive to the time interval being greater than a threshold.
- Claim 7Depends on #5
The method of claim 5, comprising: determining a motor speed based on a time interval between at least some of the transitions in the motor position signal, wherein executing the PWM interrupt service routine comprises: resetting the time interval to a value corresponding to a minimum motor speed responsive to the PWM count being greater than a threshold.
- Claim 8Depends on #1
The method of claim 1, comprising: determining a motor speed based on a time interval between at least some of the transitions in the motor position signal; and setting the motor speed to zero responsive to the PWM count being greater than a threshold.
- Claim 9Independent Claim
A motor controller for controlling a motor comprising: a position interface configured to receive a motor position signal indicative of a position of the motor; a pulse width modulation (PWM) unit configured to generate a PWM signal for driving the motor; an angle and speed unit configured to: determine a speed and a position of the motor based on transitions in the motor position signal, wherein transition intervals are defined between the transitions; determine a PWM count of cycles in the PWM signal during a first transition interval of the transition intervals; and update the position of the motor during a second transition interval of the transition intervals based on the PWM count to generate an updated position; and a controller configured to send a control signal for controlling the motor to the PWM unit based on the speed and the updated position.
- Claim 10Depends on #9
The motor controller of claim 9, wherein the angle and speed unit is configured to: determine a position change per PWM cycle metric based on the PWM count and a known position change between the transitions; and update the position of the motor during one or more transition intervals of the transition intervals based on the position change per PWM cycle metric.
- Claim 11Depends on #10
The motor controller of claim 10, wherein the angle and speed unit is configured to: average the position change per PWM cycle metric over multiple transitions to generate an average position change per PWM cycle metric, and update the position of the motor during the one or more transition intervals based upon the average position change per PWM cycle metric.
- Claim 12Depends on #9
The motor controller of claim 9, wherein: the motor position signal comprises first encoder pulses and second encoder pulses; and the transitions comprise at least one of rising or falling edges of the first encoder pulses or rising or falling edges of the second encoder pulses.
- Claim 13Depends on #9
The motor controller of claim 9, comprising: a processing unit configured to execute a transition interrupt service routine responsive to detecting a first transition in the motor position signal and execute a PWM interrupt service routine responsive to a PWM cycle in the PWM signal, wherein: the processing unit is configured to execute the transition interrupt service routine to: determine a position change per PWM cycle metric based on the PWM count and a known position change between the transitions; and set a transition interrupt flag; and the processing unit is configured to execute the PWM interrupt service routine to: responsive to the transition interrupt flag being set, update the position of the motor based on the first transition and clearing the transition interrupt flag; and responsive to the transition interrupt flag not being set, update the motor position based on the position change per PWM cycle metric.
- Claim 14Depends on #13
The motor controller of claim 13, wherein: the angle and speed unit is configured to determine a motor speed based on a time interval between at least some of the transitions in the motor position signal; and the processing unit is configured to execute the transition interrupt service routine to: reset the time interval to a value corresponding to a minimum motor speed responsive to the time interval being greater than a threshold.
- Claim 15Depends on #13
The motor controller of claim 13, wherein: the angle and speed unit is configured to determine a motor speed based on a time interval between at least some of the transitions in the motor position signal; and the processing unit is configured to execute the PWM interrupt service routine to: reset the time interval to a value corresponding to a minimum motor speed responsive to the PWM count being greater than a threshold.
- Claim 16Independent Claim
A system, comprising: a motor; an angle sensor interfacing with the motor to generate pulses indicative of a position of the motor; a motor controller, comprising: a position interface configured to receive the pulses; a pulse width modulation (PWM) unit configured to generate a PWM signal for driving the motor; an angle and speed unit configured to: determine a speed and a position of the motor based on transitions in the pulses, wherein transition intervals are defined between the transitions; determine a PWM count of cycles in the PWM signal during a first transition interval of the transition intervals; and update the position of the motor during a second transition interval of the transition intervals based on the PWM count to generate an updated position; and a controller configured to send a control signal for controlling the motor to the PWM unit based on the speed and the updated position.
- Claim 17Depends on #16
The system of claim 16, wherein the angle and speed unit is configured to: determine a position change per PWM cycle metric based on the PWM count and a known position change between the transitions; and update the position of the motor during one or more transition intervals of the transition intervals based on the position change per PWM cycle metric.
- Claim 18Depends on #16
The system of claim 16, comprising: a processing unit configured to execute a transition interrupt service routine responsive to detecting a first transition in the pulses and execute a PWM interrupt service routine responsive to a PWM cycle in the PWM signal, wherein: the processing unit is configured to execute the transition interrupt service routine to: determine a position change per PWM cycle metric based on the PWM count and a known position change between the transitions; and set a transition interrupt flag; and the processing unit is configured to execute the PWM interrupt service routine to: responsive to the transition interrupt flag being set, update the position of the motor based on the first transition and clearing the transition interrupt flag; and responsive to the transition interrupt flag not being set, update the motor position based on the position change per PWM cycle metric.
- Claim 19Depends on #18
The system of claim 18, wherein: the angle and speed unit is configured to determine a motor speed based on the transitions in the pulses; and the processing unit is configured to execute the transition interrupt service routine to: determine a time interval between at least some of the transitions in the pulses; and reset the motor speed to a minimum speed setting responsive to the time interval being greater than a threshold.
- Claim 20Depends on #18
The system of claim 18, wherein: the angle and speed unit is configured to determine a motor speed based on the transitions in the pulses; and the processing unit is configured to execute the PWM interrupt service routine to: reset the motor speed to a minimum speed setting responsive to the PWM count being greater than a threshold.
Technical Overview & Description
TECHNICAL FIELD The present disclosure relates generally to motor control. BACKGROUND Permanent Magnet Synchronous Motors (PMSMs) are employed in consumer and industrial motor applications due to their higher reliability and smaller size compared to other types of motors. To achieve high efficiency and low vibration and acoustic noise, Field-Oriented Control (FOC) techniques are often used in consumer and industrial PMSM control for cordless power tools, automated guided robots, cordless gardening tools, eBikes, drones, robotics, fans, pumps, compressors, geared motors, and the like. SUMMARY This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key factors or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. According to some embodiments, a method for controlling a motor comprises generating a pulse width modulation (PWM) signal for driving the motor, determining a position of the motor based on transitions in a motor position signal, wherein transition intervals are defined between the transitions, determining a PWM count of cycles in the PWM signal during a first transition interval of the transition intervals, updating the position of the motor during a second transition interval of the transition intervals based on the PWM count to generate an updated position, and controlling the motor based on the updated position. According to some embodiments, a system for controlling a motor comprises means for generating a pulse width modulation (PWM) signal for driving the motor, means for determining a position of the motor based on transitions in a motor position signal, wherein transition intervals are defined between the transitions, means for determining a PWM count of cycles in the PWM signal during a first transition interval of the transition intervals, me
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (1)
| Patent | Title | Year | Citations |
|---|