Driving circuit and method for stepping motor
11264926 · 2022-03-01
Assignee
Inventors
Cpc classification
International classification
Abstract
Excitation position is changed in accordance with an external clock. The state of a full bridge circuit including four transistors connected to a coil of a stepping motor, is controlled in accordance with the excitation position. At the time of transition from the excitation position at which coil current that flows in the coil is nonzero to the excitation position at which the coil current is zero, a switch is made to (i) the inverse state where the on or off state of each of the four transistors before the transition is inverted, and then a switch is made to (ii) the off state where all the four transistors are off.
Claims
1. A driving circuit for a stepping motor, comprising: a logic circuit structured to switch a state of a full bridge circuit including four transistors connected to a coil of the stepping motor, in accordance with an external clock; and a zero-current detection circuit, wherein when transition is made from an excitation position at which coil current that flows in the coil is nonzero to an excitation position at which the coil current is zero, the logic circuit switches the full bridge circuit connected to the coil to (i) an inverse state where an on or off state of each of the four transistors before the transition is inverted, and then switches the full bridge circuit to (ii) an off state where all the four transistors are off, wherein the zero-current detection circuit structured to assert a zero-current detection signal when the coil current falls below a predetermined threshold value, wherein the response to the assertion of the zero-current detection signal, the logic circuit switches the full bridge circuit from the inverse state to the off state, and wherein the zero-current detection circuit includes a comparator structured to compare a current detection signal corresponding to a voltage drop across a detection resistor provided in the full bridge circuit, with a threshold voltage.
2. The driving circuit according to claim 1, wherein the driving circuit is monolithically integrated on one semiconductor substrate.
3. Electronic equipment comprising: a stepping motor; and the driving circuit according to claim 1, the driving circuit being structured to drive the stepping motor.
4. A driving circuit for a stepping motor, comprising: a logic circuit structured to switch a state of a full bridge circuit including four transistors connected to a coil of the stepping motor, in accordance with an external clock; a current-value setting circuit structured to generate a current set value; and a constant-current chopper circuit, wherein when transition is made from a excitation position at which coil current that flows in the coil is nonzero to an excitation position at which the coil current is zero, the logic circuit switches the full bridge circuit connected to the coil to (i) an inverse state where an on or off state of each of the four transistors before the transition is inverted, and then switches the full bridge circuit to (ii) an off state where all the four transistors are off, wherein the constant-current chopper circuit is structured to generate a pulse modulation single pulse-modulated such that a detection value of the coil current comes close to a target amount based on the current set value, and wherein in accordance with the pulse modulation signal, the logic circuit switches the two transistors of one leg of the full bridge circuit.
5. The driving circuit according to claim 4, wherein the constant-current chopper circuit includes: a comparator structured to compare the detection value of the coil current with a threshold value based on the current set value; an oscillator structured to oscillate at a predetermined frequency; and a flip-flop structured to output the pulse modulation signal that transitions to off-level in accordance with an output of the comparator and transitions to on-level in accordance with an output of the oscillator.
6. Electronic equipment comprising: a stepping motor; and the driving circuit according to claim 4, the driving circuit being structured to drive the stepping motor.
7. A driving method for a stepping motor, comprising: changing excitation position in accordance with an external clock; controlling a state of a full bridge circuit including four transistors connected to a coil of the stepping motor, in accordance with the excitation position; making a switch to, when transition is made from the excitation position at which coil current that flows in the coil is nonzero to the excitation position at which the coil current is zero, (i) an inverse state where an on or off state of each of the four transistors before the transition is inverted, and then making a switch to (ii) an off state where all the four transistors are off, and asserting a zero-current detection signal when the coil current falls below a predetermined threshold value; and switching the full bridge circuit from the inverse state to the off state in response to the asserting the zero-current detection signal.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) Embodiments will now be described, by way of example only, with reference to the accompanying drawings which are meant to be exemplary, not limiting, and wherein like elements are numbered alike in several Figures, in which:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
DETAILED DESCRIPTION OF THE INVENTION
(15) The invention will now be described based on preferred embodiments which do not intend to limit the scope of the present invention but exemplify the invention. All of the features and the combinations thereof described in the embodiment are not necessarily essential to the invention.
(16) In the present specification, “the state where member A is connected with member B” includes a case where member A and member B are physically directly connected together and a case where member A and member B are indirectly connected together through another member having no substantial influence on the state of electrical connection therebetween or causing no deterioration in any function or effect due to the coupling therebetween.
(17) Similarly, “the state where member C is provided between member A and member B” includes a case where member A and member C or member B and member C are directly connected together and a case where member A and member C or member B and member C are indirectly connected together through another member having no substantial influence on the state of electrical connection therebetween or causing no deterioration in any function or effect due to the coupling therebetween.
(18) The vertical and horizontal axes of each waveform chart or timing chart for reference in the present specification are appropriately enlarged or reduced in size for easy understanding. In addition, each illustrated waveform is simplified, overdrawn, or emphasized for easy understanding.
(19)
(20) The driving circuit 200 has an input pin IN to which an input clock CLK is input from the host controller 2. The driving circuit 200 has a direction-instructing pin DIR to which a direction-instructing signal DIR instructing clockwise rotation (CW) or counterclockwise rotation (CCW) is input.
(21) The driving circuit 200 rotates a rotor in the stepping motor 102 by a predetermined angle in the direction corresponding to the direction-instructing signal DIR every time the input clock CLK is input.
(22) The driving circuit 200 including full bridge circuits 202_1 and 202_2, a current-value setting circuit 210, constant-current chopper circuits 250_1 and 250_2, and a logic circuit 270, is monolithically integrated on one semiconductor substrate.
(23) In the present embodiment, the stepping motor 102 is a two-phase motor and includes a first coil L1 and a second coil L2. Examples of the driving system of the driving circuit 200 include 1 phase excitation, 1-2 phase excitation, and micro-step drive (e.g., W1-2 phase drive and 2W1-2 phase drive).
(24) The full bridge circuit 202_1 as first channel CH1 is connected with the first coil L1. The full bridge circuit 202_2 as second channel CH2 is connected with the second coil L2.
(25) The full bridge circuits 202_1 and 202_2 each are an H-bridge circuit including four transistors M1 to M4. The transistors M1 to M4 of the full bridge circuit 202_1 are switched on the basis of a control signal CNT1 from the logic circuit 270, so that the voltage V.sub.OUT1 of the first coil L1 (also referred to as first coil voltage) is switched.
(26) The full bridge circuit 202_2 is similar in configuration to the full bridge circuit 202_1. The transistors M1 to M4 thereof are switched on the basis of a control signal CNT2 from the logic circuit 270, so that the voltage V.sub.OUT2 of the second coil L2 (also referred to as second coil voltage) is switched.
(27) For simplification of the following description, the state of the full bridge circuit 202_# (#=1, 2) is defined as follows:
Off State φ.SUB.0
(28) OUT #A and OUT #B are both in high impedance.
(29) All M1 to M4 are off.
First State φ.SUB.1
(30) OUT #A is high (or switched between high and low) and OUT #B is low.
(31) M1 is on and M3 is off. (or switched complementarily)
(32) M2 is off and M4 is on.
Second State φ.SUB.2
(33) OUT #A is low and OUT #B is high (or switched between high and low).
(34) M1 is off and M3 is on.
(35) M2 is on and M4 is off (or switched complementarily).
(36) The current-value setting circuit 210 generates a current set value I.sub.REF. Just after the stepping motor 102 starts up, the current set value I.sub.REF is fixed at a predetermined value I.sub.FULL (referred to as a full-torque set value). The predetermined value I.sub.FULL may be the maximum value in the allowable range of the current set value I.sub.REF. In this case, the stepping motor 102 is driven by full torque. This state is referred to as high torque mode.
(37) In stable rotation of the stepping motor 102, in other words, in a case where desynchronization is less likely to occur, transition is made to high efficiency mode. In the high efficiency mode, the current-value setting circuit 210 adjusts the current set value I.sub.REF by feedback control, resulting in reduction of power consumption.
(38) The full bridge circuits 202_1 and 202_2 each include a current detection resistor R.sub.NF. The voltage drop across the current detection resistor R.sub.NF results in the detection value of coil current I.sub.L. Note that the current detection resistor R.sub.NF is not limited in location, and thus may be provided closer to the power supply or may be provided in series with the coil between two outputs of the bridge circuit.
(39) The constant-current chopper circuit 250_1 generates a pulse modulation signal S.sub.PWM1 pulse-modulated such that the detection value I.sub.NF1 of coil current I.sub.L1 flowing in the first coil L1 comes close to a target amount based on the current set value I.sub.REF during energization of the first coil L1. The constant-current chopper circuit 250_2 generates a pulse modulation signal S.sub.PWM2 pulse-modulated such that the detection value I.sub.NF2 of coil current I.sub.L2 flowing in the second coil L2 comes close to the current set value I.sub.REF during energization of the second coil L2.
(40) In accordance with the pulse modulation signal S.sub.PWM1, the logic circuit 270 switches one output of the full bridge circuit 202_1 connected to the first coil L1. In accordance with the pulse modulation signal S.sub.PWM2 the logic circuit 270 switches one output of the full bridge circuit 202_2 connected to the second coil L2.
(41) Every time the input clock CLK is input, the logic circuit 270 changes excitation position to switch the coil (or the paired coils) to which electric current is supplied. The excitation position is grasped as the combination of the respective coil currents of the first coil L1 and the second coil L2 in amount and direction. The excitation position may transition in accordance with the positive edge of the input clock CLK, may transition in accordance with the negative edge of the input clock CLK, or may transition in accordance with both of the positive and negative edges of the input clock CLK.
(42) At the time of transition from the excitation position at which the coil current I.sub.OUT1 that flows in the coil L1 is nonzero to the excitation position at which the coil current I.sub.OUT1 is zero, the logic circuit 270 switches the full bridge circuit 202_1 connected to the coil L1 to (i) the inverse state where the on or off state of each of the four transistors M1 to M4 before the transition is inverted, and then switches the full bridge circuit 202_1 to (ii) the off state where all the four transistors M1 to M4 are off.
(43) The configuration of the driving circuit 200 has been described above. Next, the operation of the driving circuit 200 will be described.
(44)
(45) Focus on the transition from excitation position #5 to excitation position #6. The coil current I.sub.OUT1 is nonzero at excitation position #5, and the coil current I.sub.OUT1 is zero at excitation position #6. At excitation position #5 before the transition, the full bridge circuit 202_1 is in the second state φ.sub.2. At the time of transition to excitation position #6, the full bridge circuit 202_1 is switched once to the first state φ.sub.1 opposite to the second state φ.sub.2, and then is switched to the off state φ.sub.0.
(46) Similarly, the full bridge circuit 202_2 is controlled. Focus on the transition from excitation position #3 to excitation position #4. The coil current I.sub.OUT2 is nonzero at excitation position #3, and the coil current I.sub.OUT2 is zero at excitation position #4. At excitation position #3 before the transition, the full bridge circuit 202_2 is in the first state φ.sub.1. At the time of transition to excitation position #4, the full bridge circuit 202_2 is switched once to the second state φ.sub.2 opposite to the first state φ.sub.1, and then is switched to the off state φ.sub.0.
(47) Focus on the transition from excitation position #7 to excitation position #8. The coil current I.sub.OUT2 is nonzero at excitation position #7, and the coil current I.sub.OUT2 is zero at excitation position #8. At excitation position #7 before the transition, the full bridge circuit 202_2 is in the second state φ.sub.2. At the time of transition to excitation position #8, the full bridge circuit 202_2 is switched once to the first state φ.sub.1 opposite to the second state φ.sub.2, and then is switched to the off state φ.sub.0.
(48)
(49) In response to the clock CLK, transition is made to the next excitation position #2. At this time, the full bridge circuit 202_1 is switched once to the second state φ.sub.2 as illustrated in
(50) After that, as illustrated in
(51)
(52) Similarly, in the driving circuit 200 of
(53) As a result, all the gradients of the slopes are substantially identical (α=β=γ=δ), so that distortion can be reduced in the waveform of the coil current I.sub.OUT1. A similar operation is made to the full bridge circuit 202_2, so that distortion is reduced in the waveform of the coil current I.sub.OUT2. This arrangement enables inhibition of unsteady rotation of the stepping motor.
(54) In addition, in the inverse state just after the transition with phase switching, the coil current I.sub.OUT1 (I.sub.OUT2) flows in the on-state transistors instead of in the body diodes. This arrangement enables reduction of heat generation of the full bridge circuit 202_1 (202_2).
(55)
(56) The current-value setting circuit 210 will be described. The current-value setting circuit 210 includes a feedback controller 220, a feedforward controller 240, and a multiplexer 212. The feedforward controller 240 outputs a fixed current set value Ix (=I.sub.FULL) for use in the high torque mode just after start-up. The current set value Ix is set at a large value for prevention of desynchronization.
(57) The feedback controller 220 is active in the high efficiency mode, and outputs a current set value Iy feedback-controlled on the basis of back electromotive force V.sub.BEMF.
(58) In accordance with a mode selection signal MODE, the multiplexer 212 selects one of the two signals Ix and Iy for output as the current set value I.sub.REF.
(59) The feedback controller 220 includes a load-angle estimation unit 222, a subtractor 224, a proportional-integral (PI) controller 226.
(60) The feedback controller 220 generates the current set value Iy such that an estimated load angle φ comes close to a predetermined target angle φ.sub.REF. Specifically, the subtractor 224 generates the error ERR between a detection value cos φ corresponding to the load angle φ and a target value cos(φ.sub.REF) for the detection value cos φ. The PI controller 226 performs PI control arithmetic such that the error ERR becomes zero, to generate the current set value Iy. The processing of the feedback controller 220 can be achieved by an analog circuit including an error amplifier.
(61) The constant-current chopper circuit 250_1 includes a D/A converter 252, a PWM comparator 254, an oscillator 256, and a flip-flop 258. The D/A converter 252 converts the current set value I.sub.REF into analog voltage V.sub.REF. The PWM comparator 254 compares a feedback signal I.sub.NF1 with reference voltage V.sub.REF, and asserts an off-signal S.sub.OFF (set to high) when I.sub.NF1>V.sub.REF is satisfied The oscillator 256 generates a periodic on-signal S.sub.ON that regulates chopping frequency. The flip-flop 258 outputs a PWM signal S.sub.PWM1 that transitions to on-level (e.g., high) in accordance with the on-signal S.sub.ON and transitions to off-level (e.g., low) in accordance with the off-signal S.sub.OFF.
(62) A back-electromotive-force detection circuit 230 detects back electromotive force V.sub.BEMF1 (V.sub.BEMF2) across the coil L1 (L2) of the stepping motor 102. The detecting method for the back electromotive force is not particularly limited, and thus a publicly known technology may be used. In general, for acquisition of the back electromotive force, with a detection window (detection section) set and with both ends of the coil in high impedance, the voltage of the coil is sampled. For example, in the 1 phase excitation or 1-2 phase excitation, the back electromotive force V.sub.BEMF1 (V.sub.BEMF2) can be measured every excitation position (#2, #4, #6, and #8 of
(63) A rotational-speed detection circuit 232 acquires the rotational speed (angular velocity ω) of the stepping motor 102, to generate a detection signal indicating the rotational speed ω. For example, the rotational-speed detection circuit 232 may measure the cycle T (=2π/ω) proportional to the reciprocal of the rotational speed ω and output the cycle T as the detection signal. With no desynchronization, the frequency (cycle) of an input pulse IN is proportional to the rotational speed (cycle) of the stepping motor 102. Therefore, the rotational-speed detection circuit 232 may measure the cycle of the input pulse IN or the cycle of an internal signal generated on the basis of the input pulse IN, as the detection signal.
(64) The load-angle estimation unit 222 estimates the load angle φ, on the basis of the back electromotive force V.sub.BEMF and the rotation speed ω. The load angle φ corresponds to the difference between a current vector determined by the driving current that flows in the first coil L1 (namely, positional command) and the position of the rotor (mover). The back electromotive force V.sub.BEMF1 is given by the following Expression (1)
V.sub.BEMF=K.sub.E.Math.cos φ (1)
(65) where K.sub.E represents the back electromotive force constant and ω represents the rotational speed. Therefore, measurement of the back electromotive force V.sub.BEMF and the rotational speed ω enables generation of a detection value in correlation with the load angle φ. For example, the detection value may be cos φ. In this case, the detection value is given by Expression (2).
(66)
(67) A zero-current detection circuit 290 asserts a zero-current detection signal S.sub.ZC (e.g., set to high) when the absolute value of the coil current I.sub.OUT1 falls below a predetermined threshold value I.sub.ZERO. In response to the assertion of the zero-current detection signal S.sub.ZC, the logic circuit 270 switches the full bridge circuit 202_1 from the inverse state to the off state φ.sub.0.
(68) This arrangement is not limitative, and thus the zero-current detection circuit 290 may include a comparator 292 that compares a current detection signal I.sub.NF1 corresponding to the voltage drop across the detection resistor R.sub.NF provided in the full bridge circuit 202_1, with a threshold voltage V.sub.ZERO.
(69)
(70) According to the driving circuit 200 of
(71)
(72) The feedforward controller 240 outputs a predetermined high-efficiency set value I.sub.LOW in the high efficiency mode. The relationship expressed by I.sub.FULL>I.sub.LOW is satisfied. The current-value setting circuit 210 includes an adder 214 instead of the multiplexer 212 of
(73) Finally, uses for the driving circuit 200 will be described. The driving circuit 200 is used in various types of electronic equipment.
(74) The electronic equipment of
(75) The electronic equipment of
(76) The electronic equipment of
(77) Favorably, the driving circuit 200 can be used not only in the consumer equipment illustrated in
(78) The embodiment of the present invention has been described above. The embodiment is exemplary, and thus persons skilled in the art should understand that various modifications may be made in combination to the constituent elements and the flows of processing in the embodiment and such modifications are to be included in the scope of the present invention. Such modifications will be described below.
Modification 1
(79) In the driving circuit 200 of
Modification 2
(80) In the embodiment, the case where the excitation position changes clockwise has been described. A similar manner is made at the time of counterclockwise rotation. A case where counterclockwise rotation is made in the 1-2 phase excitation will be described with reference to
Modification 3
(81) In the embodiment, the case of the 1-2 phase excitation has been described. However, the excitation method is not limited to the 1-2 phase excitation.
(82)
Modification 4
(83) The logic circuit 270 may adjust the power supply voltage V.sub.DD that is supplied to the full bridge circuit 202, instead of or together with adjustment of the duty cycle of the pulse modulation signal S2, such that the load angle φ comes close to the target angle φ.sub.REF. Change of the power supply voltage V.sub.DD enables change of power that is supplied to the coils L1 and L2 of the stepping motor 102.
Modification 5
(84) The full bridge circuit 202 may be different in chip from the driving circuit 200 or may be a discrete component.
Modification 6
(85) The generating method for the current set value Iy in the high-efficiency mode is not limited to that described in the embodiment. For example, with a target value V.sub.BEMF(REF) determined for the back electromotive force V.sub.BEMF1, a feedback loop may be provided such that the back electromotive force V.sub.BEMF1 comes close to the target value V.sub.BEMF(REF).
Modification 7
(86) In the embodiment, the currents I.sub.OUT1 and I.sub.OUT2 that flow in the two coils are turned on or off in accordance with the excitation position. The amounts of the currents I.sub.OUT1 and I.sub.OUT2 are constant regardless of the excitation position. In this case, torque varies in the 1-2 phase excitation. Instead of this control, the currents I.sub.OUT1 and I.sub.OUT2 may be corrected such that the torque remains constant regardless of the excitation position. For example, in the 1-2 phase excitation, the amounts of the currents I.sub.OUT1 and I.sub.OUT2 at excitation positions #2, #4, #6, and #8 may be √2 times as large as at excitation positions #1, #3, #5, and #7.
Modification 8
(87) In the embodiment, the feedback controller 220 includes the PI controller, but this is not limitative. Thus, for example, the feedback controller 220 may include a PID controller.
(88) While the preferred embodiments of the present invention have been described using specific terms, such description is for illustrative purposes only, and it is to be understood that changes and variations may be made without departing from the spirit or scope of the appended claims.