Create a project on Arduino and add a prototyping board. Using LEDs, display all possible combinations that can occur when rolling dice (1, 2, 3, 4, 5, 6). Arrange on the board all possible combinations. Each combination corresponds to LEDs of a specific color, and the number of LEDs is equal to the rolled combination (if 1, then only 1 LED, and so on). Connect them and program it so that when a button is pressed, a random number from 1 to 6 is generated. The LEDs corresponding to the rolled number should light up. An example of the completed project for combinations 6 and 5 is shown in the figure 1-2.
PDF instrucation is in Russian. You can download from here:
Well:
“Creating gadgets with Arduino”
Topic: Dice simulator on Arduino
Homework: Programming a game
cube
Exercise 1
Create an Arduino project and add a breadboard.
WITH using LEDs, display all possible combinations that may appear when tossing playing cards bones (1, 2, 3, 4, 5, 6).
Place on the board all possible combinations. Each combination is LEDs defined divided color, and the number of LEDs is equal to the dropped combinations (if 1, then only 1 LED and so on).
Co-connect them and program them so that when you press button, a random number from 1 to 6 appeared.
Which number did you fell, those LEDs lit up.
Example of completed work for combinations 6 and 5
(Fig. 1-2):