Moonpreneur Icon

Mystery Vending Machine

MoonCampaign by Akshobhya (11 years)

Hi, my name is Akshobhya and I’m in sixth grade. For my project, I built a “mystery vending machine” using an IR remote, RGB LEDs, and some creative programming. Just like a real vending machine, you select a number from 1 to 6 with the remote, but you don’t know what prize you’ll get until you try! The LEDs light up in different colors depending on your choice, and each number gives you a different surprise message printed on the serial monitor. My code uses variables for the colors, pin modes for hardware, and a switch-case statement to handle all the responses.

  • 👍
  • 🎁 Campaign Ended

Your support will go a long way in encouraging Akshobhya and taking their innovation Mystery Vending Machine to new heights.

Mystery Vending Machine

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: Mystery Vending Machine

  • 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

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

STORY

Total Views:

Hello! My name is Akshobhya, and as a sixth grader, I’ve always loved playing with gadgets that surprise and delight people. That’s why, for my latest school project, I decided to make a “mystery vending machine”—but with a techy twist!

Instead of coins or buttons, my vending machine uses an IR remote. When you press a number between 1 and 6, you don’t just get candy or a toy—you get a surprise message and the RGB LED lights up in a cool color, all programmed by me. The best part? You have no idea what your “mystery prize” will be until you try.

Here’s how it works: when someone picks a number, say number 4, the code uses a switch-case statement to check which number was selected. For number 4, the vending machine flashes purple (mixing red and blue), and the serial monitor displays: “You won a trending video game. Congratulations!” Another friend might choose number 1, which gives a white light and the message: “You first won a free solo. Congratulations!” Each number triggers its own unique color—green, blue, cyan, yellow, or even pure white if you hit zero.

The behind-the-scenes magic involves variables (which store the color values for the LEDs) and pin modes (to control which hardware parts are active). The IR receiver is set up to listen for remote signals, and each time someone plays, the code loops through again, ready for the next mystery.

I loved demonstrating my invention, watching friends wonder what surprise would come next. This project taught me much about coding, electronics, and making everyday things more fun and interactive. I can’t wait to build an even cooler version next time—with real prizes inside!

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

Feedback

See what people around the world are saying about Akshobhya innovative
Mystery Vending Machine 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