Using AtTiny2313 microcontroller Build an electronic polyhedral die

Dice are fun. Polyhedral dice used in D & D are even more fun, particularly in big handfuls of different sizes. But a handful isn’t always practical.
Ever since I saw the dragon bone electronic die wand advertised in the back pages of Dragon magazine when I was a kid, I wanted an electronic device to act as a substitute for all my dice.
electronic polyhedral dieThis device won’t substitute for the tactile feel of rolling a handful of funny dice, but its great for traveling games and is a fun project as an introduction to soldering and micro controllers. Having one of these proclaims to all your geek friends that you are another kind of geek entirely.
If you like this, please vote for it in the laser challenge. The box is pretty enough, but if I had a laser cutter I would make my own in the shape of a 12 sided die, cutting the sides out of acrylic with a precision that I could never achieve on my own.
Please see the notes in step 15 for more of my thoughts on what I would do with a laser cutter if I were to win the contest.

You will need the following tools:
  • Soldering iron.
  • Dremel and/or other tools to cut and shape the enclosure if needed.
  • Diagonal cutters.
  • Hot glue gun (optional).
  • Vice or Helping Hands to hold the board while soldering (optional, but highly recommended).
  • Multimeter for testing.
  • USBTinyISP or other AVR programmer to program the firmware. See step 10 for other options.

Electronics (Prices in US $ from mouser.com)

1- AtTiny2313 microcontroller β€” $1.85
1- 20 pin dip socket β€” $0.17 (optional, for AtTiny 2313)
1- tilt switch β€” $1.51
1- Pushbutton switch β€” $0.91 (Use any momentary pushbutton you like).
1- 20 mm battery holder β€” $0.91 (for cr2032 battery)
2- 33 ohm resistor β€” 2 X $0.10 = $0.20
1 cr2032 20 mm 3 V coin cell battery β€” $0.45 (these are ridiculously expensive in stores)
1- 2 X 3 break off pin header β€” $0.10 (For ISP)
1- eDice printed circuit board β€” ~1.6 square inches = $?? (Depends on how you get it printed)
1- Common cathode 2 digit 7 segment displays (red) β€” $1.57 (Also comes in Yellow, Green and Blue)

Total = $7.22 + board cost and optional enclosure.
Other Materials:

  • Solder.
  • Wire (for connecting button and battery)
  • Glue (I prefer hot) to attach device in optional enclosure.
  • Small bit of heat shrink tubing.
  • The optional box or other object you are mounting the die in.

For more Detail: Using AtTiny2313 microcontroller Build an electronic polyhedral die


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top