Connect with us

How to connect a stepper motor to a bipolar driver

Discussion in 'Microcontrollers, Programming and IoT' started by Emam, Feb 9, 2015.

Scroll to continue with content
  1. Emam

    Emam

    60
    4
    Jul 7, 2014
    Dear all,
    I have a big problem to connect my stepper motor to a bipolar dirver.

    On the driver I have several inputs including (pulse+, pulse-, direction +, direction -, enable +, enable -) etc.
    And the outputs: motor phase A, and phase B.

    Questions:
    1) my motor has 6 wires. And I have only 4 inputs on my driver!! what should I do with the 2 other wires?
    2) Can you please tell me if I can find a good tutorial to understand these connections?

    Many thanks and bests regards
     
  2. BobK

    BobK

    7,682
    1,686
    Jan 5, 2010
    Two of the 6 wires will be center taps of 2 others. I.e. there are actually two center-tapped coils. Use an Ohmmeter to determine which wires are which, and then just ignore the center tap wires.

    Bob
     
  3. Emam

    Emam

    60
    4
    Jul 7, 2014
    You can find the schematic of my connections in the file attached.
    I left the common wires open (unconnected).
    This is a summary of the code:


    // ports direction = output
    // all ports =0
    // direction = 1

    while (1)
    :
    enable =1
    pulse=0
    wait ()
    pulse=1
    wait ()
    enable =0
    :

    This code send continiously pulses (because its in a while loop).
    The wait() is about 100 ms. I changed it several times to see if it can help me to resolve my problem, but it did not.
    This code set the enable to 1 at the begining of each iteration of the while loop. I think I have also tried to set it to 1 during the whole motor movement. but if I am not wrong did not resolve the problem.

    So its a wrong way to do?
    Bests regards
     

    Attached Files:

  4. Gryd3

    Gryd3

    4,098
    875
    Jun 25, 2014
    Updates from PMs:


    Thank you for the diagrams
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-