ball-switch

Suppose you wanted to build electronic dice for a board game. Sure, you could use discrete components to build a clock circuit into a decade counter and BCD to 7-segment decoder, etc. Or you could write some random number generating code for an Arduino and use LEDs. That’s obvious and has been done before. But professional toy inventors have to be crazy clever and get the same effect, but for an insanely low, dirt-cheap cost. Can you do it?

Here’s one approach that costs next to nothing: It’s just LEDs wired up with some cleverly designed SPDT switches. Each switch is made of three parallel wires and a metal ball in a cage. When you shake the cage, the ball randomly lands on either one pair of wires or the other pair. Only one pair of wires completes the circuit, lighting the LED.

LED-dice-wiring-0-7

To make an electronic die, I’d wire up 4 LEDs to one switch, 2 LEDs to the next switch, and a single LED to the last switch. Shake them all together and you’ll get a random number of LEDs to light up, from 0 to 7. For games that need a number from 1 to 6, just “roll” again if you get 0 or 7 lit LEDs.

Your challenge: Can you rewire the switches so that you’ll only get numbers 1 thru 6 — so that “0” and “7” never appear? Here’s a blank for you to draw your wires. (Hint: the new version may not be a “fair” die, but its average roll yield will be the same as a real die.)

Click here to download the solution to the challenge.

LED-dice-blank-wiring

circuit-in-cube@72

Project Steps

Drill holes.

Make a ball cage from acrylic by drilling three large through holes and then 3 small holes at 90 degrees. Drill holes for LEDs in the small panel.

Complete the ball cage.

Strip the heavy gauge solid core wire, cut into pieces and thread into the small holes, and super glue the ends to stack in place.

Assemble the switch and LEDs.

Solvent bond the switch to support and wire up the switches and LEDs: Click here to download the solution to the challenge.

Assemble.

Assemble and solvent bond the sub assembly.

Fit to cube (cut a hole in back for an on/off switch). Test!

Finish (optional).

For a more polished look, paint the cube white.

Leave the top clear, and add a piece of frosted mylar for a backlit look.