# Stepper Mottors

**URL:** <https://community.sparkfun.com/t/stepper-mottors/34223>\
**Category:** Arduino\
**Created:** [April 4, 2017, 4:11pm UTC](https://community.sparkfun.com/t/stepper-mottors/34223 "2017-04-04T16:11:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pascal1966](https://avatars.discourse-cdn.com/v4/letter/p/b9e5f3/32.png) [@Pascal1966](https://community.sparkfun.com/u/Pascal1966)\
**Post date:** [April 4, 2017, 4:11pm UTC](https://community.sparkfun.com/t/stepper-mottors/34223/1 "2017-04-04T16:11:15Z")

</div>

Hi,

I just bought this stepper motor below to be controled by a arduino UNO:

Elegoo 5 sets 28BYJ-48 ULN2003 5V Stepper Motor + ULN2003 Driver Board for Arduino.

Questions: tutorials all show the pins connected to 8,9,10,11: does that matter? can I use other pins like 5,6,7,8?

What is the stepsPerRevolution?

Step angle: 5.625 x 1/64

It seems to me that it is either: 360/5.625 = 64 (motor itself)

or: 64 x 64 = 4096 (motor + gearing)

However, when i run the motor step by step on one revolution, I count only 2048 steps.

What’s wrong?

---

<div class="post-metadata">

**Author:** ![jremington](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/jremington/32/6595_2.png) [@jremington](https://community.sparkfun.com/u/jremington)\
**Post date:** [April 4, 2017, 5:04pm UTC](https://community.sparkfun.com/t/stepper-mottors/34223/2 "2017-04-04T17:04:26Z")

</div>

Yes, you can use different pins.

> What’s wrong?

Are we supposed to guess? Post your code, using code tags.

---

<div class="post-metadata">

**Author:** ![Pascal1966](https://avatars.discourse-cdn.com/v4/letter/p/b9e5f3/32.png) [@Pascal1966](https://community.sparkfun.com/u/Pascal1966)\
**Post date:** [April 4, 2017, 9:10pm UTC](https://community.sparkfun.com/t/stepper-mottors/34223/3 "2017-04-04T21:10:21Z")

</div>

Thanks. I indeed tried other pins and it works the same.

I confirm that the number of steps per revolution seems to be 20148, which does not seem coherent with the specs… I have asked Elegoo directly, we’ll see what they say.

---

<div class="post-metadata">

**Author:** ![theropod](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@theropod](https://community.sparkfun.com/u/theropod)\
**Post date:** [April 4, 2017, 9:41pm UTC](https://community.sparkfun.com/t/stepper-mottors/34223/4 "2017-04-04T21:41:29Z")

</div>

20148 or 2048?

A little math would help too. 2048 / 64 = 32.

2048 would make the gear ratio 32:1

The site below states they are 64:1

[[Link to specs on listed motor](http://42bots.com/tutorials/28byj-48-stepper-motor-with-uln2003-driver-and-arduino-uno/)

RS]([28BYJ-48 Stepper Motor with ULN2003 driver and Arduino Uno – 42 Bots](http://42bots.com/tutorials/28byj-48-stepper-motor-with-uln2003-driver-and-arduino-uno/))

---

<div class="post-metadata">

**Author:** ![jremington](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/jremington/32/6595_2.png) [@jremington](https://community.sparkfun.com/u/jremington)\
**Post date:** [April 4, 2017, 10:27pm UTC](https://community.sparkfun.com/t/stepper-mottors/34223/5 "2017-04-04T22:27:39Z")

</div>

See this blog on the various different gear ratio that are associated with that model stepper:

[https://grahamwideman.wikispaces.com/Mo … otor+notes](https://grahamwideman.wikispaces.com/Motors-+28BYJ-48+Stepper+motor+notes)

---

<div class="post-metadata">

**Author:** ![theropod](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@theropod](https://community.sparkfun.com/u/theropod)\
**Post date:** [April 5, 2017, 10:34pm UTC](https://community.sparkfun.com/t/stepper-mottors/34223/6 "2017-04-05T22:34:50Z")

</div>

> jremington:  
> See this blog on the various different gear ratio that are associated with that model stepper:
> 
> [https://grahamwideman.wikispaces.com/Mo … otor+notes](https://grahamwideman.wikispaces.com/Motors-+28BYJ-48+Stepper+motor+notes)

Oh isn’t that handy. :doh:

RS

---

<div class="post-metadata">

**Author:** ![Pascal1966](https://avatars.discourse-cdn.com/v4/letter/p/b9e5f3/32.png) [@Pascal1966](https://community.sparkfun.com/u/Pascal1966)\
**Post date:** [May 9, 2017, 10:17pm UTC](https://community.sparkfun.com/t/stepper-mottors/34223/7 "2017-05-09T22:17:11Z")

</div>

Thanks all for the responses.

So it turns out to be a 32 steps motor (the step motor itself), but with the gearing at 64:1 , the output shaft has 2048 ‘slow’ steps.

The initial confusion comes from the manufacturer’s specs; 5.625 degree per step: that’s wrong: 360/32 = 11.25 degree.

so the internal stepper has 32 steps and 11.25 degree per step, which translates to 32x64 = 2048 steps and 360/2048 = 0.17578 degree at the output shaft.

The overall package makes for a quite “high def” little stepper assembly!
