<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Stepper Motor Arduino Problem - Motors &amp; Control				            </title>
            <link>https://forum.dronebotworkshop.com/motors/stepper-motor-arduino-problem/</link>
            <description>Discussion board for Robotics, Arduino, Raspberry Pi and other DIY electronics and modules. Join us today!</description>
            <language>en-US</language>
            <lastBuildDate>Sun, 12 Apr 2026 20:29:25 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Stepper Motor Arduino Problem</title>
                        <link>https://forum.dronebotworkshop.com/motors/stepper-motor-arduino-problem/#post-12554</link>
                        <pubDate>Wed, 19 Aug 2020 21:56:56 +0000</pubDate>
                        <description><![CDATA[I purchased a &quot;TOAUTO Integrated Closed-Loop Nema23 Stepper Motor with Driver IHSS57-36-20 2Nm 36V Position Encoder for Lazer 3D Printer CNC Control&quot; from Amazon.
I also purchased an ELEGOO...]]></description>
                        <content:encoded><![CDATA[<p style="text-align: left"><span>I purchased a "</span><a class="bbc_link" href="https://www.amazon.com/dp/B01MFA87KI/ref=cm_sw_r_cp_apa_i_mDxnFbCRH657A" target="_blank" rel="noopener">TOAUTO Integrated Closed-Loop Nema23 Stepper Motor with Driver IHSS57-36-20 2Nm 36V Position Encoder for Lazer 3D Printer CNC Control</a><span>" from Amazon.</span></p>
<p><span>I also purchased an ELEGOO UNO R3 Arduino starter kit which includes the UNO R3.</span></p>
<p><span>I tried following the tutorials the kit provides, but when I tried to control the "TOAUTO Nema23 Stepper Motor" with the UNO R3 it didn't rotate or anything. I connected the PUL+ and DIR+ with 4.7K resistors to </span><span class="bbc_bold">pins 11 and 9</span><span> on the UNO R3. The PUL- and DIR- are connected to Ground. The motor itself is powered by a 36V power supply with a 100uf capacitor. The motor is set to 6400 steps.</span></p>
<p><span>I included <a href="https://ibb.co/album/HXM3x9" target="true">pictures</a> of how I wired everything.</span></p>
<p><strong>My end goal is to make a diy gaming PC steering wheel.</strong></p>
<p><span>The code I used is:</span></p>
<blockquote>
<pre><span>//2018.10.25</span><br /><br /><span>/*</span><br /><span>  Stepper Motor Control - one revolution</span><br /><br /><span>  This program drives a unipolar or bipolar stepper motor.</span><br /><span>  The motor is attached to digital pins 8 - 11 of the Arduino.</span><br /><br /><span>  The motor should revolve one revolution in one direction, then</span><br /><span>  one revolution in the other direction.</span><br /><br /><span>*/</span><br /><br /><span>#include &lt;Stepper.h&gt;</span><br /><br /><span>const int stepsPerRevolution = 6400;  // change this to fit the number of steps per revolution</span><br /><span>const int rolePerMinute = 15;         // Adjustable range of 28BYJ-48 stepper is 0~17 rpm</span><br /><br /><span>// initialize the stepper library on pins 8 through 11:</span><br /><span>Stepper myStepper(stepsPerRevolution, 9, 11);</span><br /><br /><span>void setup() {</span><br /><span>  myStepper.setSpeed(rolePerMinute);</span><br /><span>  // initialize the serial port:</span><br /><span>  Serial.begin(9600);</span><br /><span>}</span><br /><br /><span>void loop() {  </span><br /><span>  // step one revolution in one direction:</span><br /><span>  Serial.println("clockwise");</span><br /><span>  myStepper.step(stepsPerRevolution);</span><br /><span>  delay(500);</span><br /><br /><span>  // step one revolution in the other direction:</span><br /><span>  Serial.println("counterclockwise");</span><br /><span>  myStepper.step(-stepsPerRevolution);</span><br /><span>  delay(500);</span><br /><span>}</span></pre>
</blockquote>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/motors/">Motors &amp; Control</category>                        <dc:creator>AndroidFTW</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/motors/stepper-motor-arduino-problem/#post-12554</guid>
                    </item>
							        </channel>
        </rss>
		