Is possible to test a motor without driver or ramps?

I bought 5 NEMA17 motors 17HS4401 (http://es.aliexpress.com/item/5pcs-4-lead-Nema17-Stepper-Motor-42-motor-Nema-17-motor-42BYGH-1-7A-17HS4401-motor/1500927219.html) and I want to test them to give provider the OK, however i don´t have the drivers yet.
I have Arduino 1 kit, an arduino Mega and a bunch of cables, and i could use an old power supply.

I'm newbie with Arduino

Someone can suggest me how to do it or refer me to some proyect that could help me

Thanks in advance!

You MUST NOT connect the motor to an Arduino without a driver. You will damage your Arduino.

You could measure the motor coil resistance with a multimeter - that would show up an internal open circuit or short circuit.

I have never tried but you may be able to "manually" step the motor by briefly connecting a 3v battery (2 AA NiMh cells) to the different coils.

...R

Measure the winding resistances, make sure the shaft can actually turn!

There is nothing else to go wrong in a stepper (other than having the wrong kind of stepper).

These are standard bipolar steppers; you will need a proper driver (as mentioned) to hook them up to the Arduino to test them. While I agree with previous poster's comments (ie - testing resistance, making sure the shaft turns, etc) - because there isn't really anything that can go wrong otherwise - if you want to actually test them, then the following should help:

That's a circuit to use an L293 to control the stepper; you could also use an L298:

One of those modules should be easy to come by on AliExpress as well. That instructable also includes code (which could be adapted for the L293 if needed). Before you do anything, though, you should probably study how a bipolar stepper works - so you can understand how and why it is hooked up to the driver, and what the code is actually doing - here are some more links for you to review:

http://www.freescale.com/files/microcontrollers/doc/app_note/AN2974.pdf

http://mechatronics.mech.northwestern.edu/design_ref/actuators/stepper_intro.html

http://42bots.com/tutorials/bipolar-stepper-motor-control-with-arduino-and-an-h-bridge/

http://www.imagesco.com/articles/picstepper/02.html

cr0sh:
That's a circuit to use an L293 to control the stepper; you could also use an L298:

I've read many times that the L298 is not a good stepper driver. I used a L298N to drive some steppers and the chip soon became very hot.

I see I forgot to include this link Stepper Motor Basics in Reply #1

...R

DuaneDegn:
I've read many times that the L298 is not a good stepper driver. I used a L298N to drive some steppers and the chip soon became very hot.

It's only "bad" insofar as that it is a bipolar transistor design; thus, you need to allow for the couple of volts loss, etc - especially at the larger current limits. You also generally need to add a larger heatsink when you go beyond a couple hundred milliamps.

There's nothing inherently wrong, though, with a chip "getting hot" - provided you don't exceed its design limits, of course - which is why you should always use a heatsink with the L298 (although, you can get away with not using one provided that you don't draw beyond a couple hundred milliamps or so - and you don't run it constantly - so, for testing purposes, in other words).

For modern designs, though - there are better MOSFET designs; two popular ones are the A4988 and DRV8825 (for lower current stepper motors, at least). They are both low cost and easily available.

For brushed DC motor control there are similar drivers available - but to get to the level of the L298 (about 4 amps - which is only achievable on the L298 with a good heatsink and active cooling), you generally have to go with more expensive solutions, or a "discrete" approach (using n-channel mosfets and half-bridge drivers). There do exist mosfet driver ICs out there, though, for brushed DC motor control that can go up to around 3 amps, that aren't too expensive. Really, the L298 is one of those venerable chips that is cheap and ubiquitous (though maybe not the best for current designs). It mainly got this way because it was meant for automotive use - so tons were made and continue to be made. It's too bad that a drop-in replacement for it using mosfets hasn't been created.

I only mentioned those two devices (L293 and L298) because you see a ton of tutorials out there for them, and they are both cheap and easy to source components virtually throughout the world - not because they were "best" or anything.

:slight_smile:

If you have some basic resistors and parts, you might search YouTube for basic h-bridge stepper test. I like this one: