# Electronic dice circuit using CD4017

Let’s see some toy circuits. This is an electronic dice circuits.

Which looks like a real dice.

We use only the press switch being thrown. Although this is the high-tech toys.

Such as, Game PC, Tablet so expensive.

But this projects an enchanting are: To start creating your own.

Make family time together creatively. My son is always excited when creating these projects.

## How it works

For playing that when we turn on power supply to circuit. The LED will glow at either portion, since 1-6 LED, as place of real dice.

When we press switch, all LED(7 LED) will flash jointly, with high speed up.

But when we release switch, LEDs will stop flash, then either led glow. May be since 1-6 LEDs as form of the dice.

In pressing switch each time, it will not glow at same position always. It will light at any point with uncertain. Therefore resembles much throw dice.

## The principle of circuit

From circuit in Figure 1 will see that, the circuit separated are: 3 main section. There are :the frequencies generator, the frequencies counter and LED display.

Figure 1 The electronic dice circuit

In the frequencies counter include with two transistors and some RC circuit. They are set as high frequencies generators about of 62 Hertz.

Then, will be a normally open pushbutton to connects signal from the first sector to second sector. By the frequency counter which is used as CD4017 is the counter.

Normally this IC number will be Decade counter with 10 decoded outputs IC. But in at this we joint pin 5 and 15 together.

Then, taking output at pin 7 to reset pin 15 as soon as pin 7 has output in a fraction of a second. It will reset the IC, to move the output to pin 3 that is first position.

Therefore, the output that we have really just 6 volts only. And every time that we press switch-SW1. Next, IC1 will change the output position to emit.

For in the third sector is a display of this circuit is set as the matrix diode.
The matrix diode act as divider output signal of IC to each place of LEDs since 1 to 6 LEDs.

But why use 7 LEDs, because the position of the LED dice like that. Especially at the 1, 3, 5 pts.

If use LED just 6 LED only will cause LED is not the center does not look beautiful, so, so I added another one.

#### The components List

IC1: CD4017: Decade counter with 10 decoded outputs IC
LED1-LED6: LED as you need see text
Q1,Q2: C1815, 45V 100mA NPN Transistor
D1-D9: 1N4148, 75V 150mA Diodes
C: 10uF 16V, Electrolytic capacitors
C: 1uF 16V, Electrolytic capacitors

0.25w 5% Resistors
R1: 2K,
R2: 10K
R3: 100K

Others
-PCB, 9-volts battery, wires, and others. Etc.

Note: See Electronics Components Stores. You may get what great things.

### Construction

This circuit used PCB copper foil track layout as Figure 2. on actual-size for Solder side.

Then, assemble all components to PCB, as Figure 3 the component layout (top view). By small size before same general projects.

Figure 2 Printed circuit board copper foil track layout of this project. (actual-size)

Figure 3 The components layout of the PCB.

When finished assemble, then check the correctness all agian, next so insert IC1 in to the socket IC.

Then later, you apply the supply voltage to this circuit, will see the LED lit up may be any LEDs.

Next, press switch, each times , LEDs will grow switch the place continuously by unique. If try to do, then get results as this , so are correctly to used.

This is electronic dice circuit, normally will get the energy from 9-volt rectangular battery. But can also use supply voltage between +3V to +15V, by still work normally. The resistors all in circuit use the power size of ¼ Watts. The LED will be used as a green switch red or all red as you like it.

Note: This IC-No. CD4017, many company product sales. Which the letter begins may be different. But has number- 4017 It can be used as well, such as CD 4017, HEF 4017, MC1 4017, HD 4017, since as the same number.

Sharing is caring!

## GET UPDATE VIA EMAIL

I always try to make Electronics Learning Easy.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Subscribe
Notify of
alex morfe

hello again 🙂
i am planning to use this dice circuit for my airsoft firing range so i can randomize targets 🙂

questions:
1. is 6 LEDs the maximum, or can it be increased? if so, how?
2. can you incorporate an electronic switch to each LED such that the electronic switch is ON when the LED is lit?

thanks.

Kashmira

Hi i have used ic555 and cd4017 for electronic dice circuit and has 7 leds in it. Pls can u explain me the working of project

alex morfe

update on #2 above: i’ll just parallel a relay to the LED… 🙂

thanks.

alex morfe
alex morfe

hi momename,
in paralleling relays to the LEDs of this project:
1. can i just parallel it directly, or do i need other components like diodes/capacitors/resistors/etc?
2. do i use a 12v-coil, or a 6v-coil?
thanks very much. 🙂

alex morfe

hello again.

is there a way to make the LEDs to NOT light up while switch in ON (while randomizing next number)?

thanks!

alex morfe

hi momename,
me again 🙂
could you please show me how to add the option to roll the die via a signal from another circuit (instead of SW1, like in your 4026 up counter circuit)?

here’s the link to what I have built so far: https://www.facebook.com/video.php?v=10204953731460292&set=vb.1151274622&type=2&theater
this has 4 of your circuits:
1. dice (minus the 4017)
2. running lights (minus the 4017)
3. up counter using 4026
4. 555 tester

thanks! 🙂

Nana

Hi momename,
May I know that which pin of the IC should I connect for the switch? I tried on my own at pin 12,14,and 16 respectively but the circuit only works when I connected the switch to pin 16. However the leds light up in sequence not in random,and the leds should light up rapidly when the switch is pressed but they didnt.

mike baker

What is the value of the missing resistor from the list?
( to the right of the 1n4148s)

MANOLO

this is SHIT

Apichet Garaipoom

Hi,
Please tell me. What is something wrong.