Check Your Understanding5.1.4Check Your Understanding
1.
You want to drive a small DC motor that requires 200 mA. The STM32C031C6’s GPIO pin is rated for 6 mA, and 15 mA at most. Why can’t you connect the motor directly to the GPIO pin?
The motor requires far more current than the GPIO pin can safely supply; drawing 200 mA from a pin rated for 6 mA would damage the microcontroller.
Correct. The solution is to use a transistor: the GPIO pin drives the control terminal with a small current or voltage, and the transistor switches the motor’s 200 mA from a separate supply path.
GPIO pins can only source current, not sink it, so they cannot drive any motor.
The STM32C031C6’s GPIO pins can both source and sink current: the limitation is the magnitude (a few milliamps), not the direction.
Motors require AC power, and GPIO pins only produce DC signals.
Small DC motors run on DC, the same kind of signal a GPIO pin produces. The issue is current capacity, not signal type.
The motor’s resistance is too low for the GPIO pin’s output impedance to match.
Impedance matching is a concern in RF and audio circuits, not in low-frequency switching applications like this. The real issue is that 200 mA exceeds the pin’s current rating.
A BJT is controlled by a current into the base; a MOSFET is controlled by a voltage on the gate and draws essentially no steady-state current.
Correct. This distinction matters for GPIO drive budget: a BJT requires you to supply base current (limited by the resistor you choose), while a MOSFET gate draws nearly zero steady-state current from the GPIO pin.
A BJT is controlled by voltage; a MOSFET is controlled by current.
It is the other way around: BJT = current-controlled (base current), MOSFET = voltage-controlled (gate voltage).
BJTs work with AC signals only; MOSFETs work with DC signals only.
Both BJTs and MOSFETs work with DC switching applications. The distinction between them is about how the control terminal operates, not AC vs DC.
BJTs are faster than MOSFETs and therefore preferred for high-speed switching in embedded systems.
For the switching speeds used in this course, both are fast enough. MOSFETs are often preferred because they require no steady-state gate current.
The GPIO pin can only drive the gate to 3.3 V, which is below the 4 V threshold; the MOSFET will not turn on fully (or at all), so the load won’t be switched.
Correct. This is why logic-level MOSFETs, specified to turn on fully at 3.3 V or lower, are required when driving directly from a 3.3 V microcontroller pin.
The MOSFET will turn on too quickly, causing a large inrush current that damages the load.
A gate voltage below threshold causes the MOSFET to turn on less, not more aggressively. The problem here is under-drive, not over-drive.
The MOSFET will work correctly because \(V_{th}\) is the maximum gate voltage needed.
\(V_{th}\) is the minimum voltage at which the device begins to conduct, not a maximum. The GPIO must be able to exceed it to turn the MOSFET on.
Nothing: MOSFETs are always compatible with 3.3 V signals regardless of their threshold specification.
Not all MOSFETs are logic-level compatible. Standard (high-threshold) MOSFETs require 5–10 V on the gate; using one with a 3.3 V GPIO will result in the device not turning on properly.