307,595

488

32

This instructable will guide someone with no experience in electronics through prototyping their first circuits on a breadboard. You will need a few basic components to get started:

LED: white, red, green, blue
220 resistor
5V power supply/battery/arduino board
solderless breadboard and jumper wire - It's a good idea to get many colors of wire (esp black and red) so that you can keep your breadboard organized.

### Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

## Step 1: The Basics

The purpose of the breadboard is to make quick electrical connections between components- like resistors, LEDs, capacitors, etc- so that you can test your circuit before permanently soldering it together.  Breadboards have many small sockets on them, and some groups of sockets are electrically connected to each other.  On the underside of the board there are many small metal strips which physically connect certain groups of sockets together and allow electricity to flow freely between them.  These strips are probably not visible on the underside of your breadboard, but the third picture shows how they are organized.

Breadboards are usually divided into four sections, two outer sections and two inner sections.  Each row of five sockets in the inner sections are electrically connected to each other (see the green lines in figure 3).  The two outer sections of the breadboard are usually used exclusively for power.  On many breadboards these sockets will be labeled with colors denoting positive voltage (usually red) and ground (black or blue).  It is important to note that on many breadboards the power lines only run half the length of the board (as indicated in figure 3).  You will need to run a wire between these two sections to send power to from one end to the other.  There is nothing special about the outer sections of the breadboard that makes particularly suitable for power other than that they run most of  the length of the board, but if you choose to use these rows for other things you may confuse others or even yourself, so it is good practice to use these for power only.

## Step 2: Getting Started

The first thing to do is send power to the breadboard.  Breadboards do not have their own power supply.  Some breadboards come with a power supply attached, but it is usually not connected directly to the power lines on the breadboard.
Power supplies come in many shapes and sizes, you may have to dial in the voltage or your power supply may only let you chose from one or a few types voltage levels.  For this tutorial (and for many of your future projects) we will be using 5V DC power.  This means that you will make two connections to your power supply, +5 and ground.

Alternative power supplies:
-use the +5 volt and GND (ground) pins of an arduino (you must plug the arduino into a computer or wall socket via usb first)

Connect ground and +V to one side of your breadboard as shown in figure 2.  Remember, many breadboards separate each of the two power rows into two sections (electricity cannot flow across the center of the board), so you'll need to connect these groups with jumper cables to ensure that power is being sent across the length of the board (see figures 5 and 6).  Figure 6 shows a breadboard with power on across its entire length and on both sides.

Now the breadboard is powered.  Convince yourself by using a multimeter to measure the voltage of any of the sockets in the power lines of the board.

## Step 3: Hello World!

Your first circuit will turn an LED on.  The circuit diagram is given in figure 2; it includes an LED and a resistor connected in series to power.  I posted an alternate schematic (figure 3) to demonstrate that it does not matter which order the LED and resistor are connected, as long as they close a circuit between 5V and ground.

The resistor is there to prevent too much current from going through the LED; we call it a "current-limiting resistor."  If you connect an LED to your 5V power supply directly it will most likely burn out, this may be accompanied by a cracking sound, a smell, smoke, or even a small explosion, so be careful!
I'm using a 1/4 watt 220ohm resistor for my current limiting resistor, if you know the specs of your LED you can find the best resistor value for your circuit using an online LED calculator.   Using too much resistance in this circuit will never damage the LED, it will just glow slightly dimmer, but anything between 200 and 1000ohms should be fine.

Electric current always runs from high voltage to ground in a circuit.  Some components only work when current flows through them in one direction (and they may even be damaged by wiring them backwards).  As the first images indicate, LEDs must be wired so that current flows from the anode (the longer lead) to the cathode (the shorter lead).  Resistors do not have directionality, this mean that you can flip a resistor around in a circuit and it will behave exactly the same.

While you are putting components into your breadboard it is a good idea to turn off the power to the board; this prevents accidental short circuits which may burn out parts.

STEPS:

-connect the anode of the LED to +5V and the cathode to a row of pins in the middle section of the breadboard (figure 5)
-connect one resistor lead to ground and the other lead to a pin in the same row as the LED cathode (figure 6)
-connect power to the board- the LED should light up

As you can see, connecting the LED and the resistor to the same row of sockets on the breadboard created an electrical connection between these two components.

## Step 4: 7 Segment Display on a Breadboard: Part 1

This project is a little more challenging, but  the idea is basically the same as the last circuit.

Parts List:
7 segment display (common cathode)
7x150ohm resistors
4x10kohm resistors
4511 decoder chip

A 7 segment display is a component that contains 7 rectangular LEDs (we'll ignore the DP LED for now) arranged so that they can display the numbers 0-9 (see figure 2).  Each of the LEDs in the display are connected to a common cathode.  By looking at the diagram at the bottom of figure 2, we can see that pins 1, 2, 4, 6, 7, 9, and 10 each connect to an anode of one of the seven LEDs and pins 3 and 8 both connect to the common cathode (see the bottom diagram in figure 2).

As in the last circuit, we need to use current limiting resistors to prevent damaging the LEDs in the display.  In this step we will wire 7 current limiting resistors and individually control the 7 LEDs.

The first step is to calculate the resistance we need for the current limiting resistors.
From the 7 segment display datasheet: each LED has a forward voltage of 2.2V at 25mA of current.  If there is 2.2V across the resistor, then there will be 5V-2.2V, or 2.8V across the resistor.

Using Ohm's Law (V=IR) we can calculate our current limiting resistance as follows:
(5V-2.2V) = 0.025 A * R
R = 112ohms

to be safe we won't run the LEDs at their maximum power ratings, so we'll use 150ohm resistors.

Wiring Steps:
-press the 7 segment display into breadboard so the it straddles the center section of the board (figure 1)
-connect one of the common cathode pins of the display (pins 3 or 8) to ground (figure 3)
-connect power across to the other side of the board (figure 4)
-insert 7 current limiting resistors onto breadboard so that they connect pins 1, 2, 4, 6, 7, 9, and 10 to 5V (figure 5)
-turn on power (figure 6)

Your 7 segment display should light up to display the number "8."  Experiment with disconnecting some of the jumper wires between the current limiting resistors and the display to make other numbers/letters; I made the letter "E" in the last image by disconnecting pins 4 and 6 on the display.

## Step 5: 7 Segment Display on a Breadboard: Part 2

In this step we will use a chip called a 4511 binary to 7 segment decoder to make displaying numbers on the 7 segment display much more simple.  This chip connects to the 7 segment display so that when we give it a binary number input (0000-1001), it will output the base ten value (numbers 0-9) on the display.

The pin configuration of the 4511 is given in the datasheet, and I've copied it in figure 2.  Notice how pin numbering starts at 1 at the top left of the chip (indicated with a semicircle or sometimes a dot) and wraps around the outside of the chip until ending at 16 in the top right.

Wiring Steps:
-disconnect power to the board
-put the 4511 on the breadboard so that it straddles the middle section of the board (figure 4)
-disconnect the 5V connections of the 150ohm resistors and connect to 4511 pins Qa-Qg.  You will probably need to use jumper wires to extend these connections (green wires in figures 5, 6, and 7).  Pin numbering/letters are given in the diagram at the bottom of figure 3 for the display and in figure 2 for the 4511.
-use four 10kOhm resistors to create a connection between the 4511 input pins (1, 2, 6, and 7) and four spare rows on the breadboard (figure 8)
-connect 5v to 4511 pins 3, 4, and 16 (red wires in figure 9)
-connect ground to 4511 pins 5 and 8 (black wires in figure 10)
-connect the free ends of the 10kohm resistors to ground (red wires in figure 11)
-power on, you should see the number 0 (figures 12 and 13)

Try connecting the 4511 input pins (red wires connected to 10kOhm resistors to 5V to make different numbers.  Here is a table that shows you how to convert from binary to decimal:

D0(pin 7)     D1(pin 1)     D2(pin 2)     D3(pin 6)          decimal
0                 0                   0                 0                       0
1                 0                   0                 0                       1
0                 1                   0                 0                       2
1                 1                   0                 0                       3
0                 0                   1                 0                       4
1                 0                   1                 0                       5
0                 1                   1                 0                       6
1                 1                   1                 0                       7
0                 0                   0                 1                       8
1                 0                   0                 1                       9

So if you connect D0 to 5V and D1-3 to ground you should see a 1(figure 14)
D0 and D1 to 5V and D2 and D3 to ground gives a 2 (figure 15)

Troubleshooting:
Since there are so many connections, it is easy to make a small mistake that causes the whole project to malfunction.  If the display is not lighting up at all: check to see if all your components are powered and are connected in the correct orientation.  If it is on but displaying nonsense: carefully check the schematic and make sure your connections between pins a-g are correct.

I've also attached a fritzing document for this circuit for your reference, find it below.

## Recommendations

• ### Large Motors Class

13,254 Enrolled

## 32 Discussions

Very nice 'ible.

If I may, I would like to offer one correction to your information in Step 3. You mention that "Electric current always runs from high voltage to ground in a circuit." This, however is incorrect (I run across this quite often in teaching electronics.) The only thing, in electronic circuits, which moves, is electrons. Electrons have a negative charge to them. When you have a voltage difference in a circuit, electrons will leave the negative terminal of the power supply (battery, etc.) and be attracted to the positive terminal - "opposites attract."

Your LED is actually connected correctly, but the current flow goes against the arrow, not with it. Back when we used tubes, they would actually have a heater inside them to heat up the cathode, so that the electrons would flow off the cathode, towards the anode, more easily (I started in electronics in 1962, tubes was about it. :-) )

Also, not to take away from your great Instructable, I wrote up a paper on breadboards, including their history, and why they are called breadboards. It does not go into anywhere near as much detail on how to use them as you do, but you may find it interesting for the history. You can find it on my projects site at: http://projects.granzeier.com/what-is-a-breadboard/.

3 replies

I am curious about your comment "I run across this quite often in teaching electronics"

Do you mean you were teaching electronics, because if that is the case you are actually teaching people incorrectly. Electric current is not the same as electron flow. Referring to electron flow while you are teaching people is doing them a significant disservice, as they move on to the higher mathematics of electrical engineering they will have to be untrained and then retrained to think about electricity as current rather than electron flow.

No Sir, I must stick to my original claim: electron flow (which IS current flow - the ampere which is the measure of current flow, describes the "number of electrons to pass a point in a circuit in one second") is from negative to positive. As, I said, there is nothing else moving inside an electrical circuit besides electrons. And, with a negative charge, they must move away from a negative charge, and towards a more positive charge.

The idea that current flows from positive to negative (as mentioned by Jseay, below) comes from Ben Franklin. He was handicapped by a lack of understanding of the nature of atoms, and the complete lack of knowledge of sub-atomic particles. While a brilliant scientist, Franklin did not have the technology to understand the inner working of the atom.

Today, we know that an electron (from the valence, or outer, orbit of an atom) is attracted to another atom by a positive charge. This atom will leave the valence of it's atom, and jump into the valence of a neighboring atom, in the direction of the positive charge. The lack of the electron in the previous atom gives that atom a positive charge, which then "attracts" an electron from the neighbor down-stream (closer to the negative charge.) These positive charges appear to be moving from positive to negative. But current (the flow of electrons) is always from negative.

Also, as Jseay alludes to, engineers will often use the idea of current flowing from positive to negative (hole theory) in design (or troubleshooting.) This is often a good way to design a circuit. It is similar to the idea that, often, the best way to solve a maze is to start at the end, and work your way back to the beginning. You plan a trip in a similar way: you do not look at where you are starting, but rather where you want to end up. Then you plan your trip in that direction.

And, yes, I do mean teaching electronics – and all of my teaching has been in college-level institutions. And, yes, I have had the complete backing of my Chair, and department heads. As I mentioned, there are often times that engineers must work “backwards,” but to teach students to ignore the physical reality of their circuit is the real disservice. Also, I have never heard of any of my students needing to unlearn current flow, in order to relearn engineering mathematics.

So, as I stated above, I must stick with my original claim: electron flow (which IS current flow) is from negative to positive.

What you've observed is the difference between conventional flow and electron flow in circuits. Ben Franklin started the "convention" of describing electricity as flowing from positive to negative. By the time science figured out electrons were going the opposite direction, the terminology had taken hold, and "conventional flow" is still used in certain fields. All About Circuits offers an interesting detailed explanation.

excellent - many thanks

Just a note to let you know I have added this ( a year ago ) to the instructable:

Comprehensive Guide to Electronic Breadboards: A Meta Instructable

Take a look at a bunch of project involving breadboards.

it's a very informative instructable...thank you very much

this is great now i can make use of this bread board i have had for ever and had no idea what to do with. I have looked at a lot of youre instructables and see that you do a lot with electronics , have you done much with PIC programming? Im looking into building NES reproduction cartridges and things of that nature. Im also curious about the teensey++ 2.0 development board and what i can do with it as well.

Hi All:

I use these plugboards all the time, I have dozens of them.

I don't particularly like the standard 22 gauge jumper wire.
I have found other wire I like much much better.

I use 8 conductor "Telephone house wiring wire".
No, not the flexible stuff that goes from the instrument to the wall jack.
I mean the stuff behind the wall. It looks like 26 gauge or so, and comes in roles of 100 feet or more. Strip off the jacket and you have 8 different colored wires. The insulation strips easily.

Its the perfect wire, and cheap to.

redrok

2 replies

Just so you'll be jealous to the end of time I'll put up a picture of what the ultimate breadboarding wire looks like :)

I like that wire, too. First electrical projects, I worked were connecting phone jacks. :)

They make for easy power supply connection. That way you can just pull a couple plugs and work on the unpowered bread board.