Electronic dice application for the mBuino platform. Notes: The mBuino starts in Demo mode. In Demo mode the LEDs are lighted, showing sweeps and demo rolls. Connect a button or tilt-switch between P0.4 and GND. No soldering required! When the switch is triggered mBuino goes into Roll mode. In Roll mode mBuino starts with rapid flickering LEDs. Each subsequent switch trigger will perform a roll of the dice, of which the result is shown for ten seconds unless the switch is triggered for another roll. To preserve power, Power down mode is entered after inactivity in Demo mode or Roll mode. Press any button to revive.
Fork of mBuino_Dice by
mBuino_Dice
The hardware: No soldering required
As you can see in the picture gallery below, this is a very simple mBuino project, requiring only one extra component: a switch such as a push button or a tilt switch.
Push button
The push-button I used fits neatly between P0.4 and GND. By just bending the legs flat to the PCB, the button attached sturdy enough to make a usable connection.
Tilt switch
The tilt switch version is much more fun. No pushing, just a shake to roll the dice! In the tilt switch version two short wires were used to connect the switch. The wires were twisted around the legs of the tilt switch without any soldering! By adjusting the horizontal level of the switch you can make the dice react more sensitively to small movement.
For a production version, I would of course make it all a bit more durable by soldering the connections and using hot glue to keep everything in place. But going that route, I would also want to make a nicely fitting box, perhaps use other LEDs in a traditional dice-eye position and add an on-off switch...
History
0.1.140916 Using the Outrageous Circuits mBuino platform instead of LPC11U24 (available now); Renamed LED ports to newly available mBuino LED constants; Earlier power down after dice roll, showing by flashes slowing down
2014-09-16, by maxint [Tue, 16 Sep 2014 08:19:55 +0000] rev 6
0.1.140916 Using the Outrageous Circuits mBuino platform instead of LPC11U24 (available now); Renamed LED ports to newly available mBuino LED constants; Earlier power down after dice roll, showing by flashes slowing down
Incorporate further energy savings in power down mode. Kudos@AndyA
2014-09-15, by maxint [Mon, 15 Sep 2014 16:35:48 +0000] rev 5
Incorporate further energy savings in power down mode. Kudos@AndyA
Use power down mode to safe even more power than deep sleep.
2014-09-10, by maxint [Wed, 10 Sep 2014 10:00:23 +0000] rev 4
Use power down mode to safe even more power than deep sleep.
0.1.140908 Added deep sleep mode, explanatory comments, incorporated suggestions, improved randomness
2014-09-08, by maxint [Mon, 08 Sep 2014 10:01:38 +0000] rev 3
0.1.140908 Added deep sleep mode, explanatory comments, incorporated suggestions, improved randomness
First working version of electronic dice for mBuino, using the seven standard LEDs.; Put a switch between P0.4 and GND to switch from Demo mode to Roll mode and to roll the dice. For best results use a push-button or tilt-switch. No soldering needed!
2014-09-01, by maxint [Mon, 01 Sep 2014 18:59:39 +0000] rev 2
First working version of electronic dice for mBuino, using the seven standard LEDs.; Put a switch between P0.4 and GND to switch from Demo mode to Roll mode and to roll the dice. For best results use a push-button or tilt-switch. No soldering needed!
First working version of electronic Dice for mBuino.; NOTE: connect action button between P0.4 and GND.
2014-09-01, by maxint [Mon, 01 Sep 2014 11:33:47 +0000] rev 1
First working version of electronic Dice for mBuino.; NOTE: connect action button between P0.4 and GND.
Initial version
2014-07-23, by Architect [Wed, 23 Jul 2014 19:02:43 +0000] rev 0
Initial version