Battery-less Electronic Dice For All Your D&D Needs

electronic_20_sided_die

[Anthony] is a big fan of Dungeons & Dragons, but he thought the game would be far more fun to play with an electronic die rather than the traditional fare. Electronic dice are nothing new around here, though we can’t help but like his design.

He wanted to keep his electronic die as small as possible while ensuring it would last an entire gaming session, so rather than use a battery to power it, he opted for a super capacitor instead. His 1F 5.5V cap keeps the PIC18 and 22 SMD LEDs chugging along quite nicely without ever requiring a break in the action for a charge.

The electronic die looks great, and give him the choice of rolling a 4, 6, 8, 10, 12, and 20 sided die with a simple push of a button. While a bit less interactive than tossing a die on the table, we certainly wouldn’t mind having one.

Two Dice, One 8-pin UC

[Mike Shegedin] makes full use of an 8-pin microcontroller with this ATtiny13-based dice project. With a maximum of six I/O pins (that includes using the reset pin as I/O) he needed a couple of tricks in order to drive 14 LEDs and use a momentary push button for user input. We’re certainly familiar with the concepts here, but it still took quite a while to figure out what is going on with the schematic that [Mike] posted.

You’ve probably already guessed that he’s using Charlieplexing to drive more LEDs than he has pins. But when we started looking at the layout we thought he had drawn the schematic wrong, because there are six pairs of LEDs where the two diodes in each pair a not reverse biased, but hooked up in parallel. That, plus the fact that his battery is hooked up backwards. After several minutes of study the light bulb finally clicked on. Dice add pips (the dots on each side of a die) in pairs with the exception of the center pip. That means that you only need to control four total lines for each die (three pairs plus the center pip). There’s two ways to handle this, you could use four rows and two columns with traditional multiplexing, or you can reverse bias the two sets of LEDs for each die and use Charlieplexing. The former is a bit easier to program, the latter saves you one I/O pin and meant that [Mike] didn’t need to use the reset pin as I/O.

This is a clever addition to the collection of dice projects we’ve seen like the battery-less die, and the ATtiny2313 powered dice.

ATtiny Hacks: Look Ma, No Batteries!

ATtiny Hacks Theme Banner

[Gadre] built his own ATtiny project without using any batteries. It’s an electronic Dice (or die if you’re being critical) which uses induction to charge a storage capacitor to act as the power source. The voltage generator is made from a tube of Perspex which houses a set of rare-earth magnets. At the enter of the tube [Gadre] machined a channel wich accepts about 1500 windings of 30 AWG magnet wire. When someone shakes the tube back and forth the magnet passes the wire, inducing a current.  The product is stored in a 4700 uF capacitor, which feeds a boost converter to power the rest of the circuit.

The ATtiny13V that controls the circuit is running its internal RC oscillator at 128 kHz, the lowest setting possible in order to minimize power consumption. After a good shake the user can press a button to roll the die, which is then displayed for several seconds on a group of seven LEDs. See for yourself in the video after the break.

Continue reading “ATtiny Hacks: Look Ma, No Batteries!”

Roll The D’Icey

Most of the dice related hacks we run into have to do with pseudo random number generation, but today we saw something different. This sleek looking jumbo die is actually a prize holding box opened by a secret sequence of rotations. Using an accelerometer and an ATmega 328 with a sub-micro servo to control the locking mechanism. Worried about the batteries going flat and losing your treasure indefinitely? Good news! The batteries are accessable without giving away the secret inside.

It also turns out that this is an update to an earlier project from the same laboratory, so be sure to check that out as well to see where this build came from. Code is available for anyone looking to make their own, as well as a useful parts list.

[via Hacked Gadgets]

Electronic Dice Has Option For 20 Or 100 Sides

[Bluewraith] built himself an electronic dice using a 555 timer and 4017 counter. This is a classic project and he enjoyed doing it but wondered about making a 20-sided dice. So he grabbed his Arduino and got to work. A switch on the final project selects between 20 or 100 sides. He used a MAX7219 to control the 7-segment displays, and a standalone AVR chip for the rest of it.

If you missed it back in October you should also look in on this 6-sided dice. It also uses an AVR running the Arduino bootloader but a mercury switch allows the player to shake the box in order to start a roll.

One last note, we made a conscious decision to use the word ‘Dice’ instead of the grammatically correct ‘Die’ which is its singular version. We think ‘Die’ can be a bit too confusing and we’re not the only ones.