Kinetic shapes
Pin card strips together and tape one to a servo arm, and your robot's arm gets an elbow.
Robot LabRobot LabBuild a box robot with a servo on each side, then code your micro:bit to move its arms for a torch, a clap, a touch or a shake.
One step at a time, in big writing.

Before you start
Make it
The spinning ribbons come from an artwork by Pinaffo and Pluvinage.
A servo is a small motor. A 180 degree servo turns to an angle, so its arm waves. A 360 degree servo spins until you stop it. The micro:bit can measure light, so your code can move the arms when a torch shines.
Use two servos with the same label. For a 180 degree servo, tape a pompom of paper or wool strips to a lolly stick. For a 360 degree servo, tie a 50cm ribbon to the end of a lolly stick.
Stand a small box upright. Tape a servo flat against each side near the top, shaft pointing out, and wrap tape round the box so it cannot twist. Fold the 10 by 6cm card into an open pocket and tape it to the front, lower down, for the servo board. Draw a face above it.

Go to makecode.microbit.org in Chrome or Edge, click New Project and call it robot. Click Extensions, at the bottom of the block menus, search for simple servo and click kitronik-simple-servo. A green Servo menu appears. Plug in the micro:bit with the USB cable, click the three dots next to Download, then Connect device, and follow the steps.

Put set servo 1 to central position and set servo 2 to central position from Servo into on start. Drag in on button A pressed from Input, put repeat 4 times from Loops inside it, and build the blocks in the picture. When servo 1 has 30, servo 2 has 150: the servos face opposite ways, so both arms swing up together.
Click Download, then unplug the USB cable. Switch the board off and put 3 AA batteries in the back, matching the + and − marks. Push the micro:bit into the board, lights facing out. Plug the left servo into Servo 1 and the right into Servo 2, brown wire at the top. Switch on: waving servos turn to the middle. Push a plastic arm onto each servo, tape a stick to it pointing up, put the board in its pocket and press A. Do both arms move?

Drag in another on button A pressed and change A to B. Put show number from Basic inside it, with light level from Input in the number. Switch the board off, plug the USB cable into the computer, click Download, unplug and switch on: do this every time you change your code. Press B, then press it again with a torch on the lights. Write down both numbers.
Put if then from Logic inside forever. Drop 0 < 0 from Logic onto true and change < to >. Put light level from Input in the left box, and a number between your two readings in the right: for 20 and 200, try 100.

Drag the top block out of on button A pressed into if: the blocks under it come too. Download, switch on and shine the torch. Do the arms move?

Make your own robot. What will it sense, and what will it do?
After the steps
Every robot is a sense joined to an action. Put the moving blocks inside the sense that suits your robot, and it reacts on its own.
Your turn
More to make
Pin card strips together and tape one to a servo arm, and your robot's arm gets an elbow.

Tape a cube on top of the box, and your robot gets a head with coloured windows for eyes.