Why switching high currents using a MOSFET and a Raspberry Pi is not as straightforward as it looks

from blog Kevin Boone's website, | ↗ original
Using a single MOSFET transistor for power switching in microcontroller applications is simple and low-cost, but it often doesn't work as well as expected. Either the switched device doesn't run at full capacity, or the MOSFET gets hot. This article explains why.