Introduction: Arduino Dice

Picture of Arduino Dice

This instructables will show you how to create electronic dice out of an Arduino and a few other components.

Step 1: Parts

Picture of Parts

What you will need:
18 Jumpers (11 large 7 small)
7 LEDs (I used red ones)
Resistor (I used 100ohm, 10 ohm would work too)
Solderless breadboard
Arduino (+usb cable for connection)
Optional: small strapdown copper jumpers
Wire cutters

Okay, lets build it.

Step 2: LEDs

Picture of LEDs

First start by cutting the leds shorter, so they fit better on the breadboard.

Then start aranging them onto the board, having the negative side of the leds point to the left. LED 1 goes between pins (1-,2+)
LED 2 goes on (5-,6+) and LED 3 on (9-,10+). LED 4, in the middle, must be streched between (4-, 7+). The last 3 LEDS go directly below the first 3 leds, but on the other side of the breadboard.

Step 3: Connect LEDs to Ground

Picture of Connect LEDs to Ground

Grab your jumpers (for this step I used the smaller jumpers to make life easier) and connect all of the negative(-) sides of the LEDs to the ground rail.

Step 4: Jumpers to the Arduino

Picture of Jumpers to the Arduino

Now, get out your large jumpers, and put a jumper onto each positive(+) side of the leds. It is much easier if you color code the jumpers, it will help later. Also connect a large jumper to the ground rail, and that will connect to the ground on the arduino. In the list it was optional, but I used a small peace of coated copper wires to hold all the large jumpers down.

Step 5: Pushbutton

Picture of Pushbutton

Now, we connect the pushbutton. Start by placing the pushbutton onto the board, between the crack in the board. I used a 100kohm resistor, but others would work too. Place said resistor onto the board coming off of one of the pushbutton sides (see the diagram for further understanding).

Step 6: Connect the Jumpers to the Arduino

Picture of Connect the Jumpers to the Arduino

Now, we connect the jumpers onto the arduino board itself.
LED1/Pin 12
LED2/Pin ~11
LED3/Pin ~10
LED4/Pin ~9
LED5/Pin 8
LED6/Pin 7
LED7/Pin ~6

If you did not already connect the pushbutton to the arduino board, the previous step shows that.

Step 7: Code!

Picture of Code!

Now, connect the arduino board to your computer and upload this code.


Zoe Bell made it! (author)2016-08-27

i need shorter wires !!

your instructions were the clearest I have ever come across for this project , thanks you

paul the maker (author)2016-07-24

it works yey but what is the push button for

Ahammer18 (author)2016-05-26

Using the power rails to lash the leads down is a great idea. Project works like a charm, by the way.

fdlkhgjhdsahfsagdflia (author)2016-05-18




fdlkhgjhdsahfsagdflia (author)2016-05-18


nick_rivera (author)2016-03-14

Hey, so I didn't use resistors for the LEDs because the Arduino doesn't output enough power to harm the LEDs, but I would definitely suggest adding some if you like.

But anyway, I'm glad you liked the project, it was a great begging project that got me into arduinos!

JustinM123 made it! (author)2016-02-12

Thanks for sharing this project, but why you dont use resistors for the red leds? Im a beginner and i dont know why you wont use resistors, with another lesson i need to connect a red led with a resistor.

I made some modifications to this project, check my video below:

LukášC6 made it! (author)2016-01-26

Thanks, great for beginning with arduino.

Negopls made it! (author)2015-11-04


KristinaH1 made it! (author)2015-08-03

Easy to follow instructions, very clear! Thanks! I tried another set of instructions for dice but they were not successful, this one was first time.

botgames (author)2015-01-20

Easy to follow. But why are there 7 on this dice? Usually there are

only 6. Nevertheless, great instructable. Thanks

knexinventer (author)botgames2015-02-08

It is so that it actually looks like what is on the sides of the dice when it is lit up.

About This Instructable




More by nick_rivera:555 Timer IC/ Flasher CircuitArduino Dice
Add instructable to: