Stepper Motor Control


Posted on Feb 6, 2014

This program initializes all of the sixteen io lines of the U4x1 to be outputs. The lower four port pins of port A (A. 0 - A. 3) are `channel 1` when it concerns stepper activity, the upper four port pins of port A (A. 4 - A. 7) are `channel 2` when it concerns stepper activity. `Direction` sets the direction that the stepper motor moves. The actua


Stepper Motor Control
Click here to download the full size of the above Circuit.

l direction does depend on the stepper motor wiring. The rate is the period in 128 microsecond increments, "100" in the example is 12. 8 ms between each step. The "Init" command will pass the initial step value to the motor. This is the first positional value. While the motor is running, the direction can be changed and the rate changed.




Leave Comment

characters left:

Related Circuits

  • New Circuits

    .

     


    Popular Circuits

    Tone-dialing-telephone
    10 w amplifier using tda2003
    Lamp flasher using LM317
    Electronic Lamp Dimmer Circuit
    FM Receiver Circuit
    led blinking 8051 microcontroller keil c tutorial at89c51
    A Regenerative Receiver with AGC for 80 Meters or 3-10 MHz Shortwave
    Compressor For Electret Microphone
    VCO Seiler 80Mhz-300Mhz
    It can send a signal to start forward rotation start circuit
    LM3886 two-channel audio amplifier circuit diagram



    Top