Omniadisce

Switch a 12 V LED from a 5 V logic pin

Circuit Intermediate New no attempts yet
A microcontroller pin gives 5 V and can supply only a few milliamps. It must switch an LED that runs from 12 V through a 470 Ω resistor, about 20 mA. An NPN transistor does it: a small base current controls a collector current up to $\beta$ (about 100) times larger.

As a switch the transistor must be driven into saturation, fully on, with only about 0.1 V from collector to emitter. The starter's 1 MΩ base resistor gives far too little base current: the LED stays dark.

How to do it:
1. When fully on, the LED current is set by the 470 Ω resistor: about (12 − 2 − 0.1) ÷ 470.
2. The transistor needs a base current of at least that ÷ 100; give it about 4 times more, to be sure.
3. The base resistor has 5 − 0.7 = 4.3 V across it: R_B = 4.3 ÷ your base current.
4. Set the base resistor (the one connected to the 5 V source), and press Check answer.
Principles it rests on
BJT operation: $I_C = \beta I_B$ in the active region; saturation when $\beta I_B$ exceeds what the collector circuit can pass.
Question
Choose the base resistor so the LED gets 18 mA to 22 mA (full brightness).

Join free to take this activity

Anyone can look around, but taking an activity needs a free account. With one, your answers are checked step by step and your progress is saved, so you can stop and pick up where you left off on any device.

It is part of the course Electrical engineering: from first circuits to the power grid.

Nobody has tried this yet.Be the first. Your answer starts the stats.

Only each person's first answer, given before viewing the solution, is counted.

Discussion 0 comments

Log in to join the discussion.

× Enlarged view