Interesting Information for Students

Note to Visitors

The content viewed in this blog is a collection of various articles & newsletters and is placed only for educational purpose.

Tuesday, January 17, 2012

Dice Project

Press the push switch to 'throw' the dice: this makes the circuit rapidly cycle through the dice numbers so that an effectively random dice number is displayed by the LEDs when the push switch is released.


Drill seven 5mm holes in a dice pattern to mount the LEDs on a panel such as a plastic box lid or sheet of thin plywood. They should be a tight fit but a little glue can be applied from the underside if necessary. 

The 555 astable circuit provides clock pulses at about 5kHz for the 4017 counter which has ten outputs (Q0 to Q9). Each output becomes high in turn as the clock pulses are received. Only six counts (Q0-Q5) are needed so Q6 is connected to reset. Appropriate outputs are combined with diodes to supply the LEDs: 

                              Dice project sequence

For example Q1, Q3 and Q5 are combined for LED A. The dice sequence has been started at 2 so the ÷10 output can be used for LEDs B1 and B2, this saves diodes and simplifies the circuit. Pressing the push switch makes the disable input low so that counting occurs. 

Parts Required
  • resistors: 330 ×3, 470, 10k ×3
  • capacitors: 0.01µF, 0.1µF
  • diodes: 1N4148 ×6
  • LEDs: red 5mm diameter ×7
  • 555 timer IC, such as NE555
  • 4017 counter IC
  • DIL sockets for ICs: 8-pin, 16-pin
  • on/off switch
  • push switch
  • battery clip for 9V PP3
  • stripboard: 20 rows × 22 holes

Stripboard Layout

Circuit diagram


Copyright 2007: John Hewes 

No comments:

Post a Comment

Popular Posts