Skip to content
Tactiverge

Electronics prototyping safely on a breadboard

How a solderless breadboard is connected inside, how to build and check a low-voltage battery-powered circuit on one, and the habits that keep you, your batteries and your components safe.

Lesson 5 of 6 · 30 min · Self-paced · Free

Circuits you can change in seconds

Most robots have electronics: a battery, a controller, sensors, lights and motors. When you are designing that electronics, you want to try ideas quickly and change them easily, just as you do with cardboard for mechanical parts. A solderless breadboard lets you do exactly that. Components and wires push into holes and are held by spring clips inside, so a circuit can be built, rearranged and taken apart without soldering.

This lesson explains how a breadboard is connected, how to build a simple circuit methodically, and the safety habits that matter. Everything here uses small batteries at low voltage only. Never connect a breadboard to mains electricity, wall sockets or anything that plugs into the wall.

How a breadboard is connected

The holes on a breadboard are not all separate. Under the plastic are strips of metal that connect groups of holes together. On a typical breadboard:

  • The main area is in two halves with a groove down the middle. In each half, every short row of five holes across is connected together. Rows are not connected to each other, and the two halves are not connected across the groove.
  • Along the long edges are power rails, usually marked with red (+) and blue or black (−) lines. All the holes along one rail are connected. On some breadboards, the rails are split halfway along, so check before relying on them.
  • The central groove is sized so that a chip with two rows of legs can straddle it, with each leg in its own row.

The most common breadboard mistake is putting both legs of a component in the same connected row, which shorts the component out so it does nothing. If a part does not work, check this first.

A worked example: an LED with a resistor

A light-emitting diode (LED) must always have a resistor in series to limit the current; connected straight across a battery, it may draw too much current and fail. Suppose you use a holder with three AA cells in series, which gives about 4.5 V when the cells are fresh, and a red LED that needs about 2 V across it and about 10 mA (0.010 A) of current. These are typical values; check the data for your own LED.

The resistor must drop the remaining voltage:

voltage across resistor = 4.5 V - 2.0 V = 2.5 V
R = V / I = 2.5 V / 0.010 A = 250 ohms

Resistors come in standard values, and 250 Ω is not usually one of them. Choose the next standard value up, 270 Ω, which gives slightly less current and so is the safe direction:

I = 2.5 V / 270 ohms = 0.0093 A, about 9.3 mA
power in resistor = 2.5 V x 0.0093 A = 0.023 W

0.023 W is far below the 0.25 W rating of a common small resistor, so it will barely get warm.

Building it methodically

  1. Disconnect the battery before placing or moving anything. Build with the power off, every time.
  2. Plan on paper first: draw the circuit and decide which breadboard row each leg goes in.
  3. Connect the battery holder's red lead to the + rail and the black lead to the − rail, but do not insert the batteries yet (or leave the holder switched off).
  4. Place the resistor from the + rail to an empty row. Place the LED with its longer leg (the anode, usually) in that same row and its shorter leg in a different row. Connect that second row to the − rail with a wire.
  5. Check before powering: trace every connection with your finger against your drawing. Is the LED the right way round? Is there any direct path from + to − with no component in it?
  6. Power up. If the LED does not light, disconnect, then check orientation and the same-row mistake.

Colour-code your wires: red for positive, black for negative, other colours for signals. It makes mistakes much easier to spot.

Short circuits and battery safety

A short circuit is a path from + to − with almost no resistance. Even small batteries can then deliver a large current: wires get hot, the battery heats up and, in the worst case, it can leak, swell or catch fire. Rechargeable lithium cells and packs can deliver especially large currents and need extra care.

  • Feel for heat. If any wire, component or battery gets warm unexpectedly, disconnect immediately and find out why.
  • Never connect a wire directly across a battery's terminals.
  • Keep loose batteries away from coins, keys and metal tools, which can short them in a pocket or drawer.
  • Do not mix old and new cells, or different types, in one holder. Remove batteries when you have finished.
  • Never use damaged, swollen or leaking batteries, and never try to open, puncture or recharge non-rechargeable ones.
  • Coin and button cells are very dangerous if swallowed, especially for young children and pets. Keep them stored securely out of reach.
  • Motors are different from LEDs. They draw much more current, especially when starting, and should not be driven directly from a controller pin. That needs a driver circuit and is a topic for the Embedded Systems pathway.

Project

Build project: two LEDs and a switch on a breadboard

Build a battery-powered circuit in which a push button lights two LEDs.

  1. On paper, draw a circuit with a 3 × AA battery holder, a push button and two LEDs, each with its own series resistor, connected in parallel so both light when the button is pressed.
  2. Calculate each resistor value for your LEDs, using the method in this lesson, and choose the next standard value up. Show your working.
  3. Plan the breadboard layout on paper, row by row.
  4. With an adult supervising and the battery disconnected, build the circuit. Check every connection against your drawing before connecting power.
  5. Test it. Then deliberately predict, on paper only, what would happen if you placed one LED's legs in the same row, and check your prediction by moving it (power off while you move it).

If you do not have components, the same circuit can be built in a free online circuit simulator.

Deliverables

  • A circuit diagram and a row-by-row breadboard plan
  • Resistor calculations with chosen standard values
  • A working circuit (or simulation), with a note of anything that went wrong and how you found it
  • Your prediction and result for the same-row mistake

Adult supervision requiredAdult supervision is required. Use only a small battery holder of AA or AAA cells (no more than four cells); never use mains electricity, mains adapters or car batteries. Disconnect the battery before building or changing the circuit. Always use a series resistor with each LED. If any wire, component or battery gets hot, smells or smokes, disconnect immediately and tell the supervising adult. Do not use damaged or swollen batteries, do not mix old and new cells, remove the batteries when finished, and keep coin cells out of reach of young children.

Knowledge check

Check your understanding

  1. 1. You put both legs of a resistor into the same row of five holes. What happens?
  2. 2. A 6 V battery pack powers a red LED needing about 2 V at 10 mA. What resistance is needed?
  3. 3. You calculate 250 Ω for an LED resistor. Which standard value should you use?
  4. 4. A wire in your circuit becomes warm a few seconds after you connect the battery. What should you do first?
  5. 5. Why must coin and button cells be stored securely?

Go further