# Photon / Stepper Motor - only spins 1 direction \[RESOLVED\]

**URL:** <https://community.particle.io/t/photon-stepper-motor-only-spins-1-direction-resolved/17866>\
**Category:** Troubleshooting\
**Created:** [November 29, 2015, 8:52pm UTC](https://community.particle.io/t/photon-stepper-motor-only-spins-1-direction-resolved/17866 "2015-11-29T20:52:29Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![RobotChicken](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/robotchicken/32/8976_2.png) [@RobotChicken](https://community.particle.io/u/RobotChicken)\
**Post date:** [April 10, 2016, 3:42pm UTC](https://community.particle.io/t/photon-stepper-motor-only-spins-1-direction-resolved/17866/3 "2016-04-10T15:42:36Z")

</div>

I had an issue where the 28BYJ-48 with ULN2003 (as pictured here: [Controlling a stepper motor using Stepper library - Photon crashes with 'usage fault'](https://community.particle.io/t/controlling-a-stepper-motor-using-stepper-library-photon-crashes-with-usage-fault/17663/13)) only turned in one direction. I found this topic on the Arduino forum that suggested swapping the middle two pins which got it working perfectly (on 4.8v USB power off VIN of the Photon).

[http://forum.arduino.cc/index.php?topic=143276.0](http://forum.arduino.cc/index.php?topic=143276.0)

Just in case someone else stumbles across a similar problem!

---

_[View the full topic](https://community.particle.io/t/photon-stepper-motor-only-spins-1-direction-resolved/17866)._
