6.3. Project 2 – LED Dice

6.3.1. Project Description

This is a simple dice project based on LEDs, a push-button switch, and a PIC18F452 microcontroller operating with a 4-MHz resonator. The block diagram of the project is shown in Figure 6.10.

Figure 6.10. Block Diagram of the Project

As shown in Figure 6.11, the LEDs are organized so that when they turn ON, they indicate numbers as in real dice. Operation of the project is as follows: normally, the LEDs are all OFF to indicate that the system is ready to generate a new number. Pressing the switch generates a random dice number between 1 and 6 and displays on the LEDs for 3 s. After 3 s, the ...

Get SD Card Projects Using the PIC Microcontroller now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.