Powering LED Strip with Arduino using Transistor

arduinoledmosfettransistors

I am trying to use the 5v output from an Arduino to control a 12v LED strip. I have an N-Channel MOSFET but I am confused on how to make it work. Here is the MOSFET Datasheet: http://www.st.com/web/en/resource/technical/document/datasheet/CD00002848.pdf

I basically want to use the MOSFET as a switch. When the Arduino outputs 5v I want 12v to output from the MOSFET (using 12v battery), but if the Arduino is not outputting voltage, I want the MOSFET to output 0v. Is this the correct component?

If it is the correct component, how would I set it up? I have never worked with transistors so this is new to me. Are there resistors I need to make this actually work?

Best Answer

You need to control the current going through the LED strip. You can control the Vgs of the MOSFET to turn the current on and off. You put the MOSFET on the low side because that way you can use the Arduino's low-voltage output to apply 0V or 3.3V (5V depending on the Arduino) to the gate of the MOSFET. Because the source of the MOSFET is grounded, that controls the MOSFET Vgs (the voltage between gate and source) turning it on and off.

schematic

simulate this circuit – Schematic created using CircuitLab