Книга: Advanced PIC Microcontroller Projects in C
PROJECT 6.2 — LED Dice
Project Description
This is a simple dice project based on LEDs, a push-button switch, and a PIC18F452 microcontroller operating with a 4MHz resonator. The block diagram of the project is shown in Figure 6.6.
Figure 6.6: Block diagram of the project
As shown in Figure 6.7, the LEDs are organized such that when they turn ON, they indicate numbers as on a real dice. Operation of the project is as follows: The LEDs are all OFF to indicate that the system is ready to generate a new number. Pressing the switch generates a random number between 1 and 6 which is displayed on the LEDs for 3 seconds. After 3 seconds the LEDs turn OFF again.
Figure 6.7: LED dice
Оглавление статьи/книги
Похожие страницы
- CHAPTER 6 Simple PIC18 Projects
- Project Description
- Appendix A. Detailed explanations of special commands
- Appendix F. Acknowledgments
- Project PDL
- Глава 5. Разработка и анализ бизнес-планов в системе Project Expert
- Turtle Firewall Project
- Testing the Project
- Using the C Programming Project Management Tools Provided with Fedora Linux
- Managing Software Projects with Subversion
- The Fedora Project
- Fedora Project Mailing Lists