I want to use a transistor as a switch for a 3 watt LED (5V, 700mA.) The transistor is triggered/switched via an ESP32.
I want to dim the LED using PWM offered by the ESP32.
I need the transistor because the ESP32 does not deliver enough current (~40mA vs 700mA) on its pins and therefore an external power source must be used.
Furthermore, I have read that MOSFETs are better for fast switching, I suppose PWM is such a use case.
I am pretty new to the microcontroller game and therefore still confused by the sheer amount of different MOSFETs and BJTs.