Animated Digital Dice w/printable enclosures

1025
Downloads
1219
Views
Published on June 6, 2012
This thing was Featured on June 6, 2012

Description

This project provides four sets of plans (schematics, board layouts, etc.) for Arduino and AVR based, animated digital dice. Also included are 3D models for printing enclosures for two of the smaller designs.

A (very non-exciting) video of the dice in action may be seen at youtu.be/Kp_W-V4TNko .

The files dice.zip and dice.tar.gz provide the full documentation, source code, .hex files, Eagle CAD files, Gerber files for use with a fab, OpenSCAD enclosure models, rendered .stl files, etc. for the projects. See the index.html file in the distribution for the documentation. These materials are being distributed under the TAPR Open Hardware License, tapr.org/OHL .

The projects demonstrate using the following AVR and Arduino features

* button debouncing,
* sleeping the device using power down mode,
* awakening the device from sleep with a change to a low voltage state on the INT0 pin,
* enabling and disabling the watchdog timer interrupt,
* software PWM using a timer/counter compare interrupt, and
* implementing simple (i.e., non-precise) timed delay functions.

The necessary hardware is straightforward, requiring

* a microcontroller with at least eight digital I/O pins,
* seven LEDs,
* seven current limiting resistors for the seven LEDs,
* a momentary push button switch,
* a pull-up resistor for use with the push button switch,
* an optional bypass capacitor for the microcontroller, and
* a power source such as a 3V coin cell or two AAA batteries for use with an AVR microprocessor.

C language source code for AVR-GCC is provided which has been tested on an Arduino Duemilanove (ATmega328p), an ATtiny24, and an ATtiny2313. The same source code file works for all three processors and can be used as an Arduino sketch.

While the projects are intended for an Arduino, ATtiny24/44/84, or ATtiny2313/4313, the sources can be built for other processors (but may need changes). The documentation also includes links for ordering individual boards from batchpcb.com (starting at $5.50, not including shipping fees).

Instructions

For complete instructions, see the index.html file in the dice.zip or dice.tar.gz files. Those two archives have identical contents.

For printing just the enclosures,

0. Each part -- enclosure lid, enclosure bottom -- is in a separate .STL file. No reason why you cannot print them both at the same time. That's just the way I did them.

1. The dimensions of the parts favor a 0.3 mm slicing height, but use whatever works best for you.

2. The "slop" between the lid's gutter and the bottom's lip is loose: I did that intentionally for folks with printers calibrated differently. You can make it less loose if you want by tweaking the OpenSCAD sources. However, once the enclosures are screwed shut, it won't make any difference.

3. Slice the parts with 100% infill and 3 or 4 shells. Use of extra shells may help prevent issues with the cylindrical posts not having fill between their inner and outer walls.

4. Print them with or without rafts: I printed them without.

5a. Screws needed for the medium sized enclosure: four #1 self tapping screws 5/16 - 3/8 inches long (1.4 - 1.5 mm self tapping screws, 8 - 10 mm long).

5b. Screws needed for the small sized enclosure: two #0 self tapping screws, 5/16 - 3/8 inches long (1.4 - 1.5 mm self tapping screws 8 - 10 mm long).
Tags
This Thing has no tags.
Report as inappropriate

You must be logged in to post a comment.

Remixes

Liked by

Give a Shout Out

If you print this Thing and display it in public proudly give attribution by printing and displaying this tag.

More from dnewman

More from Dice