Medium

Electronic Dice (555 + CD4017)

Press a button and six LEDs, arranged like the faces of a die, cycle rapidly, then stop on a random number — a classic 555 timer + CD4017 counter circuit.

Circuit Diagram

+9V 555 astabil rapid → pin 3 (clk) CD4017 decade counter pin14 CLK RESET btn → GND Q0..Q5 fiecare → R220 → LED (față 1-6) 1 2 3 4 5 6

How to Build It

  1. Wire the 555 timer in a fast astable configuration (small resistors, ~1K, small capacitor ~10nF) to generate rapid pulses.
  2. Connect the 555's output (pin 3) to the CD4017's clock input (pin 14).
  3. Connect the CD4017's 6 relevant outputs (Q0-Q5, matching the die faces) each to an LED with a current-limiting resistor.
  4. Connect a button between the CD4017's RESET pin and ground, to reset the count to face 1 if needed.
  5. Insert a start/stop button in the 555's supply line — pressing it runs the counter rapidly; releasing stops it on a random LED.
  6. Test a few times — each press should land on a different, random face.

Bill of Materials

ProductCodeQty
Integrated circuit 1
Integrated circuit 1
LED (3/5/10mm, SMD, power) OSR5PA5111A 6
Resistor DR100R-418 6
Resistor #N/A 3
← All kits  ·  Newsletter