Teach Your Kid Electronics

Intermediate · Project 1

Transistor Switch

Meet the transistor, an electronic switch where a tiny current controls a much bigger one.

Build this only with an adult present. Before you start, read our safety notice and disclaimer.

Intermediate⏱ About 20 min

🧰 What you need

  • 1×Half-size breadboardA board full of little holes with metal clips inside, so you can build circuits without soldering.
  • 1×3×AA battery holder with wire leadsHolds three AA batteries in a row and gives you a red (+) and black (−) wire.
  • 3×AA batteryA regular household battery. Each one gives 1.5 volts.
  • 1×Push button (tactile switch)A little button with 4 legs. It connects its two sides only while you press it.
  • 1×10 kΩ resistor — brown, black, orange, goldColors: brown, black, orange, gold.
  • 1×2N3904 transistor (NPN)A tiny electronic switch: a small current into its middle leg (base) controls a bigger current.
  • 1×220 Ω resistor — red, red, brown, goldOur go-to LED resistor. Colors: red, red, brown, gold.
  • 1×5 mm LED (any color) — any color worksA tiny light that only lets current flow one way. The long leg is +.
  • 4×Jumper wireA short wire with stiff ends that push into the breadboard.

✨ The finished project

A transistor switch: a push button and 10k resistor drive a 2N3904 transistor, which switches an LED ++−−++−−aabbccddeeffgghhiijj115510101515202025253030 2N3904EBC 10 kΩ 220 Ω +− AAAAAA3 × AA = 4.5 V+−
A transistor switch: a push button and 10k resistor drive a 2N3904 transistor, which switches an LED ++−−++−−aabbccddeeffgghhiijj115510101515202025253030 2N3904EBC 10 kΩ 220 Ω +− AAAAAA3 × AA = 4.5 V+−
Schematic: A transistor switch: a push button and 10k resistor drive a 2N3904 transistor, which switches an LED Q1 +4.5V 4.5 V button 10 kΩ 2N3904 red LED 220 Ω
The finished build. This picture is generated from the circuit itself and checked by computer, so every leg is in the right hole.

🔣 New schematic symbols

This project’s schematic has some symbols you haven’t seen before. Here’s what they mean.

  • + voltage tag

    Instead of drawing a long wire all the way back to the battery, the schematic puts this little tag. Every tag like it is joined to the battery’s + side.

  • NPN transistor

    An electronic switch with three legs. A small current into the base (the line on the left) lets a much bigger current flow from the collector (top) to the emitter (bottom, the leg with the arrow).

Welcome to the Intermediate level! Every project here uses one of the most important inventions ever: the transistor. Your phone has billions of them. Today you’ll use just one, as an electronic switch.

Meet the transistor

A transistor is a little black part with three legs:

  • C (collector): where the big current comes in.
  • B (base): the control leg. A tiny current here turns the transistor on.
  • E (emitter): where all the current leaves, back toward the battery’s −.

Think of it like a garden hose with a tap: the base is the tap handle, and a gentle twist (a tiny base current) lets a big flow of water (collector current) through.

Build it

  1. Push button: across the middle gap, legs in e3, f3, e5 and f5.

  2. Red wire: T+3 (top red + rail, column 3) to a3, powering the button.

  3. Transistor: flat side facing you, E in e9, B in e10, C in e11.

  4. 10 kΩ base resistor: b5 (the button’s other side) to b10 (the base column).

  5. Black wire: a9 (the emitter column) to T-9 (top blue − rail, column 9).

  6. Blue wire: a11 (the collector column) to a14.

  7. LED: short leg in e14 (joined to the collector by the blue wire), long leg in e15.

  8. 220 Ω resistor: b15 to b19, and a red wire from a19 to T+19 (top red + rail, column 19).

  9. Power: battery red wire into T+1, black into T-2. Press the button, and the LED lights!

What’s happening?

There are two loops here:

  1. The control loop: battery + → button → 10 kΩ resistor → transistor’s base → out the emitter → battery −. Because of that big resistor, only about 0.4 mA flows. That’s way too little to light an LED by itself!
  2. The power loop: battery + → 220 Ω resistor → LED → transistor’s collector → out the emitter → battery −. When the base current flows, the transistor opens up and about 10.5 mA flows here.

So a tiny current is controlling one about 27 times bigger. That’s called amplifying, and it’s the transistor’s superpower.

Not working?

  • LED never lights? Check the transistor is the right way round (flat side facing you: E, B, C). Backwards, it barely works.
  • LED always on? The button is turned the wrong way. Give it a quarter turn.
  • Still nothing? Take the transistor out and put a jumper wire from column 11 to column 9. If the LED lights, the LED loop is fine and the problem is in the button-and-base loop.

Try it!