Colorful Arduino Dice

by AnnaHuang in Living > Education

127 Views, 0 Favorites, 0 Comments

Colorful Arduino Dice

Arduino Dice

Hello, today I will be showing you how to make an easy little project with the Arduino board. This is a simple project called Arduino Dice which will help you to get a basic understanding of Arduino and it's coding. This project will help to learn about homemade LED DICE. Also, you will own a special dice. In the code I have listed below the homemade function "one" will turn on one random led if the number is 1. The same thing will happen if the number is 3,4,5 or 6, the function that is connected to the number will select the number of LEDs that will light up. Homemade functions help you save time in your code and if you learn them they will help to organize your codes for future projects.

Supplies

- One Arduino Uno and Genuino Board

- Generic Breadboard

- Generic jumper wires( Short ones preferred )

- 220-ohm resistor x9 - x9 LEDs of any color

The Materials You Will Need in This Project

螢幕快照 2020-04-15 下午7.58.08.png
螢幕快照 2020-04-15 下午7.58.16.png
螢幕快照 2020-04-15 下午7.58.22.png
螢幕快照 2020-04-15 下午7.58.33.png
S__14319620.jpg

- One Arduino Uno and Genuino Board

- Generic Breadboard

- Generic jumper wires( Short ones preferred )

- 220-ohm resistor x9

- x9 LEDs of any color

- an Arduino's button

Creating the Circuit

S__14319619_0.jpg

code link: https://create.arduino.cc/editor/annahuang/5e5ac948-6002-4b1d-b315-fe498af543d9/preview