MICRO - DICE
INSTRUCTION SHEET
Note, this kit is supplied complete including batteries.
The Micro_Dice is a simple introduction to the PIC microcontroller. This kit will produce a random number on the led display in a dice pattern. It is simple to construct and the PIC microcontrollers are supplied pre-programmed. When constructing you can select either fast roll or slow roll option.
|
Component |
Description |
Quantity |
|
Resistor |
220R |
7 |
|
Resistor |
10K |
1 |
|
Resistor |
4K7 |
1 |
|
PCB Pins |
|
6 |
|
Slide Switch |
|
1 |
|
Push Button Switch |
|
1 |
|
4 x AA Barrery Holder |
1 | |
|
AA Batteries |
|
4 |
|
Diode |
LED |
7 |
|
IC Socket |
18 Pin |
1 |
|
Microcontroller |
PIC 16F88 (Pre-programmed) |
1 |
|
Wire |
Light Duty |
200 mm |
|
Solder |
|
600mm |
|
PCB |
|
1 |
Check Your Kit


Component Layout
Construction
MORE INFORMATION
Overview
This is a purely digital circuit and this explanation will the terms high and low. In this project with the 6V source, high will indicate a voltage of 5 to 6 volts and low will indicate a voltage below 1 V. There are no alternate states - digital - it is either high or low.
The PIC 16F88 has two input/output registers (PORTA, PORTB). By configuring and reading/writing to them, we can achieve complex electronic results without complex electronic construction. In this project we use all 8 pins of PORTB (pins 6, 7, 8, 9, 10, 11, 12, 13 on the pic) and are labelled PORTB.0 to PORTB.7. PORTB.0 is configured as input to detect the PB switch depress. PORTB.1 to PORTB.7 are connected to the LED's through 220R resistors. The LED's are connected to +6V and are illuminated when the respective pin on PORTB is taken low. The dice pattern is produced by encoding the required pattern as 1's and 0's (1 is off, 0 is on).
PORTB.0 is controlled by the 10K resistor to 0V. This keeps PORTB.0 low while the button is not depressed. When the button is pressed, PORTB.0 is taken high by the switch connected to +6V.
We also use PORTA. PORTA.6 is used to control the fast roll / slow roll option. By selecting if it is connected to 0V or +6Vvia the 10K resistor you can select fast roll or slow roll.
This circuit uses the PIC 16F88's internal clock to eliminate the need for external components. The Master Clear (pin 4) of the PIC is taken high through the 4K7 to eliminate any false resets.
View the Datasheet for the PIC 16F88 (3769 kb)
TROUBLESHOOTING
Troubleshooting will consist of: