Electronic dice with logic chips
Build it step by step
0 of 7 doneRun the clock
The 555 at a few hundred Hz.
Count 1 to 6
Reset or load at 7.
Show the count on LEDs
Check the binary pattern.
Decode to dots
Gates for each LED.
Add the button
Run only while held.
Roll fifty times
Check every face appears.
Put it in a box
A neat dice case.
How do you build an electronic dice with logic chips?
A fast clock runs a counter that stops on a random number when you let go, shown as dice dots. You need NE555 Timer IC, 74HC193 up/down counter, 74HC08 quad AND gate, 74HC32 quad OR gate, LED 5 mm red × 7, Resistor 330 Ω × 7, Tactile push button 6 mm, Resistor 10 kΩ × 2, Ceramic Capacitor 100 nF, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm). It takes 7 steps and about 150 minutes.
- Level
- Intermediate
- Time
- About 150 min
- Parts
- 11
Parts list
- Integrated CircuitsBuyNE555 Timer IC × 1
- Integrated CircuitsBuy
- Integrated CircuitsBuy
- Integrated CircuitsBuy
- SemiconductorsBuyLED 5 mm red × 7
- PassivesBuyResistor 330 Ω × 7
- SwitchesBuy
- PassivesBuyResistor 10 kΩ × 2
- PassivesBuy
- PrototypingBuy
- PrototypingBuy
Tick what you already own. It saves to My Garage, so “Build with what I have” knows.
Wiring
| From | To | Why |
|---|---|---|
| 555 output | 74HC193 count-up input, while the button is held | Fast clock |
| Button | Enables the clock path | Roll |
| Counter outputs Q0..Q2 | AND and OR gates | Decode to dots |
| Counter at 7 | Load or reset to 1 | Count 1 to 6 |
| Seven LEDs with 330 Ω | Gate outputs | Dice pattern |
| 5 V from USB | All chip VCC pins | Power |
No code needed
The 555 runs at a few hundred hertz, much too fast to follow, so the counter races from 1 to 6 and back while the button is held, and stops wherever it is when you let go; because the stop time is random in human terms, the result is fair for a game. The counter has to jump from 6 back to 1, which a gate detecting the count of 7 and loading 1 handles. The dice dots use a standard pattern: one centre LED for 1, two corners for 2, and so on; the logic equations are small enough to work out on paper with a truth table. Use 5 V from a USB adapter and 330 Ω resistors on each LED. Roll many times and keep a tally to check that each number comes up about equally often; if one never appears, check the decoding gates for that count.
Test checklist
What you should see at each check. If a reading is far off, stop and use the troubleshooting list.
| Check | Expected |
|---|---|
| Hold the button | Dots blur |
| Release | A steady face from 1 to 6 |
| Fifty rolls | Each face shows up |
| Never 7 | The counter loads 1 after 6 |
If it does not work
Shows 0 or 7
Check the load logic.
A face never appears
Check the gates for that pattern.
Flickers when stopped
Debounce the button.
Dim LEDs
Check the 330 Ω resistors and supply.
Still stuck? Find the fault step by step with your multimeter →
Common questions
What parts do I need for the electronic dice with logic chips?
NE555 Timer IC, 74HC193 up/down counter, 74HC08 quad AND gate, 74HC32 quad OR gate, LED 5 mm red × 7, Resistor 330 Ω × 7, Tactile push button 6 mm, Resistor 10 kΩ × 2, Ceramic Capacitor 100 nF, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).
How long does the electronic dice with logic chips take to build?
About 150 minutes for a intermediate maker, in 7 steps.
How do I know the electronic dice with logic chips works?
Hold the button: Dots blur. Release: A steady face from 1 to 6. Fifty rolls: Each face shows up.
Shows 0 or 7: what should I check?
Check the load logic.
A face never appears: what should I check?
Check the gates for that pattern.
Flickers when stopped: what should I check?
Debounce the button.
Dim LEDs: what should I check?
Check the 330 Ω resistors and supply.
