
From the MAKE Flickr pool
Steve Hoefer shares this photo showing the first iteration of his dice reader project -
Working on a robot that plays dice. Since the “robot” part is easy i started with the dice reader which can read the number of pips on the dice that’s placed face down on it.Version 1 just uses 4 photo resistors with white LEDs behind them. It only works right about 70% of the time and is incredibly sensitive to ambient light, but it’s pretty good for about $0.99 worth of parts and a first try. V2 will add more, smaller, sensors with greater sensitivity.
Judging from the ongoing conversation on his blog, it sounds like the next version will incorporate IR sensors. Have a closer look at his setup on Flickr.
… and for a larger scale, software-intensive approach to the problem, check out GamesByEmail’s Dice-O-Matic.










Sine the opposite faces of a regular die add up to 7 it would be simple to complement the answer so that when it saw 6 spots it reported 7-6 which is the one which is how we normally read them (the upper most face not the one touching the table).
That’s an excellent point. It’s looking like the final design will take the upright die and tip it 90° into a vertically mounted reader.
I wired up all five 5 IR sensors last night and they work better than I could have hoped. (There are 9 possible pip locations, but you need to read at least 5 of them to be sure of what face you’re looking at.) The IR sensors are immediate, definitive and I don’t even have to mess with any calibration or normalization math, or interference from the ambient light like the photoresistors.
I’ll be updating the blog soon with more about the setup and the next steps of getting the mechanical parts working.
// What's Trending
Raspberry Pi Design Contest
Ten Tips for Adhesive Tape
Lost PLA Casting from 3D Prints
Seventeen Sneaky Secret Hides
I Have a (Puzzling) Dream
10 Things to Connect to Your Raspberry Pi
47 Raspberry Pi Projects to Inspire Your Next Build
Teardrop Camper Trailer
// What's Shared
A better way to slice a pumpkin
DIY Nerf Darts
100 Dollar Store Organization Ideas for Craft Rooms and Beyond
In the Maker Shed: Minty Boost USB Charger
Mad’s Mouse House
Lace Princess Crowns
I Have a (Puzzling) Dream
Play the Rings of a Tree Trunk Like a Record
// Most Commented
DIY Hacks & How To’s: Get Emergency Power from a Phone Line
Resin Casting: Going from CAD to Engineering-Grade Plastic Parts
Ten Tips for Screws and Screwdrivers
Ten Tips for Better Measurement
Is it a Hackerspace, Makerspace, TechShop, or FabLab?
Makers on TV: Big Brain Theory
Arduino Announces New Wireless Linux Board
Pitches with Prototypes: Solar Tracker