element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Use a uni-polar stepper in place of a bi-polar stepper
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 9 replies
  • Subscribers 394 subscribers
  • Views 678 views
  • Users 0 members are here
  • stepper motor
  • stepper
Related

Use a uni-polar stepper in place of a bi-polar stepper

gub11
gub11 over 9 years ago

I have an instructables (Frameless Laser Harp ) that I attempted to build about 6 months ago, but failed as it was too advanced for me then.  Now I think I really understand what is happening and realized that I have a unipolar stepper when the instructables calls for what I can only assume is a 6 wire bi-polar stepper, as it uses a uln2003a(a bi-polar stepper driver).  Is there any way to get this project to work with my 4-wire unipolar stepper?  ( https://www.sparkfun.com/products/10551  ).  I assumed I would need a different stepper driver, so what should I be looking for?

  • Sign in to reply
  • Cancel

Top Replies

  • balearicdynamics
    balearicdynamics over 9 years ago in reply to gub11 +1 verified
    Gabriel, I think that you should try to find a scenario on how the stepepr motors (bipolar and unipolar) works. First of all, divide the problem in two smaller and easier problems. Just as I have done…
  • Nate1616
    0 Nate1616 over 9 years ago

    Gabriel-

    If the link is the motor you are using then you would want something similar to this driver https://www.sparkfun.com/products/12779

    I'm not sure what the project is but be aware the code would change slightly with a different setup.

     

    Nate

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gub11
    0 gub11 over 9 years ago in reply to Nate1616

    I just linked the instructables, in case that helps at all

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • balearicdynamics
    0 balearicdynamics over 9 years ago

    Gabriel,

     

    it is possible to connect a unipolar stepper motor instead of a bipolar stepper motor. It is not very difficult as it is essentially a question of different wiring as you have only four wires to connect. I think that this link maybe useful for you. Let me know if you need more help or something sounds difficult to understand to you.

     

    https://www.arduino.cc/en/Reference/StepperUnipolarCircuit

     

    Enrico

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gub11
    0 gub11 over 9 years ago in reply to balearicdynamics

    It's helpful but how do I get wires 5 and 6 in both schematics I know that those are the common wires but my stepper only has 4 wires so I don't have those Do i bridge 2 wires from the same coil together to get 1 of the common wires Also I am using the uln2003a so I would look at the first schematic but that schematic only has 2 wires going to the arduino but the code I have accounts for 4 so how would I edit the code to only move the stepper using 2 output pins

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gub11
    0 gub11 over 9 years ago in reply to Nate1616

    I have been reading about the driver you linked for a bit and I think I understand how to drive my stepper with it.  If you could take a look at my code I have a pretty simple question.  The only part dealing with the stepper is in between the sections where the laser turns on and off(you can just search for the word motor to see where I am talking about).  If I use the driver you linked I could set the MSx pins to HIGH the motor would move an eighth of a step each time.  So whenever I needed to move the motor I would just change the state of the step pin until I had to move the motor backwards, right?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • balearicdynamics
    0 balearicdynamics over 9 years ago in reply to gub11

    Gabriel, I think that you should try to find a scenario on how the stepepr motors (bipolar and unipolar) works. First of all, divide the problem in two smaller and easier problems.

     

    Just as I have done, google "arduino unipolar stepper (https://www.google.nl/search?q=arduino+unipolar+stepper+four+wires&espv=2&biw=1429&bih=911&tbm=isch&tbo=u&source=univ&sa… ) and then try to understand by yourself what does it means. You should not limit yourself to copy and paste circuits and sources but use the project you want making changes and adjustments, just as the opportunity to understand something new.

     

    As you search for specific circuits with Arduino, you will find also some source code example. So try it and first of all solve the motor problem. Understand and discover how to move it, change direction, speed, etc.

     

    Then, get the project code and try to replace the motor management part with your code, that will move exactly your motor.

     

    IMHO it is better than try to find exactly what you need already done by someone else.

     

    Enrico

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • gub11
    0 gub11 over 9 years ago in reply to balearicdynamics

    Thanks for the tip, I agree that it would be way better to look at this an opportunity to learn something new, so I edited the code to fit with the easydriver that @Nate1616 mentioned and figured how to wire it all up.  I just ordered the driver, I'll update the thread on what happens with the project, thanks a lot.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • balearicdynamics
    0 balearicdynamics over 9 years ago in reply to gub11

    Perfect ! Keep us informed on your project evolution.

     

    Enrico

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • D_Hersey
    0 D_Hersey over 9 years ago

    If you have a six or eight-wire uinipolar motor you can convert it to a bipolar motor, if you have a four-wire unipolar motor you are stuck

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube