Moonpreneur Icon

Magic 8 Ball

MoonCampaign by Arturo (10 years)

Arturo presented his Magic 8-Ball project built using a micro:bit and MicroPython. His code uses the accelerometer’s was_gesture("shake") function to detect when the device is shaken. This triggers random.randint(1, 18) to select one of 18 possible preset answers, such as “It is certain,” “It is decidedly so,” “My reply is no,” or “My sources say no.” The selected response then scrolls across the micro:bit’s LED display. Arturo explained the logic clearly, emphasizing both the variety of outputs and the fun unpredictability of each shake. The project combines hardware input detection with randomization for an interactive and entertaining experience.

  • 👍
  • 🎁 49 days left

Your support will go a long way in encouraging Arturo and taking their innovation Magic 8 Ball to new heights.

Magic 8 Ball

terms and conditions

Our Social Impact - We're transforming education globally with free robotics and math workshops in the US, UK, Canada, and Australia. Our workshops have helped 66,000 students alone in the US plus 14,000 students benefit from our four-week sessions.

Impact of MoonCampaigns

5000+

Innovative MoonCampaigns

20,000+

Minutes of Visual Content

1M+

Unique Video Views

40,000+

Unique Feedbacks

80%

STEM Transformation

95%

Increased Confidence

Learning Journey

  • Moonpreneur STEM Program Student

    Project Name: Magic 8 Ball

  • Skills

    Arduino programming, sensor integration, conditional logic, product design, and more

  • Category

    Show n Tell

Impact of MoonCampaigns

MoonCampaigns highlight student's creativity, public speaking, presentation skills, and teamwork, with an impressive track record that speaks volumes. MoonCampaigns, through quarterly Show & Tell, highlight thousands of inspiring learning stories from Moonpreneur students worldwide.

5000+

Innovative MoonCampaigns

20,000+

Minutes of Visual Content

1M+

Unique Video Views

40,000+

Unique Feedbacks and appreciation to kids from community

80%

parents observed transformational changes in their ward's STEM knowledge and leadership skills

95%

Parents Reported Increased Confidence in their child

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

STORY

Total Views:

“Hi, my name is Arturo, and I picked the Magic 8-Ball project for this Show and Tell,” he began, standing confidently.

He held up his micro:bit. “This project works by using random code to pick a random answer — just like the classic Magic 8-Ball toy.”

With a nod from the teacher, Arturo explained the core features. “The code uses if accelerometer.was_gesture("shake"), so if I shake the micro:bit, it will run the next part — random.randint(1, 18). This picks a random number between 1 and 18, and each number corresponds to a unique answer.”

He grinned. “I have a lot of replies stored. Some examples are ‘It is certain,’ ‘It is decidedly so,’ ‘My reply is no,’ and ‘My sources say no.’”

Sharing his screen, Arturo revealed how each random number matched to an answer via conditional statements. After the program picks an answer, the text scrolls across the LED display for the user to read.

“This way,” he continued, “every time you shake it, you get a new, fun, and unpredictable message. Just like asking the real Magic 8-Ball, you never know if you’ll get a yes, no, or something mysterious like ‘Ask again later.’”

Though it was a short presentation, Arturo’s explanation made the process easy to follow — from detecting the shake with the accelerometer, to generating a number, to mapping that number to a stored string, and finally displaying it.

The teacher smiled. “Great job, Arturo — simple, fun, and well explained!”

For Arturo, it wasn’t just about recreating a toy — it was about showing how sensors, randomness, and code can come together to make something interactive and entertaining. And each shake brought an answer… along with a smile.

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

Feedback

See what people around the world are saying about Arturo innovative
Magic 8 Ball project

The Future Belongs to Critical Thinkers

Hard Truth About Future of Work

WEF's Future of Jobs Report 2025 reveals that 40% of employers expect to reduce their workforce where AI can automate tasks . While AI is projected to create 69 million new jobs globally by 2030, it will simultaneously eliminate 83 million positions, particularly in clerical, administrative, and routine cognitive roles. The message is clear: routine tasks are being automated, but critical thinking and communication skills cannot be replaced.


What AI Can Never Replace:
  • Critical Thinking & Analysis

    Rated by 78% of business executives as the most important skill they seek, yet only 34% of college graduates arrive well-prepared in this area

  • Communication Skills

    Essential for collaboration, innovation, and leadership in STEM fields

  • Problem-Solving

    The ability to break down complex, unprecedented challenges and devise creative solutions

  • Adaptability & Resilience

    Mental agility to assess new situations and pivot strategies in rapidly changing environments

MoonCampaign Prepares the Next Generation

When students (ages 7-16) build projects, they're not just learning to code, they're developing the future-proof skills that AI cannot replicate:

  • Technical Skills:

    Arduino programming, sensor integration, conditional logic, and hardware troubleshooting

  • Critical Thinking:

    Analyzing real-world safety problems, designing solutions, and debugging when things don't work as expected

  • Communication:

    Articulating their process, presenting their work, and explaining complex technical concepts in accessible language

  • Digital Marketing & Entrepreneurship:

    Showcasing their innovations publicly, building their personal brand, and learning to pitch their ideas

  • Problem-Solving:

    Overcoming challenges like mixed-up variables and incorrect responses through systematic troubleshooting

You Might Also Like

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