Build it step by step
0 of 7 doneIdentify the thumbwheel
Find common and the four outputs with a multimeter.
Wire the pull-downs
One 10 kΩ per output.
Place the decoder
Connect power and the three control pins.
Connect the inputs
Outputs 1, 2, 4, 8 to A, B, C, D.
Add the segments
Each through a 330 Ω resistor.
Dial each digit
Check 0 to 9 on the display.
Try the extra codes
See what 10 to 15 look like.
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
- Switches
- Integrated CircuitsBuy
- DisplaysBuyUse a common-anode display with the 74LS47
- PassivesBuyResistor 330 Ω × 7
- PassivesBuyResistor 10 kΩ × 4
- PrototypingBuy
- PrototypingBuy
- PowerBuy
Tick what you already own. It saves to My Garage, so “Build with what I have” knows.
Wiring
| From | To | Why |
|---|---|---|
| Thumbwheel common | 5 V | Supplies the four contacts |
| Thumbwheel outputs 1, 2, 4, 8 | 74LS47 pins 7 (A), 1 (B), 2 (C), 6 (D) | Binary digit input |
| 10 kΩ resistors | Each thumbwheel output to GND | Pull-downs so the inputs read low when open |
| 74LS47 pin 16 | 5 V | Supply |
| 74LS47 pin 8 | GND | Ground |
| 74LS47 pins 3, 4, 5 | 5 V | Lamp 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 g | Segment drive (open collector, active low) |
| Common-anode display common pins | 5 V | Display supply |
| MB102 module | Breadboard rails set to 5 V | Power |
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.
| Check | Expected |
|---|---|
| Dial 0 | Display shows 0 |
| Dial 7 | Display shows 7 |
| Dial 9 | All segments but one |
| Hex positions | Odd 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 →
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.
