Project 4 out of 18
Write a program that simulates rolling a pair of dice with the push of a button in this LED Dice Game project.Order Now
Make an LED Dice Game that simulates rolling a pair of dice at the push of a button. You’ll win if the dice rolls a 2, 7, or 12! The LED Dice Game project tests your ability to set up and then program hardware. The setup for this project is slightly trickier than previous projects, so you’ll need to use caution when placing your LEDs on the breadboard and with wiring! You’ll see how much you learned in C++, as this program requires you to fill some blanks in the code. After you finish your LED Dice Game project, you’ll be challenged to figure out how to get a single die to roll a seven and modify the program to flash the LEDs when you win!
What you'll receive in the LED Dice Game project kit:
Push Button Cover
Yellow LED (14)
10K Ohm Resistor
220 Ohm Resistor (10)
Jumper Wires (12, 2 extras
U Shaped Jumper Wires (3, 3 extras)
UNO R3 (Arduino Compatible)
You’ll learn about writing your own code in this LED Dice Game project and level up your wiring skills.
Electronic Components Learn about a push button and how you need to connect it to make your whole project run.
Circuitry Get practice with intricate wiring. Take your time making sure that your pins are lined up correctly or your project won’t work!
Programming Apply your understanding of C++ by completing the unfinished code that we give you.
When you’ve completed your LED Dice Game project, you’ll be faced with even more challenges:
You’re up to the challenge, but the Online Classroom will help you troubleshoot any issues!