I think the post is worth reading. So lets try Google translator:
First, microcontroller I/O ports have limited load capability, typically allowing about 10-20 mA of current. Therefore, they are not usually used to drive loads directly.First, microcontroller I/O ports have limited load capability, typically allowing about 10-20 mA of current. Therefore, they are not usually used to drive loads directly.
https://youtu.be/pbz5aMdxSEU First, microcontroller I/O ports have limited load capability, usually allowing about 10-20 mA of current. Therefore, they are not usually used to drive loads directly. image.png.4e399c62899257b83f0e2103daa204e1.png Let's briefly compare the differences in driving BJTs and MOSFETs. Bipolar Junction Transistor (BJT): BJTs are current-controlled devices. As long as the base-emitter voltage (Ube) exceeds the threshold voltage (usually 0.7V), the transistor will turn on. For BJTs, 3.3V is definitely greater than Ube, and the base current (Ib) can be calculated as \( Ib = \frac{(VO - 0.7V)}{R2} \). By connecting an appropriate resistor in series with the base, the BJT can be operated in saturation. Microcontrollers are usually targeted for low power consumption, so the supply voltage is usually low, around 3.3V.
MOSFET:
MOSFET is a voltage controlled device. The gate-source voltage (Vgs) must exceed the threshold voltage to turn on, which is generally around 3-5V, and the saturation drive voltage is 6-8V, which is higher than the 3.3V of the I/O port. If driven with 3.3V, the MOSFET may not be fully turned on or operate in a partially turned-on state. In this state, the MOSFET has a high internal resistance, which limits its ability to handle high current loads, resulting in increased power dissipation and potential damage.
Therefore, it is usually better to use a microcontroller to control the BJT, which in turn drives the MOSFET. Why use a BJT to drive a MOSFET? This is because BJTs have lower load capabilities compared to MOSFETs, making them suitable for control applications. Can MOSFETs be driven directly? While it is possible with some low power MOSFETs, it is generally not recommended for larger loads.