Arduino Dice Chooser / Arduino Project
by AmandaWang3333 in Circuits > Arduino
211 Views, 0 Favorites, 0 Comments
Arduino Dice Chooser / Arduino Project
Inspiration and Objective
I was inspired by this https://www.instructables.com/Electronic-Dice-4/.
Prior to conducting this project, I always played monopoly that required throwing dice. By throwing dice by myself, I often throw the constant number repeatedly which is relatively annoying. Therefore, by applying this design, a single button can assist in solving the problems. A random number between 1 to 6 is generated to the corresponding number of lit LEDs. This tutorial will be introducing the self-made electronic dice with different volume tones.
Supplies
Materials for circuit and coding
- Arduino board
- MicroUSB-USB Cable
- Arduino programming application
- Several jumper wires / DuPont wires
- 6 LEDs, White color
- 6x220 ohm resistors
- 1x1k ohm resistors
- A push-button
- Arduino speaker x1
Box making
- Shoebox
- Tape
- Ruler
- Scissors
- Marker
- a colored paper that can cover the shoebox (optional)
Preparation
Prepare all the materials listed above.
Coding
Please follow this link:
https://create.arduino.cc/editor/amandawang333/e5c...
There are footnotes for every line of code.
Installation
*The first picture was taken from the website: https://www.instructables.com/Electronic-Dice-4/. Since my product changes the push button into a bigger one, there will be a little difference. Therefore, the last picture shows how the button will be installed if you use the same button as mine.
Put all the wires, LEDs, push-button, and materials accordingly on the Arduino board. Then connect the LED’s negative terminal to the 220ohm resistors and the positive terminal to the Arduino's digital pins from 2 to 7. Resistors should be connected to the GND pin.
*There may be a slight difference between the models and your own output so the connection may vary.
*Make sure to check before connecting to the computer.
*The rest of the connection please follow the circuit diagram above
Blueprint for Boxes
Before making the actual box, I would suggest drawing out the blueprint of the box’s dimensions clearly. This not only enhances the speed of the process but also makes the whole design more accurate. I will first measure the Arduino board because it is the largest object among all. By leaving at least 2 to 3 cm, it ensures the box will not be too small that didn’t fit the board.
Prepare the Box (optional)
In order to make the appearance more beautiful, I suggest decorating a box to conceal the wire and circuit.
Find a shoebox that was made of softer material so it is easier to cut. Then prepare a cutter or knife to cut it into a suitable size for the button and the whole Arduino board.
When cutting six holes for LEDs, be careful not to cut too much space because the light might fall out. Moreover, when cutting a hole for the button, be aware the size should be precise and exact so the button won’t fall. If the whole was cut accidentally too big, you can use tape to stick the object with the box together.
Optional: Prepare a paper that is at least A3 size to cover the box with your favorite color.
Combine It All Together!
Put the Arduino board into the box carefully and connect it to the computer.
Done!
The video above shows how the project works.
Have fun and enjoy it!!!