Recommended · for beginners
How to control 12V devices with Arduino. Using Relay vs Using N-Channel MOSFET transistor
Why people recommend it
A Mario's Ideas walkthrough of switching LEDs with a MOSFET and Arduino PWM, which one viewer found easy to follow, though others came away with circuit questions.
Watch for: Expect to check wiring and wire gauge separately
In their words
The instructions here are clear and simple to follow.
Behnaam on electronics.stackexchange.com, Dec 2024. CC BY-SA.
Edit- I forgot the link to the YouTube video mentioned above- [video] which presents the following diagram.
Jason Rostar on electronics.stackexchange.com, Sept 2022. CC BY-SA.