I recently made this digital die using the Arduino micro controller and a few commonly available components. I also built a processing application for displaying the numbers on the computer screen.
When the device is switched ON or reset, it takes about 3 secs to config. itself to the surrounding lighting conditions. During this auto configuration the device registers two values ( highest and lowest ) and the midpoint of these values is used as the critical value (lighting condition below the critical value triggers the device). Once configured , the die can be used (to display random numbers between 1 and 6) by either pressing the switch or hovering your hand above the device. Moving your hand above the device changes the lighting conditions hence triggering the device. This auto config can also be used to change the sensitivity level of the device by controlling the lighting conditions during the configuration.
0 comments: