Two micro:bits can talk by radio. Start by sending a number from one to the other, then build a tilt remote and drive the TPBot with it. Open a lesson to see what you need, the steps and the blocks.
Every micro:bit has a small radio built in. It sends short
messages through the air to other micro:bits nearby: no wires and no internet. In lesson 2 one micro:bit is a
remote in your hand. You tip it, it sends a message such as forward, and the
micro:bit in the car hears it and drives.
Monday's lesson, step by step. The tilt remote, the car and the challenge course are on the Coding the Cars 2 page.

TPBot in the search box and press Enter.



Two micro:bits hear each other only when they are on the same radio group. Use your car's number as the group, in both programs, so every pair drives only its own car. radio set group is the first block in the pink Radio drawer.
talk. Put radio set group 1 in on start. Change 1 to your car's number.receivedNumber from the pink block into the gap.
Press A on one micro:bit and the other shows 1. Press B and it shows 2. It works both ways.
The idea. The radio sends a message, and the group number decides who hears it.
remote. Each forever holds a while with is logo down gesture and radio send.forward. Make back, left, right and stop the same way, in small letters.stop. The remote's screen shows what you are sending.car-2, with the TPBot extension. Add one on radio … received for each message, using exactly the same five names.

Tip the remote forward and the car drives forward. Tip it back, left or right and the car follows. Shake it and the car stops.
The idea. The car keeps doing its last order until a new message arrives, so stop is a message too.