DRIVING CIRCUIT AND DRIVING METHOD OF STEPPING MOTOR AND ELECTRONIC MACHINE USING THE SAME
20200274469 ยท 2020-08-27
Inventors
Cpc classification
H02P8/10
ELECTRICITY
H02P8/22
ELECTRICITY
International classification
Abstract
The present invention optimizes a current setting value within a short time. The present invention relates to a driving circuit and a driving method for a stepping motor, and an electronic machine using the same. A current value setting circuit generates a current setting value. A constant current chopper circuit generates a pulse modulation signal, which pulse-width modulates by way of having a detection value of a coil current flowing through a coil approach close to the current setting value. A logic circuit controls a bridge circuit connected to a coil of a stepping motor according to the Pulse modulation signal. The current value setting circuit sets the current setting value to a predetermined full-torque setting value in a first period after rotation starts, reduces the current setting value by a predetermined method to a predetermined second setting value less than the first setting value in the following second period, and switches to a high-efficiency mode and adjusts the current setting value by means of feedback control.
Claims
1. A driving circuit that is the driving circuit of a stepping motor, comprising: a current value setting circuit, generating a current setting value; a constant current chopper circuit, generating a pulse modulation signal, wherein the pulse modulation signal pulse modulates a detection value of a coil current flowing in a coil to be close to a target value, wherein the target value is based on the current setting value; a logic circuit, controlling a bridge circuit connected to a coil of the stepping motor according to the pulse modulation signal; wherein the bridge circuit, in a first period that an rotation is began, sets the current setting value to be a predetermined first setting value, in a second period, lowers the current setting value to a predetermined second setting value that is smaller than the first setting value according to a predetermined pattern, and switching to a high efficiency mode, modifies the current setting value by a feedback control.
2. The driving circuit according to claim 1, wherein, the current value setting circuit changes the current setting value in N steps from the first setting value to the second setting value in the second period, where N is more than or equal to 2.
3. The driving circuit according to claim 1, wherein the current value setting circuit comprises: a calculation portion, generating at least one intermediate value acquired by internally dividing the first setting value and the second setting value; a multiplexer, receiving the first setting value, the second setting value and at least one of the setting value, and selecting one of the setting value corresponding to a control data; and a waveform controller, changing the control data along with the time in the second period.
4. The driving circuit according to claim 2, wherein the current value setting circuit comprises: a calculation portion, generating at least one intermediate value acquired by internally dividing the first setting value and the second setting value; a multiplexer, receiving the first setting value, the second setting value and at least one of the setting value, and selecting one of the setting value corresponding to a control data; and a waveform controller, changing the control data along with the time in the second period.
5. The driving circuit according to claim 2, wherein the widths of the steps are equal.
6. The driving circuit according to claim 1, wherein the logic circuit generates a mask signal according to period of an input clock, wherein the mask signal regulates triggering of the transition from the first period to the second period.
7. The driving circuit according to claim 1, further comprising a counter-electromotive force (EMF) detection circuit, detecting a counter-EMF generated by the coil, wherein the current value setting circuit performs feedback control on the current setting value according to the counter-EMF in the high-efficiency mode.
8. The driving circuit according to claim 7, wherein the current value setting circuit further comprises: a load angle estimating portion, estimating a load angle according to the counter-EMF; and a feedback controller, generating the current setting value by having the estimated load angle approach to a predetermined target angle.
9. The driving circuit according to claim 1, wherein the driving circuit is integrated on a semiconductor substrate.
10. An electronic machine, comprising a stepping motor; and driving the stepping motor by the driving circuit of claim 1.
11. A driving method that is the driving method for a stepping motor, comprising: in a first period after rotation starts, setting a current setting value to a predetermined first setting value; in a second period, lowering the current setting value to a predetermined second setting value that is smaller than the first setting value according to a predetermined pattern; switching to a high-efficiency mode, and modifying the current setting value by a feedback control; generating a pulse modulation signal, wherein the pulse modulation signal pulse modulates a detection value of a coil current flowing in a coil to be close to a target value, wherein the target value is based on the current setting value; and controlling a bridge circuit connected to a coil of the stepping motor according to the pulse modulation signal.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
[0035]
[0036]
[0037]
[0038]
DETAILED DESCRIPTION OF THE EMBODIMENTS
[0039] Details of the present invention are given in preferred embodiments with the accompanying drawings below. The same or equivalent constituent elements, components, or processes depicted in the drawings are represented by the same denotations, and repeated description is appropriately omitted. Further, the embodiments are examples that do not form limitations to the present invention. All features stated in the embodiments and any combination thereof are not necessarily essential features of the present invention.
[0040] In the description, a state of component A being connected to component B includes, in addition to a situation where component A and component B are directly physically connected, a situation where component A and component B are indirectly connected by other components, in a way that no substantial influences are produced on the electrical connection state thereof or no damage on functions and effects produced thereby in combination is resulted.
[0041] Similarly, a state of component C being arranged between component A and component B includes, in addition to a situation where component A and component C or component B and component C are directly connected, a situation where the components are indirectly connected by other components, in a way that no substantial influences are produced on the electrical connection state thereof or no damage on functions and effects produced thereby in combination is resulted.
[0042] For better understanding, the vertical and horizontal axes of waveform diagrams and timing diagrams referred in the description are appropriately scaled up or scaled down. Further, the waveforms depicted are simplified, exaggerated or emphasized for better understanding.
[0043]
[0044] The input clock CLK is inputted from the host controller 2 to an input pin IN of the driving circuit 200. Further, a direction indication signal DIR indicating a clockwise (CW) direction or a counterclockwise (CCW) direction is inputted to a direction indication pin DIR of the driving circuit 200.
[0045] Each time when the input clock CLK is inputted to the driving circuit 200, a rotor of the stepping motor 102 rotates toward a direction corresponding to the direction indication signal DIR by a predetermined angle.
[0046] The driving circuit 200 includes 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, which are integrated on one semiconductor substrate.
[0047] In this embodiment, the stepping motor 102 is a 2-phase motor, and includes a first coil L1 and a second coil L2. The driving method of the driving circuit 200 is not specifically defined. In this embodiment, a bipolar driving method is used to support 2-phase excitation, 12-phase excitation and micro-step driver.
[0048] The bridge circuit 202_1 of a first channel CH1 is connected to the first coil L1. The bridge circuit 202_2 of a second channel CH2 is connected to the second coil L2.
[0049] Each of the bridge circuits 202_1 and 202 2 includes four transistors M1 to M4, and an H-bridge circuit (a full-bridge circuit) of a pre-driver (not shown). The transistors M1 to M4 of the bridge circuit 202_1 are switched according to a control signal CNT1 from the logic circuit 270, accordingly switching the voltage (also referred to as a first coil voltage) V.sub.OUT1 of the first coil L1.
[0050] The bridge circuit 202_2 is identically structured as the bridge circuit 202_1, the transistors M1 to M4 thereof are switched according to a control signal CNT2 from the logic circuit 270, accordingly switching the voltage (also referred to as a second coil voltage) V.sub.OUT2 of the second coil L2.
[0051] The current value setting circuit 210 generates a current setting value I.sub.REF. The constant current chopper circuit 250_1 generates a pulse modulation signal S.sub.PWM1 while electricity passes through the first coil L1, wherein the pulse modulation signal S.sub.PWM1 pulse-width modulates by way of having a detection value I.sub.NF1 of a coil current I.sub.L1 flowing through the first coil L1 approach close to a target value of the current setting value I.sub.REF. The constant current chopper circuit 250_2 generates a pulse modulation signal S.sub.PWM2 while electricity passes through the second coil L2, wherein the pulse modulation signal S.sub.PWM2 pulse-width modulates by way of having a detection value I.sub.NF2 of a coil current I.sub.L2 flowing through the second coil L2 approach close to the target value of the current setting value I.sub.REF.
[0052] Each of the bridge circuits 202_1 and 202_2 includes a current detection resistor R.sub.NF, and the voltage of the current detection resistor R.sub.NF reduces to become a detection value of the coil current IL. Further, the position of the current detection resistor R.sub.NF is not limited, and the current detection resistor R.sub.NF can be configured on a power side, or be connected to the coils in series and be configured between two outputs of the bridge circuits.
[0053] The logic circuit 270 controls the bridge circuit 202_1 connected to the first coil L1 according to the pulse modulation signal S.sub.PWM1. Further, the logic circuit 270 controls the bridge circuit 202_2 connected to the second coil L2 according to the pulse modulation signal S.sub.PWM2.
[0054] Each time when the input clock CLK is inputted to the logic circuit 270, the excitation position is changed and the coil (or coil pair) supplying current is switched. The excitation position is considered as a combination of the values of the respective coil currents of the first coil L1 and the second coil L2 and the direction. The excitation position can be changed according to a positive edge or a negative edge of the input clock CLK, or can be changed according to both the edges thereof.
[0055] The current value setting circuit 210 sets the current setting value I.sub.REF to a predetermined first setting value (to be referred to as a full-torque setting value hereinafter) I.sub.FULL in a first period T.sub.1 after rotation starts, reduces the current setting value I.sub.REF by a predetermined method to a predetermined second setting value (to be referred to as a high-efficiency setting value) I.sub.LOW less than the full-torque setting value I.sub.FULL in a following second period T.sub.2, and generates a mask signal MASK in the driving circuit 200 to regulate triggering of the transition from the first period T.sub.1 to the second period T.sub.2.
[0056] A timing generator for generating the mask signal MASK is provided in the motor driving circuit 200. The timing generator includes, for example, a counter counting the period of the input clock CLK. If the period of the input clock CLK is persistently stable for multiple cycles, the level of the mask signal MASK can be changed to have transition from the first period T.sub.1 to the second period T.sub.2. Further, if a predetermined time period has passed, or if a predetermined number of the input clock CLK has been inputted, the current value setting circuit 210 can switch to a high-efficiency mode.
[0057] Then, the current value setting circuit 210 switches to a high-efficiency mode, and adjusts the current setting value I.sub.REF by means of feedback control.
[0058] The structure of the driving circuit 200 is as above, and the operation thereof is to be described below.
[0059] To better demonstrate the effect of the driving circuit 200, the operation of a conventional driving circuit is illustrated again with reference to
[0060] Referring to
[0061] At a time point t.sub.2, the process enters a second period T.sub.2. In the second period T.sub.2, the current setting value I.sub.REF reduces toward the high-efficiency setting value I.sub.LOW. In this embodiment, the current setting value I.sub.REF passes through one intermediate value and changes in a stepped manner, wherein the intermediate value is a middle point between the full-torque setting value I.sub.FULL and the high-efficiency setting value I.sub.LOW.
[0062] At a time point t.sub.3, the second period T.sub.2 ends, and the process enters a high-efficiency mode. In the high-efficiency mode, the current setting value I.sub.REF is adjusted by means of feedback control and converted to the most appropriate value I.sub.OPT in a constant state. The time needed for the convergence is less than the delay time in
[0063] The above description is the operation of the driving circuit 200, and the advantages thereof are to be described below.
[0064] In the high-efficiency mode, the convergence value I.sub.OPT of the current setting value I.sub.REF can be predicted (including by measurement and calculation) according to a load of the stepping motor. Further, by setting a predicted convergence value I.sub.OPT{circumflex over ()} as the high-efficiency setting value I.sub.LOW, the current setting value I.sub.REF can be changed to the predicted convergence value I.sub.OPT{circumflex over ()} within a short time in the second period T.sub.2. The predicted convergence value I.sub.OPT{circumflex over ()} is close to the actual convergence value I.sub.OPT, and thus the current setting value I.sub.REF can be converged to the actual convergence value I.sub.OPT within a short time after the switching to the high-efficiency mode.
[0065] The present invention can be understood on the basis of the block diagram and circuit diagram in
[0066]
[0067] In
[0068] In
[0069] In
[0070]
[0071] The feedforward controller 240 is activated in the first period T.sub.1 and generates a current setting value Ix. The feedback controller 220 is activated in the second period T.sub.2 and generates a current setting value Iy. The multiplexer 212 selects the current setting value Ix in the first period T.sub.1, and selects the current setting value Iy in the second period T.sub.2. The multiplexer 212 is controlled by a mode control signal MODE.
[0072] The feedforward controller 240 can also include a calculation portion 242, a multiplexer 244, a waveform controller 246, and a multiplexer 248.
[0073] The calculation portion 242 generates at least one intermediate value I.sub.M1 to I.sub.MN acquired by internally dividing the full-torque setting value I.sub.FULL and the high-efficiency setting value I.sub.LOW. In this example, N equals 3.
[0074] For example, the intermediate setting values I.sub.M to I.sub.M3 can be generated by the following method.
IM1=(3I.sub.FULL+1I.sub.LOW)/(N+1)
IM2=(2I.sub.FULL+2I.sub.LOW)/(N+1)
IM3=(1I.sub.FULL+3I.sub.LOW)/(N+1)
[0075] In this case, the steps have equal widths. In summary, the i.sub.th intermediate value is set as:
IMi={(N+1i)I.sub.FULL}/(N+1)
[0076] The multiplexer 244 receives the high-efficiency setting value I.sub.LOW and the at least one setting value I.sub.M1 to I.sub.MN, and selects one corresponding to control data SW from the setting values. In this embodiment, the control data SW is 2-bit, I.sub.M1 is selected for [00], I.sub.M2 is selected for [01], I.sub.M3 is selected for [10] and I.sub.LOW is selected for [11].
[0077] The multiplexer 248 receives outputs of the full-torque setting value I.sub.FULL and the multiplexer 244. The period when the mask signal MASK is asserted (high) is the first period T.sub.1, and the full-torque setting value I.sub.FULL is selected. When the mask signal MASK is negated (low), the output of the multiplexer 244 is selected, and the process proceeds to the second period T.sub.2.
[0078] The waveform controller 246 changes the control data SW along with time when the mask signal MASK is negated. The number of steps can be set according to the sequence of the control data SW. The waveform controller 246 can synchronously change the control data SW along with an input clock 51; for example, changing the control data SW at a positive edge of each input clock S1.
[0079] The waveform controller 246 is aware of the timing at which the transition is complete, and thus the mode control signal MODE can be generated by the waveform controller 246.
[0080] For example, if the control data SW is fixed at [11] in the second period T.sub.2, the waveform in
[0081] Thus, various transition methods can be implemented with the same hardware by using the current value setting circuit 210 in
[0082]
[0083] The counter-EMF detection circuit 230 detects a counter-EMF V.sub.BEFM1 generated by the first coil L1. The method for detecting the counter-EMF is not specifically limited, and can be implemented by commonly known techniques. In general, the counter-EMF can be obtained by the following method: setting a detection window (detection interval), setting two ends of the coil as high impedance, and sampling the voltage of the coil at this point.
[0084] A rotation number detection circuit 232 obtains a rotation number (frequency) of the stepping motor 102, and generates a detection signal representing the rotation number . For example, the rotation number detection circuit 232 can detect a period T (=2/) directly proportional to the reciprocal of the rotation number , and output the period T as the detection signal. In a situation free from out-of-step, the frequency (period) of the input clock CLK is directly proportional to the rotation number (period) of the stepping motor 102. Thus, the rotation number detection circuit 232 can also set the detection signal by detecting the input clock CLK, or on the basis of the period of an internal signal generated thereby.
[0085] The feedback controller 220 includes a load angle estimating portion 222, a subtractor 224, a proportional integration (PI) controller 226.
[0086] The feedback controller 220 performs, in the high-efficiency mode, feedback control on the current setting value I.sub.REF(=Iy) according to the counter-EMF V.sub.BEMF1. The load angle estimating portion 222 estimates a load angle according to the counter-EMF V.sub.BEMF1. The load angle is equivalent to a difference between a current vector (i.e., position instruction) specified by the driving current flowing through the first coil L1 and the position of the rotor (mover).
[0087] The counter-EMF V.sub.BEMF1 in the detection interval is provided according to the following equation:
V.sub.BEMF1=K.sub.E.Math..Math.cos
[0088] In the equation above, K.sub.E is an induced voltage constant, and is the rotation number. Thus, by measuring the counter-EMF V.sub.BEMF1, a detection value correlated with the load angle can be generated. For example, cos can be set as the detection value. In this case, the detection value is represented by the following equation:
[0089] The feedback controller 220 generates the current setting value Iy by way of having the estimated load angle approach close to the predetermined target angle .sub.REF. More specifically, the subtractor 224 generates an error ERR according to the detection value cos of the load angle and the target value cos(.sub.REF). The PI controller 226 performs a PI control operation by way for having the error ERR become zero and generates the current setting value Iy. Alternatively, a proportional (P) controller using a P control operation or a proportional integral derivative (PID) performing a PID control operation can be used as substitution for the PI controller. Alternatively, the processing of the feedback controller 220 can also be realized by an analog circuit using an error amplifier.
[0090] Further, the method for optimizing the current setting value Iy is not limited to the above. For example, a target value V.sub.BEMF(REF) of the counter-EMF V.sub.BEMF1 can also be specified in advance, such that a feedback loop is formed by having the counter-EMF V.sub.BEMF1 approach close to the target value V.sub.BEMF(REF).
[0091] The constant current chopper circuit 250_1 includes a digital-to-analog converter (DAC) 252, a PWM comparator 254, an oscillator 256, and a flip-flop 258. The DAC 252 converts the current setting value I.sub.REF to an analog voltage V.sub.REF. The PWM comparator 254 compares the feedback signal I.sub.NF1 with the reference voltage V.sub.REF, and asserts a turn-off signal S.sub.OFF (setting to high) if I.sub.NF1>V.sub.REF. The oscillator 256 generates a periodic turn-on signal S.sub.ON specifying the chopper frequency. The flip-flop 258 outputs the pulse modulation signal S.sub.PMW1, which changes to an on level (e.g., high) according to the turn-on signal S.sub.ON or changes to an off level (e.g., low) according to the turn-off signal S.sub.OFF.
[0092]
[0093] Lastly, the purpose of the driving circuit 200 is described. The driving circuit 200 is used in various electronic machines.
[0094] The electronic machine in
[0095] The electronic machine in
[0096] The electronic machine in
[0097] The present invention is described by way of the embodiments above. The embodiments are examples, and a person skilled in the art should understand that there are numerous variation embodiments from combinations of these constituent elements and processes. Further, such variation embodiments are to be encompassed within the scope of the present invention. Some variation embodiments are described below.
Variation Embodiment 1
[0098] In the embodiments above, a situation where the bridge circuit 202 includes a full-bridge circuit (H bridge) is given as an example; however, the present invention is not limited thereto, and a half-bridge circuit can be included. Further, the bridge circuit 202 and a driving circuit 200A (200B) can be different chips, or can be discrete parts.
Variation Embodiment 2
[0099] In the embodiments above, the two currents I.sub.OUT1 and I.sub.OUT2 flowing through the two coils are connected or disconnected according to the excitation position, but the current amounts thereof are constant and are not associated with the excitation position. In this case, the torque changes according to the excitation position. In substitution for the control, the currents I.sub.OUT1 and I.sub.OUT2 can also be corrected by a fixed means in which the torque is not associated with the excitation position. Referring to
Variation Embodiment 3
[0100] The logic circuit 270 can also adjust the power voltage V.sub.DD supplied to the bridge circuit 202 in substitution for or in combination with the method of adjusting the duty cycle of the PMW signal S2 by way of having the load angle approach close to the target angle .sub.REF. By changing the power voltage V.sub.DD, the power in the coils L1 and L2 of the stepping motor 102 can be changed.
[0101] The present invention has been described in terms of the embodiments above. However, these embodiments demonstrate merely principles and applications of the present invention. There are numerous variations embodiments and configuration modifications without departing from the scope of the concept of the present invention, as specified in the appended claims.