element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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
element14's The Ben Heck Show
  • Challenges & Projects
  • element14 presents
  • element14's The Ben Heck Show
  • More
  • Cancel
element14's The Ben Heck Show
Forum Harvesting Stepper Motors
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join element14's The Ben Heck Show to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 10 replies
  • Subscribers 27 subscribers
  • Views 895 views
  • Users 0 members are here
  • stepper_motor
Related

Harvesting Stepper Motors

Former Member
Former Member over 11 years ago

Hi,

 

I have a question (and may even be suitable for part of a show).

 

I've rescued some stepper motors from a couple of old printers but the wiring colours don't appear to match any know conventions I can find. Is there a simple method for discovering what order to wire them up to something like a L293D motor controller?

 

The motor I have in front of me now has 4 wires; orange, black, yellow and brown. I feel like I've tried every combination and tested it using the stepper_oneRevolution sketch on the Arduino but most just appear to make it vibrate and jitter uncontrollably. I understand the leads should be in two pairs but which of the pins in this sketch relate two the pairs on the motor?

 

Hopre the question makes sense!

 

Cheers,

 

Danny.

  • Sign in to reply
  • Cancel
  • Former Member
    0 Former Member over 11 years ago

    You almost have to get the specs on stepper motors. I have found some that required more than just ones and zeroes. I have taken stepper motors out of old 5 1/4 inch drives and used an ohmmeter to determine the wiring. Everything after that was simple.http://www.linengineering.com/LinE/_images/Wiring.jpg

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Cheers, can you explain further how you determine the pairs using resistance and how they should be driven from an Arduino? As I mentioned, my wiring colour doesn't match any of the schemes I've found, unfortunately including the one you've shown so I'd like to determine which is '1', '2', '3' and '4'

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Dammit, I wish I could edit my original post now!

     

    relate two the pairs on the motor?  = relate to the two pairs on the motor?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Hi Danny!

    First of all, sorry about my poor English.

    Let me try to help you.

    First, fill the table bellow using an ohmmeter tool:

                              Orange                black                     yellow                  brown

    Orange                0                          ------                     -------                    --------

    Black                   -------                    0                          -------                    --------

    Yellow                  -------                    ------                     0                          --------

    Brown                  -------                    ------                     -------                    0

     

    Probably you are working with a two phase step motor. So you will find low resistance between 2 pairs of wires. This will indicate the phase one and phase two.

    If this is true, you can connect in your drive the phases. I do not have experience with Arduino, but I know how to make a standard step motor driver using standard ttl logic. If necessary I can send to you.

    OK. Try to run the motor. If it vibrates, try to change the order of only one pair of wires.

    If it still vibrates, try to repeat the test with low speed. I think that you can do it using delay in your Arduino program.

    I hope this can help you. If not, let me know to try with you another solution.

    Best regards,

    Gfranco

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Hi Guilherme,

     

    Your English is absolutely fine, I really struggle with second languages.

     

    I will test the motor and fill in the table this evening when I get home from work. Using TTL logic, what order should the pairs be powered to give a smooth rotation?

     

    Thanks for your help, it's much appreciated!

     

    Danny.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Hi Danny,

    thank you, you are so kind.

    Suppose that you are working with 2 phase step motor. The electrical current throught the phases will something like that, where 1 means the current in one direction and -1 means opposite direction of the current,:

    Phase one=> 1 1 -1 -1 1 1 -1 -1 1 1 -1 -1

    Phase two=> 1 -1 -1 1 1 -1 -1 1 1 -1 -1

    Or graphically:

                                   __      __      __

    Phase one=> __|    |__|    |__|    |__

                                __      __      __     __

    Phase two=> _|    |__|    |__|    |__|

     

    You can see that the phase two is going from high to low when phase one is in high level. If you change this for the phase two goes low when the phase one is in low level, the direction of your motor will revert.

    Thinking about Arduino, and supposing that there is instructions such as SET BIT (some port) and CLEAR BIT (some port), is possible to write a program that give us the output above:

     

     

    begin:     clear bit x (phase one);

                    clear bit y (phase two);

                    delay(w);

                    clear bit x (phase one);

                    set bit y (phase two);

                    delay(w);

                    set bit x (phase one);

                    set bit y (phase two);

                    delay(w);

                    set bit x (phase one);

                    clear bit y (phase two);

                    delay(w);

                    jump begin

                    end.

     

    Now you will need a hardware to drive these two phases.

    Tomorrow I send you a circuit. Do not connect the phases directly to Arduino pins. You can damage it if so.

    Regards,

    Guilherme

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Hi Guilherme,

     

    Sorry, I got home too late last night to measure the motor resistance.

     

    Your explanation makes a lot of sense, thankyou! I'm driving the motor through a L293D H bridge chip. The circuit I currently have is an Arduino Uno, when it receives a wireless signal (using a 433Mhz receiver) it will drivea standard motor controlled with limit switches. A stepper motor would give me much finer control than this setup.

     

    Thanks again for all your help!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Hi Guilherme,

     

    I've tested the resistance, I can see how one coil is Orange / Yellow and the second is Black / Brown. I think I can get this wired successfully now, thankyou!

     

     


    OrangeBlackYellowBrown
    Orange--Open6Open
    BlackOpen--Open6
    Yellow6Open--Open
    BrownOpen6Open--
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago

    This might be a good starting point.http://www.piclist.com/techref/io/stepper/wiresmeterbattery.htm

    http://digital.ni.com/public.nsf/allkb/0AEE7B9AD4B3E04186256ACE005D833B

     

    There is a lot of code on the web on how to control a stepper motor

    .http://digital.ni.com/public.nsf/allkb/0AEE7B9AD4B3E04186256ACE005D833B

    http://learn.adafruit.com/adafruit-arduino-lesson-16-stepper-motors/overview

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago

    A few links easilt acquired with a search engine.

     

    http://digital.ni.com/public.nsf/allkb/0AEE7B9AD4B3E04186256ACE005D833B

     

    http://www.intorobotics.com/tutorials-and-resources-to-control-stepper-motor-with-arduino-board/

    http://arduino.cc/en/Tutorial/StepperUnipolar

    http://arduino.cc/en/Tutorial/StepperBipolar

    http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=5&cad=rja&ved=0CDwQFjAE&url=http%3A%2F%2Flearn.adafruit.com%2Fadafruit-arduino-lesson-16-stepper-motors%2Foverview&ei=nJX6UZvLCofKrQH_iYGQAQ&usg=AFQjCNFwevOZfX7QHAEw3KCZSBrI4Gk7hA&bvm=bv.50165853,d.b2I

    http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=7&cad=rja&ved=0CEgQFjAG&url=http%3A%2F%2Fwww.intorobotics.com%2Ftutorials-and-resources-to-control-stepper-motor-with-arduino-board%2F&ei=nJX6UZvLCofKrQH_iYGQAQ&usg=AFQjCNEZj_5ToLLJb9FVgydoFbAUy1_GkQ&bvm=bv.50165853,d.b2I

    • 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