# Stepper Motor without shield

**URL:** <https://forum.arduino.cc/t/stepper-motor-without-shield/363787>\
**Category:** Motors, Mechanics, Power and CNC\
**Created:** [February 7, 2016, 1:32am UTC](https://forum.arduino.cc/t/stepper-motor-without-shield/363787 "2016-02-07T01:32:17Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marciokoko](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/marciokoko/32/220446_2.png) [@Marciokoko](https://forum.arduino.cc/u/Marciokoko)\
**Post date:** [February 7, 2016, 1:32am UTC](https://forum.arduino.cc/t/stepper-motor-without-shield/363787/1 "2016-02-07T01:32:17Z")

</div>

Ive read quite a few posts. Basically it seems like the answer to the ever so popular question:

"Can I drive a stepper without a shield?"

is a big fat NO. Unless you want to build a driver board out of large breadboard-size equivalent components like resistors and transistors.

Im just getting started in electronics and just recently understood the beauty of the transistor, so bare with me. But I was considering running a stepper without a driver board but it seems like a waste of time and components.

I have a 12V, 200 step NEMA17 motor than came in an advanced kit from Amazon. Its bipolar and unfortunately came without "an adapter", iow a geared adapter at the end. So my first order of business will be to find one or make one that fits the shaft.

So I have at my disposal:

1. L293D chips
2. L298N Motor Driver Board
3. L298N Dual H bridge
4. Dual Motor Driver 1A (TB6612FNG)
5. L293D Motor Driver Boards

 ![l298n-motor-driver-board.jpg](https://europe1.discourse-cdn.com/arduino/original/4X/9/6/6/9668b43810854294e0f928953270e3375955b9bf.jpeg)  
 ![l298n-dualH-bridge.jpg](https://europe1.discourse-cdn.com/arduino/original/4X/3/a/b/3abca7a11a9ae68d15d81ba0b286d178b6701d51.jpeg)  
 ![TB6612FNG2.jpg](https://europe1.discourse-cdn.com/arduino/original/4X/a/6/d/a6dc24a6b903b39af5fe7f62c440025578ae30dd.jpeg)

Which would be simpler and not so much overkill?

I think the L293D driver board would be overkill because i would only be driving the 1 stepper.

So far it seems the the L293D driver board and the L298N driver board are both overkill because they can control more than 1 motor. So #2 and #5 are the last choices. #1 I would leave out because it requires a bit more wiring up and a breadboard. I guess its down to #3 & #4 but Im not sure if TB6612FNG can drive steppers. Im trying to research more about it.

---

<div class="post-metadata">

**Author:** ![MarkT](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@MarkT](https://forum.arduino.cc/u/MarkT)\
**Post date:** [February 7, 2016, 4:05am UTC](https://forum.arduino.cc/t/stepper-motor-without-shield/363787/2 "2016-02-07T04:05:53Z")

</div>

No, the 293 and 298 can only drive one stepper. A stepper has two windings.

But first things first - what is the current rating and winding resistance of your stepper motor? How  
fast do you want it to spin? H-bridges may be a red-herring if you want actual performance.

---

<div class="post-metadata">

**Author:** ![Marciokoko](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/marciokoko/32/220446_2.png) [@Marciokoko](https://forum.arduino.cc/u/Marciokoko)\
**Post date:** [February 7, 2016, 5:08am UTC](https://forum.arduino.cc/t/stepper-motor-without-shield/363787/3 "2016-02-07T05:08:02Z")

</div>

I'm asking oddwires because it came with a kit and doesnt have any markings.

It looks like this one:

> **[Stepper motor - NEMA-17 size - 200 steps/rev, 12V 350mA](https://www.adafruit.com/product/324)**
>
> A stepper motor to satisfy all your robotics needs! This 4-wire bipolar stepper has 1.8° per step for smooth motion and a nice holding torque. The motor was specified to have a max ...

I don't need speed, I'm thinking of using it for moving a plastic cradle up and down a rail shaft. I got it off an old dvd player.

---

<div class="post-metadata">

**Author:** ![Robin2](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/robin2/32/216045_2.png) [@Robin2](https://forum.arduino.cc/u/Robin2)\
**Post date:** [February 7, 2016, 10:25am UTC](https://forum.arduino.cc/t/stepper-motor-without-shield/363787/4 "2016-02-07T10:25:22Z")

</div>

Don't use a h-bridge to control a stepper motor. Use a specialized stepper motor driver (see for example the Pololu DRV8825) it makes everything easier.

Have a look at [Stepper Motor Basics](http://forum.arduino.cc/index.php?topic=284828.0)

Post a link to the datasheet for your stepper motor.

...R

---

<div class="post-metadata">

**Author:** ![Marciokoko](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/marciokoko/32/220446_2.png) [@Marciokoko](https://forum.arduino.cc/u/Marciokoko)\
**Post date:** [February 7, 2016, 4:38pm UTC](https://forum.arduino.cc/t/stepper-motor-without-shield/363787/5 "2016-02-07T16:38:07Z")

</div>

Great post!

So the reason for using h-bridges is they can switch the current-flow such that the motor can spin one way vs the other way? (A useful features when turning a car).

On the other hand, stepper motors (which usually aren't used for cars) need to be controlled because of the voltage-current-torque-speed issue which requires current-quantity control instead of current-flow control?

---

<div class="post-metadata">

**Author:** ![MarkT](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@MarkT](https://forum.arduino.cc/u/MarkT)\
**Post date:** [February 7, 2016, 4:57pm UTC](https://forum.arduino.cc/t/stepper-motor-without-shield/363787/6 "2016-02-07T16:57:23Z")

</div>

MAybe....

Basically all motors produce torque proportional to current - goes for pretty much all types.

PMDC (permanent magnet DC) motors produce speed proportional to voltage, but steppers  
produce speed proportional to step rate, _limited_ by available voltage.

The faster a stepper spins the more voltage needs to be available to sustain that steprate.

The difference between a BLDC and a stepper is pretty much just the number of pole-pairs  
(1 or 2 typical for BLDC, 50 for a stepper) and phases (2 for stepper, 3 for most BLDCs).

Given a 3-phase stepper (rare beast), you could drive it OK with an RC ESC...

Due to the massive number of poles in a stepper you have the issue of drive frequency.

A 2-pole 3-phase BLDC at 3000rpm is running its windings at 50Hz. A normal stepper at  
3000 rpm is running its windings at 2.5kHz - this means iron losses become important and  
very low impedance windings are needed to avoid attenuating the 2.5kHz current.

Iron losses are due to reversal of magnetization in the stator laminations dumping some  
energy as heat - power is lost proportional to the frequency, and this is 50 or 25 times more  
of an issue in a standard (200 step) stepper than in most other motors.

---

<div class="post-metadata">

**Author:** ![Marciokoko](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/marciokoko/32/220446_2.png) [@Marciokoko](https://forum.arduino.cc/u/Marciokoko)\
**Post date:** [February 7, 2016, 6:07pm UTC](https://forum.arduino.cc/t/stepper-motor-without-shield/363787/7 "2016-02-07T18:07:04Z")

</div>

There are so many tutorials for steppers with the L298N bridge. So wolhat would the advantages be of using the 293, 298 and tb6612 board? All 3 are h-bridge, right?

---

<div class="post-metadata">

**Author:** ![Marciokoko](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/marciokoko/32/220446_2.png) [@Marciokoko](https://forum.arduino.cc/u/Marciokoko)\
**Post date:** [February 7, 2016, 6:26pm UTC](https://forum.arduino.cc/t/stepper-motor-without-shield/363787/8 "2016-02-07T18:26:15Z")

</div>

Got the spec sheet.

Quick question, how do I know which is A- and A+? Are they A and C?

 ![image.png](https://europe1.discourse-cdn.com/arduino/original/4X/6/a/9/6a96659daa1402465b4b64c946e4fc1d4af98294.png)

---

<div class="post-metadata">

**Author:** ![Robin2](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/robin2/32/216045_2.png) [@Robin2](https://forum.arduino.cc/u/Robin2)\
**Post date:** [February 7, 2016, 7:43pm UTC](https://forum.arduino.cc/t/stepper-motor-without-shield/363787/9 "2016-02-07T19:43:25Z")

</div>

> Marciokoko:  
> There are so many tutorials for steppers with the L298N bridge. So wolhat would the advantages be of using the 293, 298 and tb6612 board? All 3 are h-bridge, right?

In my opinion there is no advantage to using any H-bridge to drive a stepper motor. Use a specialized stepper motor driver. That is the message I had hoped I got across in [Stepper Motor Basics](http://forum.arduino.cc/index.php?topic=284828.0).

...R

---

<div class="post-metadata">

**Author:** ![MarkT](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@MarkT](https://forum.arduino.cc/u/MarkT)\
**Post date:** [February 7, 2016, 9:21pm UTC](https://forum.arduino.cc/t/stepper-motor-without-shield/363787/10 "2016-02-07T21:21:02Z")

</div>

These days a DRV8825 module is very cheap on eBay, and you only need 2 pins to drive a stepper with it,  
rather than a minimum of 4 pins and dual H-bridge.

Either way be sure to identify the two windings A and B and connect them correctly - connecting  
randomly has only a 1/3rd chance of being viable.

---

<div class="post-metadata">

**Author:** ![Marciokoko](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/marciokoko/32/220446_2.png) [@Marciokoko](https://forum.arduino.cc/u/Marciokoko)\
**Post date:** [February 8, 2016, 12:27am UTC](https://forum.arduino.cc/t/stepper-motor-without-shield/363787/11 "2016-02-08T00:27:10Z")

</div>

Robin,

I think I do understand but I don't have a stepper driver like a4988 or drv8825. it would take about a month to get one. I was just looking for my best option.

At least now I understand all my current options are h-bridges.

---

<div class="post-metadata">

**Author:** ![Robin2](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/robin2/32/216045_2.png) [@Robin2](https://forum.arduino.cc/u/Robin2)\
**Post date:** [February 8, 2016, 8:28am UTC](https://forum.arduino.cc/t/stepper-motor-without-shield/363787/12 "2016-02-08T08:28:17Z")

</div>

> Marciokoko:  
> I think I do understand but I don't have a stepper driver like a4988 or drv8825. it would take about a month to get one.

You can make a stepper move with a H-bridge if that is what you already have. But you are unlikely to get great performance from the motor because the H-bridge cannot limit the current to protect the motor and you must use a voltage that is low enough not to cause dmaage.

...R

---

<div class="post-metadata">

**Author:** ![Marciokoko](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/marciokoko/32/220446_2.png) [@Marciokoko](https://forum.arduino.cc/u/Marciokoko)\
**Post date:** [February 8, 2016, 7:15pm UTC](https://forum.arduino.cc/t/stepper-motor-without-shield/363787/13 "2016-02-08T19:15:45Z")

</div>

Exactly, that is what I mean, I wouldn't be able to protect from overCurrent.

But then the actual h-bridge functionality is not really needed for the stepper, or is it? From my understanding, the h-bridge functionality is required for DC motors when you want to make them turn, which requires the motor to run backwards, which is accomplished by the h-bridge switching current flow.

But does the stepper require current flow switching to run in a straight line?

---

<div class="post-metadata">

**Author:** ![Robin2](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/robin2/32/216045_2.png) [@Robin2](https://forum.arduino.cc/u/Robin2)\
**Post date:** [February 9, 2016, 10:40am UTC](https://forum.arduino.cc/t/stepper-motor-without-shield/363787/14 "2016-02-09T10:40:02Z")

</div>

> Marciokoko:  
> But does the stepper require current flow switching to run in a straight line?

There is lots of stuff on the web about how exactly a stepper motor works. I have forgotten the details because I have been using specialized stepper drivers. Try [this](http://homepage.cs.uiowa.edu/~jones/step/).

...R

---

<div class="post-metadata">

**Author:** ![Marciokoko](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/marciokoko/32/220446_2.png) [@Marciokoko](https://forum.arduino.cc/u/Marciokoko)\
**Post date:** [February 9, 2016, 2:04pm UTC](https://forum.arduino.cc/t/stepper-motor-without-shield/363787/15 "2016-02-09T14:04:44Z")

</div>

Thanks for the reading material. I just want to clear one last thing:

The TB6612FNG is an h-bridge just like the 298N and the 293D, right? And the reason so many online tutorials use H-bridges is because the H functionality is indeed required to make the stepper go both forward and backward. Iow, if I were to access it directly, it would only run in one direction. So from what I have at hand, TB6612FNG, L298N, L293D, they are all basically the same thing, H-bridges.

I was reading that the TB6612FNG supplies a steady 1.2A per channel, which is definitely too much for my stepper.

The L298N doesnt specify how much it limits current to but it states: Driven part of the peak current Io: 2A. Not sure what that means.

Finally the Arduino Motor Driver board L293D states that it supplies a 600mA per channel. So could I assume the L293D motor driver board is the best option from what I have at the moment?

---

<div class="post-metadata">

**Author:** ![Robin2](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/robin2/32/216045_2.png) [@Robin2](https://forum.arduino.cc/u/Robin2)\
**Post date:** [February 9, 2016, 5:59pm UTC](https://forum.arduino.cc/t/stepper-motor-without-shield/363787/16 "2016-02-09T17:59:02Z")

</div>

> Marciokoko:  
> I was reading that the TB6612FNG supplies a steady 1.2A per channel, which is definitely too much for my stepper.

It is a common misconception that something that "supplies 1.2A" forces the other device to "consume" 1.2A even though it does not need that much.

The opposite is the case. It is the consuming device that determines how much current flows depending on the supply voltage - study Ohm's law - though motors (especially stepper motors are a bit more complex).

If the consuming device only draws (say) 0.5A then the H-bridge will only provide 0.5A. However if the consuming device would like (say) 3A then a 1.2A H-bridge will be overloaded and may be damaged.

...R

---

<div class="post-metadata">

**Author:** ![Marciokoko](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/marciokoko/32/220446_2.png) [@Marciokoko](https://forum.arduino.cc/u/Marciokoko)\
**Post date:** [February 9, 2016, 8:45pm UTC](https://forum.arduino.cc/t/stepper-motor-without-shield/363787/17 "2016-02-09T20:45:26Z")

</div>

Ok, so until I get the A4988 or DRV8825, would you suggest I use the motor driver shield L293D?

---

<div class="post-metadata">

**Author:** ![Robin2](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/robin2/32/216045_2.png) [@Robin2](https://forum.arduino.cc/u/Robin2)\
**Post date:** [February 9, 2016, 10:42pm UTC](https://forum.arduino.cc/t/stepper-motor-without-shield/363787/18 "2016-02-09T22:42:50Z")

</div>

> Marciokoko:  
> Ok, so until I get the A4988 or DRV8825, would you suggest I use the motor driver shield L293D?

You may already have told us, but I have forgotten ...

- What shield have you already got?
- What current and voltage can it handle?
- What current does your motor require?
- What is the resistance of the motor coils?

...R

---

<div class="post-metadata">

**Author:** ![Marciokoko](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/marciokoko/32/220446_2.png) [@Marciokoko](https://forum.arduino.cc/u/Marciokoko)\
**Post date:** [February 9, 2016, 11:04pm UTC](https://forum.arduino.cc/t/stepper-motor-without-shield/363787/19 "2016-02-09T23:04:18Z")

</div>

My stepper is rated at 400mA & 12V.

Resistance per phase 30Ohm +/- 10%.

The shield is an L293dx2 which reads on the board "DKElectronics". Thats about as much as I know. I got it from here:

[http://www.tinyosshop.com/index.php?route=product/product&product\_id=173&filter\_name=arduino%20motor%20shield](http://www.tinyosshop.com/index.php?route=product/product&product_id=173&filter_name=arduino%20motor%20shield)

---

<div class="post-metadata">

**Author:** ![Robin2](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/robin2/32/216045_2.png) [@Robin2](https://forum.arduino.cc/u/Robin2)\
**Post date:** [February 10, 2016, 9:44am UTC](https://forum.arduino.cc/t/stepper-motor-without-shield/363787/20 "2016-02-10T09:44:17Z")

</div>

That link says the L293 can provide 600 mA per channel so it should be OK.

I suspect there will be a voltage drop within the L293 so that a 12v supply will mean maybe only 10v going to the motor. Have a look at the datasheet for the L293 chip.

...R

[Next page](https://forum.arduino.cc/t/stepper-motor-without-shield/363787.md?page=2)
