This time the remote uses its buttons. Build it with two extensions, tune your car's turning speeds, then race it right round the room against the clock and against the other cars.
Hold A and B together and the car drives forward. Hold A to turn left, B to turn right, and let go of both to stop. Your pair has one car and two micro:bits. Write your answers and race times on the handout as you go.
Open each step as you reach it. The pictures match what you will see in MakeCode.
Your car's number is on its label. Write it on your handout. Use it in radio set group in both programs, so your remote drives only your car, even with eight cars on the course.
remote and car-3.Make two projects, remote and car-3. In each one, click Extensions and add both of these.
Type tpbot and click the TPBot card, as in Cars 2. A teal TPBot drawer joins the list.

TPBot in the search box and press Enter.


1. Type radio-broadcast and press Enter.

2. Click the green radio-broadcast card.

3. The pink Radio drawer gains a Broadcast section, holding radio send and on radio … received. These send and hear a named message, and both projects use them.

remote: hold the buttons, it sends a message.forward. Make left, right and stop the same way, in small letters.
car-3: each message sets the two wheel speeds.Use the same group number and the same four message names as the remote: pick each name from the on radio … received dropdown. Download it to the second micro:bit and slot that one into the car.

| Message | Left wheel, right wheel |
|---|---|
forward | both +50 |
left | −50 and +50 |
right | +50 and −50 |
stop | stop the car |
The idea. These are Cars 2's turns: they spin the car on the spot. Step 6 makes them faster.
Switch the car on, on the floor.
| You hold | Message sent |
|---|---|
| A and B | forward |
| A | left |
| B | right |
| Nothing | stop |
Write what the car did for each one on your handout.
A race car turns while it keeps moving. The two numbers in left and right decide how.
| Turn | left wheels | What the car does |
|---|---|---|
| Spin | −50 and 50 | turns on the spot, then sets off again |
| Pivot | 0 and 60 | one wheel still: a tight corner |
| Curve | 30 and 70 | both wheels forward: a wide, fast bend |
The hairpin test. Start at the end of one row of tables, drive round the end of the row and back to the start, and time it. Change one thing in car-3, download, and time it again. For right, swap the two numbers.
Your design decision. A faster forward wins on the straights and is harder to steer in the bends. The best race car balances the two.
The course: one lap right round the room, outside all three rows of tables, back to the start line. In your pair one person drives and one times; swap for the second run.
The rules: drive with the remote only. A stuck car is lifted back onto the course where it stopped, facing the way it was going, and the clock keeps running.
Test, change one thing, test again. Work out your car's average speed on its best lap: speed = distance ÷ time, using the lap length Mr. Rawson gives you.
turbo, sent while you shake the remote, that sets both wheels to 100.forward and red on stop, with Set headlight color to.