Hey, this is just a quick question.
On another post, I was having trouble with a mosfet and a motor and I mentioned the fact that I just had the output line hooked directly to the mosfet. Someone recommended having a 100-ohm resistor in series with the gate. What is the purpose of that? Is it just to protect the arduino in case you connect the wire into the wrong hole on the breadboard (e.g. the drain of the mosfet instead of the gate?) I had one of those "inductive spike suppressing" diodes. I thought that the fact that the gate is isolated and controlled by voltage instead of current was the advantage of a mosfet over a regular transistor.