Hi, I thought I understood what I needed, but turns out I just don't understand.
I use Arduino PWM output pin to control a MOSFET, which is connected to a 12V source.
If I use the MOSFET IRF520N, I can varry the output voltage from 0 to 12V.
If I use the MOSFET IRL540N, it only lets me varry the output voltage from 0 to 2.5V.
I thought the IRF520 was non logic, so I should get the IRL540 because it's logic controled.
I have no idea what's going on. I would appreciate an explanation if anyone has one.