October 14, 2011

Bipolar Stepper Circuit

Bipolar Stepper Motor
Arduino
Dual H-Bridge

add: 2x 1kΩ Resistor
2x 10kΩ
2x NPN Transistor

1 comment:

  1. #include
    #define STEPS 200 //360° divided by step angle
    Stepper stepper(STEPS, 9, 10, 11, 12);
    int inc=100;

    void setup(){
    stepper.setSpeed(30); //RPMs
    }

    void loop(){
    stepper.step(inc);
    delay(100);
    stepper.step(-1*inc);
    delay(100);
    }

    ReplyDelete