587,744 active members*
3,517 visitors online*
Register for free
Login
IndustryArena Forum > CNC Electronics > Stepper Motors / Drives > simplest method of driving a stepper motor?
Results 1 to 16 of 16
  1. #1
    Join Date
    Jun 2018
    Posts
    32

    simplest method of driving a stepper motor?

    I want to test out the mechanics of my custom cnc machine before going any further. I want to check that the motors have enough torque and the way I've mounted them is suitable.

    I have an x y axis which are a small milling table and a rotary axis which is a chuck on a rotary table.

    I will remove the handwheels and use flexible shaft couplings on the spindles.

    I only want to turn a motor enough to test my engineering with the stepper I will be using. I'm not ready to develop the electronics for the whole machine yet.

    Is there a very cheap simple device that will turn a (nema 17) motor forward and reverse?

  2. #2
    Join Date
    May 2015
    Posts
    686

    Re: simplest method of driving a stepper motor?

    An Arduino and a Polou Driver and an example Arduino script will easily handle a NEMA 17.
    Rod Webster
    www.vehiclemods.net.au

  3. #3
    Join Date
    Jun 2018
    Posts
    32

    Re: simplest method of driving a stepper motor?

    Quote Originally Posted by rodw View Post
    An Arduino and a Polou Driver and an example Arduino script will easily handle a NEMA 17.
    Hi Rodw. Thanks for this but I just want to turn the motor. A motor driver board, arduino board, and programming is most of the way to a full setup. Surely there's something simpler?

  4. #4
    Join Date
    May 2015
    Posts
    686

    Re: simplest method of driving a stepper motor?

    I'm a software guy but the Pololu A4988 stepper controller and an Arduino will set you back less than $20 and you can drive it with 10-20 lines of code. Something like this example
    https://forum.arduino.cc/index.php?topic=133894.0
    Nothing like a full setup. That took me 200 lines of code.... but thats another story.
    Rod Webster
    www.vehiclemods.net.au

  5. #5
    Join Date
    Jul 2018
    Posts
    16
    You need to give the specifications of your motors if you want us to help determine the best solution for your needs.


    https://voltatek.ca

  6. #6
    Join Date
    Jun 2018
    Posts
    32

    Re: simplest method of driving a stepper motor?

    Quote Originally Posted by Voltatek View Post
    You need to give the specifications of your motors if you want us to help determine the best solution for your needs.


    https://voltatek.ca
    Hi there. Here's the spec.

    Description:
    Motor type: Bipolar Stepper
    Motor Length: 40mm
    Phase Resistance: 1.5Ohm
    Phase Inductance: 2.8mH
    Detent Torque: 2.2N.cm
    Rotor Inertia: 54g.cm2
    Holding Torque: 40N.cm
    Motor Weight: 280g
    Step angle: 1.8 deg
    Step angle accuracy: + - 5%(full step, not load)
    Resistance accuracy: + - 10%
    Inductance accuracy: + - 20%
    Temperature rise: 80deg Max(rated current, 2 phase on)
    Ambient temperature -----------20deg ~+50deg
    Insulation resistance: 100M? Min, 500VDC
    Insultion Strength--------500VAC for one minute

  7. #7
    Join Date
    Jun 2018
    Posts
    32

    Re: simplest method of driving a stepper motor?

    So, just one of those tiny driver boards and an arduino? I dont need a shield for the arduio too?

    How do you get the code onto the arduino?

  8. #8
    Join Date
    May 2015
    Posts
    686

    Re: simplest method of driving a stepper motor?

    Quote Originally Posted by merlin777 View Post
    So, just one of those tiny driver boards and an arduino? I dont need a shield for the arduio too?

    How do you get the code onto the arduino?
    You download and install the Arduino IDE environment, open the sketch (a text file) in the IDE, compile and download it with one mouse click.
    Rod Webster
    www.vehiclemods.net.au

  9. #9
    Join Date
    Jun 2018
    Posts
    32

    Re: simplest method of driving a stepper motor?

    does the arduino connect to the pc via usb?

  10. #10
    Join Date
    May 2015
    Posts
    686

    Re: simplest method of driving a stepper motor?

    Quote Originally Posted by merlin777 View Post
    does the arduino connect to the pc via usb?
    Yup.

    Bear in mind that it might just be simpler to set up your CNC motion controller of choice at this stage and connect your motor to it even if nothing else is built.
    Rod Webster
    www.vehiclemods.net.au

  11. #11
    Join Date
    Jun 2018
    Posts
    32

    Re: simplest method of driving a stepper motor?

    thats what I'm thinking. What's being suggested is virtually the whole electronics chain. I was holding out for a simple solution because I thought it wouldn't be that hard to apply some pulses to a motor.

  12. #12
    Join Date
    Mar 2015
    Posts
    413

    Re: simplest method of driving a stepper motor?

    Quote Originally Posted by rodw View Post
    You download and install the Arduino IDE environment, open the sketch (a text file) in the IDE, compile and download it with one mouse click.
    You find all the information for connecting, configuring and running a GRBL controller at this site.

    https://github.com/gnea/grbl/wiki

  13. #13
    Join Date
    Jun 2018
    Posts
    32

    Re: simplest method of driving a stepper motor?


  14. #14
    Join Date
    Mar 2015
    Posts
    413

    Re: simplest method of driving a stepper motor?

    This could do the job, but cost about as much as an arduino and polulo shield, but still a nice product!

  15. #15
    Join Date
    Jun 2018
    Posts
    32
    Quote Originally Posted by hfjbuis View Post
    This could do the job, but cost about as much as an arduino and polulo shield, but still a nice product!
    It's not hugely expensive. I might save a lot of money by checking at this stage my mechanical engineering is sound and my choice of motor is appropriate.
    But I think mainly it prevents me from having to jump ahead and learn a huge amount I'll need to know but now and all in one go. It's going to take weeks for me to properly learn the electronics stage before trying to tackle it safely and this way I don't get held up. It'll also be a good intro for me to practical stepper motor control and ultimately a handy little item for the future.
    I'm already thinking of how I might use it in macro photography for stacking!

  16. #16
    Join Date
    Jun 2018
    Posts
    32
    If I get it working I'll write it up. Might even do a video.

Similar Threads

  1. Best method for Stepper Motor Current Sensing?
    By joprinz in forum Stepper Motors / Drives
    Replies: 2
    Last Post: 07-25-2018, 03:05 PM
  2. Stepper Motor Driving Torque
    By EmaBlunt in forum Stepper Motors / Drives
    Replies: 22
    Last Post: 11-21-2012, 08:28 PM
  3. driving 8wire stepper motor
    By ktr in forum Stepper Motors / Drives
    Replies: 1
    Last Post: 08-03-2009, 06:16 PM
  4. Query: Current amplification for driving stepper motor...
    By junior85 in forum CNC Machine Related Electronics
    Replies: 10
    Last Post: 02-24-2007, 05:09 PM
  5. BEMF and stepper motor reversing as a braking method?
    By Oldmanandhistoy in forum Stepper Motors / Drives
    Replies: 26
    Last Post: 11-09-2006, 07:37 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •