Skip to content

About

Magic Bot Workshop: a robot named Sparkle, created by Megaspy πŸ¦„πŸ•΅οΈ with DFIR-life (parent & mentor). Vibe coding for kids.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

54 Commits

Folders and files

Repository files navigation

Magic Bot Workshop πŸͺ„πŸ€–

Created by Megaspy πŸ¦„πŸ•΅οΈ (age 7) with DFIR-life (parent & mentor). All the ideas, names and picks are Megaspy's; DFIR-life did the typing.

A kid's vibe coding workshop: she dreams up ideas for her robot Sparkle, picks from moving pick-a-number pages, and watches them come alive on a Seeed XIAO ESP32S3 Sense (camera, mic, motion sensor, tiny OLED screen). Shared in the hope that other families find it useful. See the course.

Sparkle's home page: Hogwarts and Tests The Great Hall menu of magic games The Sorting Hat says Gryffindor

🏰 What Sparkle can do

Every game has a page on Sparkle's web site (http://sparkle.local) and shows up on its tiny 72Γ—40 screen.

Owl Post
πŸ¦‰ Owl Post: an owl flies a letter onto Sparkle's screen
Catch the Snitch
🟑 Catch the Snitch: clap when it's in the box (with Megaspy's 2-second rule)
Sorting Hat
🎩 Sorting Hat: shake Sparkle to be sorted
Potion Mixer
πŸ§ͺ Potion Mixer: 3 ingredients, shake to stir, 12 potions to find
Wand Wave
πŸͺ„ Wand Wave: swish Sparkle to cast Lumos, Accio, Leviosa…
Dance
πŸ’ƒ Dance: clap and the unicorn does the Heart Twirl

Plus a πŸ”§ Tests menu (lights, sounds, camera, screen, memory card, Wi-Fi) and a πŸ“Ί Spy Camera on a second board, the "Cheap Yellow Display", that shows Sparkle's camera over Wi-Fi.

πŸ“± Sparkle's Remote (the yellow touchscreen)

A "Cheap Yellow Display" (ESP32 + 2.8" colour touchscreen) is Sparkle's remote: tap a game and Sparkle switches to it, while the yellow screen shows the colourful part (house crests, spell names, potion pictures, a Quidditch pitch, letters from Sparkle). The action still happens on Sparkle: you shake it, clap at it, swish it like a wand.

Menu
🏰 The menu: tap a game
Gryffindor
🎩 Sorting Hat: shake Sparkle, get your crest
Hat thinking
πŸ€” The hat thinks out loud
Snitch
🟑 Snitch: clap at Sparkle when it's in the box
Win
πŸ† 10 catches wins
Owl letter
πŸ¦‰ Owl Post: Sparkle writes back
Lumos
πŸͺ„ Wand Wave: swish Sparkle, cast a spell
Potion
πŸ§ͺ Potions: 3 ingredients, shake to stir
Recipe book
πŸ“– The recipe book remembers

These pictures come from a CYD emulator (make sim): it runs the real yellow-screen code on a laptop, with a pretend Sparkle answering, and saves each screen. It already caught two real bugs before they reached the device (a missing font and scrambled picture colours). The camera picture in the emulator is a pretend photo.

All the pictures the yellow screen uses

The pictures the yellow screen uses

Code: firmware/cyd/cyd_menu. Pictures are made from Noto Color Emoji by tools/emoji_icons.py. Screen settings come from TalkingSasquach's SquachWatch-CYD. The house crests are our own shields with animals, not the official ones.

🎨 How she decides: pick-a-number pages

Every choice is a page of numbered, moving previews with a πŸ”Š button that reads it aloud. She says a number; the AI builds it.

Name the robot
Name the robot (she picked 1: Sparkle)
Dance picker
Unicorn Dance Party (picked 8: Heart Twirl)
Wizard School
Wizard School (picked Owl Post, Snitch, Sorting Hat, Potions, Wand Wave)
Wizard Makeover
Wizard Makeover (picked 7: Potions Dungeon)
Sparkle Gets a Friend
Sparkle Gets a Friend (coming next)
IF THEN ELSE
IF … THEN … ELSE (for her logic lessons)

All the pages: pickers/. Her ideas, picks and badges: IDEAS.md.

πŸ“š Course: Vibe Coding for Kids

▢️ Start a session

cd ~/workstation/github/604Security/magic-bot-workshop
claude

Then type /sparkle. The assistant checks the robot, opens its web page, and asks her for the next idea.

  • Flash Sparkle: make petbot-test (or make flash-safe SKETCH=firmware/petbot_test with a flaky cable)
  • Flash the yellow screen: make cyd-flash CYD_SKETCH=firmware/cyd/cyd_menu
  • See the yellow screen without flashing: make sim (pictures land in docs/screenshots/cyd-*.png)

Started from ai-petbot. See CLAUDE.md for hardware, toolchain, and the kid-mode rules.

Screenshots use demo values (her handle, no network details).

πŸ™ Thanks

  • TalkingSasquach for SquachWatch-CYD: its tested Cheap Yellow Display screen settings got the yellow screen working first try, and its PC emulator inspired our make sim.
  • Marcelo Rovai and Prof. Vijay Janapa Reddi for the Harvard Machine Learning Systems XIAO labs (mlsysbook.ai), which got Sparkle's hardware running.
  • Noto Color Emoji (Google, SIL Open Font License) for the pictures on the yellow screen.

Licence

  • Code: MIT (LICENSE)
  • Course, ideas, pick-a-number designs and screenshots: CC BY 4.0 (course/LICENSE.md). Please credit Megaspy.

Harry Potter names are used here for a family's private fun and learning; this project has no connection with the Harry Potter books, films or their owners.

About

Magic Bot Workshop: a robot named Sparkle, created by Megaspy πŸ¦„πŸ•΅οΈ with DFIR-life (parent & mentor). Vibe coding for kids.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages