This dice is based on the Arduino.
It is easy construction and use of few components, which components are:
1 Atmega 8
1 Battery 3v
14 LEDs
a 10k resistor
a AVR icsp connector
a button
and a switch

The ATMEGA8 is programmed via an external programmer, the ATMEGA8 is configured to use the internal oscillator to minimize the maximum The components.
cool project. can you post a schematic and your code?
I'll design the layout and then publish ... But there is nothing complicated ... It was done without writing scheme because he did not know which pins could try to use way more into account the layout of the board compomentes... <br> <br>The code... <br> <br>int buttonState = 0; <br>int brilho = 0; <br>int aumento = 0; <br>long dadoA; <br>long dadoB; <br>void setup() { <br> pinMode(13, OUTPUT); <br> pinMode(10, OUTPUT); <br> pinMode(9, OUTPUT); <br> pinMode(11, OUTPUT); <br> pinMode(7, OUTPUT); <br> pinMode(4, OUTPUT); <br> pinMode(3, OUTPUT); <br> pinMode(2, OUTPUT); <br> pinMode(12, INPUT); <br>} <br> <br>void loop() { <br>buttonState = digitalRead(12); <br>if (buttonState == HIGH) { <br>dadoA = random(1,7); <br>dadoB = random(1,7); <br>} <br>dado_a: <br>if (dadoA == 1) {goto a1;} <br>if (dadoA == 2) {goto a2;} <br>if (dadoA == 3) {goto a3;} <br>if (dadoA == 4) {goto a4;} <br>if (dadoA == 5) {goto a5;} <br>if (dadoA == 6) {goto a6;} <br>a1: <br>digitalWrite(13, HIGH); <br>digitalWrite(10, LOW); <br>digitalWrite(9, LOW); <br>digitalWrite(11, LOW); <br>goto dado_B; <br>a2: <br>digitalWrite(13, LOW); <br>digitalWrite(10, LOW); <br>digitalWrite(9, HIGH); <br>digitalWrite(11, LOW); <br>goto dado_B; <br>a3: <br>digitalWrite(13, HIGH); <br>digitalWrite(10, LOW); <br>digitalWrite(9, HIGH); <br>digitalWrite(11, LOW); <br>goto dado_B; <br>a4: <br>digitalWrite(13, LOW); <br>digitalWrite(10, HIGH); <br>digitalWrite(9, LOW); <br>digitalWrite(11, LOW); <br>goto dado_B; <br>a5: <br>digitalWrite(13, HIGH); <br>digitalWrite(10, HIGH); <br>digitalWrite(9, HIGH); <br>digitalWrite(11, LOW); <br>goto dado_B; <br>a6: <br>digitalWrite(13, LOW); <br>digitalWrite(10, HIGH); <br>digitalWrite(9, HIGH); <br>digitalWrite(11, HIGH); <br>dado_B: <br>if (dadoB == 1) {goto b1;} <br>if (dadoB == 2) {goto b2;} <br>if (dadoB == 3) {goto b3;} <br>if (dadoB == 4) {goto b4;} <br>if (dadoB == 5) {goto b5;} <br>if (dadoB == 6) {goto b6;} <br>b1: <br>digitalWrite(7, HIGH); <br>digitalWrite(4, LOW); <br>digitalWrite(3, LOW); <br>digitalWrite(2, LOW); <br>goto fim; <br>b2: <br>digitalWrite(7, LOW); <br>digitalWrite(4, LOW); <br>digitalWrite(3, HIGH); <br>digitalWrite(2, LOW); <br>goto fim; <br>b3: <br>digitalWrite(7, HIGH); <br>digitalWrite(4, LOW); <br>digitalWrite(3, HIGH); <br>digitalWrite(2, LOW); <br>goto fim; <br>b4: <br>digitalWrite(7, LOW); <br>digitalWrite(4, HIGH); <br>digitalWrite(3, HIGH); <br>digitalWrite(2, LOW); <br>goto fim; <br>b5: <br>digitalWrite(7, HIGH); <br>digitalWrite(4, HIGH); <br>digitalWrite(3, HIGH); <br>digitalWrite(2, LOW); <br>goto fim; <br>b6: <br>digitalWrite(7, LOW); <br>digitalWrite(4, HIGH); <br>digitalWrite(3, HIGH); <br>digitalWrite(2, HIGH); <br>fim: <br>; <br>}

About This Instructable




More by gosvitor:Add a custom programmer on Arduino IDE Arduino eletronic double dice 
Add instructable to: