Summary of Arduino Electronic Dice using random numbers
The article explains how to create an electronic dice using an Arduino, 7 LEDs, resistors, jumper wires, and a tactile switch or motion sensor. Designed for beginners, the guide includes detailed wiring instructions, a parts list, and commented Arduino code to facilitate understanding and assembly. The project demonstrates basics of Arduino programming and circuit setup to produce random dice rolls displayed via LEDs.
Parts used in the Electronic Dice Project:
- Arduino or Arduino clone (e.g., protoshield or breadboard)
- 7 LEDs (green)
- 7 Resistors (330 ohms)
- 11 Jumper wires
- 1 Tactile switch or motion sensor
This instructable will show you how to make an electronic dice with minimal experience using 7 LEDs, resistors, jumper wires, and of course the arduino (or arduino clone). I wrote this instructable for anyone to easily follow along and learn more about the arduino. Questions are welcome and will be answered as soon as possible. For less experienced users the code for the arduino is in “longhand” and several comments are included for better understanding of the code being uploaded into the arduino.
Step 1: Parts list
Arduino or a clone ( I’m using a protoshield but a breadboard will work the same way)
11 Jumper Wires (or stripped wires in order to make connections on a breadboard)
7 Resistors (I used 330ohms) (ORANGE)(ORANGE)(BROWN)(GOLD)
7 LEDs ( I used green)
1 tactile switch or motions sensor (I used a motion sensor)
Step 2: Jumper Setup
In this step you will need to plug in 7 of the 11 wires. Jumper will be placed in digital plugs 2, 4, 5, 6, 7, 8, and 10; the other sides will be placed in the breadboard as shown below.
11 Jumper Wires
7 Resistors
For more detail: Arduino Electronic Dice using random numbers