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.
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: The Materials
For this electronic dice that I built, you will need:
1 Arduino UNO
1 Arduino Cable
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
-9v battery holster
Step 2: Attaching the LED's to the Board
For the LED's, you want to put them at the very edges of the breadboard (NOT the + and - tracks) with the big pins of the LED's in spaces 5, 10, and 15. The negative pins will be facing towards the left of the picture. Do this for both of the sides.
The middle LED is a bit trickier, and it involved pulling the pins a little wider and having them on the 11 and 8 row on either side (You cannot have them on 9 and 10 because they conduct in rows)
For the red one you can put it wherever you want, as long as it is away from the green ones.
Step 3: Attaching the Wires to the LED's
For this step you will be attaching 7 small jumper wires to the positive sides of the LED's. I color coded mine to make it prettier and easier to do.
Once that is done you will want to attach the wires to the terminals on the arduino. I will mark the third picture to make it easier to understand
LED 1/red = pin 13
LED 2/orange = pin 12
LED 3/yellow = pin 11
LED 4/green = pin 10
LED 5/blue = pin 9
LED 6/white = pin 8
LED 7/black = pin 7
Red LED = pin 2 (digital)
Step 4: The Ground Wires
Now you want to add the ground wires to the negative lane at the top of the board. You will use 2 big jumpers for this part.
Once those two wires are in place at the top lane there, you will need to add 8 small jumpers onto the lanes where the big wires have landed.
Now comes the sort of tricky part. You need to attach a ground wire to a negative terminal on each LED. It will take a little bit of precision but once you have those in place you are nearly complete.
Step 5: The Button
For this step you will need 1 small jumper and 2 large ones. You will also need the button and the resistor.
Start by placing the button on an unoccupied lane, bridging between both halves like in the picture. Once you have that firmly in place you can add the last few pieces (which I drew on a piece of board for simplicity sake)
Place the components further towards the edge if you have big fingers. Otherwise it may not have enough room.
Step 6: Cover
If you want, and have the foam board, I would suggest covering up the bare led's. It makes it much nicer looking and easier to handle!
All i did was roughly mark the led spaces and twist an x-acto knife around inside. bam, done.
Step 7: Check Connections
The button needs to be attached to slot 4, and the indicator to slot 2. I made this mistake in my picture.
Step 8: The Code
I wrote this code myself. It seems to work just fine, I put in the delays to prevent from the button being smashed or spammed to cheat. If you know how to improve the code let me know, but if you don't it works just fine as is!
Sorry, i had to put it in .zip format because i was getting errors uploading as a .ino
Step 9: Done!
One more thing I forgot to add: It will also show the values in the serial monitor if you choose to plug it in to your computer. Unfortunately, my video of that was corrupted but I DO have a regular video of it operating off of a battery pack.
------- If you have any questions just leave them in the comments i'll try my best to answer---------
Participated in the
Make It Glow
1 Person Made This Project!
lisamaria made it!