NYC CNC did a good vid on the same topic, different application a few years ago: https://youtu.be/RakXequOrSY
THANKS FOR POINTING OUT MY MISTAKE! "count less than or equal to pulseset" caused it to turn 2401 steps. You can see a little ridge in the part where it goes too far. Fixed by removing equal. "count less than pulseset"
Wiring connections
Arduino Pin 8 to stepper driver pulse +5V
Arduino Pin 9 to stepper driver direction +5V
Arduino Ground to stepper driver signal ground Pulse -ve, Dir -ve, enable -ve
Arduino +5 volts to on/off switch to stepper driver enable +5V
Helpful hints:
1. Pick the size of motor you need for the torque/power you need. Don't know? FIND OUT!
2. Determine the voltage and current of the stepper motor.
3. Determine the stepper motor driver that will power your stepper motor with some extra fudge factor (this stuff is cheap). Big Easy driver or Adafruit motor shield for small stuff. "CNC stepper driver" for big stuff.
4. Determine the power supply you need for the input power, voltage and current your stepper needs. Add extra fudge factor.
5. Get an Arduino. (Like you don't already have 3 of them kicking around).
6. Cut and Paste the code to the Arduino IDE; upload to Arduino.
7. Hook up wires per the diagram on the stepper driver box and the Arduino Sketch.
8. Hook up a switch from +5V from Arduino to the "enable" terminal of the stepper motor.
9. Hook up all 5V signal ground from the stepper driver (negative) to the arduino ground.
10. Set the stepper driver DIP switches for the max current, holding torque and steps per revolution you require.
11. Triple check your work. Cross your fingers and toes. Plug in the power and hit the "enable" switch.
Long term projects here: http://www.Patreon.com/AvE

By AvvE

11 thoughts on “Arduino big stepper motor control. rotary axis for milling machine.”
  1. Avataaar/Circle Created with python_avatars Tim Dodge says:

    As the only Canadian I know of, you're the one that came to mind…

    The full line was: "“Hello Moose-fuckers! I tell you why I hate Canada: half of you speak French and the other half let them.”😂

  2. Avataaar/Circle Created with python_avatars someguywithaphone says:

    HEY, WHAT ARE YOU DOING WITH THAT SHAMPOO BOTTLE?!? I didn't say stop, or pumpkin pie, or any other safety type phrase of desisting. -medium pace fella

  3. Avataaar/Circle Created with python_avatars Dick Brock says:

    Too funny, yet real. Thanks!

  4. Avataaar/Circle Created with python_avatars 25drop says:

    should try a raspberry pi

  5. Avataaar/Circle Created with python_avatars Bill Allen says:

    Fer sure, shortcuts don't come free, even when they work as intended. But where would we be without science?

  6. Avataaar/Circle Created with python_avatars Vocal Deviation says:

    This video saved me so much dickin' around. Thank you.

  7. Avataaar/Circle Created with python_avatars Ben Dustin says:

    Did you say "It's good enough for the girls I go out with" ?

  8. Avataaar/Circle Created with python_avatars farouk ayoub says:

    nice job😀

  9. Avataaar/Circle Created with python_avatars Evgeny Zislis says:

    To check for A and B wires, just put a LED across the two and spin the motor manually. The led makes blinking sounds. No meter needed.

  10. Avataaar/Circle Created with python_avatars артем акопян says:

    thanks for Satie

  11. Avataaar/Circle Created with python_avatars 503jmn says:

    I'll fix your wagon little lady….errr your stepper motor I mean.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.