The basic idea is to turn the dice according the code. When the dice is turned exactly according the code with the right number on the dice facing up, the lit will be unlocked and reveal the goodies that are put inside. The lit is locked by a simple hobby servo, a clever constructed mechanical tilt sensor checks for the right state the dice is in and an always popular Atmega88 does the thinking.
- trueboard_secretdice2.c (codevision)
- codevision-dice.c (codevision, included in trueboard_secretdice2.c)