[go: up one dir, main page]

US20170346425A1 - Current regulation in motors - Google Patents

Current regulation in motors Download PDF

Info

Publication number
US20170346425A1
US20170346425A1 US15/682,008 US201715682008A US2017346425A1 US 20170346425 A1 US20170346425 A1 US 20170346425A1 US 201715682008 A US201715682008 A US 201715682008A US 2017346425 A1 US2017346425 A1 US 2017346425A1
Authority
US
United States
Prior art keywords
time
current
duration
transistor
cycle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Abandoned
Application number
US15/682,008
Inventor
Sudhir Nagaraj
Anuj Jain
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Texas Instruments Inc
Original Assignee
Texas Instruments Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Texas Instruments Inc filed Critical Texas Instruments Inc
Priority to US15/682,008 priority Critical patent/US20170346425A1/en
Publication of US20170346425A1 publication Critical patent/US20170346425A1/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P7/00Arrangements for regulating or controlling the speed or torque of electric DC motors
    • H02P7/06Arrangements for regulating or controlling the speed or torque of electric DC motors for regulating or controlling an individual DC dynamo-electric motor by varying field or armature current
    • H02P7/18Arrangements for regulating or controlling the speed or torque of electric DC motors for regulating or controlling an individual DC dynamo-electric motor by varying field or armature current by master control with auxiliary power
    • H02P7/24Arrangements for regulating or controlling the speed or torque of electric DC motors for regulating or controlling an individual DC dynamo-electric motor by varying field or armature current by master control with auxiliary power using discharge tubes or semiconductor devices
    • H02P7/28Arrangements for regulating or controlling the speed or torque of electric DC motors for regulating or controlling an individual DC dynamo-electric motor by varying field or armature current by master control with auxiliary power using discharge tubes or semiconductor devices using semiconductor devices
    • H02P7/285Arrangements for regulating or controlling the speed or torque of electric DC motors for regulating or controlling an individual DC dynamo-electric motor by varying field or armature current by master control with auxiliary power using discharge tubes or semiconductor devices using semiconductor devices controlling armature supply only
    • H02P7/29Arrangements for regulating or controlling the speed or torque of electric DC motors for regulating or controlling an individual DC dynamo-electric motor by varying field or armature current by master control with auxiliary power using discharge tubes or semiconductor devices using semiconductor devices controlling armature supply only using pulse modulation
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P8/00Arrangements for controlling dynamo-electric motors rotating step by step
    • H02P8/22Control of step size; Intermediate stepping, e.g. microstepping
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P8/00Arrangements for controlling dynamo-electric motors rotating step by step
    • H02P8/12Control or stabilisation of current

Definitions

  • Electric motors including brushless DC electric motors, convert electrical energy into mechanical energy to rotate a shaft.
  • Certain brushless DC electric motors such as stepper motors, convert input impulses, typically through pulse-width modulation (PWM), into defined steps or increments in the shaft position.
  • PWM pulse-width modulation
  • an electromagnet is given power, attracting the teeth of the gear connected to the shaft.
  • a second electromagnet is then energized causing the gear to rotate to align with the second electromagnet thereby rotating the shaft.
  • shaft position may be controlled by regulating current flowing through motor windings in the motor.
  • a motor controller includes a processing device and a drive circuit coupled to the processing device.
  • the drive circuit may include a plurality of switches, a motor winding, and a current sensor coupled together in an H-bridge configuration.
  • the processing device is configured to cause a drive current to drive through the motor winding for a minimum amount of time.
  • the processing device is also configured to compare the current through the current sensor to a threshold value at the minimum amount of time.
  • the processing device is also configured to, based on the current being at or above the threshold value at the minimum amount of time, stop the drive current for an off period of time and cause a first decay of the current in the drive circuit for a first percentage of the off period of time and a first slow decay in the drive circuit for a second percentage of the off period of time.
  • Another illustrative embodiment is a drive circuit that includes a first switch coupled to a second, third, and fourth switch.
  • the drive circuit also includes a motor winding coupled to the first, second, third, and fourth switches, and a sense resistor.
  • the first, second, third and fourth switches, the motor winding, and the sense resistor are configured as an H-bridge.
  • the first and fourth switches are configured to be closed for a minimum amount of time to drive current through the motor winding. Based on current through the sense resistor being at or above a threshold value at the minimum amount of time, the first and fourth switches are configured to open for a predetermined off period of time stopping the drive current.
  • the second and third switches are configured to close for a first percentage of the off period of time causing a first fast decay of the current in the drive circuit.
  • the third and fourth switches are configured to close for a second percentage of the off period of time causing a slow decay of the current in the drive circuit.
  • Yet another illustrative embodiment is a motor comprising a motor controller configured to generate an electromagnetic field and a gear coupled to the motor controller.
  • the gear is configured to be attracted to the electromagnetic field to initiate into mechanical shaft rotation.
  • the motor controller includes a drive circuit and a processing device.
  • the motor controller is configured as an H-bridge and is configured to cause a drive current to drive through the drive circuit for a first minimum amount of time.
  • the motor controller is also configured to compare the current through the drive circuit to a threshold value at the first minimum amount of time.
  • the motor controller is also configured to, based on the current through the drive circuit being at or above the threshold value at the first minimum amount of time, stop the drive current for a first of period of time and cause a first fast decay of the current in the drive circuit for a first percentage of the first off period of time and a first slow decay of the current in the drive circuit for a second percentage of the first off period of time.
  • FIG. 1 shows a block diagram of an illustrative motor in accordance with various embodiments
  • FIG. 2 shows a block diagram of an illustrative motor controller in accordance with various embodiments
  • FIG. 3 shows a circuit diagram of an illustrative drive circuit in accordance with various embodiments
  • FIG. 4 shows an example current versus time curve for current regulation in a drive circuit in accordance with various embodiments
  • FIG. 5 shows an example current versus time curve for step current regulation in a drive circuit in accordance with various embodiments
  • FIG. 6 shows a flow diagram of a method for regulating current decay in a drive circuit in accordance with various embodiments.
  • FIG. 7 shows a flow diagram of a method for regulating current decay for a step in a drive circuit in accordance with various embodiments.
  • Electric motors and in particular, brushless DC motors such as stepper motors are in use in a wide variety of applications including: surveillance cameras, other cameras, video cameras, printers, robotics, etc.
  • An H-bridge may be utilized to drive the motor windings of a stepper motor which, in turn, produces electromagnetic fields that allow for the rotation of a shaft in a precise manner.
  • a recirculation current is produced due to the inductive nature of the motor windings.
  • Conventional decay schemes apply a fixed percentage of fast decay and slow decay as a mixed decay scheme. These conventional systems typically tend to have an excess percentage of fast decay so as to handle peak currents or step transitions. This leads to compromised current regulation at lower current levels.
  • This system may drive a current through the H-bridge circuit (sometimes called the drive circuit) for at least a minimum amount of time. Following the minimum amount of time, the current flowing through the drive circuit is compared with a threshold value. Once the current reaches this threshold level, the drive current is stopped and a fast decay, the duration of which depends on when the current through the drive circuit reaches the threshold level in the current cycle and in previous cycles, is initiated followed by a slow decay to regulate the current through the drive circuit.
  • a threshold value Once the current reaches this threshold level, the drive current is stopped and a fast decay, the duration of which depends on when the current through the drive circuit reaches the threshold level in the current cycle and in previous cycles, is initiated followed by a slow decay to regulate the current through the drive circuit.
  • Each cycle's fast decay is longer than the previous cycle's fast decay, so long as the current through the drive circuit is at or above the threshold value at the minimum amount of time in the current cycle and in the immediate previous cycle. Once the current through the drive circuit is below the threshold value at the minimum amount of time, the length of the fast decay shortens, and may become zero, until the current through the drive circuit is at or above the threshold value at the minimum amount of time.
  • the system may increase the amount of time that a fast decay may occur, thus reducing the amount of time to effectuate the step transition.
  • FIG. 1 shows a block diagram of an illustrative motor 100 in accordance with various embodiments.
  • Motor 100 may be any type of electric motor.
  • motor 100 is a brushless DC electric motor, and more particularly, a stepper motor.
  • Motor 100 includes modifying decay motor controller 102 coupled to gear 104 and shaft 106 .
  • Motor controller 102 is configured to generate one or more electromagnetic fields 108 that are received by gear 104 .
  • motor controller 102 may include a plurality of electromagnets that each, when energized, produces an electromagnetic field 108 that attracts the teeth of gear 104 .
  • Gear 104 is coupled to shaft 104 .
  • Gear 104 is attracted to the electromagnetic fields 108 generated by motor controller 102 . More particularly, an electromagnet within motor controller 102 may be energized, which attracts the teeth of the gear 104 . A second electromagnet within motor controller 102 then may be energized while power is removed from the first electromagnet. This causes the gear 104 to rotate to align with the second electromagnet because the gear is attracted to the second electromagnet's electromagnetic field.
  • Shaft 106 is coupled to gear 104 and rotates as the gear 104 rotates. In this way, motor controller 104 acts to control the rotation of shaft 106 .
  • Shaft 106 may be connected to any device that may rotate. Some such devices include cameras, video cameras, printers, and robotics. As shaft 106 rotates, the devices rotate as well.
  • FIG. 2 shows a block diagram of an illustrative modifying decay motor controller 102 in accordance with various embodiments.
  • Motor controller 102 may include processing device 202 coupled to drive circuit 204 . While only one processing device 202 and one drive circuit 204 are shown in FIG. 2 , any number of processing devices and drive circuits may be present in motor controller 102 .
  • Processing device 202 is configured to control drive circuit 204 through signal 206 .
  • Signal 206 may be provided through a direct wired connection or through a wireless connection.
  • Processing device 202 is hardware that may carry out computer instructions by performing, for example, arithmetic, logical, and input/output (I/O) operations for motor controller 102 .
  • Processing device 202 may include an embedded controller, a central processing unit (CPU), a semiconductor-based processing device, a graphics processing unit (GPU), a microcontroller, a dedicated state machine or any other hardware devices suitable for processing.
  • processing device 202 may include a single processor, multiple processors, a single computer, a network of computers, or any other type of processing device.
  • processing device 202 may include multiple cores on a chip, multiple cores across multiple chips, multiple cores across multiple devices, or combinations thereof.
  • Processing device 202 may include at least one integrated circuit (IC), other control logic, other electronic circuits, or combinations thereof that include a number of electronic components.
  • IC integrated circuit
  • FIG. 3 shows a circuit diagram of an illustrative drive circuit 204 in accordance with various embodiments.
  • Drive circuit 204 may include switches 302 - 308 , motor winding 310 , and sense resistor 312 configured in an H-bridge configuration. That is drive circuit 204 is configured such that a voltage applied to the drive circuit 204 may be applied across motor winding 310 in either direction. Power is supplied to drive circuit 204 in the form of voltage 320 .
  • Switches 302 - 308 may be any type of electrical switches.
  • each of switches 302 - 308 may be a field-effect transistor (FET) and more particularly may be an enhanced n-channel metal-oxide semiconductor field-effect (NMOS) transistor.
  • switches 302 - 308 may be any other type of switch including all types of NMOS transistors, a p-channel metal-oxide-semiconductor field-effect (PMOS) transistor, a p-type junction gate field-effect transistor (PJFET), a n-type junction gate field-effect transistor (NJFET), and a bipolar junction transistor (BJT) (including PNP and NPN transistors).
  • PMOS metal-oxide-semiconductor field-effect
  • PJFET p-type junction gate field-effect transistor
  • NJFET n-type junction gate field-effect transistor
  • BJT bipolar junction transistor
  • drive current 314 flows through switch 302 , motor winding 310 , switch 308 , and sense resistor 312 .
  • Motor winding 310 may be a winding of wire into a coil to act as an inductor.
  • electromagnetic field 108 is generated.
  • the current through sense resistor 312 is monitored by processing device 202 (e.g., as a voltage across sense resistor 312 ) or by any other current comparison device.
  • any other type of current sensor or methods for sensing current may be utilized to monitor the current flowing through drive circuit 204 .
  • the drive current 314 is interrupted by opening switches 302 and 308 .
  • the drive current 314 threshold value may be a predetermined, programmable value that is set to regulate the current in drive circuit 204 .
  • processing device 202 causes drive current 314 to again flow by closing switches 302 and 308 . In some embodiments, this off period of time may be 20 ⁇ s.
  • Fast decay causes the amplitude of the current within drive circuit 204 to reduce (i.e., discharge) at a comparatively fast rate. However, fast decay may lead to higher ripple.
  • switches 306 and 308 are closed, a slow decay occurs. During a slow decay, current 316 flows in a loop through switch 306 , motor winding 310 , and switch 308 . Slow decay leads to a discharge of the current in drive circuit 204 at a slower rate than a fast decay. This allows for better ripple characteristics than a fast decay, but the recirculation current remains in drive circuit 204 for a longer period of time.
  • FIG. 4 shows an example current versus time curve 400 for current regulation within a certain step in a drive circuit 204 in accordance with various embodiments.
  • Processing device 202 causes switches 302 and 308 to close and drive current 314 flows through drive circuit 204 .
  • a threshold value of current Once a minimum amount of time 402 elapses, the current flowing through sense resistor 312 is compared, by processing device 202 , with a threshold value of current.
  • the minimum amount of time 402 may be a predetermined, programmable amount of time that the drive current 314 runs through drive circuit 204 .
  • the minimum amount of time 402 may be preselected by a user and in some embodiments may be 1 ⁇ s. Because current cannot be accurately measured due to the noise from the switching in drive circuit 204 , in some embodiments, the minimum amount of time 402 is based on the amount of time it takes to accurately measure current through sense resistor 312 .
  • processing device 302 causes switches 302 and 308 to open, stopping drive current 314 .
  • Processing device 302 also causes switches 304 and 306 to close, starting a fast decay with current 318 flowing through drive circuit 204 .
  • off period of time 404 begins.
  • the fast decay may be set for a certain percentage of the off period of time 404 .
  • the fast decay may be set for the minimum amount of time 402 .
  • processing device 202 causes switch 304 to open and closes switch 308 , leaving switches 306 and 308 closed and switches 302 and 304 open. This causes a slow decay with current 316 flowing through drive circuit 204 for a percentage of the off period of time 404 .
  • the slow decay may occur during the remainder of the off period of time 404 that is not in a fast decay.
  • processing device 202 again causes drive current 314 to flow through drive circuit 204 utilizing the switching action discussed previously. Again, at the minimum amount of time 402 , the current through sense resistor 312 is compared to the threshold value. As shown at point 460 in the example shown in FIG. 4 , the current through sense resistor 312 is at or above the threshold value; therefore, processing device 202 causes drive current 314 to stop and initiates a fast decay. Because the previous cycle also had a current through sense resistor 312 higher than the threshold value at the minimum amount of time 404 , processing device 202 causes the fast decay to be a longer duration than the fast decay in the previous cycle.
  • the fast decay is a longer percentage of the off period of time 404 than in the previous cycle.
  • the fast decay may be two times the minimum amount of time 402 .
  • processing device 202 causes a slow decay for a percentage of the off period of time 404 .
  • the slow decay may occur during the remainder of the off period of time 404 that is not in a fast decay. Because the fast decay during this cycle is longer than in the previous cycle, the slow decay is shorter than in the previous cycle.
  • processing device 202 again causes drive current 314 to flow through drive circuit 204 utilizing the switching action discussed previously.
  • the current through sense resistor 312 is not at or above the threshold value as shown at point 466 .
  • processing device 202 continues to monitor and compare the current in sense resistor 312 to the threshold value. Additionally drive current 314 continues to flow through drive circuit 204 . Once the current through sense resistor 312 reaches the threshold value as shown at point 470 , processing device 202 causes drive current 314 to stop and the off period of time 404 begins.
  • a slow decay may begin and it may be for the entire duration of the off period of time 404 .
  • a fast decay may be caused by processing device 202 , once the current through sense resistor 312 reaches the threshold level, for a shorter duration than the fast decay in any cycle in which the current through sense resistor 312 was at or above the threshold value at the minimum amount of time 402 .
  • a slow decay follows the fast decay for the remainder of the off period of time 404 .
  • processing device 202 again causes drive current 314 to flow through drive circuit 204 utilizing the switching action discussed previously.
  • the current through sense resistor 312 is compared to the threshold value. Because the current is at or above the threshold value as shown at point 480 in the example shown in FIG. 4 , processing device 202 causes drive current 314 to stop and initiates a fast decay.
  • processing device 202 causes the fast decay to be the percentage of time in the original cycle in which the current through sense resistor 312 was at or above the threshold value at the minimum amount of time (e.g., the minimum amount of time 402 ). Once the fast decay ends, processing device 202 causes a slow decay for a percentage of the off period of time 404 (e.g., the remainder of the off period of time 404 ).
  • each cycle's fast decay is longer than the previous cycles fast decay, so long as the current through sense resistor 312 is at or above the threshold value at the minimum amount of time 402 in the current cycle and in the immediate previous cycle.
  • the length of the fast decay shortens until the current through sense resistor 312 is at or above the threshold value at the minimum amount of time 402 again.
  • FIG. 5 shows an example current versus time curve 500 for step current regulation in a drive circuit 204 when the step is from a higher current step to a lower current step in accordance with various embodiments.
  • processing device 202 determines that a step transition is to occur in motor 100 , then the current threshold value for drive circuit 204 may change.
  • the current regulation scheme discussed above under FIG. 4 occurs with a threshold value prior to the step.
  • a step occurs.
  • the processing device 202 signals that a step is occurring and lowers the current threshold value in accordance with the new step.
  • processing device 202 causes drive current 314 to flow through drive circuit 204 for the minimum amount of time 402 immediately following the off period of time 404 from the previous cycle elapsing utilizing the switching action discussed previously.
  • processing device 202 compares the current through the sense resistor 312 with the new threshold value and stops drive current 314 . If the current through the sense resistor is at or above the new threshold value, as it is in the example in FIG. 5 at point 550 , processing device 202 causes a fast decay for a percentage of the off period of time 404 (this length of time is represented by time period 502 ). In some embodiments the first cycle after the step transition is initiated, the time period 502 is 25% of the off period of time 404 ; however, any percentage may be utilized.
  • processing device 202 again causes drive current 314 to flow through drive circuit 204 for the minimum amount of time 402 .
  • processing device 202 compares the current through the sense resistor 312 with the new threshold value and stops drive current 314 . If the current through the sense resistor is at or above the new threshold value, as it is in the example in FIG. 5 at point 560 , processing device 202 causes a fast decay for a percentage of the off period of time 404 (this length of time is represented by time period 504 ). Because the previous cycle was also above the new threshold value at point 550 , in some embodiments, time period 504 is increased as compared to time period 502 . In some embodiments time period 504 is 50% of the off period of time 404 ; however, any percentage may be utilized.
  • processing device 202 again causes drive current 314 to flow through drive circuit 204 for the minimum amount of time 402 .
  • processing device 202 compares the current through the sense resistor 312 with the new threshold value and stops drive current 314 . If the current through the sense resistor is at or above the new threshold value, as it is in the example in FIG. 5 at point 570 , processing device 202 causes a fast decay for a percentage of the off period of time 404 (this length of time is represented by time period 506 ). Because the previous cycle also was above the new threshold value at point 560 , in some embodiments, time period 506 is increased as compared to time period 504 . In other embodiments, time period 506 remains the same as time period 504 . In some embodiments time period 506 is 50% of the off period of time 404 ; however, any percentage may be utilized.
  • the process repeats until the processing device 202 determines that the current through sense resistor 312 is below the new threshold value after the minimum amount of time 402 . In some embodiments, no slow decay occurs until after the processing device 202 makes this determination. This enables the current to reach the new step's threshold value quicker. Once, the processing device 202 determines that the current through sense resistor 312 is below the new threshold value after the minimum amount of time 402 (as shown at time 512 and point 580 ), the current regulation scheme discussed in FIG. 4 may commence at the new threshold value.
  • FIG. 6 shows a flow diagram 600 of a method for regulating current decay in a drive circuit 204 in accordance with various embodiments.
  • FIG. 7 shows a flow diagram 700 of a method for regulating current decay for a step in a drive circuit 204 in accordance with various embodiments.
  • the actions shown in methods 600 and 700 can be performed in a different order and/or performed in parallel. Additionally, some embodiments may perform only some of the actions shown or may perform additional actions.
  • at least some of the operations of the methods 600 and 700 can be performed by motor controller 102 implemented by a processor executing instructions stored in a non-transitory computer readable storage medium.
  • the method 600 begins in block 602 with driving current through motor winding 310 for a minimum amount of time 402 .
  • a determination is made as to whether the current through sense resistor 312 is at or above a threshold value at the minimum amount of time 402 .
  • the method continues at block 620 with continuing to compare the current through the sense resistor 312 with the threshold value.
  • a determination is made as to whether the current through sense resistor 312 is at or above the threshold value. If not, then the method 600 continues back in block 620 with continuing to compare the current through the sense resistor 312 to the threshold value. However, in block 622 , if a determination is made that the current through sense resistor 312 is at or above the threshold value, the method 600 continues at block 624 with stopping the drive current 314 .
  • the method 600 continues at block 626 with initiating a slow decay of the current in drive circuit 204 . In an embodiment, the slow decay in block 626 takes 100% of the off period of time 404 .
  • the method 600 then continues back at block 602 , with driving current through motor winding 310 for a minimum amount of time 402 .
  • the method 600 continues at block 606 with stopping drive current 314 .
  • a fast decay of the current in drive circuit 610 is initiated for a percentage of the off period of time 404 .
  • the method 600 continues with initiating a slow decay for the remainder of the off period of time 404 that is not utilized by the fast decay from block 608 .
  • the method 600 continues with driving current through the motor winding for the minimum amount of time 402 .
  • a determination is made as to whether the current through sense resistor 312 is at or above a threshold value at the minimum amount of time 402 . If the current through sense resistor 312 is not at or above a threshold value at the minimum amount of time 402 in block 614 , the method continues at block 620 , as discussed above, with continuing to compare the current through the sense resistor 312 with the threshold value.
  • the method 600 continues at block 616 , with stopping drive current 314 and initiating a fast delay for a percentage of the off period of time 404 that is higher than the percentage of the off period of time 404 in block 608 .
  • block 618 with initiating a slow decay for the remainder of the off period of time 404 that is not utilized by the fast decay from block 616 .
  • the method 600 continues in block 612 with driving current through the motor winding for the minimum amount of time 402 .
  • the method 700 begins in block 702 with signaling that a step transition is to occur and/or occurring.
  • the method 700 continues with driving current through motor winding 310 for minimum amount of time 402 .
  • a determination is made as to whether the current through sense resistor 312 is at or above the new step threshold value at the minimum amount of time 402 . If the current through sense resistor 312 is not at or above the new step threshold value at the minimum amount of time 402 in block 706 , the method 700 continues in block 718 with performing the current regulation scheme from method 600 .
  • the method 700 continues in block 708 with stopping drive current 314 .
  • a fast decay for a percentage of the off period of time 404 is initiated. In some embodiments the percentage of the off period of time 404 for the fast decay of block 710 is 25%.
  • method 700 continues with driving current through motor winding 310 for minimum amount of time 402 .
  • a determination is made as to whether the current through sense resistor 312 is at or above the new step threshold value at the minimum amount of time 402 . If the current through sense resistor 312 is not at or above the new step threshold value at the minimum amount of time 402 in block 714 , the method 700 continues in block 718 with performing the current regulation scheme from method 600 .
  • the method 700 continues in block 716 with stopping drive current 314 and initiating a fast decay for a percentage of the off period of time 404 that is higher than the percentage of the off period of time 404 in block 710 .
  • the method 700 then continues in block 712 as discussed above. In an embodiment, no slow decay is initiated after the signal that a step transition is to occur in block 702 and prior to the current through sense resistor 312 being below the new step threshold value at the minimum amount of time 402 in block 706 and/or 714 .

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Control Of Stepping Motors (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

A motor controller that includes a processing device and a drive circuit. The drive circuit may include a plurality of switches, a motor winding, and a current sensor coupled together in an H-bridge configuration. The processing device is configured to cause a drive current to drive through the motor winding for a minimum amount of time. The processing device is also configured to compare the current through the current sensor to a threshold value at the minimum amount of time. The processing device is also configured to, based on the current being at or above the threshold value at the minimum amount of time, stop the drive current for an off period of time and cause a first decay of the current for a first percentage of the off period of time and a first slow decay for a second percentage of the off period of time.

Description

    CROSS-REFERENCE TO RELATED APPLICATIONS
  • This application is a divisional of prior application Ser. No. 14/689,507, filed Apr. 17, 2015, currently pending;
  • And claims priority to U.S. Provisional Patent Application No. 61/980,661, filed Apr. 17, 2014, titled “A Novel Real Time Modifying Decay Mechanism For Current Regulation In Stepper Motors,” which is hereby incorporated herein by reference in its entirety.
  • BACKGROUND
  • Electric motors, including brushless DC electric motors, convert electrical energy into mechanical energy to rotate a shaft. Certain brushless DC electric motors, such as stepper motors, convert input impulses, typically through pulse-width modulation (PWM), into defined steps or increments in the shaft position. In order to rotate the shaft, an electromagnet is given power, attracting the teeth of the gear connected to the shaft. A second electromagnet is then energized causing the gear to rotate to align with the second electromagnet thereby rotating the shaft. Thus, shaft position may be controlled by regulating current flowing through motor windings in the motor.
  • SUMMARY
  • The problems noted above are solved in large part by systems and methods for regulating current decay in motors. In some embodiments, a motor controller includes a processing device and a drive circuit coupled to the processing device. The drive circuit may include a plurality of switches, a motor winding, and a current sensor coupled together in an H-bridge configuration. The processing device is configured to cause a drive current to drive through the motor winding for a minimum amount of time. The processing device is also configured to compare the current through the current sensor to a threshold value at the minimum amount of time. The processing device is also configured to, based on the current being at or above the threshold value at the minimum amount of time, stop the drive current for an off period of time and cause a first decay of the current in the drive circuit for a first percentage of the off period of time and a first slow decay in the drive circuit for a second percentage of the off period of time.
  • Another illustrative embodiment is a drive circuit that includes a first switch coupled to a second, third, and fourth switch. The drive circuit also includes a motor winding coupled to the first, second, third, and fourth switches, and a sense resistor. The first, second, third and fourth switches, the motor winding, and the sense resistor are configured as an H-bridge. The first and fourth switches are configured to be closed for a minimum amount of time to drive current through the motor winding. Based on current through the sense resistor being at or above a threshold value at the minimum amount of time, the first and fourth switches are configured to open for a predetermined off period of time stopping the drive current. Based on current through the sense resistor being at or above a threshold value at the minimum amount of time, the second and third switches are configured to close for a first percentage of the off period of time causing a first fast decay of the current in the drive circuit. Based on current through the sense resistor being at or above a threshold value at the minimum amount of time, the third and fourth switches are configured to close for a second percentage of the off period of time causing a slow decay of the current in the drive circuit.
  • Yet another illustrative embodiment is a motor comprising a motor controller configured to generate an electromagnetic field and a gear coupled to the motor controller. The gear is configured to be attracted to the electromagnetic field to initiate into mechanical shaft rotation. The motor controller includes a drive circuit and a processing device. The motor controller is configured as an H-bridge and is configured to cause a drive current to drive through the drive circuit for a first minimum amount of time. The motor controller is also configured to compare the current through the drive circuit to a threshold value at the first minimum amount of time. The motor controller is also configured to, based on the current through the drive circuit being at or above the threshold value at the first minimum amount of time, stop the drive current for a first of period of time and cause a first fast decay of the current in the drive circuit for a first percentage of the first off period of time and a first slow decay of the current in the drive circuit for a second percentage of the first off period of time.
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • For a detailed description of exemplary embodiments, reference will now be made to the accompanying drawings in which:
  • FIG. 1 shows a block diagram of an illustrative motor in accordance with various embodiments;
  • FIG. 2 shows a block diagram of an illustrative motor controller in accordance with various embodiments;
  • FIG. 3 shows a circuit diagram of an illustrative drive circuit in accordance with various embodiments;
  • FIG. 4 shows an example current versus time curve for current regulation in a drive circuit in accordance with various embodiments;
  • FIG. 5 shows an example current versus time curve for step current regulation in a drive circuit in accordance with various embodiments;
  • FIG. 6 shows a flow diagram of a method for regulating current decay in a drive circuit in accordance with various embodiments; and
  • FIG. 7 shows a flow diagram of a method for regulating current decay for a step in a drive circuit in accordance with various embodiments.
  • NOTATION AND NOMENCLATURE
  • Certain terms are used throughout the following description and claims to refer to particular system components. As one skilled in the art will appreciate, companies may refer to a component by different names. This document does not intend to distinguish between components that differ in name but not function. In the following discussion and in the claims, the terms “including” and “comprising” are used in an open-ended fashion, and thus should be interpreted to mean “including, but not limited to . . . .” Also, the term “couple” or “couples” is intended to mean either an indirect or direct connection. Thus, if a first device couples to a second device, that connection may be through a direct connection, or through an indirect connection via other devices and connections. The recitation “based on” is intended to mean “based at least in part on.” Therefore, if X is based on Y, X may be based on Y and any number of other factors.
  • DETAILED DESCRIPTION
  • The following discussion is directed to various embodiments of the invention. Although one or more of these embodiments may be preferred, the embodiments disclosed should not be interpreted, or otherwise used, as limiting the scope of the disclosure, including the claims. In addition, one skilled in the art will understand that the following description has broad application, and the discussion of any embodiment is meant only to be exemplary of that embodiment, and not intended to intimate that the scope of the disclosure, including the claims, is limited to that embodiment.
  • Electric motors, and in particular, brushless DC motors such as stepper motors are in use in a wide variety of applications including: surveillance cameras, other cameras, video cameras, printers, robotics, etc. An H-bridge may be utilized to drive the motor windings of a stepper motor which, in turn, produces electromagnetic fields that allow for the rotation of a shaft in a precise manner. However, once the drive current is stopped in the H-bridge circuit, a recirculation current is produced due to the inductive nature of the motor windings. Conventional decay schemes apply a fixed percentage of fast decay and slow decay as a mixed decay scheme. These conventional systems typically tend to have an excess percentage of fast decay so as to handle peak currents or step transitions. This leads to compromised current regulation at lower current levels. Additionally, conventional systems do not differentiate between step transitions and current regulation in a given step. Thus, when a step occurs, the circuit may reach a new lower current level slower than is optimal. Therefore, there is a need for a system that is capable of real time decay modification within the H-bridge circuit.
  • As discussed, that is capable of real time decay modification within the H-bridge circuit during the time the drive current is not flowing is desirable. This system may drive a current through the H-bridge circuit (sometimes called the drive circuit) for at least a minimum amount of time. Following the minimum amount of time, the current flowing through the drive circuit is compared with a threshold value. Once the current reaches this threshold level, the drive current is stopped and a fast decay, the duration of which depends on when the current through the drive circuit reaches the threshold level in the current cycle and in previous cycles, is initiated followed by a slow decay to regulate the current through the drive circuit. Each cycle's fast decay is longer than the previous cycle's fast decay, so long as the current through the drive circuit is at or above the threshold value at the minimum amount of time in the current cycle and in the immediate previous cycle. Once the current through the drive circuit is below the threshold value at the minimum amount of time, the length of the fast decay shortens, and may become zero, until the current through the drive circuit is at or above the threshold value at the minimum amount of time. For step transitions, the system may increase the amount of time that a fast decay may occur, thus reducing the amount of time to effectuate the step transition.
  • FIG. 1 shows a block diagram of an illustrative motor 100 in accordance with various embodiments. Motor 100 may be any type of electric motor. In some embodiments, motor 100 is a brushless DC electric motor, and more particularly, a stepper motor. Motor 100 includes modifying decay motor controller 102 coupled to gear 104 and shaft 106. Motor controller 102 is configured to generate one or more electromagnetic fields 108 that are received by gear 104. More particularly, motor controller 102 may include a plurality of electromagnets that each, when energized, produces an electromagnetic field 108 that attracts the teeth of gear 104.
  • Gear 104 is coupled to shaft 104. Gear 104 is attracted to the electromagnetic fields 108 generated by motor controller 102. More particularly, an electromagnet within motor controller 102 may be energized, which attracts the teeth of the gear 104. A second electromagnet within motor controller 102 then may be energized while power is removed from the first electromagnet. This causes the gear 104 to rotate to align with the second electromagnet because the gear is attracted to the second electromagnet's electromagnetic field. Shaft 106 is coupled to gear 104 and rotates as the gear 104 rotates. In this way, motor controller 104 acts to control the rotation of shaft 106.
  • Shaft 106 may be connected to any device that may rotate. Some such devices include cameras, video cameras, printers, and robotics. As shaft 106 rotates, the devices rotate as well.
  • FIG. 2 shows a block diagram of an illustrative modifying decay motor controller 102 in accordance with various embodiments. Motor controller 102 may include processing device 202 coupled to drive circuit 204. While only one processing device 202 and one drive circuit 204 are shown in FIG. 2, any number of processing devices and drive circuits may be present in motor controller 102. Processing device 202 is configured to control drive circuit 204 through signal 206. Signal 206 may be provided through a direct wired connection or through a wireless connection.
  • Processing device 202 is hardware that may carry out computer instructions by performing, for example, arithmetic, logical, and input/output (I/O) operations for motor controller 102. Processing device 202 may include an embedded controller, a central processing unit (CPU), a semiconductor-based processing device, a graphics processing unit (GPU), a microcontroller, a dedicated state machine or any other hardware devices suitable for processing. Additionally, processing device 202 may include a single processor, multiple processors, a single computer, a network of computers, or any other type of processing device. For example, processing device 202 may include multiple cores on a chip, multiple cores across multiple chips, multiple cores across multiple devices, or combinations thereof. Processing device 202 may include at least one integrated circuit (IC), other control logic, other electronic circuits, or combinations thereof that include a number of electronic components.
  • FIG. 3 shows a circuit diagram of an illustrative drive circuit 204 in accordance with various embodiments. Drive circuit 204 may include switches 302-308, motor winding 310, and sense resistor 312 configured in an H-bridge configuration. That is drive circuit 204 is configured such that a voltage applied to the drive circuit 204 may be applied across motor winding 310 in either direction. Power is supplied to drive circuit 204 in the form of voltage 320.
  • Switches 302-308 may be any type of electrical switches. In some embodiments, each of switches 302-308 may be a field-effect transistor (FET) and more particularly may be an enhanced n-channel metal-oxide semiconductor field-effect (NMOS) transistor. In alternative embodiments, switches 302-308 may be any other type of switch including all types of NMOS transistors, a p-channel metal-oxide-semiconductor field-effect (PMOS) transistor, a p-type junction gate field-effect transistor (PJFET), a n-type junction gate field-effect transistor (NJFET), and a bipolar junction transistor (BJT) (including PNP and NPN transistors).
  • As an H-bridge configuration, when switches 302 and 308 are closed (i.e., on, conducting) and switches 304 and 306 are open (i.e., off, not conducting), drive current 314 flows through switch 302, motor winding 310, switch 308, and sense resistor 312. Motor winding 310 may be a winding of wire into a coil to act as an inductor. As the drive current 314 flows through motor winding 310, electromagnetic field 108 is generated. The current through sense resistor 312 is monitored by processing device 202 (e.g., as a voltage across sense resistor 312) or by any other current comparison device. In alternative embodiments, any other type of current sensor or methods for sensing current may be utilized to monitor the current flowing through drive circuit 204. When the current reaches a threshold value, the drive current 314 is interrupted by opening switches 302 and 308. Thus, drive current 314 does not flow through motor winding 310 after switches 302 and 308 are opened. The drive current 314 threshold value may be a predetermined, programmable value that is set to regulate the current in drive circuit 204. After a set, predetermined off period of time which may be programmable and set by the user, processing device 202 causes drive current 314 to again flow by closing switches 302 and 308. In some embodiments, this off period of time may be 20 μs.
  • During the off period of time when drive current 314 is temporarily interrupted, because motor winding 310 acts as an inductor, current continues to flow as recirculation current in drive circuit 204. Because this recirculation current is flowing through motor winding 310, electromagnetic field 108, while weakening, is still present even when not desired. In order to lower this recirculation current, the recirculation current is caused to decay by drive circuit 204. When switches 304 and 306 are closed, a fast decay occurs. During a fast decay, current 318 flows from sense resistor 312 through switch 306, motor winding 310 and switch 304. Thus, the switches 302-308 in drive circuit 204 reverse state from when drive current 314 flows through drive circuit 204. Fast decay causes the amplitude of the current within drive circuit 204 to reduce (i.e., discharge) at a comparatively fast rate. However, fast decay may lead to higher ripple. When switches 306 and 308 are closed, a slow decay occurs. During a slow decay, current 316 flows in a loop through switch 306, motor winding 310, and switch 308. Slow decay leads to a discharge of the current in drive circuit 204 at a slower rate than a fast decay. This allows for better ripple characteristics than a fast decay, but the recirculation current remains in drive circuit 204 for a longer period of time.
  • FIG. 4 shows an example current versus time curve 400 for current regulation within a certain step in a drive circuit 204 in accordance with various embodiments. Processing device 202 causes switches 302 and 308 to close and drive current 314 flows through drive circuit 204. Once a minimum amount of time 402 elapses, the current flowing through sense resistor 312 is compared, by processing device 202, with a threshold value of current. The minimum amount of time 402 may be a predetermined, programmable amount of time that the drive current 314 runs through drive circuit 204. The minimum amount of time 402 may be preselected by a user and in some embodiments may be 1 μs. Because current cannot be accurately measured due to the noise from the switching in drive circuit 204, in some embodiments, the minimum amount of time 402 is based on the amount of time it takes to accurately measure current through sense resistor 312.
  • If the current through sense resistor 312 is at or above the threshold value at the minimum amount of time 402, as it is in the example shown in FIG. 4 at point 450, processing device 302 causes switches 302 and 308 to open, stopping drive current 314. Processing device 302 also causes switches 304 and 306 to close, starting a fast decay with current 318 flowing through drive circuit 204. Additionally, off period of time 404 begins. The fast decay may be set for a certain percentage of the off period of time 404. In some embodiments, the fast decay may be set for the minimum amount of time 402. Once the fast decay ends, processing device 202 causes switch 304 to open and closes switch 308, leaving switches 306 and 308 closed and switches 302 and 304 open. This causes a slow decay with current 316 flowing through drive circuit 204 for a percentage of the off period of time 404. In some embodiments, the slow decay may occur during the remainder of the off period of time 404 that is not in a fast decay.
  • After the off period of time 404 has elapsed, processing device 202 again causes drive current 314 to flow through drive circuit 204 utilizing the switching action discussed previously. Again, at the minimum amount of time 402, the current through sense resistor 312 is compared to the threshold value. As shown at point 460 in the example shown in FIG. 4, the current through sense resistor 312 is at or above the threshold value; therefore, processing device 202 causes drive current 314 to stop and initiates a fast decay. Because the previous cycle also had a current through sense resistor 312 higher than the threshold value at the minimum amount of time 404, processing device 202 causes the fast decay to be a longer duration than the fast decay in the previous cycle. In other words, the fast decay is a longer percentage of the off period of time 404 than in the previous cycle. In some embodiments, if the previous cycle also had a current through sense resistor 312 higher than the threshold value at the minimum amount of time 404, the fast decay may be two times the minimum amount of time 402. Once the fast decay ends, processing device 202 causes a slow decay for a percentage of the off period of time 404. In some embodiments, the slow decay may occur during the remainder of the off period of time 404 that is not in a fast decay. Because the fast decay during this cycle is longer than in the previous cycle, the slow decay is shorter than in the previous cycle.
  • After the off period of time 404 has elapsed, processing device 202 again causes drive current 314 to flow through drive circuit 204 utilizing the switching action discussed previously. In the example shown in FIG. 4, at the minimum amount of time 402, the current through sense resistor 312 is not at or above the threshold value as shown at point 466. In this case, processing device 202 continues to monitor and compare the current in sense resistor 312 to the threshold value. Additionally drive current 314 continues to flow through drive circuit 204. Once the current through sense resistor 312 reaches the threshold value as shown at point 470, processing device 202 causes drive current 314 to stop and the off period of time 404 begins. Because the current through sense resistor 312 was not at or above the threshold value at the minimum amount of time 402 during this cycle, a slow decay may begin and it may be for the entire duration of the off period of time 404. In alternative embodiments, a fast decay may be caused by processing device 202, once the current through sense resistor 312 reaches the threshold level, for a shorter duration than the fast decay in any cycle in which the current through sense resistor 312 was at or above the threshold value at the minimum amount of time 402. In this embodiment, a slow decay follows the fast decay for the remainder of the off period of time 404.
  • After the off period of time 404 has elapsed, processing device 202 again causes drive current 314 to flow through drive circuit 204 utilizing the switching action discussed previously. At the minimum amount of time 402, the current through sense resistor 312 is compared to the threshold value. Because the current is at or above the threshold value as shown at point 480 in the example shown in FIG. 4, processing device 202 causes drive current 314 to stop and initiates a fast decay. Because the previous cycle did not have a current through sense resistor 312 at or above the threshold value at the minimum amount of time 402, processing device 202 causes the fast decay to be the percentage of time in the original cycle in which the current through sense resistor 312 was at or above the threshold value at the minimum amount of time (e.g., the minimum amount of time 402). Once the fast decay ends, processing device 202 causes a slow decay for a percentage of the off period of time 404 (e.g., the remainder of the off period of time 404).
  • This process of driving drive current 314 through drive circuit 204 followed by a stop in the drive current 314 and fast decays, the duration of which depends on when the current through sense resistor 312 reaches the threshold level in the current cycle and in previous cycles, and slow decays continues while the current is regulated in drive circuit 204. Thus, each cycle's fast decay is longer than the previous cycles fast decay, so long as the current through sense resistor 312 is at or above the threshold value at the minimum amount of time 402 in the current cycle and in the immediate previous cycle. Once the current through sense resistor 312 is below the threshold value at the minimum amount of time 402, the length of the fast decay shortens until the current through sense resistor 312 is at or above the threshold value at the minimum amount of time 402 again.
  • FIG. 5 shows an example current versus time curve 500 for step current regulation in a drive circuit 204 when the step is from a higher current step to a lower current step in accordance with various embodiments. If processing device 202 determines that a step transition is to occur in motor 100, then the current threshold value for drive circuit 204 may change. In FIG. 5, the current regulation scheme discussed above under FIG. 4 occurs with a threshold value prior to the step. At time 510, a step occurs. Here, the processing device 202 signals that a step is occurring and lowers the current threshold value in accordance with the new step.
  • In the example shown in FIG. 5, processing device 202 causes drive current 314 to flow through drive circuit 204 for the minimum amount of time 402 immediately following the off period of time 404 from the previous cycle elapsing utilizing the switching action discussed previously. At the minimum amount of time 402, processing device 202 compares the current through the sense resistor 312 with the new threshold value and stops drive current 314. If the current through the sense resistor is at or above the new threshold value, as it is in the example in FIG. 5 at point 550, processing device 202 causes a fast decay for a percentage of the off period of time 404 (this length of time is represented by time period 502). In some embodiments the first cycle after the step transition is initiated, the time period 502 is 25% of the off period of time 404; however, any percentage may be utilized.
  • Immediately following time period 502, processing device 202 again causes drive current 314 to flow through drive circuit 204 for the minimum amount of time 402. At the minimum amount of time 402, processing device 202 compares the current through the sense resistor 312 with the new threshold value and stops drive current 314. If the current through the sense resistor is at or above the new threshold value, as it is in the example in FIG. 5 at point 560, processing device 202 causes a fast decay for a percentage of the off period of time 404 (this length of time is represented by time period 504). Because the previous cycle was also above the new threshold value at point 550, in some embodiments, time period 504 is increased as compared to time period 502. In some embodiments time period 504 is 50% of the off period of time 404; however, any percentage may be utilized.
  • The process may then repeat such that processing device 202 again causes drive current 314 to flow through drive circuit 204 for the minimum amount of time 402. At the minimum amount of time 402, processing device 202 compares the current through the sense resistor 312 with the new threshold value and stops drive current 314. If the current through the sense resistor is at or above the new threshold value, as it is in the example in FIG. 5 at point 570, processing device 202 causes a fast decay for a percentage of the off period of time 404 (this length of time is represented by time period 506). Because the previous cycle also was above the new threshold value at point 560, in some embodiments, time period 506 is increased as compared to time period 504. In other embodiments, time period 506 remains the same as time period 504. In some embodiments time period 506 is 50% of the off period of time 404; however, any percentage may be utilized.
  • The process repeats until the processing device 202 determines that the current through sense resistor 312 is below the new threshold value after the minimum amount of time 402. In some embodiments, no slow decay occurs until after the processing device 202 makes this determination. This enables the current to reach the new step's threshold value quicker. Once, the processing device 202 determines that the current through sense resistor 312 is below the new threshold value after the minimum amount of time 402 (as shown at time 512 and point 580), the current regulation scheme discussed in FIG. 4 may commence at the new threshold value.
  • FIG. 6 shows a flow diagram 600 of a method for regulating current decay in a drive circuit 204 in accordance with various embodiments. FIG. 7 shows a flow diagram 700 of a method for regulating current decay for a step in a drive circuit 204 in accordance with various embodiments. Though depicted sequentially as a matter of convenience, at least some of the actions shown in methods 600 and 700 can be performed in a different order and/or performed in parallel. Additionally, some embodiments may perform only some of the actions shown or may perform additional actions. In some embodiments, at least some of the operations of the methods 600 and 700, as well as other operations described herein, can be performed by motor controller 102 implemented by a processor executing instructions stored in a non-transitory computer readable storage medium.
  • The method 600 begins in block 602 with driving current through motor winding 310 for a minimum amount of time 402. In block 604, a determination is made as to whether the current through sense resistor 312 is at or above a threshold value at the minimum amount of time 402.
  • If the current through sense resistor 312 is not at or above a threshold value at the minimum amount of time 402 in block 604, the method continues at block 620 with continuing to compare the current through the sense resistor 312 with the threshold value. In block 622, a determination is made as to whether the current through sense resistor 312 is at or above the threshold value. If not, then the method 600 continues back in block 620 with continuing to compare the current through the sense resistor 312 to the threshold value. However, in block 622, if a determination is made that the current through sense resistor 312 is at or above the threshold value, the method 600 continues at block 624 with stopping the drive current 314. The method 600 continues at block 626 with initiating a slow decay of the current in drive circuit 204. In an embodiment, the slow decay in block 626 takes 100% of the off period of time 404. The method 600 then continues back at block 602, with driving current through motor winding 310 for a minimum amount of time 402.
  • If the current through sense resistor 312 is at or above a threshold value at the minimum amount of time 402 in block 604, the method 600 continues at block 606 with stopping drive current 314. In block 608, a fast decay of the current in drive circuit 610 is initiated for a percentage of the off period of time 404. In block 610, the method 600 continues with initiating a slow decay for the remainder of the off period of time 404 that is not utilized by the fast decay from block 608.
  • In block 612, the method 600 continues with driving current through the motor winding for the minimum amount of time 402. In block 614, a determination is made as to whether the current through sense resistor 312 is at or above a threshold value at the minimum amount of time 402. If the current through sense resistor 312 is not at or above a threshold value at the minimum amount of time 402 in block 614, the method continues at block 620, as discussed above, with continuing to compare the current through the sense resistor 312 with the threshold value.
  • If the current through sense resistor 312 is at or above a threshold value at the minimum amount of time 402 in block 614, the method 600 continues at block 616, with stopping drive current 314 and initiating a fast delay for a percentage of the off period of time 404 that is higher than the percentage of the off period of time 404 in block 608. In block 618, with initiating a slow decay for the remainder of the off period of time 404 that is not utilized by the fast decay from block 616. The method 600 continues in block 612 with driving current through the motor winding for the minimum amount of time 402.
  • The method 700 begins in block 702 with signaling that a step transition is to occur and/or occurring. In block 704, the method 700 continues with driving current through motor winding 310 for minimum amount of time 402. In block 706, a determination is made as to whether the current through sense resistor 312 is at or above the new step threshold value at the minimum amount of time 402. If the current through sense resistor 312 is not at or above the new step threshold value at the minimum amount of time 402 in block 706, the method 700 continues in block 718 with performing the current regulation scheme from method 600.
  • If the current through sense resistor 312 is at or above the new step threshold value at the minimum amount of time 402 in block 706, the method 700 continues in block 708 with stopping drive current 314. In block 710, a fast decay for a percentage of the off period of time 404 is initiated. In some embodiments the percentage of the off period of time 404 for the fast decay of block 710 is 25%. In block 712, method 700 continues with driving current through motor winding 310 for minimum amount of time 402. In block 714, a determination is made as to whether the current through sense resistor 312 is at or above the new step threshold value at the minimum amount of time 402. If the current through sense resistor 312 is not at or above the new step threshold value at the minimum amount of time 402 in block 714, the method 700 continues in block 718 with performing the current regulation scheme from method 600.
  • If the current through sense resistor 312 is at or above the new step threshold value at the minimum amount of time 402 in block 714, the method 700 continues in block 716 with stopping drive current 314 and initiating a fast decay for a percentage of the off period of time 404 that is higher than the percentage of the off period of time 404 in block 710. The method 700 then continues in block 712 as discussed above. In an embodiment, no slow decay is initiated after the signal that a step transition is to occur in block 702 and prior to the current through sense resistor 312 being below the new step threshold value at the minimum amount of time 402 in block 706 and/or 714.
  • The above discussion is meant to be illustrative of the principles and various embodiments of the present invention. Numerous variations and modifications will become apparent to those skilled in the art once the above disclosure is fully appreciated. It is intended that the following claims be interpreted to embrace all such variations and modifications.

Claims (18)

What is claimed is:
1. A process of operating a drive circuit that includes:
a voltage source;
a ground;
a sense resistor having a first node and a second node connected to the ground;
a first transistor having a first node connected to the voltage source, a second node, and a gate;
a second transistor having a first node connected to the second node of the first transistor, a second node connected to the first node of the sense resistor, and a gate;
a third transistor having a first node connected to the voltage source, a second node coupled to the second node of the first transistor and the first node of the second transistor, and a gate;
a fourth transistor having a first node connected to the second node of the third transistor and coupled to the second node of the first transistor and the first node of the second transistor, a second node connected to the first node of the sense resistor, and a gate; and
a processing device coupled to the gates of the first, second, third, and fourth transistors;
the process comprising:
causing a drive current to flow through the first and fourth transistors for a minimum on period of time;
sensing a current flow through the sense resistor at the end of the on period of time;
comparing the current flow through the sense resistor to a threshold;
causing no current to flow through the first transistor during an off period of time following the on period of time;
during the off period of time, causing a fast decay current to flow through the second and third transistors for a first duration of time and causing a slow decay current to flow through the second and fourth transistors for a second duration of time; and
varying the first duration of time and the second duration of time based on the comparison of the sensed current flow to the threshold level for a current cycle and an immediate previous cycle.
2. The process of claim 1 including repeating the process for cycles and in which the varying includes shortening the first duration and lengthening the second duration for that cycle based on sensing a drive current below the threshold for a cycle.
3. The process of claim 1 including repeating the process for cycles and in which the varying includes reducing the first duration to zero and lengthening the second duration to the off period for a cycle based on the drive current being below the threshold level for that cycle.
4. The process of claim 1 including repeating the process for cycles and in which the varying includes causing the first duration to be equal to the minimum on time for a cycle.
5. The process of claim 1 including repeating the process for cycles and in which the varying includes lengthening the first duration and shortening the second duration for a cycle based on the drive current being above the threshold level for that cycle and an immediate previous cycle.
6. The process of claim 1 including changing the threshold level.
7. A process of operating a drive circuit comprising:
in one cycle, causing a drive current to flow through first and second transistors for a minimum on period of time and causing no current to flow through the first transistor during an off period of time following the on period of time;
sensing the drive current through the first transistor at the end of the on period of time;
comparing the sensed drive current to a threshold;
during the off period of time, causing a fast decay current to flow through a third transistor and a fourth transistor for a first duration of time and causing a slow decay current to flow through the second and third transistors for a second duration of time; and
varying the first duration of time and the second duration of time based on the comparison of the sensed drive current to the threshold level for a current cycle and an immediate previous cycle.
8. The process of claim 7 including repeating the process for cycles and in which the varying includes shortening the first duration and lengthening the second duration for that cycle based on sensing a drive current below the threshold for a cycle.
9. The process of claim 7 including repeating the process for cycles and in which the varying includes reducing the first duration to zero and lengthening the second duration to the off period for a cycle based on the drive current being below the threshold level for that cycle.
10. The process of claim 7 including repeating the process for cycles and in which the varying includes causing the first duration to be equal to the minimum on time for a cycle.
11. The process of claim 7 including repeating the process for cycles and in which the varying includes lengthening the first duration and shortening the second duration for a cycle based on the drive current being above the threshold level for that cycle and an immediate previous cycle.
12. The process of claim 7 including changing the threshold level.
13. A circuit comprising:
a voltage source;
a ground;
a sense resistor having a first node and a second node connected to the ground;
a first transistor having a first node connected to the voltage source, a second node, and a gate;
a second transistor having a first node connected to the second node of the first transistor, a second node connected to the first node of the sense resistor, and a gate;
a third transistor having a first node connected to the voltage source, a second node coupled to the second node of the first transistor and the first node of the second transistor, and a gate;
a fourth transistor having a first node connected to the second node of the third transistor and coupled to the second node of the first transistor and the first node of the second transistor, a second node connected to the first node of the sense resistor, and a gate; and
a processing device coupled to the gates of the first, second, third, and fourth transistors, the processing device including instructions for:
in one cycle, causing a drive current to flow through first and fourth transistors for a minimum on period of time and causing no current to flow through the first transistor during an off period of time following the on period of time;
sensing the drive current through the first transistor at the end of the on period of time;
comparing the sensed drive current to a threshold;
during the off period of time, causing a fast decay current to flow through a third transistor and a fourth transistor for a first duration of time and causing a slow decay current to flow through the second and third transistors for a second duration of time; and
varying the first duration of time and the second duration of time based on the comparison of the sensed drive current to the threshold level for a current cycle and an immediate previous cycle.
14. The process of claim 13 in which the instructions include repeating the process for cycles and in which the varying includes shortening the first duration and lengthening the second duration for that cycle based on sensing a drive current below the threshold for a cycle.
15. The process of claim 13 in which the instructions include repeating the process for cycles and in which the varying includes reducing the first duration to zero and lengthening the second duration to the off period for a cycle based on the drive current being below the threshold level for that cycle.
16. The process of claim 13 in which the instructions include repeating the process for cycles and in which the varying includes causing the first duration to be equal to the minimum on time for a cycle.
17. The process of claim 13 in which the instructions include repeating the process for cycles and in which the varying includes lengthening the first duration and shortening the second duration for a cycle based on the drive current being above the threshold level for that cycle and an immediate previous cycle.
18. The process of claim 13 in which the instructions include changing the threshold level.
US15/682,008 2014-04-17 2017-08-21 Current regulation in motors Abandoned US20170346425A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/682,008 US20170346425A1 (en) 2014-04-17 2017-08-21 Current regulation in motors

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
US201461980661P 2014-04-17 2014-04-17
US14/689,507 US9742329B2 (en) 2014-04-17 2015-04-17 Current regulation in motors
US15/682,008 US20170346425A1 (en) 2014-04-17 2017-08-21 Current regulation in motors

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US14/689,507 Division US9742329B2 (en) 2014-04-17 2015-04-17 Current regulation in motors

Publications (1)

Publication Number Publication Date
US20170346425A1 true US20170346425A1 (en) 2017-11-30

Family

ID=54322842

Family Applications (2)

Application Number Title Priority Date Filing Date
US14/689,507 Active 2035-06-11 US9742329B2 (en) 2014-04-17 2015-04-17 Current regulation in motors
US15/682,008 Abandoned US20170346425A1 (en) 2014-04-17 2017-08-21 Current regulation in motors

Family Applications Before (1)

Application Number Title Priority Date Filing Date
US14/689,507 Active 2035-06-11 US9742329B2 (en) 2014-04-17 2015-04-17 Current regulation in motors

Country Status (1)

Country Link
US (2) US9742329B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6806632B2 (en) * 2017-05-31 2021-01-06 ミネベアミツミ株式会社 Motor current controller and motor current control method
DE102017118837A1 (en) * 2017-08-17 2019-02-21 Trinamic Motion Control Gmbh & Co. Kg Method and circuit arrangement for resonance damping in stepper motors
CN112020821B (en) * 2018-04-23 2024-08-30 亚萨合莱自动门系统有限公司 Drives for door openers
JP2022088079A (en) * 2020-12-02 2022-06-14 東芝三菱電機産業システム株式会社 Electromagnet power supply device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5216347A (en) * 1991-03-29 1993-06-01 Sgs-Thomson Microelectronics, Inc. Stepper motor control system
US20030067280A1 (en) * 2001-10-04 2003-04-10 Bing Wang Stepper motor controller
US20080309274A1 (en) * 2007-06-12 2008-12-18 Barry Thomson Dual mode stepper motor
US9356545B2 (en) * 2009-01-28 2016-05-31 Semiconductor Components Industries, Llc Driver circuit and method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4164697A (en) * 1976-04-08 1979-08-14 Texas Instruments Incorporated Method and system for squelching decaying current in motor phases
US7546679B2 (en) * 2005-12-30 2009-06-16 The Gillette Company High speed valve assembly
DE102009053564B4 (en) * 2009-11-18 2020-03-19 Trinamic Motion Control Gmbh & Co. Kg Method and circuit arrangement for current regulation in motors
US9397597B2 (en) * 2013-07-29 2016-07-19 Texas Instruments Incorporated Sensed motor winding current adapting blanking period between max/min values

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5216347A (en) * 1991-03-29 1993-06-01 Sgs-Thomson Microelectronics, Inc. Stepper motor control system
US20030067280A1 (en) * 2001-10-04 2003-04-10 Bing Wang Stepper motor controller
US20080309274A1 (en) * 2007-06-12 2008-12-18 Barry Thomson Dual mode stepper motor
US9356545B2 (en) * 2009-01-28 2016-05-31 Semiconductor Components Industries, Llc Driver circuit and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Coutu US 5, 264,770 *

Also Published As

Publication number Publication date
US20150303850A1 (en) 2015-10-22
US9742329B2 (en) 2017-08-22

Similar Documents

Publication Publication Date Title
TWI629867B (en) Systems and methods for sensing current through a low-side field effect transistor
JP4885549B2 (en) Motor driving circuit, driving method, and cooling device using the same
US20170346425A1 (en) Current regulation in motors
US8669790B2 (en) Control circuit arrangement for pulse-width modulated DC/DC converters and method for controlling a pulse-width modulated converter
JP6498414B2 (en) Fan motor drive device and cooling device and electronic equipment using the same
US9985560B2 (en) Motor controller and method for controlling motor
JP7465637B2 (en) Electronic circuit for reducing the rotational speed of an unpowered electric motor
US20170214313A1 (en) Drive circuit for semiconductor switching element
TWI656734B (en) Circuit for controlling the rate of change of the high side switching element
CN105027443A (en) Inductive load driver slew rate controller
DE102020101663A1 (en) DRIVER FOR SWITCHING BIPOLAR TRANSISTORS WITH ISOLATED GATE WITH FIRST PULL-DOWN SIGNAL AND SECOND PULL-DOWN SIGNAL
US9614471B2 (en) Motor controller and method for controlling motor
TWI680645B (en) Pulse driven power fet
US20170025972A1 (en) Control apparatus for eliminating magnetizing error of rotor in dc motor and method thereof
US10924052B1 (en) Motor control system with phase current polarity detection
KR101551066B1 (en) Motor driving device for a vehicle
US20160352322A1 (en) Digital pulse width modulation control for load switch circuits
US12113521B2 (en) Systems and methods for regulation of propagation delay in DC motor drivers
US11923799B2 (en) Systems and methods for regulating slew time of output voltage of DC motor drivers
US20090237856A1 (en) Solenoid valve drive control apparatus and method for driving a solenoid valve
US9882515B2 (en) Method for making a motor quieter
CN100424987C (en) Fan rotating speed control circuit
US8829837B2 (en) Driving apparatus for an electromagnetic load and related method
US20150194915A1 (en) H-bridge shoot-through avoidance
CN112313872B (en) Stepper motor control device and stepper motor control method

Legal Events

Date Code Title Description
STPP Information on status: patent application and granting procedure in general

Free format text: NON FINAL ACTION MAILED

STPP Information on status: patent application and granting procedure in general

Free format text: RESPONSE TO NON-FINAL OFFICE ACTION ENTERED AND FORWARDED TO EXAMINER

STPP Information on status: patent application and granting procedure in general

Free format text: FINAL REJECTION MAILED

STPP Information on status: patent application and granting procedure in general

Free format text: RESPONSE AFTER FINAL ACTION FORWARDED TO EXAMINER

STPP Information on status: patent application and granting procedure in general

Free format text: DOCKETED NEW CASE - READY FOR EXAMINATION

STPP Information on status: patent application and granting procedure in general

Free format text: NON FINAL ACTION MAILED

STPP Information on status: patent application and granting procedure in general

Free format text: RESPONSE TO NON-FINAL OFFICE ACTION ENTERED AND FORWARDED TO EXAMINER

STPP Information on status: patent application and granting procedure in general

Free format text: FINAL REJECTION MAILED

STPP Information on status: patent application and granting procedure in general

Free format text: DOCKETED NEW CASE - READY FOR EXAMINATION

STPP Information on status: patent application and granting procedure in general

Free format text: NON FINAL ACTION MAILED

STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION