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 convert 4-wire unipolar to 6-wire unipolar 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 Suggested Answer
  • Replies 7 replies
  • Answers 2 answers
  • Subscribers 395 subscribers
  • Views 616 views
  • Users 0 members are here
Related

convert 4-wire unipolar to 6-wire unipolar stepper

gub11
gub11 over 9 years ago

Have a project that I want to build that requires a 6-wire unipolar stepper, but mine only has 4 wires, is there any way to get mine to work?

  • Sign in to reply
  • Cancel

Top Replies

  • mcb1
    mcb1 over 9 years ago in reply to gub11 +2 suggested
    Gabriel The code you posted suggests a delay of only 3mS, which makes this loop run very quickly. Secondly the sequence you have is 1,2,3,4,3,1 then looping back 1,2,3,4,3,1 I suggest you change the delay…
  • balearicdynamics
    balearicdynamics over 9 years ago in reply to gub11 +1
    Gabriel, please when you add the code add it with the source language syntax highlighting so it is possible co copy and paste for any test easily. IMHO the stepper vibrates for two possible reasons: you…
  • kulky64
    kulky64 over 9 years ago in reply to gub11 +1 suggested
    Your driving sequence is not correct. There are different driving sequences: full-step, half-step, wave drive (see Figure 5, Figure 6 and Figure 7 in this document: http://www.st.com/content/ccc/resource…
Parents
  • Robert Peter Oakes
    0 Robert Peter Oakes over 9 years ago

    with a 4 wire stepper you will need to use 2 full H Bridges to drive it instead of 4 single sided transistors, BTW, a ULN2003 is not a stepper driver, it is a 7 channel open collector driver that is often used to drive smaller stepper motors with 5 or 6 wires

     

    a good place to start for a dual H Bridge is the TI Stepper Booster pack http://www.ti.com/lit/ug/slvu967/slvu967.pdf

    • 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

    MIne is a pretty small stepper.  Would the sln754410ne work using this diagram I found http://42bots.com/wp-content/uploads/2014/12/bipolar_stepper_four_pins.jpg and this stepper https://www.sparkfun.com/products/10551  ?

    • 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

    It probably will for a small low powered stepper

    • 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 have everything wired up exactley as it is in the diagram, here is the code I am using to test the movement

     

    int delaymotor = 3;                     // This variable affects the speed, and fluidity of the harp.

     

     

    int motorPin1 = 8;                      //Use these names for the pin numbers.

    int motorPin2 = 9;

    int motorPin3 = 10;

    int motorPin4 = 11;

     

     

    void setup() {

     

      pinMode(8, OUTPUT);                    // Setup for the motor.

      pinMode(9, OUTPUT);

      pinMode(10, OUTPUT);

      pinMode(11, OUTPUT);

     

     

    }

     

     

    void loop() {

     

      digitalWrite(motorPin1, HIGH);             // Move the motor to create the second beam.( One step forward)

      digitalWrite(motorPin2, LOW);

      digitalWrite(motorPin3, LOW);

      digitalWrite(motorPin4, LOW);

      delay(delaymotor);                          // Small pause

     

     

      digitalWrite(motorPin1, LOW);             // Move the motor to create the second beam.( One step forward)

      digitalWrite(motorPin2, HIGH);

      digitalWrite(motorPin3, LOW);

      digitalWrite(motorPin4, LOW);

      delay(delaymotor);                          // Small pause

     

     

      digitalWrite(motorPin1, LOW);             // Move the motor to create the second beam.( One step forward)

      digitalWrite(motorPin2, LOW);

      digitalWrite(motorPin3, HIGH);

      digitalWrite(motorPin4, LOW);

      delay(delaymotor);                          // Small pause

     

     

      digitalWrite(motorPin1, LOW);             // Move the motor to create the second beam.( One step forward)

      digitalWrite(motorPin2, LOW);

      digitalWrite(motorPin3, LOW);

      digitalWrite(motorPin4, HIGH);

      delay(delaymotor);                          // Small pause

     

     

      digitalWrite(motorPin1, LOW);             // Move the motor to create the second beam.( One step forward)

      digitalWrite(motorPin2, LOW);

      digitalWrite(motorPin3, HIGH);

      digitalWrite(motorPin4, LOW);

      delay(delaymotor);                          // Small pause

     

     

      digitalWrite(motorPin1, HIGH);             // Move the motor to create the second beam.( One step forward)

      digitalWrite(motorPin2, LOW);

      digitalWrite(motorPin3, LOW);

      digitalWrite(motorPin4, LOW);

      delay(delaymotor);                          // Small pause

     

     

    }

     

    When I power everything up, the motor just vibrates a little, and isn't stepping, any idea on why that is?  I remember a while ago I watched something about steppers and maybe I need to add a capacitor somewhere or a pull-up resistor?

    • 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,

     

    please when you add the code add it with the source language syntax highlighting so it is possible co copy and paste for any test easily. IMHO the stepper vibrates for two possible reasons: you have wired the cables in the wrong order or the code sequence is not correct.

     

    In the case of the motor wiring I suggest to check in detail searching on the internet the exact wiring color code of the motor model you are using. It is not the first time that some producer does not follow the expected standard colors in the stepper motors.

     

    About the code, just taking a look, the HIGH/LOW pin setting sounds strange as the stepping requires a sort of symmetrical states. But I have not really idea of what is the scheme. Maybe the worth to try these suggestions and definitely publish the motor datasheet, pin usage and circuit schematics ?

     

    Enrico

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

    Gabriel

    The code you posted suggests a delay of only 3mS, which makes this loop run very quickly.

    Secondly the sequence you have is 1,2,3,4,3,1 then looping back 1,2,3,4,3,1

     

    I suggest you change the delay to 10 or 50 and comment out or remove the last two sequences.

     

    I found these

    How to use a Stepper Motor - 4

    https://learn.adafruit.com/all-about-stepper-motors/types-of-steppers

     

    Mark

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • mcb1
    0 mcb1 over 9 years ago in reply to gub11

    Gabriel

    The code you posted suggests a delay of only 3mS, which makes this loop run very quickly.

    Secondly the sequence you have is 1,2,3,4,3,1 then looping back 1,2,3,4,3,1

     

    I suggest you change the delay to 10 or 50 and comment out or remove the last two sequences.

     

    I found these

    How to use a Stepper Motor - 4

    https://learn.adafruit.com/all-about-stepper-motors/types-of-steppers

     

    Mark

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
No Data
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