This is a fun project, based on Arduino. I chose a holiday theme for the box, but you can, of course, use any style of box you like.
This device rolls two dice at random.
I also added a twist...there is a "secret" button that you can push for random doubles! Baffle your opponents by always rolling doubles!
Here's a video showing how it works:
Remove these ads by
Signing UpStep 1Hardware assembly
I used 14 typical LED's, each with a 100ohm resister in-line and connected to the Arduino digital pins as follows:
Left Die:
upper row, left to right: 10,9,8
middle: 7
lower row, l to r: 11,12,13
Right Die:
upper row, left to right: 3,2,1
middle: 0
lower row, l to r: 4,5,6
Note: I made one die green and the other red in the spirit of the holidays!
Then I connected an on/off switch (in-line with the 9V battery) and a "roll" button (a momentary switch connected to Arduino Analog A0 pin...which can be referenced as digital pin 14 in the code).
I also put a "secret" switch under the green ribbon (a momentary switch connected to Arduino Analog A1 pin...which can be referenced as digital pin 15 in the code). If you push this before your roll, you always get doubles!
| « Previous Step | Download PDFView All Steps | Next Step » |
2
comments
|
Add Comment
|
Penolopy Bulnick
says:
![]() |
Add Comment
|









































