This is the case: 12V bench power supply (current limited to 3A) wired to a 30W LED bulb (H7 bulb for vehicles), controlled by an Arduino via the gate of the 2SK1363.
The signal from the Arduino was sent to the gate by a pushbutton, it was a simple sequence of flashing the LED on and off quickly, 20 times in a 2 seconds or so. Also, the default initial state of the LED was controlled by the code as well, with digitalWrite high or low. This would put the bulb in a "solid state", on or off, and then the pushbutton would initiate fast flashing for 2 seconds.
I used INPUT_PULLUP on the pushbutton pin and everything worked fine but the MOSFET got very hot, and after running the pushbutton flashing on the LED for couple of times in a row, it started to smoke.
I'm a newbie and the only rating I asked for when buying this mosfet was "N-type" and "gate threshold 5V" because of the Arduino.
I later discovered that my particular MOSFET has an Rds rating of 1.4 ohm. When working with my 2.5A bulb it rounds up to 9W, but on the spec sheet I see that "Maximum Power Dissipation" (Pd) is 90 W.
Can someone enlighten me and point me in the correct direction for me to learn proper way of working with MOSFETs? Why did my MOSFET smoke? How can I pick a proper one for my application? What things should I consider?