Chat
Welcome to Flux
Treat Flux like your intern. Tell it what you'd like to build and it'll get to work. You can also ask it questions, brainstorm ideas, and teach it your preferences. Learn More
Ready.
Reviews
Inspect
1751248
Controls
Properties
Availability & Pricing
Assets
id=1751248
id=3D
id=Footprint_V5
id=Connector_Screw_Terminal_01x02-Symbol-2
Welcome 👋
Flux accelerates your PCB design with AI.
Create your account to start using this component and bring your ideas to life.
aichaa
copilot
- To use the 2N3904 as a switch:
- Connect the emitter (E) of the 2N3904 to ground.
- Connect the collector (C) of the 2N3904 to one side of the load (in this example, an LED).
- The other side of the load should be connected to the positive supply voltage through a current-limiting resistor. If an LED is used, the resistor value could be calculated using R=ILEDVsupply−VLED, where:
- $V_{supply}$ is your power supply voltage.
- $V_{LED}$ is the forward voltage of the LED (assume 2V for a typical red LED).
- $I_{LED}$ is the desired current through the LED (20mA is a common value).
- Connect the base (B) of the 2N3904 to a control signal (like a GPIO pin from a microcontroller) through a base resistor. The base resistor value can be calculated using Rbase=IBVGPIO−VBE, where:
- $V_{GPIO}$ is the voltage of the control signal.
- $V_{BE}$ is the base-emitter voltage (assume 0.7V for the 2N3904).
- $I_{B}$ is the base current, which can be taken as $I_{C}/\beta$, with $I_{C}$ being the collector current and $\beta$ the current gain of the transistor (a value of 100 is a safe assumption for the 2N3904).
Simplified connection steps: