Step 4: Light it up

Time to light up the breadboard with some Leds. There are 7 leds in all but their leads (+/-) need to be put into different ports in the breadboard. The way to do this on a breadboard is to have 3 Leds with their positive leads going into holes that are side by side, 1 led that needs to have the "positive" leads long enough to skip one hole in the breadboard, and 3 that skip 2 holes in between leads. Check the pictures, it's not nearly as hard as it seems.

After bending the Leds to the correct sizes place the Leds on the breadboard as it is shown below. NOTICE: the cathode(-) ends are going into columns without resistors and the anodes (+) are going into columns with resistors
Please comment if you have questions or suggestions on how to make this instructable better... thanx
You forgot to set the pinMode to OUTPUT for middleLeft and middleRight.<br><br>Great instructable! I love how neat your wiring is. I made LED dice before reading this instructable, but mine looks like a mess.
Hi, i made a arduino dice following http://www.instructables.com/id/Digital-Dice-an-Arduino-project/ - would you know how to make the lights flash randomly before settling on a number (i.e to simulate the 'rolling' of a die)? Cheers
I would just like to emphasize that the code I wrote is not optimized to work efficiently but written for beginners to begin to see how it works. I have updated the code to flash randomly 6 times before picking the final number. Let me know if there are any problems as I have not actually tested it. :)<br><br>http://www.mediafire.com/?bidb4kb3usxe7f3
Nice. An electronic die is exactly what I did as my first from scratch arduino project. :)<br><br>On the random front, as stated, seeding from an analog port seems to work well.<br><br>Also, in the interest of reducing the code, and a possible further exercise for anyone doing this instructable, you can reduce the number of i/o pins down to 4 for a standard d6.<br><br>Nice instructable. You beat me to doing the same one! :)
Heh, just realised how old this instructable was! It has just been posted on electronics-lab.com blog! :)
How do you overcome the fact the the random function in the arduino always uses the same sequence of random numbers, thus making it predictable?
Even if it used the same sequence (which i do not believe it does, i think it works based on the clock of the atmega328 but i haven't read up on it) it is so long that if you memorize the sequence you either have an incredible memory or you use it too much ;)<br />
Well I was trying to make a random number generator to simulate dice. I used the serial.print command to log the sequence random(1,6) and it was always the same! Someone suggested using randomSeed(analogRead(0)) so Ill have to give it a try...<br />
huh i didn't know that... tell me what you find... I thought the random was much like a computers random number that is based off of the clock (ms)...<br />
it looked like some of the risistors were backwards or does it matter?<br />
for resistors it doesn't matter which way they are...<br />in other words resistors are not effected by polarity.. :)<br />

About This Instructable


15 favorites


More by redryno1221: Corsair Link Fan Controller Mod Microview CPU Monitor Arduino: Electronic Dice (using random numbers)
Add instructable to: