protect digital OUTPUT pin

Hi,

The arduino is charging and discharging the gate capacitance of the FET. All you need is a series resistor; 150 to 220 ohms would be good.