Build an Arduino Dice Rolling Machine

by yutunghsu in Circuits > Arduino

43 Views, 0 Favorites, 0 Comments

Build an Arduino Dice Rolling Machine

27A6DF00-BC58-42BA-8700-0E393AA529C3.jpeg

In this tutorial, you will learn how to build an Arduino Dice Rolling Machine. You can generate a number randomly from 1 to 7 by pressing the button of the machine. The machine is very simple and easy, scroll down and you will see the materials, steps, and the code for the machine.

The Source: https://www.instructables.com/How-to-Build-a-Colorful-LED-Arduino-Dice/

Material

87AC2F5A-09B2-41AD-8599-FC5FEBA2BC50.jpeg

Before building the dice rolling machine, you need to prepare all the materials needed to prevent missing steps.

These are the materials needed:

  • x1 Breadboard
  • x1 Arduino Leonardo
  • x7 LED lights
  • x8 resistors
  • x12 or more Wires
  • x1 USB cord
  • x1 Arduino Software
  • x1 Laptop

Attach LED Lights, Button and Wires

檔案_000.png
93F48EA5-FF5F-4B9C-B981-15398C444C1B.jpeg
BB6F1603-E42B-4846-A561-93380293524E.jpeg
895F7F20-4411-4BFA-94D4-AA30FD13E6F6.jpeg

Attach 7 LEDs and a button to the breadboard, see the picture and photos as the sample so you can connect it easily. Make sure you don't mess the rows up so it can work.

(the first picture is from the source)

Make a Cover

25342D13-AFE3-42C1-84B5-E378CE7C9B2C.jpeg
CDAC2017-6628-4304-8A51-8ECC0EF1CF05.jpeg

Next, create a cover for your machine. You can simply place the Arduino inside a box and decorate it. Do any cover you want and make your own special cover for the machine. Also, here is my cover, you can use it as a sample.

Code

Last, when you are done building the circuit and making the cover, input the Arduino code by open it in your Arduino software.

FINISH~

Now you are done with the Arduino dice rolling machine! Make your own changes to it if you want to.

This is dice rolling machine working