Français

Lessons · Lesson E2 · Electricity basics · 15 min

Your first circuit

Build a loop on a breadboard, spot a short circuit, and check it with a multimeter. About 15 minutes, with one interactive breadboard.

A circuit is a loop

For anything to run, the current needs a route that leads back to where it left from. Picture a battery sending current out of one terminal, through your parts, and home to the other terminal. That closed route is a circuit [1].

Cut the loop at any point and the flow stops. That is an open circuit: harmless, but idle [1]. When a build stays dead, look for a break first, most often a wire that came loose or a leg that is not fully seated [1].

In this lesson you will build the simplest useful loop: a battery pack, a resistor and an LED, in a row, closing back on the battery.

Closed loop and open loop Two copies of the same circuit: a 4.5 volt battery pack of three AA cells, a 330 ohm resistor and a red LED in one loop. Left, the loop is closed: current leaves the plus terminal, goes through the resistor and the LED and comes back to the minus terminal, about 7.6 milliamps, and the LED is on. Right, the bottom wire has a gap: the loop is open, no current flows anywhere, the LED is off and nothing is damaged. FIG. 1 — CLOSED LOOP, OPEN LOOPA · Closed loop4.5 V3 × AA330 ΩII ≈ 7.6 mALED: onB · Open loop (a gap)gap4.5 V3 × AA330 ΩI = 0 mALED: off · nothing is damagedI: conventional current, out of +, round the loop, back to −.Break the loop anywhere and the current stops everywhere.
Tap the diagram to open it full screen.

Before you start. Everything in this lesson uses small batteries only, such as AA cells, which give about 1.5 V each [3]. Never work on, or measure, anything plugged into a wall outlet: that kind of electricity (AC) can be dangerous [3].


How a breadboard is wired inside

A breadboard lets you build without soldering: behind every hole is a small metal clip that holds a wire or a component leg [2].

Strips. The clips in one short row are joined by a single piece of metal. Plug two legs into the same strip and they are connected [2]. A strip usually has five holes [2]. Down the middle of the board runs a gap, the “ravine”. It splits every row in two: a strip on the left of the gap and the strip facing it on the right are not connected [2].

Rails. Running along the long edges are the power rails. They normally carry a “+” and a “−” mark, one beside a red line and the other beside a blue or black line. Each rail is a single long strip, connected from end to end [2]. The rail on the left edge and the one on the right edge are not connected to each other. If you want both, you add jumper wires [2]. The colours are a convention, not a rule: the board will not object if you put “+” on the blue rail, but following the convention spares you confusion [2].

Check your own board. The same SparkFun page marks the “all connected” rule with a footnote (“typically”), and some boards sell with split power buses [2]. If your rail is split in the middle, bridge it with a jumper. To find out, take the battery out, set the multimeter to continuity and touch the probes to both ends of the same rail: no beep means the rail is split (see screen 5) [2][3][8].

Inside a breadboard X-ray view of a breadboard seen from above, 12 rows. Under the holes, metal clips join them. 1: in each row, the five holes a to e sit on one metal strip, so they are all connected. 2: the middle gap cuts every row in two; holes f to j of the same row are a separate strip, not connected to a to e. 3: each power rail along an edge is one long strip, joined along its whole length; the left rails and the right rails are not joined to each other. 4: on some boards the rails are split in the middle; bridge the two halves with a jumper wire, and check your own board with a multimeter. FIG. 2 — INSIDE A BREADBOARD (X-RAY VIEW)−−++−−++abcdefghij12345678910111212341A strip: 5 holes on one metal clip, all joined.Two legs in the same strip are connected.2The middle gap cuts each row in two.a–e and f–j of the same row are NOT joined.3A rail: joined along its whole length.Left and right rails are separate: add jumpers if needed.4Some boards: rails split in the middle.Bridge with a jumper (dashed). Check with a multimeter.orange + black holes = joined to each other (shown for 1 and 3)
Tap the diagram to open it full screen.
Interactive breadboard
Inside a breadboard X-ray view of a breadboard seen from above, 12 rows. Under the holes, metal clips join them. 1: in each row, the five holes a to e sit on one metal strip, so they are all connected. 2: the middle gap cuts every row in two; holes f to j of the same row are a separate strip, not connected to a to e. 3: each power rail along an edge is one long strip, joined along its whole length; the left rails and the right rails are not joined to each other. 4: on some boards the rails are split in the middle; bridge the two halves with a jumper wire, and check your own board with a multimeter. FIG. 2 — INSIDE A BREADBOARD (X-RAY VIEW)−−++−−++abcdefghij12345678910111212341A strip: 5 holes on one metal clip, all joined.Two legs in the same strip are connected.2The middle gap cuts each row in two.a–e and f–j of the same row are NOT joined.3A rail: joined along its whole length.Left and right rails are separate: add jumpers if needed.4Some boards: rails split in the middle.Bridge with a jumper (dashed). Check with a multimeter.orange + black holes = joined to each other (shown for 1 and 3)
Tap the diagram to open it full screen.

Click a hole in the widget: every hole that is electrically joined to it lights up.


Build the loop

You need a battery holder (3 × AA, 4.5 V when the cells are fresh), a 330 Ω resistor (orange, orange, brown), a red LED and three jumper wires [3][4].

  1. Keep the battery out (or its switch off) while you wire.
  2. Put the LED across the middle gap, one leg on each side, so its two legs are in different strips [2]. The longer leg is the “+” side [4][5].
  3. Put one leg of the resistor in the same strip as the LED’s longer leg, and the other leg in a free strip on the same side of the gap, or onto a rail.
  4. Wire the battery’s “+” lead to the resistor’s free end, and its “−” lead to the strip of the LED’s short leg.
  5. Insert the battery. The LED lights.

330 Ω is a common starting value for LEDs [4]. Why that value, and how to pick another, is the next lesson. For now, never leave out the resistor.

The LED does not light? Flip it around: an LED put in backwards does not break, it simply stays dark [4][6].

The finished loop on the breadboard Top view of the finished build. The 3 × AA battery pack, 4.5 volts, has a red lead for plus and a black lead for minus. 1: the red lead goes into hole a2. 2: the 330 ohm resistor, bands orange, orange, brown, goes from d2 to d5, so it joins strip 2 to strip 5. 3: the LED sits across the middle gap; its long leg, the plus side, is in e5, in the same strip as the resistor. 4: its short leg, the minus side, is in f5, on the other side of the gap. 5: the black lead goes into j5, the strip of the short leg. The loop is closed and the LED lights. The rails are not used here. FIG. 3 — THE FINISHED LOOP (TOP VIEW)−−++−−++abcdefghij123456783 × AA · 4.5 V+−123451Red lead (+) into a2same strip as the resistor's top leg (d2)2330 Ω resistor from d2 to d5bands: orange, orange, brown3LED long leg (+) in e5same strip as the resistor4LED short leg (−) in f5other side of the gap; flat edge on this side5Black lead (−) into j5the strip of the short legBattery out while you wire. Rails not used in this build.
Tap the diagram to open it full screen.

Short circuits: how to spot one

A short circuit is a direct route from the positive side of the supply to the negative side, with nothing in the way to hold the current back [1]. The current then grows as large as the supply can deliver, which can burn a wire, harm the supply or flatten the battery [1].

On a breadboard, a short usually happens by accident:

  • a wire or a leg links a strip on the “+” side to a strip on the “−” side,
  • a jumper goes from the “+” rail to the “−” rail.

A close cousin is not a true short, but it goes wrong too: a part gets bypassed. For example, the two legs of the resistor touch, or a wire lies across them. The current skips the resistor and the LED has nothing in front of it to hold the current down (the next lesson explains why that matters).

Signs. Something gets hot, or a part suddenly gives up [1]. If you notice either: switch off and remove the battery first, then look for the problem [1].

Before powering up, check for a short with a multimeter, as the next screen shows [3][8].

Two shorts and one bypass Three close-ups of a breadboard whose left rails are connected to a battery, plus on the inner rail and minus on the outer rail. Each mistake is marked with an orange disc and a number. 1, a short: a jumper goes straight from the plus rail to the minus rail. 2, a short: one wire brings plus into strip 2, another brings minus into strip 4, and a third wire links strip 2 to strip 4, so plus meets minus with nothing in between. In both shorts nothing holds the current back: too much current flows and the wires get hot. 3, a bypass, not a short: the loop goes from plus through a resistor and an LED back to minus, but the resistor's two bare legs are bent and touch, so the current skips the resistor and the LED has nothing in front of it to hold the current down. Remove the battery first, then fix the wiring. FIG. 4 — TWO SHORTS, ONE BYPASS−−++12345671Short+ rail to − raila jumper, nothing in between−−++12345672Short+ strip to − stripa wire links strip 2 to strip 4−−++12345673Bypassresistor legs touch+−not a short: no brake for the LEDIn each close-up the battery feeds the left rails: + inner, − outer.1 and 2, shorts: + straight to −. Too much current, wires get hot.3, bypass: the current skips the resistor, the LED is unprotected.Remove the battery first, then find the problem and fix it.
Tap the diagram to open it full screen.

Check your loop with a multimeter

A multimeter is a small meter with two probes. It is the first tool to grab when something does not work [1][3]. Plug the black probe in “COM” and the red probe in the socket marked with “V” and “Ω” [3].

Measure voltage (battery on).

  1. Turn the dial to the DC voltage range: the “V” with a straight line, not the wavy one. Choose a range above what you expect, for example 20 V for a 4.5 V pack [3].
  2. Touch the black probe to the “−” side and the red probe to the “+” side. A fresh AA cell reads about 1.5 V [3]. Swap the probes and the display just adds a minus sign; the meter is fine [3].
  3. Measure across the whole battery pack, across the resistor, then across the LED. A lit red LED sits somewhere around 2 V, and the resistor takes the rest: the two add up to about the battery voltage [6][7].
  4. No voltage where you expect one is a clue. Walk the probes along the loop to find where it disappears; that is how you find an open spot [1].

Check continuity (battery off).

  1. Remove the battery. Continuity is tested on a circuit that is not powered [3][8].
  2. Turn the dial to continuity: the diode-and-sound-waves symbol. Touch the probes together: the meter beeps [3][8].
  3. A beep means a path of very low resistance, so the two points are connected [3][8]. No beep means they are not [3].
  4. Touch the “+” rail and the “−” rail. A beep means a short. Fix the wiring before inserting the battery [3]. If your build has capacitors, a brief chirp that then stops is normal: they are charging [3][8].
  5. Touch both ends of one rail. A beep means the rail is whole; no beep means it is split [2][3].
Two multimeter set-ups Left, measuring voltage with the battery in: black probe in the COM socket, red probe in the V ohm socket, dial on V with a straight line, which is DC voltage. The black probe touches the minus end of the 3 × AA pack, the red probe the plus end; the meter reads about 4.5 volts. Swapped probes only add a minus sign. Right, checking continuity with the battery removed: dial on the diode and sound-waves symbol. Touch the probes together first: it beeps. Then touch the plus rail and the minus rail: no beep means no short, a beep means a short, so fix the wiring before you insert the battery. FIG. 5 — MULTIMETER: VOLTAGE AND CONTINUITYFIG. 5 — MULTIMETER: VOLTAGE AND CONTINUITYA · Voltage (battery in)4.50OFFVVΩCOMVΩ3 × AA · 4.5 V1Dial: V with a straight line (DC), 20 V2Black probe on −, red probe on +3Reads about 4.5 V4Then across the resistor, then the LEDProbes swapped? Only a minus sign shows.B · Continuity (battery out)OLOFFVVΩCOMVΩ−−++no battery1Battery out. Dial on the beep symbol2Probes together first: it beeps3+ rail ↔ − rail:no beep = no short, OKbeep = short: fix it before the battery4Both ends of the same rail:beep = whole, no beep = splitWith capacitors, a short chirp that stops is normal.Small battery circuits only. Never on a wall outlet.
Tap the diagram to open it full screen.

Safety, once more. Use the meter on small battery circuits only. Never on a wall outlet [3].


Check yourself

Three short questions. Nothing is saved, take your time.

  1. Two parts each have one leg pushed into the same short row of five connected holes (same side of the middle gap). What does that do?

    • Nothing, the two legs are still separate
    • The two legs are electrically joined
    • The breadboard switches off
    Show the answer

    The two legs are electrically joined. The five holes of a strip sit on one piece of metal, so anything plugged into them is connected together [2].

  2. You plug a bare wire from the "+" rail straight to the "−" rail of a battery-powered board, with nothing else in between. What have you made?

    • A brighter circuit
    • A short circuit
    • An open circuit
    Show the answer

    A short circuit. A wire straight across the supply, with no part to limit the current, is a short circuit. Disconnect the battery right away [1].

  3. You want to use the multimeter's beeping continuity mode on your build. What do you do first?

    • Switch the circuit off or remove the battery
    • Turn the dial to the AC symbol
    • Add a second battery
    Show the answer

    Switch the circuit off or remove the battery. Continuity is checked on a circuit that is not powered. The meter does the testing itself with a tiny current of its own [3][8].


Sources

Show the 8 sources
  1. SparkFun, “What is a Circuit?” (closed loop; short circuit and its effects; open circuit; multimeter tip for finding a break; hot parts or sudden burn-out: switch off and look for short circuits) — https://learn.sparkfun.com/tutorials/what-is-a-circuit
  2. SparkFun, “How to Use a Breadboard” (five-hole strips; central ravine; power rails; rails on either side not connected; markings are a reference; “typically” and split buses) — https://learn.sparkfun.com/tutorials/how-to-use-a-breadboard
  3. SparkFun, “How to Use a Multimeter” (probes and COM; DC voltage range; about 1.5 V per AA; reversed probes read negative; continuity mode and beep; test unpowered; capacitor chirp; AC from the wall can be dangerous) — https://learn.sparkfun.com/tutorials/how-to-use-a-multimeter
  4. SparkFun, “Light-Emitting Diodes (LEDs)” (330 Ω as a good value for most LEDs; longer leg is positive; a reversed LED will not light) — https://learn.sparkfun.com/tutorials/light-emitting-diodes-leds
  5. SparkFun, “Polarity” (LED anode and cathode; longer leg or flat edge) — https://learn.sparkfun.com/tutorials/polarity
  6. Adafruit, “All About LEDs”, pages “What is an LED?” and “Forward Voltage and KVL” (reversed LED does not break; red/yellow/orange LED drop about 1.85–2.5 V; the loop voltages balance) — https://learn.adafruit.com/all-about-leds/what-is-an-led and https://learn.adafruit.com/all-about-leds/forward-voltage-and-kvl
  7. SparkFun, “Resistors” (red LED forward voltage around 1.8 V) — https://learn.sparkfun.com/tutorials/resistors
  8. Adafruit, “Multimeters”, page “Continuity” (continuity can only be tested on an unpowered device; the tester beeps; a big capacitor gives a quick beep then silence; a beep means very low resistance) — https://learn.adafruit.com/multimeters/continuity

Pinch or double-tap to zoom, swipe to change diagram.Scroll with Ctrl or double-click to zoom. Arrow keys change diagram.