A Digital Dice

MoonCampaign by Ethan (10 years)

At Moonpreneur, we empower students through hands-on product building, transforming their ideas into reality. Our Mooncampaign highlights their creativity, and innovations while fostering leadership, entrepreneurship, teamwork, and communication. Join us in shaping the future, one idea at a time!

Likes

Rating

14 days left

Your support will go a long way in encouraging Ethan and taking their innovation A Digital Dice to new heights.
A Digital Dice
terms and conditions
:

A Digital Dice

:

Ethan

:

Show and Tell

:

Show n Tell

:

Coming Soon

About the Innovator

Ethan's Dice Program turns a Micro:bit into a fun, interactive digital dice. By simply shaking the Micro:bit, the accelerometer detects the motion and displays a SILLY face, followed by a random number between 1 and 6, just like a real dice roll. After a short pause, a FABULOUS face appears, adding a playful twist. Future improvements could include dice roll animations, sound effects, or even a multiplayer version using radio communication between Micro:bits.

Want your child to be part of an innovative and creative competition?

STORY

Total Views:

Have you ever wanted to roll a dice without actually having one? I created a fun Dice Program using the Micro:bit that does just that! With a simple shake of the Micro:bit, you get a random number between 1 and 6, just like rolling a real dice. It’s a great way to explore how randomness and user interaction can be combined in coding.


Here’s how it works: the Micro:bit uses its built-in accelerometer to detect the shake gesture. Once shaken, it first displays a SILLY face image for a fun touch, then shows a random number from 1 to 6, simulating the dice roll. After a short pause, a FABULOUS face pops up, making the entire experience playful and engaging.


Looking ahead, I could expand this project by adding animations for each dice number or even sound effects to make it more immersive. Another idea is to create a multiplayer dice game using radio communication between Micro:bits. The possibilities are endless when you mix creativity with coding!

Every child is gifted. Discover how yours can innovate and lead

Comments

You Might Also Like

Every child is gifted. Discover how yours can innovate and lead