Projects / BCD switch to display

BCD switch to display

Beginner45 minGuided buildReviewed

Build it step by step

0 of 7 done
  1. 12:45

    Identify the thumbwheel

    Find common and the four outputs with a multimeter.

  2. Wire the pull-downs

    One 10 kΩ per output.

  3. 12:45

    Place the decoder

    Connect power and the three control pins.

  4. Connect the inputs

    Outputs 1, 2, 4, 8 to A, B, C, D.

  5. 12:4512:45

    Add the segments

    Each through a 330 Ω resistor.

  6. 12:45

    Dial each digit

    Check 0 to 9 on the display.

  7. Try the extra codes

    See what 10 to 15 look like.

In short

How do you build a BCD switch to display?

A BCD thumbwheel switch sets a digit that a decoder chip shows on a 7-segment display. You need Thumbwheel switch (BCD), 74LS47 BCD to 7-segment decoder, 7-segment display 1 digit (common cathode), Resistor 330 Ω × 7, Resistor 10 kΩ × 4, Breadboard 830 Tie Points, Jumper wires male to male (40 pcs, 20 cm) and Breadboard power supply module (MB102). It takes 7 steps and about 45 minutes.

Level
Beginner
Time
About 45 min
Parts
8

Parts list

Tick what you already own. It saves to My Garage, so “Build with what I have” knows.

Wiring

FromToWhy
Thumbwheel common5 VSupplies the four contacts
Thumbwheel outputs 1, 2, 4, 874LS47 pins 7 (A), 1 (B), 2 (C), 6 (D)Binary digit input
10 kΩ resistorsEach thumbwheel output to GNDPull-downs so the inputs read low when open
74LS47 pin 165 VSupply
74LS47 pin 8GNDGround
74LS47 pins 3, 4, 55 VLamp test, blanking and ripple blanking off
74LS47 pins 13, 12, 11, 10, 9, 15, 14 (a to g)330 Ω resistors to display segments a to gSegment drive (open collector, active low)
Common-anode display common pins5 VDisplay supply
MB102 moduleBreadboard rails set to 5 VPower

No code needed

BCD means each decimal digit is stored in four bits: 0 is 0000, 5 is 0101 and 9 is 1001. The thumbwheel connects its common pin to each of four outputs according to the digit chosen, so the pull-down resistors make the unselected outputs read 0. The 74LS47 turns the four bits into the seven segments. Its outputs are open-collector and switch low to light a segment, so it needs a common-anode display with the common pins to 5 V; a common-cathode display will stay dark. Each segment needs its own resistor of 330 Ω. For values from 10 to 15 (a thumbwheel with hex positions) the chip shows odd symbols because those codes are not decimal digits, which is a good thing to try. Use the supply module set to 5 V, never more than 5.5 V on the 74LS chip.

Test checklist

What you should see at each check. If a reading is far off, stop and use the troubleshooting list.

CheckExpected
Dial 0Display shows 0
Dial 7Display shows 7
Dial 9All segments but one
Hex positionsOdd symbols appear

If it does not work

Display dark

Use a common-anode display and check its common pin goes to 5 V.

Wrong digit

Swap the order of the four inputs.

Dim segments

Check each resistor and the supply voltage.

Random segments

Check pins 3, 4 and 5 are tied to 5 V.

Still stuck? Find the fault step by step with your multimeter →

Ask Lark AI

Common questions

What parts do I need for the BCD switch to display?

Thumbwheel switch (BCD), 74LS47 BCD to 7-segment decoder, 7-segment display 1 digit (common cathode), Resistor 330 Ω × 7, Resistor 10 kΩ × 4, Breadboard 830 Tie Points, Jumper wires male to male (40 pcs, 20 cm) and Breadboard power supply module (MB102). 7-segment display 1 digit (common cathode): Use a common-anode display with the 74LS47.

How long does the BCD switch to display take to build?

About 45 minutes for a beginner maker, in 7 steps.

How do I know the BCD switch to display works?

Dial 0: Display shows 0. Dial 7: Display shows 7. Dial 9: All segments but one.

Display dark: what should I check?

Use a common-anode display and check its common pin goes to 5 V.

Wrong digit: what should I check?

Swap the order of the four inputs.

Dim segments: what should I check?

Check each resistor and the supply voltage.

Random segments: what should I check?

Check pins 3, 4 and 5 are tied to 5 V.