skill

Transistor switching

A tiny current at the base opens a gate for a much bigger one.

first shows up at Level 3 · Sense

A transistor is an electronic switch — but instead of your finger flipping it, a small electrical signal does. That means a sensor (which can only move tiny amounts of current) can control an LED, a buzzer, or a motor (which need much more).

The three legs of an NPN transistor

  • Base (B) — the "control" pin. A tiny current here decides everything.
  • Collector (C) — where the big current comes in.
  • Emitter (E) — where it leaves, on its way back to .

The rule

When enough current flows into the base, the transistor "turns on" and a much bigger current can flow from collector to emitter. Roughly:

I_collector ≈ β × I_base (β is often 100 or more)

So 50 µA into the base can control 5 mA through the collector. The transistor amplifies: a small current controls a larger one.

Where you'll see it

Any project where a sensor (LDR, button, microphone) has to trigger something loud, bright, or moving uses a transistor as the middleman. It's the bridge between "I detected something" and "I did something about it".

Projects that teach this

Automatic Night Light A light that switches itself on when the room gets dark — no hands, no code. L3 35 min Sunrise Alarm The night light — flipped. Swap two parts and the LED wakes up with the sun instead. L3 25 min Cookie Jar Alarm The Sunrise Alarm's brain wired to a buzzer instead of a lamp — quiet in the dark jar, screaming when the lid comes off. L3 25 min Trip Wire Alarm A thin wire across a doorway holds the alarm silent. Break the wire and the buzzer screams — until you connect it back. L3 25 min Warm Hand Alarm Cup your hand over the sensor and the LED lights up — a thermometer that turns into a switch. L3 30 min Reading Light The Automatic Night Light with a knob on top — turn it to dial in how dark the room has to get before the lamp fires. Your first tunable threshold. L3 30 min Vacation Nightlight The Automatic Night Light with a manual override — flip the slide switch off and the lamp stays dark even in a pitch-black room. L3 25 min Study Lamp The Automatic Night Light with a force-on override — flip the slide switch and the lamp stays lit even in daylight, ignoring the sensor. L3 25 min Curfew Beeper The Automatic Night Light's brain with a buzzer where the LED used to sit — beeps the moment the room goes dark, so you never miss sunset. L3 30 min Fever Beeper The Warm Hand Alarm's brain wired to a buzzer instead of a lamp — silent in a normal room, beeping the second a warm palm covers the sensor. L3 25 min Dusk Chorus The Curfew Beeper with a red LED wired in parallel with the buzzer — one dusk sensor drives a chime and a lamp at the same time. L3 30 min Warm Hand Chorus Fever Beeper with a red LED added in parallel with the buzzer — one warm-hand sensor drives a chime and a lamp at the same time. L3 30 min Handheld Fan Press the button, the fan spins. A tiny finger current commands a hundred-milliamp motor through a transistor. L4 20 min Sunrise Fan Sunrise Alarm with the LED swapped for a motor. The sun rises, the fan starts — an automatic wake-you-up desk breeze. L4 25 min Panic Fan Two buttons, either one fires the fan. Panic Doorbell wearing a motor — an OR gate that spins. L4 20 min Party Spinner One button, three mouths: a spinning motor, a red LED, and a buzzer all fire together. One transistor drives them all. L4 25 min Twin Wheels Two motors from one button — a Level 9 robot drivetrain, five levels early. L4 25 min Dial-a-Spin Dial-a-Brightness with a motor instead of an LED. Twist the knob and watch the fan speed slide from full spin to a slow crawl. L4 20 min Trip Wire Fan Trip Wire Alarm's brain wearing a motor. The wire is intact — the fan is silent. Snap it — the fan spins as the alarm. L4 25 min

Parts you'll meet along the way