In this project, we simulate a die using a touch sensor. Every time the touch sensor is tapped, a random number between 1 and 6 is generated and displayed on the LED Matrix.
The core of the program is the randomSeed(), which is initialized with a random input from analogRead() on an unconnected pin.
As a fun feature, a pattern generator is included for every "roll" of the die!
EXPANDED TECHNICAL DETAILS
Modern HMI Dice Implementation
This project combines high-tech capacitive touch with an animated 8x8 LED Matrix for a sleek, modern tabletop game assistant.
- Capacitive Touch Interfacing: Uses the TTP223 Touch sensor. Unlike mechanical buttons, this sensor detects the change in electric field through a plastic or glass enclosure, allowing for a completely sealed, "Waterproof" die design.
- Bitmapped Graphics Core: The results (1 through 6) are rendered as pictorial "Pips" on the LED matrix. The code includes a frame-by-frame animation of a 3D-rotating die before displaying the result.
Interactive Gameplay
- Animation suspense: The firmware calculates the result instantly but plays a 2-second "Rolling" animation with increasing delay between frames to mimic a die losing momentum on a table.