user667: I'm using the Pololu DRV8825 Stepper Motor Driver to control a NEMA 17 Steppermotor with an Arduino Uno.  According to the Pololu website, the circuit should be wired as follows:

I did, however, deviate from this exact sketch a little bit:

The Arduino (microcontroller) is powered by a USB cable connected to the computer
I connected the 5V pin on the arduino to the + rail on a breadboard.  I then connected two wires on this rail to the RESET and SLEEP pins on the driver.
I'm using a 9V battery to power the motor.
I've connected the DIR and STEP pins to Arduino Uno pins 12 & 13, respectively.

Consequently, I coded and uploaded the following sketch:
int stp = 13;  //connect pin 13 to step
int dir = 12;  // connect pin 12 to dir
int a = 0;     //  gen counter

void setup() 
{                
  pinMode(stp, OUTPUT);
  pinMode(dir, OUTPUT);       
}

void loop() 
{
  if (a <  200)  //sweep 200 step in dir 1
   {
    a++;
    digitalWrite(stp, HIGH);   
    delay(10);               
    digitalWrite(stp, LOW);  
    delay(10);              
   }
  else 
   {
    digitalWrite(dir, HIGH);
    a++;
    digitalWrite(stp, HIGH);  
    delay(10);               
    digitalWrite(stp, LOW);  
    delay(10);

    if (a>400)    //sweep 200 in dir 2
     {
      a = 0;
      digitalWrite(dir, LOW);
     }
    }
}

RESULT
The stepper motor does not turn.  Instead, it just hisses at a high pitch.  After a short while, the driver gets very hot.
THINGS I'VE TRIED

I double checked to make sure that connected stepper wires pairs are properly connected to the "A" pins and "B" pins on the driver.
I tried reversing the A1-A2 pair and B1-B2 pair in all possible combinations.  All combinations produce the same result as above.
I tried increasing the motor power supply to 12V (8 alkaline AA batteries).  The same result occurs.
I double checked to make sure the 100microF radial electrolytic capacitor is connected with the long end to the positive motor supply and short end to the negative motor supply (on a different breadboard rail than the logic power supply, of course).
I tried using the 3.3V pin instead of the 5V pin to connect to SLEEP and RESET on the driver.  Again, the same result occurs.  

I'm not really sure what to try next to debug my circuit.  
My Hunch: 
I do, however, have one suspicion based on a little warning box on the pololu website which reads:

Caution: Installing the header pins so that the silkscreen side is up
  and the components are down can limit the range of motion of the
  trimpot used to set the current limit. If you plan on installing the
  header pins in this orientation, please set the current limit before
  soldering in the pins.

The way I soldered the headers onto the driver looks like the bottom left corner of the picture below:

My Question:
Given that my stepper motor requires 1.7A current, is there anything I can do to improve this circuit to make it work?  Did I make any mistakes?  Is there anything else I should try or check?  Did I solder the header in the wrong way?

user15179: The one thing that helped me was NOT to connect GND to stepper board from microcontroller (bottom black line from schematic posted in first post). 
If it was connected, driver would draw 12V@3A immediately and gets freaky hot. Also motor didn´t turn at all.

user220: A couple things I noticed first: This is one of the best formatted questions I've ever seen... :) Anyway, your circuit looks fine to me except for a few things:

Warning: This carrier board uses low-ESR ceramic capacitors, which makes it susceptible to destructive LC voltage spikes, especially when using power leads longer than a few inches. Under the right conditions, these spikes can exceed the 45 V maximum voltage rating for the DRV8825 and permanently damage the board, even when the motor supply voltage is as low as 12 V. One way to protect the driver from such spikes is to put a large (at least 47 µF) electrolytic capacitor across motor power (VMOT) and ground somewhere close to the board.

(Added some italic/bold myself, quote from product page.)
Capacitors are cheap ($1.50 on eBay from US), and although new drivers are too, it's generally a good idea to build it right. There's nothing more annoying than waiting for shipping on something you shouldn't have had to fix.
Additionally, battery power (especially AAs) can be bulky if not done right, and may not provide enough current. Note that in a series configuration that it will provide the voltage of 8 AAs, but only the current of one. You can't run a 1.7 A motor off of a single AA's current. Stab in the dark guess: you'll need ~80-100 AAs to provide enough current and voltage. I'm too lazy to measure the internal resistance and actually calculate it.
Suggested solution: There are a million things that could go wrong. Without being there, I'm betting that your delay function is too short. What this will do is not provide enough time for the motor to move, thus it staying still. This would still use a lot of current (50% of the time it's full current to motor coils), therefore it would make the driver hot. (Note on heat: ...to supply more than approximately 1.5 A per coil, a heat sink or other cooling method is required... -Product page: you'll need a heatsink to cool your chip down.) Also note that some heat is normal; a general rule of thumb is if it's too hot to hold your thumb on it for a few seconds, you need more cooling. Remember that the more it's used, the hotter it'll get, so keep this in mind when deciding if you want to add a heatsink.
tl;dr: You need to increase the delay time and provide more current than you have currently.

user14675: I don't think your batteries were too low in current capacity, your delay time is not too short, at 10 +10 ms per clock pulse, you are only talking about 50 steps per second, that's not all that fast. I've written programs where I have had to go to microseconds to get enough rpm out of my stepper.
First, take everything out of your loop except the digitalwrite high, delay digitalwrite low and delay lines. Then the program "should" just spin the motor continuously in one direction. That way you are sure you don't have a logic issue.
Second, did you check to see if you didn't hook up pin 12 and 13 backwards, such that you are telling the driver to change direction every 10 ms instead of stepping? The sound it makes would be more like a buzz or vibration, usually a soft, staticy hiss is when the motor is enabled, but not getting a step pulse.
Finally, this post is about 18 months old, it is considerate and helpful to others to explain how you solved the problem (assuming you figured it out).

user16057: I had this same issue when setting up this circuit with this code and driver on an Arduino Uno. All else was fine, but the current for the motor was set WAY too high on the driver from the factory. The VREF was 1.7 volts, and it needed to be around .5 for the motor I was using. As I set the VREF to the appropriate voltage, the motor started to spin as it should and stopped hissing. 
I know this post is old, but I hope that this helps someone else. Pololu has a great video (and documentation in general) for setting the appropriate voltage on most of their drivers on the product page here: DRV8825 Stepper Motor Driver Carrier, High Current. 

667: <p>I'm using the <a href="http://www.pololu.com/product/2132" rel="noreferrer">Pololu DRV8825 Stepper Motor Driver</a> to control a <a href="http://www.ebay.co.uk/itm/Nema-17-1-7A-2-55V-Motor-ACT-17HS4417-Rep-rap-Nema17-Bipolar-/281122696759" rel="noreferrer">NEMA 17 Steppermotor</a> with an Arduino Uno.  According to the Pololu website, the circuit should be wired as follows:</p>

<p><img src="https://i.stack.imgur.com/x76EK.png" alt="enter image description here"></p>

<p>I did, however, deviate from this exact sketch a little bit:</p>

<ol>
<li>The Arduino (microcontroller) is powered by a USB cable connected to the computer</li>
<li>I connected the 5V pin on the arduino to the + rail on a breadboard.  I then connected two wires on this rail to the <strong>RESET</strong> and <strong>SLEEP</strong> pins on the driver.</li>
<li>I'm using a 9V battery to power the motor.</li>
<li>I've connected the <strong>DIR</strong> and <strong>STEP</strong> pins to Arduino Uno pins 12 &amp; 13, respectively.</li>
</ol>

<p>Consequently, I coded and uploaded the following sketch:</p>

<pre><code>int stp = 13;  //connect pin 13 to step
int dir = 12;  // connect pin 12 to dir
int a = 0;     //  gen counter

void setup() 
{                
  pinMode(stp, OUTPUT);
  pinMode(dir, OUTPUT);       
}

void loop() 
{
  if (a &lt;  200)  //sweep 200 step in dir 1
   {
    a++;
    digitalWrite(stp, HIGH);   
    delay(10);               
    digitalWrite(stp, LOW);  
    delay(10);              
   }
  else 
   {
    digitalWrite(dir, HIGH);
    a++;
    digitalWrite(stp, HIGH);  
    delay(10);               
    digitalWrite(stp, LOW);  
    delay(10);

    if (a&gt;400)    //sweep 200 in dir 2
     {
      a = 0;
      digitalWrite(dir, LOW);
     }
    }
}
</code></pre>

<p><strong>RESULT</strong><br>
The stepper motor does not turn.  Instead, it just hisses at a high pitch.  After a short while, the driver gets very hot.</p>

<p><strong>THINGS I'VE TRIED</strong></p>

<ol>
<li>I double checked to make sure that connected stepper wires pairs are properly connected to the "A" pins and "B" pins on the driver.</li>
<li>I tried reversing the A1-A2 pair and B1-B2 pair in all possible combinations.  All combinations produce the same result as above.</li>
<li>I tried increasing the motor power supply to 12V (8 alkaline AA batteries).  The same result occurs.</li>
<li>I double checked to make sure the 100microF radial electrolytic capacitor is connected with the long end to the positive motor supply and short end to the negative motor supply (on a different breadboard rail than the logic power supply, of course).</li>
<li>I tried using the 3.3V pin instead of the 5V pin to connect to SLEEP and RESET on the driver.  Again, the same result occurs.  </li>
</ol>

<p>I'm not really sure what to try next to debug my circuit.  </p>

<p><strong>My Hunch:</strong>  </p>

<p>I do, however, have one suspicion based on a little warning box on the pololu website which reads:</p>

<blockquote>
  <p><strong>Caution:</strong> Installing the header pins so that the silkscreen side is up
  and the components are down can limit the range of motion of the
  trimpot used to set the current limit. If you plan on installing the
  header pins in this orientation, please set the current limit before
  soldering in the pins.</p>
</blockquote>

<p>The way I soldered the headers onto the driver looks like the bottom left corner of the picture below:</p>

<p><img src="https://i.stack.imgur.com/I4p4R.jpg" alt="enter image description here"></p>

<p><strong>My Question:</strong><br>
Given that my stepper motor requires 1.7A current, is there anything I can do to improve this circuit to make it work?  Did I make any mistakes?  Is there anything else I should try or check?  Did I solder the header in the wrong way?</p>
 15179: <p>The one thing that helped me was NOT to connect GND to stepper board from microcontroller (bottom black line from schematic posted in first post). </p>

<p>If it was connected, driver would draw 12V@3A immediately and gets freaky hot. Also motor didn´t turn at all.</p>
 220: <p><strong>A couple things I noticed first:</strong> This is one of the best formatted questions I've ever seen... :) Anyway, your circuit looks fine to me except for a few things:</p>

<blockquote>
  <p><strong>Warning:</strong> This carrier board uses low-ESR ceramic capacitors, which makes it susceptible to destructive LC voltage spikes, especially when using power leads longer than a few inches. Under the right conditions, these spikes can exceed the 45 V maximum voltage rating for the DRV8825 and permanently damage the board, even when the motor supply voltage is as low as 12 V. One way to protect the driver from such spikes is to put a large <strong>(at least 47 µF) <em>electrolytic</em> capacitor across motor power (VMOT) and ground</strong> somewhere close to the board.</p>
</blockquote>

<p><em>(Added some italic/bold myself, quote from product page.)</em></p>

<p>Capacitors are cheap ($1.50 on eBay from US), and although new drivers are too, it's generally a good idea to build it right. There's nothing more annoying than waiting for shipping on something you shouldn't have had to fix.</p>

<p>Additionally, battery power (especially AAs) can be bulky if not done right, and may not provide enough current. Note that in a series configuration that <strong>it will provide the voltage of 8 AAs, but only the current of one.</strong> You can't run a 1.7 A motor off of a single AA's current. Stab in the dark guess: you'll need ~80-100 AAs to provide enough current and voltage. I'm too lazy to measure the internal resistance and actually calculate it.</p>

<p><strong>Suggested solution:</strong> There are a million things that could go wrong. Without being there, I'm betting that your delay function is too short. What this will do is not provide enough time for the motor to move, thus it staying still. This would still use a lot of current (50% of the time it's full current to motor coils), therefore it would make the driver hot. (<strong>Note on heat:</strong> <em>...to supply more than approximately 1.5 A per coil, a heat sink or other cooling method is required...</em> -Product page: you'll need a heatsink to cool your chip down.) Also note that some heat is normal; a general rule of thumb is if it's too hot to hold your thumb on it for a few seconds, you need more cooling. Remember that the more it's used, the hotter it'll get, so keep this in mind when deciding if you want to add a heatsink.</p>

<p><strong>tl;dr:</strong> You need to increase the delay time and provide more current than you have currently.</p>
 14675: <p>I don't think your batteries were too low in current capacity, your delay time is not too short, at 10 +10 ms per clock pulse, you are only talking about 50 steps per second, that's not all that fast. I've written programs where I have had to go to microseconds to get enough rpm out of my stepper.</p>

<p>First, take everything out of your loop except the digitalwrite high, delay digitalwrite low and delay lines. Then the program "should" just spin the motor continuously in one direction. That way you are sure you don't have a logic issue.
Second, did you check to see if you didn't hook up pin 12 and 13 backwards, such that you are telling the driver to change direction every 10 ms instead of stepping? The sound it makes would be more like a buzz or vibration, usually a soft, staticy hiss is when the motor is enabled, but not getting a step pulse.</p>

<p>Finally, this post is about 18 months old, it is considerate and helpful to others to explain how you solved the problem (assuming you figured it out).</p>
 16057: <p>I had this same issue when setting up this circuit with this code and driver on an Arduino Uno. All else was fine, but the current for the motor was set WAY too high on the driver from the factory. The VREF was 1.7 volts, and it needed to be around .5 for the motor I was using. As I set the VREF to the appropriate voltage, the motor started to spin as it should and stopped hissing. </p>

<p>I know this post is old, but I hope that this helps someone else. Pololu has a great video (and documentation in general) for setting the appropriate voltage on most of their drivers on the product page here: <a href="https://www.pololu.com/product/2133" rel="nofollow">DRV8825 Stepper Motor Driver Carrier, High Current</a>. </p>
