1 kΩ resistor
required for gpio base drive
Base current must be limited and sized for load/saturation.
- The required resistance depends on supply, base drop and load.

Discrete Components
A PN2222 NPN transistor uses base drive to control a larger collector current for switching or amplification.
Base drive; collector/emitter load path
An NPN can switch a small load on the ground side: a GPIO supplies limited base current while collector/emitter carry the load current. It can also amplify a small signal with an appropriate bias circuit.
A forward-biased base-emitter junction injects carriers that support current through the collector path. Current gain depends on device, current and temperature; a saturated switch is designed with adequate base drive rather than a typical gain copied as a constant.
TO-92 body marked PN2222; confirm pinout from the supplied part. TO-92 outlines do not establish emitter/base/collector order; read the exact manufacturer suffix or verify with a transistor tester.
Also called: npn transistor pn2222, NPN transistors (PN2222)
Identify emitter/base/collector first. For low-side switching place load between positive rail and collector, emitter to ground, and base through a resistor from the controller. Provide defined off bias and a flyback diode for an inductive load. Calculate driver current and power dissipation for the real load; use a different driver if the required base current exceeds GPIO limits.
required for gpio base drive
Base current must be limited and sized for load/saturation.
intermediate
Build a low-current NPN stage and measure the relationship between base drive and collector behavior.
intermediate
Build a transistor/flyback coil stage and observe COM/NO/NC state independently from the control circuit.
intermediate
Compare active on/off tones with passive host-generated pitch using current-qualified switching.
Read the conditions before connecting parts. A relationship can involve a driver, controller or a redesigned circuit.
support hardware
base drive
signal amplification
junction verification
A verified S8050 can replace an NPN low-side switch within its actual ratings.
Quantity: 7 · quantity confidence: high
Known countable purchase/BOM contributions. Each source line is a total; do not multiply by container count or add photo observations.
Ownership: source-backed club holding. Identity confidence: high.
Identity follows exact kit sheet/BOM; expected quantity is not a physical stocktake.
Named model/class is frozen. Related onsemi reference explains operation but does not identify the actual manufacturer, pinout or maximum ratings.
Original V3 image confidence: 90% · high. Component crop tied to an owned kit and its source mapping; selected by form rather than filename alone.
Original V3 image source: ELEGOO Mega reference (owned kit reference). Images describe identity and form; they do not establish quantity.
Displayed image source: User-supplied pn2222 reference image attached in chat.
User-selected TO-92 transistor reference bears PN2222A marking; complete visible three leads and physical lettering retained. It is a family/form reference and does not establish the exact owned suffix, manufacturer or pin order.
User-supplied reference image; original rights retained.