Stepper Motor Generator

Not rated 10,177

Circuit Image

Stepper motors are a recurring topic of interest. This circuit converts a clock signal from a square wave generator into signals that have a 90-degree phase difference, which are necessary for driving the stepper motor windings. The trade-off for this simplicity is a reduction in frequency by a factor of four. However, this is not an issue, as increasing the input frequency can compensate for it. The timing diagram illustrates that the counter outputs from the 4017 are combined using inverting OR gates to create two square waves with a phase difference. This generates the correct sequence for energizing the windings: first, the first winding is negative while the second is positive; then both windings are negative; next, the first winding is positive while the second is negative; and finally, both windings are positive. Internally, the 4017 consists of a divide-by-10 counter followed by a decoder. Output 0 is active (logic one) as long as the internal counter remains at zero. With each positive edge of the clock signal, the counter increments to 1, activating output 1. This process continues until output 4 becomes logic one, at which point this signal connects to the reset input, immediately resetting the counter to the zero state. Observing this output with an oscilloscope requires precise setup due to the brevity of the pulse. The output of an OR gate can only supply several milliamperes, which is insufficient for directly driving a stepper motor. Therefore, a suitable driver circuit is required between the generator and the stepper motor.

The described circuit effectively utilizes a 4017 decade counter to generate the necessary control signals for a stepper motor. The 4017 counter divides the input clock frequency by ten, which is critical for creating the required phased signals for the motor operation. The phase difference is achieved through the use of inverting OR gates, allowing for the generation of two square waves that are 90 degrees apart.

The sequence of energizing the motor windings is crucial for proper stepper motor operation. Each state of the 4017 counter corresponds to a specific configuration of the motor windings, ensuring that the motor steps through its sequence in a controlled manner. The arrangement of the windings—alternating between positive and negative states—ensures that the rotor moves in a precise, incremental manner.

To drive the stepper motor effectively, a driver circuit is essential due to the limited current output from the OR gate. This driver circuit typically consists of transistors or MOSFETs that can handle higher current loads, allowing for the stepper motor to be powered efficiently. The driver receives the low-current control signals from the OR gates and amplifies them to a suitable level for the motor operation.

In summary, this circuit design demonstrates an efficient method for controlling stepper motors by converting clock signals into phased outputs, utilizing a decade counter, and incorporating a driver stage to manage the power requirements of the motor. Careful consideration of the timing and sequencing of the outputs is necessary to ensure smooth operation of the stepper motor, making this circuit a practical solution for applications requiring precise motor control.Stepper motors are a subject that keeps recurring. This little circuit changes a clock signal (from a square wave generator) into signals with a 90-degree phase difference, which are required to drive the stepper motor windings. The price we pay for the simplicity is that the frequency is reduced by a factor of four. This isn`t really a problem, s ince we just have to increase the input frequency to compensate. The timing diagram clearly shows that the counter outputs of the 4017 are combined using inverting OR gates to produce two square waves with a phase difference. This creates the correct sequence for powering the windings: the first winding is negative and the second positive, both windings are negative, the first winding is positive and the second negative, and finally both windings are positive.

Internally, the 4017 has a divide-by-10 counter followed by a decoder. Output 0` is active (logic one) as long as the internal counter is at zero. At the next positive edge of the clock signal the counter increments to 1 and output 1` becomes active. This continues until output 4` becomes a logic one. This signal is connected to the reset input, which immediately resets the counter to the zero` state.

If you were to use an oscilloscope to look at this output, you would have to set it up very precisely before you would be able to see this pulse; that`s how short it is. The output of an OR gate can only supply several mA, which is obviously much too little to drive a stepper motor directly.

A suitable driver circuit, which goes between the generator and stepper motor. 🔗 External reference