IRL540? Use a 200 ohm resistor to drive the base. If you need to drive it quickly, like for a fast PWM, use a MOSFET gate driver IC.
An example of a possible device is IRLS3036, 60V, 1.9 milliohm, logic level.
Logic level, Low Rds, Low Gate capacitance, thru hole N-channel MOSFET, 50 cents, that I use a lot:http://www.digikey.com/product-search/en?keywords=aoi514