Working through the "Getting Started With Arduino", there's a page on using a MOSFET to control high current loads, using external power. I successfully managed to build that project and it worked perfect. That page can be found here:
right hereSince then I've fooled around with my IRF520 MOSFET and did some experiments. Now I actually want to implement it in a project that involves flashing an array of LEDs.
While prototyping the project, I removed the diode, replaced the motor with an LED, using 12v external power, and gave it a 10k pull-down resistor.
Somewhere between the motor project and now, I believe that i've shorted my MOSFET. I'm using a sketch that's supposed to flash the LED from HIGH to LOW, although the LED just dims slightly instead of switching off. Measuring the voltage, it fluctuates between 12v-10v.
Is my MOSFET bad?
Here's the sketch, and the schematic for what I have setup:
int LED = 9;
void setup() {
pinMode(9, OUTPUT);
}
void loop() {
digitalWrite(LED, HIGH);
delay(1000);
digitalWrite(LED, LOW);
delay(1000);
}

(if anything looks obviously wrong, please point it out. I'm new at doing any of this, especially drawing schematics.)