Wiring up to power an LED strip

crappy description of how to wire an LED strip to an Arduino. Power to the strip is separate from Arduino, although common ground.

 

The capacitor smooths out the fluctuating current draw from the strip.

 

The resistor protects the Arduino output port from over voltage if you power the strip with > 5 volts.