top of page

Arduino LED Dice Project

Make an LED dice using your Arduino and a few components!

About this Project

In this project we'll make an LED dice. You'll see the schematic, breaboard layout, and how to build the project.

 

The Arduino LED Dot Dice is a great project for beginners in Arduino, and for anyone who likes to construct and learn from unique and attractive electronics projects.

The dice scores are shown on 7 LEDs forming a dice face, which are under the control of the Arduino software.

Press the Roll! Button to roll the dice. It rolls for as long as you hold it pressed, and when you release it, the dice face LEDs show your score.

This project is for the purposes of fun and amusement only, and totally random scores can’t be guaranteed.

Full Step-By-Step Instructions Video

Watch the full step-by-step instructions video on YouTube:

Components for your Project

To make your project you will need:

  • An Arduino Uno or Mega. You can also use an Arduino Nano or any other Arduino type, but you might need to change the pin assignments for these in the software (this is easy to do)

  • A breadboard

  • Seven LEDs of any colour you prefer

  • A pushbutton. You can use a standard 4 pin pushbutton, though the 2 pin buttons like in the picture are much easier to fit into breadboards

  • Seven 330 Ohm resistors. You can use any resistor values ranging from 330 Ohms to 560 Ohms.

  • Assorted breadboard jumper wires

Schematic Diagram

Arduino Port Pin D3 is configured as an input and the Roll! pushbutton is detected by this pin.

Port Pins D4 thru D10 are configured as outputs, and drive the seven LEDs to make the dice face.

Each of the seven dice face LEDs has a resistor in series with it which limits the current through the LEDs (without this the LEDs would be damaged).

The GND from the Arduino is connected to the Pushbutton and to all of the LEDs via their resistors.

The other Arduino pins are not connected.

Breadboard Layout - Complete Project

This picture shows the complete Breadboard Layout.

Some of the resistors and wires are obscured in this picture by the LED graphics.

Breadboard Layout - Without LEDs

In this picture of the Breadboard Layout the LEDs are not shown, which makes it easier to see all of the resistors are wires.

Project Software

The project software is in file: ArduinoLEDDotDice.ino

The software can be compiled in the Arduino IDE and uploaded to your Arduino.

The software contains comments to tell you what it is doing.

You can change the software if you want to reassign the Arduino Port Pins, or you want to experiment with making the project do different things.

Your Finished Project

bottom of page