When I put together the Entropy library, I started prototyping a simple electronic dice project to demonstrate the library. I originally started with a simple array of seven led's arranged as the dots on a six sided die; however, I realized how little of the resources that used from the Arduino, and came across the 8x8 LED matrices from Adafruit and realized that these would be perfect for graphically representing a die. As I developed the program, I decided to add other types of dice (the old D&D 4,8,10,12, and 20 sided dice). I have been tinkering with this prototype on and off for over a year and I have added a total of ten modes to the device.
- DICE - Simulate two six sided dice
- DICE 4 - This mode simulates two dungeons and dragons style four sided dice
- DICE 8 - This mode simulates two dungeons and dragons style eight sided dice
- DICE 10 - This mode simulates two dungeons and dragons style ten sided dice. The tenth side is displayed as a 0. This means that this mode can be used to directly generate a random number in the range 00 - 99.
- DIE 12 - This mode simulates a single dungeons and dragons style twelve sided die.
- DIE 20 - This mode simulates a single dungeons and dragons style twenty sided die.
- CARD - In this mode the device will simulates a randomly shuffled deck of 52 standard playing cards (no joker). allowing the drawing one card from the deck with no repeats. After all 52 cards have been draws, the deck will be reshuffled and you can start over.
- HEX - This mode randomly produces a single hexadecimal number in the range of 0x00 - 0xFF
- BIN - This mode produces sixteen random 8-bit binary random numbers displayed on the two 8x8 matrices. Since the entropy generator used only generates 8 bytes per second, and has a queue of up to 64 bytes, this mode can empty the queue and take a second or two to display after 'rolling' the dice.
- PASSWORD - This mode slowly scrolls a eight character (0-9, a-z, A-Z. -, and +) password across the two displays.
The Arduino sketch, a circuit diagram, parts list, and a video demonstrating all ten modes are available from; https://sites.google.com/site/astudyofentropy/project-definition/timer-jitter-entropy-sources/entropy-library/led-matrix-dice