Introduction: ATtiny85 LED Dice

Picture of ATtiny85 LED Dice

Today I will show You my new project - LED Dice using a ATtiny85.

When You press the button, it generates a number randomly and displays it as a die.

Step 1: Materials

Picture of Materials

Parts:

  • ATtiny85 (also You can use ATtiny45 and ATtiny25)
  • DIP8 socket
  • 7 green LEDs (3V)
  • Tact switch
  • 10kΩ resistor
  • Single side perfboard (12 x 22 holes)
  • 2 batteries with holder

You also need:

  • Wire for making paths
  • Heat shrink tubing for isolate paths
  • Solder and rosin
  • Soldering iron
  • Third hand
  • Pliers
  • Hot glue gun

and Arduino for programming ATtiny.

Step 2: Schematic and Design

Picture of Schematic and Design

Here is a schematic and design (both done in Fritzing) of my LED Dice.

Step 3: Soldering Time!

Picture of Soldering Time!

Put the elements on perfboard and solder them. Next make the paths using wire and heat shrink tubing.

Step 4: Prepare Battery Holder

Picture of Prepare Battery Holder

Remove the wires from their original locations and put them in the lower holes. Next shorten wires and cover them with solder.

Step 5: End of Soldering.

Picture of End of Soldering.

Now solder the battery holders cable to perfboard. Next hot glue the board to battery case.

Step 6: Program the ATtiny Using Arduino

Picture of Program the ATtiny Using Arduino

How to program the ATtiny you will learn from this instructable.

I prepared amazing code.

After the programming, put ATtiny to finished board. Remember to the dot next to the first pin.

Step 7: Done

The ATtiny85 LED Dice is done.

This was my first Instructable.

I'm sorry for its poor quality.

Comments

Mittlig (author)2017-07-16

i have rebuild it , but it Shows me always the Same Number

I dont no why

mloro (author)Mittlig2017-08-08

I'm facing quite exactly same issue. I will need to double check my connections. I have it starting running as soon as I connect the power (no matter if I change how the button status is read from the attiny). Ah, btw I'm using an attiny45. Also speed for first random numbers is far slower that the one on your video.

iBaeton (author)mloro2017-08-08

It might run slowly because you might choose wrong clockspeed in Arduino IDE. I don't why it starts running when You connect the power, could You send me picture of connections between attiny, button and power?

mloro made it! (author)iBaeton2017-08-10

See attached the solder I've done. I've rechecked them and all seems ok to me. I'm going to try to re-program the tiny45 with different frequency to see if that make any change but I don't think so

iBaeton (author)mloro2017-08-10

Can You check with multimeter what voltage is between ground and the button input pin when the button is pressed, and not pressed? That might be why it starts displaying when You just connect the power

When you will program attiny try to choose 8MHz internal clock in Arduino IDE

mloro (author)iBaeton2017-08-18

It seems fine, when not pressed it is 0 volts, when pressed it goes high to around 2 volts (I'm powering it with a 3v battery clip)

iBaeton (author)Mittlig2017-07-28

Have you connect and program everything correctly?

mloro (author)iBaeton2017-08-08

I will drop you an image in the next days as soon as I can (I'm a hobbyist so I work on electronic stuff only in the weekend generally). About the programming speed, I'm using a self made programming shield over an working on top of an Arduino Uno set as ISP programmer. This shield has an 16Mhz crystal so I've set the programming speed to that value (will double check though also programmer connections as maybe the crystal is just for the atmega328 socket of the shield). About connections I've followed your steps so cannot say right now, will check and drop a picture if everything is ok from my point of view.

Akin Yildiz (author)2015-03-11

very nice work keeping it sleek and simple. you should try to design a 3D printed cover for it. and then sell them online as electronic dice systems :)
.
check this out, it may give you ideas; https://www.instructables.com/id/Custom-arduino-par...

.
welcome to the community.!

iBaeton (author)Akin Yildiz2015-03-14

I'd like make a PCB and sell them as kit for self-assembly. 3D printing is too expensive for it...

tomatoskins (author)2015-03-11

I don't know what you are talking about, this is an excellent first instructable! Thanks for sharing and being a part of the community!

iBaeton (author)tomatoskins2015-03-11

Thanks, I don't think so, because I am not Englishman, I'm from Poland.

About This Instructable

3,609views

68favorites

License:

More by iBaeton:ATtiny85 LED Dice
Add instructable to: