A Unipolar Stepper Motor Driver


Posted on Feb 7, 2014

The drive circuits for Unipolar stepper motors are usually very simple. In its simplest form, a transistor or MOSFET is used to drive each section of the windings. With this design, the control signal must be supplied programmatically to the four windings of the unipolar stepper motor via an MCU. The programming can become quite complex when the s


A Unipolar Stepper Motor Driver
Click here to download the full size of the above Circuit.

tepping mode (e. g. half stepping/full stepping), stepping direction and rotation speed all need to be controlled. Basically, the L297 is used to generate the stepping signals needed by the stepper motor. The SENSE, CONTROL, INH and VRef pins can be used in tandem to provide finer PWM current control and faster decay. But in all but the most strict applications, these features are rarely needed. So I omitted these features by tying CONTROL and SENSE pins to the ground and set VRef to Vcc. The INH pins are left unused. This way the complexity of the circuit is greatly reduced. If you intend to use these pins, please refer to the following application note (AN470). To test this circuit, I used an Arduino MCU board and used digital pin 10 to generate the required clock signal. For simplicity, the step mode pin and the direction pin are grounded (full step, counter clockwise) as seen in the picture below, but these two pins can also be controlled programmatically. The actual program is very simple, all we needed to do is to provide a clock signal. The following code used the bit-banging method to generate the clock signal at roughly 250 Hz. int PIN_CLK = 10; void setup() { pinMode(PIN_CLK, OUTPUT); digitalWrite(PIN_CLK, LOW); } void loop() { digitalWrite(PIN_CLK, HIGH); delay(2); digitalWrite(PIN_CLK, LOW); delay(2); }




Leave Comment

characters left:

Related Circuits

  • New Circuits

    .

     


    Popular Circuits

    Breadboard header for ATTiny
    Data Based IQ Demodulator
    The single-phase sine wave frequency conversion stabilized voltage supply is designed and made
    10-Band Graphic Equalizer
    compressor
    radio remote control
    555 Electronic Metronome Circuit
    GSM Remote Control Temperature Control Schematic
    Demodulating Receiver
    DC Motor Control circuit
    Solid-Motion
    Electronic thermometer
    LED display control circuit diagram of a counter
    Circuit having a high school bass tone function



    Top