Well, I just got my Arduino kit in the mail yesterday, and I was very happy to get started! After about an hour or two, I decided to start making something fun:

An electronic dice. I had to make this myself, because there were no instructables that i could find with search! D:

Mine is not very advanced, but it will make a great beginner project as I built it in less than 20 minutes at about the most beginner level you can get. If you can think of any improvements, I encourage you to post them in the comments!

There were 1 or 2 pin placing errors, but I will provide a picture with where the pins should go at the end of the instructable.

Step 1: The Materials

For this electronic dice that I built, you will need:

1     Arduino UNO
1     Arduino Cable
1     Breadboard
7     Green LED's
1     Red LED
4     Long jumper wires
17   Small jumper wires
1     10k Ohm Resistor
1     Mini button switch


-Foam Core board
-X-acto knife
-9v battery holster
<p>when i clicked the button the LEDs of random number generated.......but LEDs keep looping instead of pushing tha button for 2nd time why?</p>
<p>This code works really well for me, although I had to adjust it because I am using more than 6 numbers. The only problem is that it keeps looping. How do I get it to stop blinking?</p>
<p>I made it but I'm trying to figure out how exactly it obtains a random number. It is a fun project I just feel stupid for not fully grasping that concept</p>
<p>First instructable I tried and didn't encounter a single problem. Fun project and great instructions! :)</p>
not quite sure what that resistor is wired to (a circuit diagram would help), but you should really have one resistor for each LED. <br> <br>Also unsure what the progress LED is for? <br> <br>As to the button, search for button debouncing. There is a library for it, it'll make the read a lot cleaner (probably doesn't hurt here, but in future).
If the drop voltage across the LEDs is 3.3 or more then no resistor should be needed.
To power the LEDs with 3.3V you could connect the +VE of the LED to the 3.3V on the arduino and the -VE of the LEDs to the digital pins, when the pin is low, the LED will turn on, and when the pin is high the LEDs won't light up because the LED is polarised.
I'll look into the debouncing for the button. As for the progress LED, I really don't know WHY exactly I put it in but I figured it would be cool to have an LED showing when the randomizer is going :D <br> <br>On my next revision I most definitely include these suggestions, Thank you!

About This Instructable




More by .A.:Arduino Project - E-Dice! (Beginner) Simple Robotics for Beginners! 
Add instructable to: