LED bar graph/What is in the box/04. The resistor board
What is in the box · 04 of 11

The resistor board

Ten 220 Ω resistors from ten holes to one rail, which saves you soldering a hundred and twenty of them across the kit. It arrives with no pins in it, and the row marked COMMON is the positive end of every segment — not a ground.

What is on it

Ten chip resistors, marked 221 — 22 followed by one zero, so 220 Ω. Each one runs from a hole in the row printed TO SEGMENT LED DISPLAY down to a rail that surfaces at the four holes printed COMMON. The two small holes at the ends of that row are not plated; they are for screws.

The front of the resistor array board: a row of ten plated holes above the words TO SEGMENT LED DISPLAY, ten small chip resistors marked 221 in a line beneath it, and a lower row of four plated holes either side of a white label reading COMMON.
Ten holes, ten resistors, one rail. The 221 on each chip resistor is 220 Ω.

That is the whole circuit. Twelve boards save you soldering a hundred and twenty resistors, which is the entire reason they are in the box.

The back of the same board, plain black with the words lonely binary above LED CURRENT LIMITING RESISTOR ARRAY in white, ten plated holes along the top edge and four along the bottom.
The back says what it is. Push the header in from the printed side and solder from this one.

Why 220 Ω

An LED will take as much current as you let it, and then stop working. The resistor is what decides how much. The LED keeps its own two or three volts whatever happens, so the resistor gets whatever the rail has left, and the current is that voltage divided by the resistance.

What the 220 Ω is choosing
220 Ω · 14 mA
Series resistor220 Ω
Across the LED
2.0 V
Across the resistor
3.0 V
Segment current
14 mA
220 Ω is the compromise the board has soldered in. The LED takes about 2.0 V whatever happens, so the resistor gets the remaining 3.0 V and the current is just that over the resistance. At 220 Ω that is 14 mA for a red segment — bright in a lit room, and well under what one pin should be asked to carry.

Below about 150 Ω one pin is being asked for more than the chip is characterised to sink; above about a kilohm the bar is a night light. 220 Ω is where the board sits, and it is a good default to copy if you ever wire one of these by hand.

The pins it does not come with

The board is bare. There are header strips in the box, and fitting them is the first thing to do:

  1. Break a ten-way length off a strip.
  2. Push it through the TO SEGMENT LED DISPLAY row from the printed side, so the long ends stick out of the back.
  3. Solder all ten from the back.
  4. Do the same with a two- or four-way piece in the COMMON row.

A joint that is not soldered still touches, most of the time, which is the worst kind of fault to have: it looks like a bug in your sketch. When nothing lights shows what it reads like on a meter.

COMMON is not a ground

The name invites the mistake. This rail is the top of every segment, not the bottom — it goes to 5 V. Wire it to ground and nothing lights at all, whatever the code does, which is the subject of the next page.

When it does not work

There are no pins on the board

That is how it ships. Break a ten-way piece off one of the header strips, push it through the row printed TO SEGMENT LED DISPLAY from the silkscreen side, and solder all ten from the other face. Do two or three of the COMMON holes as well — you only need one electrically, but a board held by one pin pivots in the breadboard.

Some segments flicker when I touch the board

A header pushed through and not soldered makes contact some of the time, which looks exactly like a software bug. Go over every joint. A good one is a small shiny cone around the pin; a ball sitting on top of the pad has not wetted the hole.

The two holes at the ends of the COMMON row do nothing

They are not plated, so they are not connected to anything. They are there to screw or glue the board down.

Can I use my own resistors instead?

Yes, and 220 Ω is a sensible value to copy. Going much below about 150 Ω asks one pin for more current than the ATmega328P is characterised at, and going much above a kilohm gives you a bar you cannot see on a lit desk.

Do I need one resistor board per bar?

Yes. Each of the ten segments needs its own resistor — one resistor shared between several segments would make each segment dimmer as more of them lit, which is exactly the effect a bar graph must not have.

Where this goes next

Where the rail goes, and why writing LOW is what lights a segment.

COMMON to 5 V

Edit this page — content/books/led-bar-graph/the-resistor-board.mdx

Community

Questions about this product

See what other owners have asked, and read their solutions.

Ask a question ↗

10-Segment LED Bar Graph Kit, 12 Bars in 6 Colours

Loading discussions…

Discuss this article

Ask about this page. The answer stays here, on the page it belongs to, for whoever hits the same wall next.

Browse Modules and blocks on the forum