Arduino Leonardo Dice

by Mark Sung in Circuits > Arduino

58 Views, 1 Favorites, 0 Comments

Arduino Leonardo Dice

Unknown.jpeg
截圖 2021-04-19 上午3.07.41.png

This project was inspired by:https://www.instructables.com/Arduino-LED-Dice-2/

Originally, It is only the Dice, when the dice rolled to 1, 1 light will start flashing, when the dice rolled to 2, 2 light will start flashing, and so on, there for I improve it by adding the sound on it, so it will be clearly to us to know the number of the dice, and it also can help people who is visually impaired to play the game that needed dice.

Supplies

1. Arduino Leonardo x1

2. Electronics breadboard x1

4. 220 Ω resistor x7

6. multiple jump wires, about *30

7. USB elongation x1

8. LED light bulb x6

9. Portable charger x1 or a a omputer

Connection

截圖 2021-04-19 上午2.45.22.png

1. Connect the 6 LED lightbulb

2. Connect the buttom

3. Connect the horn

When you finish connection, you press the button, the dice are being rolled by selecting a random number and lighting up the relevant number of LEDs and the horn will relevant the sounds.

Code

截圖 2021-04-19 上午3.14.13.png
截圖 2021-04-19 上午3.29.02.png
截圖 2021-04-19 上午3.14.33.png
截圖 2021-04-19 上午3.14.41.png
截圖 2021-04-19 上午3.14.52.png

https://create.arduino.cc/editor/markuuujhfjhu/40eb4a72-ab1b-419d-9592-87842168a232/preview

Packaging

截圖 2021-04-19 上午2.59.30.png

Place the whole Arduino into the bow hide all wires only left the button and LED lightsbulbs outside.

Final Project

Sound On !!!!!!!!!