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 Stepper motor wiring help(and a few other small questions from an instructable)
  • 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 Suggested Answer
  • Replies 55 replies
  • Answers 1 answer
  • Subscribers 395 subscribers
  • Views 4025 views
  • Users 0 members are here
  • wiring
  • steppers
  • arduino
Related

Stepper motor wiring help(and a few other small questions from an instructable)

gub11
gub11 over 9 years ago

This instructable really interested me, Frameless Laser Harp - 4 , but i've never worked with steppers before.  the stepper i got has 4 wires, but the stepper in the instructable has 6.  on page 2 there is a wiring guide, but that wasn't very helpful to me, i didn't really understand what i'm supposed to do with the wires.  This is the stepper i have, https://www.sparkfun.com/products/10551?gclid=Cj0KEQiApruyBRCFqoDu1pbk9rkBEiQAF8EFdVmEBorGt6koPmFkaibEpRmZ94Z6r8BWhmTqAL… .  Any ideas?

  • Sign in to reply
  • Cancel

Top Replies

  • Robert Peter Oakes
    Robert Peter Oakes over 9 years ago in reply to gub11 +2 suggested
    reverse... to change direction lol now more seriously... then you wire up the stepper motor, if it is not going in the direction you expect for the command your giving then you can change the code or simply…
  • Robert Peter Oakes
    Robert Peter Oakes over 9 years ago +1
    Here is an excelent resource regarding steppers and how they work http://www.geckodrive.com/support.html I found this to be very helpfull in setting up my CNC project your stepper is a classic 4 wire …
  • Robert Peter Oakes
    Robert Peter Oakes over 9 years ago in reply to gub11 +1
    All Grounds (0V) should go together, the ground of the 12V, the 5V etc all are connected together at a common point the 5V goes to all those pins because it is 5V logic input to the chip and those pins…
Parents
  • Robert Peter Oakes
    0 Robert Peter Oakes over 9 years ago

    Here is an excelent resource regarding steppers and how they work

    http://www.geckodrive.com/support.html

     

    I found this to be very helpfull in setting up my CNC project

     

    your stepper is a classic 4 wire / 2 coil 7.5deg per step so 360/7.5 = 48 full steps per revolution

     

    also it looks like the black and orange are one coil and the brown/yellow the other

     

    if you want to reverse the direction in hardware then simply swap the connection of black and orange (Put the black where the orange was and the orange where the black was) or do the similar thing with the other coil wires

     

    Hope this helps, if you need more info then just ask

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gub11
    0 gub11 over 9 years ago in reply to Robert Peter Oakes

    What do you mean reverse? ND when u day put the orange where the black is, do u mean up the orange wire into where the black wire is supposed to go on the Ic? Also, I still don't know how to wire the two common wires, 1 per coil.

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

    I ordered the  SN754410NESN754410NE to use for my project and i just had a few questions about wiring it up the diagram you gave was very helpful but why do i need to hook up my arduino 5v to 1,2 en 3,4 en and V1 Where do the 4 GND connections get wired into Why is there only a spot for the positive wire for my stepper psu and not for the negative terminal if you look at the instructable the only power to provide is the negative and positive of the stepper so how would i wire up my stepper and my psu Amazon.com: NEW Genuine MU05-H120040-A2 12V 0.4A 400mA Power Supply Adapter for LEI: Electronics (also on a side note, i ordered the psu from amazon because it said it was .4A which is what i need, turns out its .5A, is that going to be ok if the stepper is .4A (the hbridge is .6A).

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

    All Grounds (0V) should go together, the ground of the 12V, the 5V etc all are connected together at a common point

     

    the 5V goes to all those pins because it is 5V logic input to the chip and those pins need to be either the logic supply or held high to enable the parts of the chip

     

    The positive rail of your stepper PSU goes into the chip to feed the HBridge, the 0V (Negative terminal should all be connected together with the rest of the grounds so is implied that there is a return path

     

    In this case the steppers are NOT wired to 0V or stepper supply + volts, the HBridge chip takes care of the stepper power

     

    The stepper power supply is a weird thing, well steppers are the weird part. they can have a published rating of say 3.3V but be connected to as much as 48 or even 70 or 80V power supply via the stepper controller. it is the controller that governs how much power goes into the motor, not the power supply.

     

    your choice of a 400mA (500mA actual) is a good place to be with your project, it is not too powerful to do any real damage if you make a mistake.

     

    As a side note, I am currently rendering a few youtube videos for my CNC project ( https://www.youtube.com/c/thebreadboardca ) where I am using a 48V 10Amp power supply to drive a 3.2V 2.9A nema23 stepper motor (Well 4 of them actually), sounds crazy right but it is correct, you have to learn how steppers actually work to understand it and that will be the subject of another video i will be doing soon

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gub11
    0 gub11 over 9 years ago in reply to Robert Peter Oakes

    OK that was very helpful, now there is only 1 thing i'm still a bit unsure about.  for the ground connections.  do i connect the arduino ground to the stepperpsu ground and connect those(as one wire) to any of the ground pins? or do i connect the stepperpsu ground to one ground terminal on the chip, and the arduino ground to a different ground pin on the chip? or does it not matter @peteroakes

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

    As long as you have reasonably thick wires from the chip to the powersupply then you can use the powersupply 0V as you common point

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

    Robert Peter Oakes I'm not 100% sure what that means.  Do I have to hookup the arduino gnd to the chips gnd? Or just the psu?

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

    "... or do i connect the stepperpsu ground to one ground terminal on the chip, and the arduino ground to a different ground pin on the chip?"

     

    Connect all the GND pins of the stepper chip together at the chip. That's what TI intended for you to do. (On a PCB the pins would come down to an area of copper that would tie them solidly together and also provide for some heatsinking. In your case (400mA), it looks as though what you're doing falls within the capability of the device to dissipate power from the package alone, though you might want to add some heatsinking anyway in case you want to use it at a higher current or simply to improve the long-term reliability)

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

    jc2048 where do I get heatsinking?

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

    an old motherboard and pull one from the small chips on the board is one possibility if you have access, if not there are plenty available from element14 (Newark / Farnell) or even ebay, search for stepper controller heatsinks and it should bring something up but as Gabriel stated, for the low current your switching, you probably wont need one, when you are running it, feel the top of the chip with the back of your hand or carefully with a finger, if you cant keep you skin in contact for more than  a few seconds then you need a heatsink, otherwise your probably good to go

     

    Peter

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mcb1
    0 mcb1 over 9 years ago in reply to Robert Peter Oakes

    I always like the wet finger.

    It gives extra time for the slow brain to register the finger is saying "S..T THIS IS HOT" ...image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 9 years ago in reply to mcb1

    and the sound of sizzling probably will reach the brain faster too image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Robert Peter Oakes
    0 Robert Peter Oakes over 9 years ago in reply to mcb1

    and the sound of sizzling probably will reach the brain faster too image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • mcb1
    0 mcb1 over 9 years ago in reply to Robert Peter Oakes

    Funny you should say that because I have witnessed that. image

     

    A funnier thing was a guy at work who was so used to working with transistors and fingering them, that the first valve receiver he worked on, he got a belt of the grid cap ...image

    • Cancel
    • Vote Up +1 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