Teach Your Kid Electronics

Advanced · Project 14

Robot Muscles

Robots need strong muscles. A ULN2003 driver chip lets tiny button signals switch two motors and a pair of headlights, with protection diodes built right in.

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

Advanced⏱ About 35 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×ULN2003 driver chipSeven strong switches in one chip, with protection diodes built in. Small signals switch motors and lights.
  • 2×TT gear motorThe yellow motor used in robot cars. Runs on 3–6 V.
  • 3×Push button (tactile switch)A little button with 4 legs. It connects its two sides only while you press it.
  • 2×100 Ω resistor — brown, black, brown, goldA small resistor. Colors: brown, black, brown, gold.
  • 2×5 mm LED (any color) — white looks most like headlightsA tiny light that only lets current flow one way. The long leg is +.
  • 12×Jumper wireA short wire with stiff ends that push into the breadboard.

✨ The finished project

A ULN2003 driver chip: three buttons switch two motors and a pair of headlights, with protection diodes built into the chip ++−−++−−aabbccddeeffgghhiijj115510101515202025253030 ULN2003 100 Ω 100 Ω +− +− AAAAAA3 × AA = 4.5 V+− TT motormotor A TT motormotor B
A ULN2003 driver chip: three buttons switch two motors and a pair of headlights, with protection diodes built into the chip ++−−++−−aabbccddeeffgghhiijj115510101515202025253030 ULN2003 100 Ω 100 Ω +− +− AAAAAA3 × AA = 4.5 V+− TT motormotor A TT motormotor B
Schematic: A ULN2003 driver chip: three buttons switch two motors and a pair of headlights, with protection diodes built into the chip IN11IN22IN33IN44IN55IN66IN77OUT116OUT215OUT314OUT413OUT512OUT611OUT710COM9GND8ULN2003U1 M M +4.5V +4.5V +4.5V +4.5V +4.5V +4.5V +4.5V 4.5 V A B C motor A motor B headlight headlight 100 Ω 100 Ω
The finished build. This picture is generated from the circuit itself and checked by computer, so every leg is in the right hole.

A robot’s “brain” (a chip like a counter or a computer) works with tiny signals, a few milliamps at most. Its “muscles” (motors) need hundreds of milliamps. In the Spinning Fan you used a transistor and a diode for one motor. Robots have lots of motors, so engineers use a driver chip: lots of strong switches in one package.

Meet the ULN2003

ULN20031IN12IN23IN34IN45IN56IN67IN78GND9COM10OUT711OUT612OUT513OUT414OUT315OUT216OUT1
  • Pin 1 · IN1 — input 1 (button A)
  • Pin 2 · IN2 — input 2 (button B)
  • Pin 3 · IN3 — input 3 (button C)
  • Pin 8 · GND — battery −
  • Pin 9 · COM — battery + (for the built-in protection diodes)
  • Pin 14 · OUT3 — switch 3 (headlights)
  • Pin 15 · OUT2 — switch 2 (motor B)
  • Pin 16 · OUT1 — switch 1 (motor A)

The ULN2003 has seven channels. Each one is a Darlington pair (two transistors teamed up, like in the Touch Switch), so a tiny current into an input lets up to half an amp flow into the matching output and down to −.

  • Loads go from + to an output. When the input is on, the output connects to −, completing the loop.
  • Protection diodes are built in. Each output has a diode up to the COM pin. Connect COM to +, and every motor is protected from its voltage kick, with no extra diodes needed.
  • Unused inputs are safe. Resistors inside hold them off, so you can leave them unconnected.

Build it

  1. The chip: notch on the left, pin 1 in f12. Black j19 (GND) → B-19 (bottom blue − rail, column 19); red b19 (COM) → T+20 (top red + rail, column 20).

  2. Rail bridges: black T-28 → B-28 (bottom blue − rail, column 28), red T+29 → B+29 (bottom red + rail, column 29).

  3. Buttons (each from + to an input): A in e2, f2, e4, f4; red a2 → T+3 (top red + rail, column 3); yellow j4 → j12 (IN1). B in e6, f6, e8, f8; red a6 → T+5 (top red + rail, column 5); green i8 → i13 (IN2). C in e9, f9, e11, f11; red a9 → T+9 (top red + rail, column 9); blue h11 → h14 (IN3).

  4. Motors: motor A’s leads in B+11 (bottom red + rail, column 11) and b12 (OUT1). Motor B’s in B+14 (bottom red + rail, column 14) and b13 (OUT2).

  5. Headlights: blue a14 (OUT3) → a24. LED 1 long leg c23, short leg c24; LED 2 long leg d25, short leg d24. 100 Ω resistors b23 → T+23 (top red + rail, column 23) and b25 → T+25 (top red + rail, column 25).

  6. Power: 3×AA red into T+1, black into T-2. Press A, B and C! 🤖

The build check pressed every button (and all three together) and checked the right motor spins or the headlights light. It also checked that COM goes to the motors’ + side, so the built-in diodes protect them.

Not working?

  • A motor spins all the time? Its button is turned the wrong way: give it a quarter turn.
  • Nothing happens? Check GND (pin 8) and the bottom − rail bridge. Check the chip’s notch is on the left.
  • Motor turns the wrong way? Swap its two leads. (With a ULN2003 a motor can only turn one way; the next project fixes that!)

Try it!