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.
This 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.
- 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
Leave a Comment
You must be logged in to post a comment.