
Build a cardboard robot
Plug the same micro:bit into a servo board, and it moves your robot's arms too.
Robot LabRobot LabCode a micro:bit so button A plays an animation and button B shows your name, then wear it as a badge.
One step at a time, in big writing.
Before you start
Make it
A micro:bit is a small computer with 25 lights and two buttons. It does nothing until you give it a program. You build the program from blocks in MakeCode and download it onto the micro:bit. A block such as on button A pressed waits for that button, then runs the blocks inside it from top to bottom.

Go to makecode.microbit.org in Chrome or Edge. Click New Project, call it badge and click Create. Plug the micro:bit into the computer. Click the three dots next to Download, then Connect device, and follow the steps on screen.

From Basic, drag show leds into on start. Click the squares to draw a picture. Click Download. Does your picture appear on the micro:bit?

From Input, drag in on button A pressed. Inside it, put two show leds, each followed by a pause of 500, and draw a different picture in each. End with clear screen (under Basic, then more). Download and press A. Does your animation play?

Drag in another on button A pressed and click the A to change it to B. Put show string from Basic inside it and type your first name. Download and press B. Does your name scroll across?
Put the batteries in the pack, matching the + and − marks. Unplug the USB cable. Push the white plug into the small white socket on the back, and switch the pack on if it has a switch. Press A, then B. Does your badge work without the computer?
Cut a window in one card, about 4.5cm wide and 3cm tall, so you can see the lights and press A and B. Decorate around it. Tape the micro:bit face down over the window at its top corners. Put the battery pack behind it and the second card on top. Tape the cards together down both sides and the bottom, leaving the top open for the batteries. Tape a peg or pin to the back.
Give your badge new tricks, or move your micro:bit onto your robot. What will your robot show when someone presses A?
After the steps
Fix your micro:bit to your robot's head as its face. Make it smile on A and say its name on B.
Your turn
More to make

Plug the same micro:bit into a servo board, and it moves your robot's arms too.

Glue LED eyes above the micro:bit, and your robot has a whole face.