Projects / Electronic dice with logic chips

Electronic dice with logic chips

Intermediate2.5 hGuided buildReviewed

Build it step by step

0 of 7 done
  1. Run the clock

    The 555 at a few hundred Hz.

  2. Count 1 to 6

    Reset or load at 7.

  3. 19.1 mA

    Show the count on LEDs

    Check the binary pattern.

  4. 74HC0874HC3219.1 mA

    Decode to dots

    Gates for each LED.

  5. Add the button

    Run only while held.

  6. Roll fifty times

    Check every face appears.

  7. Put it in a box

    A neat dice case.

In short

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

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

Wiring

FromToWhy
555 output74HC193 count-up input, while the button is heldFast clock
ButtonEnables the clock pathRoll
Counter outputs Q0..Q2AND and OR gatesDecode to dots
Counter at 7Load or reset to 1Count 1 to 6
Seven LEDs with 330 ΩGate outputsDice pattern
5 V from USBAll chip VCC pinsPower

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.

CheckExpected
Hold the buttonDots blur
ReleaseA steady face from 1 to 6
Fifty rollsEach face shows up
Never 7The 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 →

Ask Lark AI

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.