user26688: I am trying to connect a Dagu DG01D motor to my Arduino Uno. First I tried connecting the black wire to GND and the red wire to digital pin 7. My code:
void setup() {
  pinMode(7, OUTPUT);
  digitalWrite(7, HIGH);
}

void loop() {
}

When I connected the motor, it wouldn't turn, but would rotate a little when turned in one direction. However, when I connected the red wire to 3.3V or 5V, the motor turned quickly as expected. Why didn't writing HIGH to pin 7 work?
I already verified that I can connect and run code on the Arduino by turning on the LED by replacing pin 7 with 13. I also tried running the same code on a SparkFun RedBoard, with similar results.

user368: 
No Load Current: 190mA (250mA MAX)

You're not getting that out of a ATmega328P GPIO. Use a driver instead.

26688: <p>I am trying to connect a Dagu DG01D motor to my Arduino Uno. First I tried connecting the black wire to <code>GND</code> and the red wire to digital pin <code>7</code>. My code:</p>

<pre><code>void setup() {
  pinMode(7, OUTPUT);
  digitalWrite(7, HIGH);
}

void loop() {
}
</code></pre>

<p>When I connected the motor, it wouldn't turn, but would rotate a little when turned in one direction. However, when I connected the red wire to <code>3.3V</code> or <code>5V</code>, the motor turned quickly as expected. <strong>Why didn't writing <code>HIGH</code> to pin <code>7</code> work?</strong></p>

<p>I already verified that I can connect and run code on the Arduino by turning on the LED by replacing pin <code>7</code> with <code>13</code>. I also tried running the same code on a SparkFun RedBoard, with similar results.</p>
 368: <blockquote>
  <p>No Load Current: 190mA (250mA MAX)</p>
</blockquote>

<p>You're not getting that out of a ATmega328P GPIO. Use a driver instead.</p>
