IoT Hardware · Student Handout

Build Three Toys with Claude

Make three fun toys by asking an AI called Claude, then play them with a Makey Makey board.

What you need

  • A laptop with a web browser.
  • A free Claude account: open claude.ai and sign in. Your app appears live in the preview panel (an Artifact).
  • Later: a Makey Makey board, alligator clips, and a banana, foil, or playdough.

Three steps

  1. Open claude.ai and paste a prompt below.
  2. Play the toy in the preview panel with your keyboard.
  3. Clip on a banana and make it yours.

Makey Makey key map

Keyboard keyTouch this
SpaceFront: Space pad
↑ ↓ ← →Front: arrow pads
W A S D F GBack of the board

Makey Makey pretends to be a keyboard, so touching a banana is the same as pressing a key. Your code does not change at all.

Make it yours

  • Ask Claude for your own sounds or colours.
  • Turn the catch game into a banana joystick.
  • Add a high score, or a two-player mode.

The three prompts to paste

1 · Banana Piano · Easy Make a fun web-page piano. When I press Space, the arrow keys, or W A S D F G, play a different musical note and flash a big colourful button for that key. Make it work with a normal keyboard.
2 · Memory Game · Medium Make a memory game like Simon Says. Show four big coloured pads for the Up, Down, Left and Right arrow keys, each with its own sound. Flash a sequence of pads that gets one longer each round, and I repeat it with the arrow keys. Show the round number, and say game over if I press the wrong one. Make it work with a normal keyboard.
3 · Catch & Dodge · Challenge Make a simple web game. Good fruit and bombs fall from the top. I move a basket with the Left and Right arrow keys to catch the fruit for points but dodge the bombs. Catching a bomb costs a life, and the game speeds up over time. Show the score and lives. Make it work with a normal keyboard.
Safety: only use food, foil, and playdough. Hold the metal Earth bar so the circuit works. Never connect anything to mains electricity.

Bonus to play (not to build today): a full pixel-art Super Mario level made with Claude's pro tools from a single sentence. It runs on the same arrows, Space, and Click, so a Makey Makey drives it too — play it here.

Slides & live demos: Touch the World, Talk to Code · Chan Meng · chanmeng.org