DC Motor + Arduino by kimgcodes

Cloned from Sketch DC Motor + Arduino by johnny555

This sketch is missing a short description
From Adafruit tutorial on DC motor. --5V from Arduino to breadboard, --to red lead of motor --to 'gate' of diode --to right leg of transistor --center leg of transistor goes to 'gold' side of 330 ohm resistor --orange side of resistor goes to PWM digital pin 3 on Arduino --left side of transistor goes to ground --right side of transistor goes to blue lead on motor https://learn.adafruit.com/adafruit-raspberry-pi-lesson-9-controlling-a-dc-motor

Embed This Sketch

Use the following HTML code to embed the sketch code above in your blog or website.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/sketch:72274" frameborder="0"></iframe>

Embed The Serial Monitor

You can also embed the Serial Monitor section! Just use this HTML code.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>