Arduino workshop: electronic dice

The electronic dice of me and Anouk van der Wulp consisted of 7 LEDs for the dice and one extra LED to make a flower. The reason why we used 7 LEDs, is because we wanted to recreate the configuration of dots like real dice.

When the button is pushed, the flower LED glows and the other LEDs dim. When the button is released, the flower LED dims and a random number appears on the dice. The dice keep glowing untill the button is again pushed.

We started of with soldering the LEDs, resistors, a button and the wiring on a board. The next step was programming the Arduino to choose a random number between 1 and 6 and making it appear as such – in the correct configuration – as LEDs lighting up. This was a good excercise to explore the programming language a bit more, and to see what works and what doesn’t work. We finished by making a neat casing for the arduino and the board.

Recent Related Posts